@zeniai/web-app-ui 5.4.10-dev → 5.4.11-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AccountMappingScreen-BT4O8HTD.js → AccountMappingScreen-CMj3JkGt.js} +2 -2
- package/dist/assets/ActualMatchingMatchDetailScreen-Dd_vJSSr.js +1 -0
- package/dist/assets/AddressRoutes-7FdlQcLM.js +1 -0
- package/dist/assets/AddressScreen-BbgME8aO.js +9 -0
- package/dist/assets/{AiCfoScreen-RbcUBAdM.js → AiCfoScreen-CU1e2Oi8.js} +5 -5
- package/dist/assets/{AppDrawer-Sa4LLULj.js → AppDrawer-Dm9C8j__.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-BbNV-MR5.js → BillPayApprovalRoutes-GN_PKZBM.js} +1 -1
- package/dist/assets/{BillPayRoutes-uNYLvj5o.js → BillPayRoutes-7abJ7Y81.js} +8 -8
- package/dist/assets/{BusinessVerificationPageScreen-ibSIK2nI.js → BusinessVerificationPageScreen-8VbyEZWD.js} +2 -2
- package/dist/assets/CardsAiCfoScreen-BcEHiZtA.js +14 -0
- package/dist/assets/{ChargeCardRoutes-CO87Ou5-.js → ChargeCardRoutes-BR5_qY8y.js} +9 -9
- package/dist/assets/CompanyPassportScreen-L6OY8AwA.js +1 -0
- package/dist/assets/ConnectionAuthScreen-F-iZ536h.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-Gnqx1b1N.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-BynW3iC3.js → CustomerOnboardingRoutes-3OH4ZWPk.js} +3 -3
- package/dist/assets/{DashboardRoutes-ndbO6Qws.js → DashboardRoutes-X31R7cQf.js} +4 -4
- package/dist/assets/{DefaultTenantHome-2hNb0a3U.js → DefaultTenantHome-FpeIWNLr.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-BZbvzqXc.js +18 -0
- package/dist/assets/{DrawerScreen-b7QdOhuW.js → DrawerScreen-CmgVB1Zi.js} +1 -1
- package/dist/assets/EntityDetailRoutes-5IMi-E-b.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-C6_zyg5Q.js → ExpenseAutomationRoutes-DH5uN2wQ.js} +6 -6
- package/dist/assets/{FeaturePreviewScreen-B5U7lEG-.js → FeaturePreviewScreen-Cnh2Fe6t.js} +1 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-C94ZBMtd.js +1 -0
- package/dist/assets/InboxNotificationsProvider-CJt6vmnU.js +1 -0
- package/dist/assets/{InvoicingRoutes-C4zfN1Wc.js → InvoicingRoutes-Q-6aUqgu.js} +2 -2
- package/dist/assets/{MagicLinkRoutes-BDl3Flj2.js → MagicLinkRoutes-CR6ShXCQ.js} +20 -20
- package/dist/assets/MagicLinkSignInScreen-CBjgwG_1.js +12 -0
- package/dist/assets/{MobileAppDrawer-DVldqyUl.js → MobileAppDrawer-B4_Hh2uX.js} +1 -1
- package/dist/assets/NotFoundScreen-CxVO6BUm.js +1 -0
- package/dist/assets/{NotificationRoutes-UAhv091T.js → NotificationRoutes-CDa5TISi.js} +1 -1
- package/dist/assets/OAuthConsentScreen-D8WvwiVN.js +1 -0
- package/dist/assets/PandLWithForecastRoutes-CiaozOzI.js +1 -0
- package/dist/assets/PaymentLinkScreen-BN13u2tw.js +21 -0
- package/dist/assets/PeopleRoutes-B5eZw1Xs.js +22 -0
- package/dist/assets/PerformanceRoutes-B5KqyHoS.js +1 -0
- package/dist/assets/{Preview-CU7aguP4.js → Preview-gj_-pUjR.js} +1 -1
- package/dist/assets/QBOConnectionScreen-BD6w4pxT.js +101 -0
- package/dist/assets/{ReimbursementApprovalRoutes-DrsMWkl8.js → ReimbursementApprovalRoutes-_wQ1m-SZ.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-Dw7QQEoQ.js → ReimbursementApprovalRuleDetailScreen-CQJ7WhRf.js} +1 -1
- package/dist/assets/ReimbursementRoutes-mHGAbMEo.js +68 -0
- package/dist/assets/{ReportsRoutes-B5lACyrL.js → ReportsRoutes-DNdr9gVu.js} +1 -1
- package/dist/assets/RewardsRoutes-CRQaDmuu.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-LwZh192V.js → ScheduleDetailsPrepaidExpensesScreen-Bgrqk-Br.js} +5 -5
- package/dist/assets/ScreenRoutes-Cix6ynkH.js +2 -0
- package/dist/assets/{SettingsRoutes-DEHUtOgG.js → SettingsRoutes-CXzUd0P6.js} +6 -6
- package/dist/assets/{SetupPagesScreen-Dv6lGRG5.js → SetupPagesScreen-DzLiX5R5.js} +5 -5
- package/dist/assets/SignInScreen-VX0iUVME.js +1 -0
- package/dist/assets/SignOutScreen-BXVxv4o-.js +9 -0
- package/dist/assets/{TaskListScreen-8hq6cEbk.js → TaskListScreen-Dv5TjArL.js} +2 -2
- package/dist/assets/TaskRoutes-aDI7RZCK.js +9 -0
- package/dist/assets/TransactionDetailRoutes-C0gGgGik.js +1 -0
- package/dist/assets/{TransactionDetailScreen-It6ORIbN.js → TransactionDetailScreen-BsGN3Yd5.js} +2 -2
- package/dist/assets/{TransactionListRoutes-BTjkHFVX.js → TransactionListRoutes-_bc9UoMG.js} +1 -1
- package/dist/assets/{TreasuryRoutes-Bys8F57E.js → TreasuryRoutes-C7ABXX2A.js} +6 -6
- package/dist/assets/{VendorsRoutes-abjQ1HGQ.js → VendorsRoutes-BlorNbi4.js} +11 -11
- package/dist/assets/WiseConfirmationScreen-DhPTIeWc.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-DlvpS2Bq.js → ZeniAccountRoutes-QObrERl4.js} +11 -11
- package/dist/assets/ZeniAccountStatementScreen-BHlw6cTG.js +9 -0
- package/dist/assets/{accountMappingHelper-C9fFA6EC.js → accountMappingHelper-BbISzw1n.js} +1 -1
- package/dist/assets/{analytics-C3OBHjEG.js → analytics-C4ICDJLl.js} +1 -1
- package/dist/assets/{analyticsHelper-exrV7AE9.js → analyticsHelper-CPHVprda.js} +1 -1
- package/dist/assets/{core-o-ca34AJ.js → core-C4Vfz6Ll.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-CdLVPaCS.js → decodeURIComponentSafe-CYsmEPcV.js} +1 -1
- package/dist/assets/{dnd-sqKp8sUm.js → dnd-kAQqqaX2.js} +1 -1
- package/dist/assets/{empty-CynSKeaU.js → empty-asCy4wrm.js} +1 -1
- package/dist/assets/{empty-BnmFWJHQ.js → empty-uRyODf4S.js} +1 -1
- package/dist/assets/{emptyVideoElement-BUTaximG.js → emptyVideoElement-79iYt27c.js} +1 -1
- package/dist/assets/epic-B2pHLhBD.js +2 -0
- package/dist/assets/expenseAutomationHelper-hmRJBbGd.js +1 -0
- package/dist/assets/{getLocaleForTenant-CBmE-ohA.js → getLocaleForTenant-DJIJUZ-c.js} +1 -1
- package/dist/assets/{index-BLrePuqf.js → index-BTd7WWV0.js} +1 -1
- package/dist/assets/{index-Btt0Zihe.js → index-B_kv_EmZ.js} +1 -1
- package/dist/assets/{index-Bqod5kmp.js → index-Bg8f4cim.js} +1 -1
- package/dist/assets/{index-Bx2gJO4r.js → index-CJ_pjNEa.js} +7 -7
- package/dist/assets/{index-j2p4Lnj3.js → index-Doknm_HP.js} +1 -1
- package/dist/assets/index-E3novWwq.js +1 -0
- package/dist/assets/{index-D4vHXZ_y.js → index-UMoTq5JU.js} +2 -2
- package/dist/assets/index-pA4BduR_.js +1 -0
- package/dist/assets/{lexical-CEO4_NFb.js → lexical-SeD-pdYj.js} +1 -1
- package/dist/assets/liveblocks-DZUXZ-JO.js +59 -0
- package/dist/assets/{lottie-Dl8uwTmw.js → lottie-txhqSe8x.js} +1 -1
- package/dist/assets/{mui-cK5UWUvi.js → mui-C0PYnbt1.js} +1 -1
- package/dist/assets/{pathToGoBack-Bk8jMuE9.js → pathToGoBack-DF1y-0ht.js} +1 -1
- package/dist/assets/{pdf-BNJo5ucI.js → pdf-bOGTjHnz.js} +5 -5
- package/dist/assets/{pdf-lib-C69QvBGc.js → pdf-lib-BsfRp21l.js} +1 -1
- package/dist/assets/{plaid-C8bTkbCG.js → plaid-hQES7k9Y.js} +1 -1
- package/dist/assets/{pusher-C6PXikRK.js → pusher-BoH5mrch.js} +1 -1
- package/dist/assets/{react-BgHw6ZMD.js → react-BQ6jUfzX.js} +1 -1
- package/dist/assets/{react-BCP4YdKf.js → react-BgJrrMxk.js} +1 -1
- package/dist/assets/{react-BfzBm-jN.js → react-Boil267a.js} +1 -1
- package/dist/assets/{react-CTNewL67.js → react-DXSBT-1v.js} +1 -1
- package/dist/assets/{react-UiIuY6Fo.js → react-ZM05SSz2.js} +1 -1
- package/dist/assets/{react-ixvlVzZ9.js → react-qLaRPrw4.js} +1 -1
- package/dist/assets/{recharts-DK1tbN_A.js → recharts-rN5v_P87.js} +1 -1
- package/dist/assets/{reportTimeframe-6FnDbaGY.js → reportTimeframe-C5AD1AL2.js} +1 -1
- package/dist/assets/{routePaths-DBf4ybcn.js → routePaths-DYebh4Li.js} +1 -1
- package/dist/assets/{sentry-Buwow292.js → sentry-DfoGRlTp.js} +1 -1
- package/dist/assets/{stripSplatSuffix-BKbpznmZ.js → stripSplatSuffix-Db8ayksN.js} +1 -1
- package/dist/assets/{url-B_oojQRK.js → url-B-JScRaX.js} +1 -1
- package/dist/assets/{url-C7oPARVv.js → url-BtS-4pap.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-DBoUtV2d.js → useActualMatchingMatchDetail-DPtaMcdm.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-D_VhexUa.js → useAiCfoDashboardSuggestedQuestionsChips-D2InIpSO.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-k11tYjVi.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-B6OwhCNo.js → useChargeCardPusherEvents-Bf7Vv0PE.js} +1 -1
- package/dist/assets/{useDeviceId-CeB6LWI8.js → useDeviceId-_3Ay4Sah.js} +1 -1
- package/dist/assets/useEmailConnectResultRefresh-BCLtP2Ad.js +1 -0
- package/dist/assets/useEnsureVendorListLoaded-Bud-c91I.js +1 -0
- package/dist/assets/{useInitialThreadRequest-C3w5IRp7.js → useInitialThreadRequest-BVMcY486.js} +1 -1
- package/dist/assets/useTaskManagerAccess-Cp8R2Cu9.js +1 -0
- package/dist/assets/{useTaskManagerPusherEvents-LOx5aVW8.js → useTaskManagerPusherEvents-p1TIydvw.js} +1 -1
- package/dist/assets/utils-CmKqkYr5.js +36 -0
- package/dist/assets/{withTransactionSidePanel-CVCleugc.js → withTransactionSidePanel-btBdqPWA.js} +5 -5
- package/dist/assets/{zeni-epic-state-MQ0qdl-Q.js → zeni-epic-state-DmXGRK_Y.js} +4 -4
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/ActualMatchingMatchDetailScreen-Ce_XDU4u.js +0 -1
- package/dist/assets/AddressRoutes-BQEPn0Yr.js +0 -1
- package/dist/assets/AddressScreen-D2FVWJY-.js +0 -9
- package/dist/assets/CardsAiCfoScreen-CkEc2DEo.js +0 -14
- package/dist/assets/CompanyPassportScreen-DJeoMdCg.js +0 -1
- package/dist/assets/ConnectionAuthScreen-Bf2Ucb1Q.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-D3RbfqTk.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-BqDioG6P.js +0 -18
- package/dist/assets/EntityDetailRoutes-aGFvyTv5.js +0 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-Dr1Xep8u.js +0 -1
- package/dist/assets/InboxNotificationsProvider-Cph6MP0g.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-Bie6nkkJ.js +0 -12
- package/dist/assets/NotFoundScreen-BXfz4Cwt.js +0 -1
- package/dist/assets/OAuthConsentScreen-yv2un5zc.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-DZO_Ak_R.js +0 -1
- package/dist/assets/PaymentLinkScreen-DgjQbdJS.js +0 -21
- package/dist/assets/PeopleRoutes-CBBW0nYr.js +0 -22
- package/dist/assets/PerformanceRoutes-CIoRY1pR.js +0 -1
- package/dist/assets/QBOConnectionScreen-CI47ZrlS.js +0 -100
- package/dist/assets/ReimbursementRoutes-BiacT-VJ.js +0 -68
- package/dist/assets/RewardsRoutes-26PBDRkk.js +0 -1
- package/dist/assets/ScreenRoutes-CdEeBqiV.js +0 -2
- package/dist/assets/SignInScreen-CzvdRg4U.js +0 -1
- package/dist/assets/SignOutScreen-DfTRMdjb.js +0 -9
- package/dist/assets/TaskRoutes-C1KzEFV7.js +0 -9
- package/dist/assets/TransactionDetailRoutes-BB45JvGj.js +0 -1
- package/dist/assets/WiseConfirmationScreen-DewxnFTy.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-DVR6RIK2.js +0 -9
- package/dist/assets/epic-bBvrG0DE.js +0 -2
- package/dist/assets/expenseAutomationHelper-8n6GRk1T.js +0 -1
- package/dist/assets/index-BzW-Y7Lk.js +0 -1
- package/dist/assets/index-Cmb8jqqj.js +0 -1
- package/dist/assets/liveblocks-BdMPZzDQ.js +0 -59
- package/dist/assets/useAskAiCfoHostNavButtonProps-B6lOnQ69.js +0 -1
- package/dist/assets/useEmailConnectResultRefresh-t37-D3lN.js +0 -1
- package/dist/assets/useEnsureVendorListLoaded-BmranjK0.js +0 -1
- package/dist/assets/useTaskManagerAccess-By_NjZen.js +0 -1
- package/dist/assets/utils-D4KfE2cr.js +0 -36
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import{p as isSymbol,M as baseToString,D as toInteger,W as WeakMap$1,q as identity,N as baseCreate,c as isObject,r as root,O as noop,P as copyArray,a as isObjectLike,i as isArray,Q as shortOut,R as arrayEach,S as arrayIncludes,T as setToString,U as isIndex,V as apply,X as createAssigner,Y as isPrototype,Z as isArrayLike,$ as copyObject,a0 as keys,a1 as assignValue,a2 as keysIn,g as get$1,a3 as flatRest,b as baseGetTag,x as isPlainObject,k as baseRest,a4 as toKey,C as baseAssignValue,t as toString,o as toNumber,l as isIterateeCall,a5 as baseSlice,a6 as baseClone,a7 as arrayPush,n as baseFlatten,a8 as arrayMap,j as baseIteratee,z as baseEach,a9 as baseAssign,aa as eq,ab as isBuffer,ac as isTypedArray$2,ad as isArrayLikeObject,ae as cloneBuffer,af as cloneTypedArray,ag as isArguments$1,d as isFunction,ah as initCloneObject,ai as baseFor,aj as Stack,w as last,ak as baseDifference,al as createBaseFor,am as createBaseEach,an as getTag,ao as mapToArray,ap as arrayFilter,B as baseForOwn,aq as map,y as toFinite,ar as values,as as baseIndexOf,at as baseUnary,au as SetCache,av as cacheHas,aw as arrayIncludesWith,ax as constant,ay as castPath,az as parent,aA as nodeUtil,aB as baseIsEqual,aC as baseIsMatch,aD as getMatchData,aE as coreJsData,aF as stubFalse,aG as baseIsNative,E as baseFindIndex,aH as baseIsNaN,aI as baseMatches,aJ as baseMatchesProperty,s as stringToArray,aK as Symbol$1,aL as setToArray,aM as baseGet,aN as getAllKeysIn,A as arraySome,aO as baseProperty,h as hasUnicode,e as castSlice,aP as hasIn,aQ as baseUnset,aR as compareAscending,aS as baseKeys,aT as assignWith,aU as baseValues,aV as baseTimes,aW as stringToPath,aX as getPrototype,aY as baseTrim,aZ as charsEndIndex,f as baseUniq,a_ as difference,a$ as differenceBy,b0 as flatten,b1 as uniq,b2 as findLastIndex,u as flatMap,b3 as orderBy,b4 as findLast,G as memoize,b5 as cloneDeep,b6 as isEmpty,v as isEqual,b7 as isLength,b8 as isMap,b9 as isSet,ba as omit,bb as has,bc as trimEnd,bd as property,be as stubArray,L as Buffer}from"./zeni-epic-state-MQ0qdl-Q.js";import{u as upperFirst,b as baseGt,e as isString,f as createCaseFirst,g as baseLt,h as baseSum,j as arrayEvery,k as createRange,l as uniqBy,m as findIndex,n as head,s as sortBy,o as every,p as find,q as some,r as now,d as debounce,t as throttle,v as isBoolean,w as isNaN$1,x as isNil,y as isNumber,z as max$1,A as maxBy,B as min$1,C as minBy,D as sumBy,E as mapValues,F as range$1}from"./recharts-DK1tbN_A.js";import{d as commonjsGlobal,p as process$1}from"./sentry-Buwow292.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="fa58cac4-a6d5-43ac-be5c-fbd1c5725416",e._sentryDebugIdIdentifier="sentry-dbid-fa58cac4-a6d5-43ac-be5c-fbd1c5725416")}catch{}})();var NAN$1=NaN;function baseToNumber(e){return typeof e=="number"?e:isSymbol(e)?NAN$1:+e}function createMathOperation(e,r){return function(o,i){var n;if(o===void 0&&i===void 0)return r;if(o!==void 0&&(n=o),i!==void 0){if(n===void 0)return i;typeof o=="string"||typeof i=="string"?(o=baseToString(o),i=baseToString(i)):(o=baseToNumber(o),i=baseToNumber(i)),n=e(o,i)}return n}}var add=createMathOperation((function(e,r){return e+r}),0),FUNC_ERROR_TEXT$8="Expected a function";function after(e,r){if(typeof r!="function")throw new TypeError(FUNC_ERROR_TEXT$8);return e=toInteger(e),function(){if(--e<1)return r.apply(this,arguments)}}var metaMap=WeakMap$1&&new WeakMap$1,baseSetData=metaMap?function(e,r){return metaMap.set(e,r),e}:identity;function createCtor(e){return function(){var r=arguments;switch(r.length){case 0:return new e;case 1:return new e(r[0]);case 2:return new e(r[0],r[1]);case 3:return new e(r[0],r[1],r[2]);case 4:return new e(r[0],r[1],r[2],r[3]);case 5:return new e(r[0],r[1],r[2],r[3],r[4]);case 6:return new e(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new e(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var o=baseCreate(e.prototype),i=e.apply(o,r);return isObject(i)?i:o}}var WRAP_BIND_FLAG$7=1;function createBind(e,r,o){var i=r&WRAP_BIND_FLAG$7,n=createCtor(e);return function h(){return(this&&this!==root&&this instanceof h?n:e).apply(i?o:this,arguments)}}var nativeMax$b=Math.max;function composeArgs(e,r,o,i){for(var n=-1,h=e.length,f=o.length,t=-1,a=r.length,s=nativeMax$b(h-f,0),u=Array(a+s),c=!i;++t<a;)u[t]=r[t];for(;++n<f;)(c||n<h)&&(u[o[n]]=e[n]);for(;s--;)u[t++]=e[n++];return u}var nativeMax$a=Math.max;function composeArgsRight(e,r,o,i){for(var n=-1,h=e.length,f=-1,t=o.length,a=-1,s=r.length,u=nativeMax$a(h-t,0),c=Array(u+s),l=!i;++n<u;)c[n]=e[n];for(var d=n;++a<s;)c[d+a]=r[a];for(;++f<t;)(l||n<h)&&(c[d+o[f]]=e[n++]);return c}function countHolders(e,r){for(var o=e.length,i=0;o--;)e[o]===r&&++i;return i}function baseLodash(){}var MAX_ARRAY_LENGTH$6=4294967295;function LazyWrapper(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=MAX_ARRAY_LENGTH$6,this.__views__=[]}LazyWrapper.prototype=baseCreate(baseLodash.prototype),LazyWrapper.prototype.constructor=LazyWrapper;var getData=metaMap?function(e){return metaMap.get(e)}:noop,realNames={},objectProto$a=Object.prototype,hasOwnProperty$9=objectProto$a.hasOwnProperty;function getFuncName(e){for(var r=e.name+"",o=realNames[r],i=hasOwnProperty$9.call(realNames,r)?o.length:0;i--;){var n=o[i],h=n.func;if(h==null||h==e)return n.name}return r}function LodashWrapper(e,r){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=void 0}function wrapperClone(e){if(e instanceof LazyWrapper)return e.clone();var r=new LodashWrapper(e.__wrapped__,e.__chain__);return r.__actions__=copyArray(e.__actions__),r.__index__=e.__index__,r.__values__=e.__values__,r}LodashWrapper.prototype=baseCreate(baseLodash.prototype),LodashWrapper.prototype.constructor=LodashWrapper;var objectProto$9=Object.prototype,hasOwnProperty$8=objectProto$9.hasOwnProperty;function lodash$1(e){if(isObjectLike(e)&&!isArray(e)&&!(e instanceof LazyWrapper)){if(e instanceof LodashWrapper)return e;if(hasOwnProperty$8.call(e,"__wrapped__"))return wrapperClone(e)}return new LodashWrapper(e)}function isLaziable(e){var r=getFuncName(e),o=lodash$1[r];if(typeof o!="function"||!(r in LazyWrapper.prototype))return!1;if(e===o)return!0;var i=getData(o);return!!i&&e===i[0]}lodash$1.prototype=baseLodash.prototype,lodash$1.prototype.constructor=lodash$1;var setData=shortOut(baseSetData),reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,reSplitDetails=/,? & /;function getWrapDetails(e){var r=e.match(reWrapDetails);return r?r[1].split(reSplitDetails):[]}var reWrapComment=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function insertWrapDetails(e,r){var o=r.length;if(!o)return e;var i=o-1;return r[i]=(o>1?"& ":"")+r[i],r=r.join(o>2?", ":" "),e.replace(reWrapComment,`{
|
|
2
|
-
/* [wrapped with `+r+`] */
|
|
3
|
-
`)}var WRAP_BIND_FLAG$6=1,WRAP_BIND_KEY_FLAG$5=2,WRAP_CURRY_FLAG$6=8,WRAP_CURRY_RIGHT_FLAG$3=16,WRAP_PARTIAL_FLAG$6=32,WRAP_PARTIAL_RIGHT_FLAG$3=64,WRAP_ARY_FLAG$4=128,WRAP_REARG_FLAG$3=256,WRAP_FLIP_FLAG$2=512,wrapFlags=[["ary",WRAP_ARY_FLAG$4],["bind",WRAP_BIND_FLAG$6],["bindKey",WRAP_BIND_KEY_FLAG$5],["curry",WRAP_CURRY_FLAG$6],["curryRight",WRAP_CURRY_RIGHT_FLAG$3],["flip",WRAP_FLIP_FLAG$2],["partial",WRAP_PARTIAL_FLAG$6],["partialRight",WRAP_PARTIAL_RIGHT_FLAG$3],["rearg",WRAP_REARG_FLAG$3]];function updateWrapDetails(e,r){return arrayEach(wrapFlags,(function(o){var i="_."+o[0];r&o[1]&&!arrayIncludes(e,i)&&e.push(i)})),e.sort()}function setWrapToString(e,r,o){var i=r+"";return setToString(e,insertWrapDetails(i,updateWrapDetails(getWrapDetails(i),o)))}var WRAP_CURRY_BOUND_FLAG$1=4,WRAP_CURRY_FLAG$5=8,WRAP_PARTIAL_FLAG$5=32,WRAP_PARTIAL_RIGHT_FLAG$2=64;function createRecurry(e,r,o,i,n,h,f,t,a,s){var u=r&WRAP_CURRY_FLAG$5;r|=u?WRAP_PARTIAL_FLAG$5:WRAP_PARTIAL_RIGHT_FLAG$2,(r&=~(u?WRAP_PARTIAL_RIGHT_FLAG$2:WRAP_PARTIAL_FLAG$5))&WRAP_CURRY_BOUND_FLAG$1||(r&=-4);var c=[e,r,n,u?h:void 0,u?f:void 0,u?void 0:h,u?void 0:f,t,a,s],l=o.apply(void 0,c);return isLaziable(e)&&setData(l,c),l.placeholder=i,setWrapToString(l,e,r)}function getHolder(e){return e.placeholder}var nativeMin$c=Math.min;function reorder(e,r){for(var o=e.length,i=nativeMin$c(r.length,o),n=copyArray(e);i--;){var h=r[i];e[i]=isIndex(h,o)?n[h]:void 0}return e}var PLACEHOLDER$1="__lodash_placeholder__";function replaceHolders(e,r){for(var o=-1,i=e.length,n=0,h=[];++o<i;){var f=e[o];f!==r&&f!==PLACEHOLDER$1||(e[o]=PLACEHOLDER$1,h[n++]=o)}return h}var WRAP_BIND_FLAG$5=1,WRAP_BIND_KEY_FLAG$4=2,WRAP_CURRY_FLAG$4=8,WRAP_CURRY_RIGHT_FLAG$2=16,WRAP_ARY_FLAG$3=128,WRAP_FLIP_FLAG$1=512;function createHybrid(e,r,o,i,n,h,f,t,a,s){var u=r&WRAP_ARY_FLAG$3,c=r&WRAP_BIND_FLAG$5,l=r&WRAP_BIND_KEY_FLAG$4,d=r&(WRAP_CURRY_FLAG$4|WRAP_CURRY_RIGHT_FLAG$2),p=r&WRAP_FLIP_FLAG$1,y=l?void 0:createCtor(e);return function m(){for(var _=arguments.length,A=Array(_),E=_;E--;)A[E]=arguments[E];if(d)var q=getHolder(m),w=countHolders(A,q);if(i&&(A=composeArgs(A,i,n,d)),h&&(A=composeArgsRight(A,h,f,d)),_-=w,d&&_<s){var x=replaceHolders(A,q);return createRecurry(e,r,createHybrid,m.placeholder,o,A,x,t,a,s-_)}var P=c?o:this,O=l?P[e]:e;return _=A.length,t?A=reorder(A,t):p&&_>1&&A.reverse(),u&&a<_&&(A.length=a),this&&this!==root&&this instanceof m&&(O=y||createCtor(O)),O.apply(P,A)}}function createCurry(e,r,o){var i=createCtor(e);return function n(){for(var h=arguments.length,f=Array(h),t=h,a=getHolder(n);t--;)f[t]=arguments[t];var s=h<3&&f[0]!==a&&f[h-1]!==a?[]:replaceHolders(f,a);return(h-=s.length)<o?createRecurry(e,r,createHybrid,n.placeholder,void 0,f,s,void 0,void 0,o-h):apply(this&&this!==root&&this instanceof n?i:e,this,f)}}var WRAP_BIND_FLAG$4=1;function createPartial(e,r,o,i){var n=r&WRAP_BIND_FLAG$4,h=createCtor(e);return function f(){for(var t=-1,a=arguments.length,s=-1,u=i.length,c=Array(u+a),l=this&&this!==root&&this instanceof f?h:e;++s<u;)c[s]=i[s];for(;a--;)c[s++]=arguments[++t];return apply(l,n?o:this,c)}}var PLACEHOLDER="__lodash_placeholder__",WRAP_BIND_FLAG$3=1,WRAP_BIND_KEY_FLAG$3=2,WRAP_CURRY_BOUND_FLAG=4,WRAP_CURRY_FLAG$3=8,WRAP_ARY_FLAG$2=128,WRAP_REARG_FLAG$2=256,nativeMin$b=Math.min;function mergeData(e,r){var o=e[1],i=r[1],n=o|i,h=n<(WRAP_BIND_FLAG$3|WRAP_BIND_KEY_FLAG$3|WRAP_ARY_FLAG$2),f=i==WRAP_ARY_FLAG$2&&o==WRAP_CURRY_FLAG$3||i==WRAP_ARY_FLAG$2&&o==WRAP_REARG_FLAG$2&&e[7].length<=r[8]||i==(WRAP_ARY_FLAG$2|WRAP_REARG_FLAG$2)&&r[7].length<=r[8]&&o==WRAP_CURRY_FLAG$3;if(!h&&!f)return e;i&WRAP_BIND_FLAG$3&&(e[2]=r[2],n|=o&WRAP_BIND_FLAG$3?0:WRAP_CURRY_BOUND_FLAG);var t=r[3];if(t){var a=e[3];e[3]=a?composeArgs(a,t,r[4]):t,e[4]=a?replaceHolders(e[3],PLACEHOLDER):r[4]}return(t=r[5])&&(a=e[5],e[5]=a?composeArgsRight(a,t,r[6]):t,e[6]=a?replaceHolders(e[5],PLACEHOLDER):r[6]),(t=r[7])&&(e[7]=t),i&WRAP_ARY_FLAG$2&&(e[8]=e[8]==null?r[8]:nativeMin$b(e[8],r[8])),e[9]==null&&(e[9]=r[9]),e[0]=r[0],e[1]=n,e}var FUNC_ERROR_TEXT$7="Expected a function",WRAP_BIND_FLAG$2=1,WRAP_BIND_KEY_FLAG$2=2,WRAP_CURRY_FLAG$2=8,WRAP_CURRY_RIGHT_FLAG$1=16,WRAP_PARTIAL_FLAG$4=32,WRAP_PARTIAL_RIGHT_FLAG$1=64,nativeMax$9=Math.max;function createWrap(e,r,o,i,n,h,f,t){var a=r&WRAP_BIND_KEY_FLAG$2;if(!a&&typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT$7);var s=i?i.length:0;if(s||(r&=-97,i=n=void 0),f=f===void 0?f:nativeMax$9(toInteger(f),0),t=t===void 0?t:toInteger(t),s-=n?n.length:0,r&WRAP_PARTIAL_RIGHT_FLAG$1){var u=i,c=n;i=n=void 0}var l=a?void 0:getData(e),d=[e,r,o,i,n,u,c,h,f,t];if(l&&mergeData(d,l),e=d[0],r=d[1],o=d[2],i=d[3],n=d[4],!(t=d[9]=d[9]===void 0?a?0:e.length:nativeMax$9(d[9]-s,0))&&r&(WRAP_CURRY_FLAG$2|WRAP_CURRY_RIGHT_FLAG$1)&&(r&=-25),r&&r!=WRAP_BIND_FLAG$2)p=r==WRAP_CURRY_FLAG$2||r==WRAP_CURRY_RIGHT_FLAG$1?createCurry(e,r,t):r!=WRAP_PARTIAL_FLAG$4&&r!=(WRAP_BIND_FLAG$2|WRAP_PARTIAL_FLAG$4)||n.length?createHybrid.apply(void 0,d):createPartial(e,r,o,i);else var p=createBind(e,r,o);return setWrapToString((l?baseSetData:setData)(p,d),e,r)}var WRAP_ARY_FLAG$1=128;function ary(e,r,o){return r=o?void 0:r,r=e&&r==null?e.length:r,createWrap(e,WRAP_ARY_FLAG$1,void 0,void 0,void 0,void 0,r)}var objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty,assign=createAssigner((function(e,r){if(isPrototype(r)||isArrayLike(r))copyObject(r,keys(r),e);else for(var o in r)hasOwnProperty$7.call(r,o)&&assignValue(e,o,r[o])})),assignIn=createAssigner((function(e,r){copyObject(r,keysIn(r),e)})),assignInWith=createAssigner((function(e,r,o,i){copyObject(r,keysIn(r),e,i)}));function baseAt(e,r){for(var o=-1,i=r.length,n=Array(i),h=e==null;++o<i;)n[o]=h?void 0:get$1(e,r[o]);return n}var at=flatRest(baseAt),domExcTag="[object DOMException]",errorTag="[object Error]";function isError(e){if(!isObjectLike(e))return!1;var r=baseGetTag(e);return r==errorTag||r==domExcTag||typeof e.message=="string"&&typeof e.name=="string"&&!isPlainObject(e)}var attempt=baseRest((function(e,r){try{return apply(e,void 0,r)}catch(o){return isError(o)?o:new Error(o)}})),FUNC_ERROR_TEXT$6="Expected a function";function before(e,r){var o;if(typeof r!="function")throw new TypeError(FUNC_ERROR_TEXT$6);return e=toInteger(e),function(){return--e>0&&(o=r.apply(this,arguments)),e<=1&&(r=void 0),o}}var WRAP_BIND_FLAG$1=1,WRAP_PARTIAL_FLAG$3=32,bind=baseRest((function(e,r,o){var i=WRAP_BIND_FLAG$1;if(o.length){var n=replaceHolders(o,getHolder(bind));i|=WRAP_PARTIAL_FLAG$3}return createWrap(e,i,r,o,n)}));bind.placeholder={};var bindAll=flatRest((function(e,r){return arrayEach(r,(function(o){o=toKey(o),baseAssignValue(e,o,bind(e[o],e))})),e})),WRAP_BIND_FLAG=1,WRAP_BIND_KEY_FLAG$1=2,WRAP_PARTIAL_FLAG$2=32,bindKey=baseRest((function(e,r,o){var i=WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG$1;if(o.length){var n=replaceHolders(o,getHolder(bindKey));i|=WRAP_PARTIAL_FLAG$2}return createWrap(r,i,e,o,n)}));function capitalize(e){return upperFirst(toString(e).toLowerCase())}function arrayReduce(e,r,o,i){var n=-1,h=e==null?0:e.length;for(i&&h&&(o=e[++n]);++n<h;)o=r(o,e[n],n,e);return o}function basePropertyOf(e){return function(r){return e?.[r]}}bindKey.placeholder={};var deburredLetters={À:"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"},deburrLetter=basePropertyOf(deburredLetters),reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsCombo$2="["+rsComboRange$2+"]",reComboMark=RegExp(rsCombo$2,"g");function deburr(e){return(e=toString(e))&&e.replace(reLatin,deburrLetter).replace(reComboMark,"")}var reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords(e){return e.match(reAsciiWord)||[]}var reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord(e){return reHasUnicodeWord.test(e)}var rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\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",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange$1="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo$1="["+rsComboRange$1+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange$1+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$1+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ$1="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsEmoji="(?:"+[rsDingbat,rsRegional$1,rsSurrPair$1].join("|")+")"+rsSeq$1,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords(e){return e.match(reUnicodeWord)||[]}function words(e,r,o){return e=toString(e),(r=o?void 0:r)===void 0?hasUnicodeWord(e)?unicodeWords(e):asciiWords(e):e.match(r)||[]}var rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder(e){return function(r){return arrayReduce(words(deburr(r).replace(reApos,"")),e,"")}}var camelCase=createCompounder((function(e,r,o){return r=r.toLowerCase(),e+(o?capitalize(r):r)}));function castArray(){if(!arguments.length)return[];var e=arguments[0];return isArray(e)?e:[e]}var nativeIsFinite$1=root.isFinite,nativeMin$a=Math.min;function createRound(e){var r=Math[e];return function(o,i){if(o=toNumber(o),(i=i==null?0:nativeMin$a(toInteger(i),292))&&nativeIsFinite$1(o)){var n=(toString(o)+"e").split("e"),h=r(n[0]+"e"+(+n[1]+i));return+((n=(toString(h)+"e").split("e"))[0]+"e"+(+n[1]-i))}return r(o)}}var ceil=createRound("ceil");function chain(e){var r=lodash$1(e);return r.__chain__=!0,r}var nativeCeil$2=Math.ceil,nativeMax$8=Math.max;function chunk(e,r,o){r=(o?isIterateeCall(e,r,o):r===void 0)?1:nativeMax$8(toInteger(r),0);var i=e==null?0:e.length;if(!i||r<1)return[];for(var n=0,h=0,f=Array(nativeCeil$2(i/r));n<i;)f[h++]=baseSlice(e,n,n+=r);return f}function baseClamp(e,r,o){return e==e&&(o!==void 0&&(e=e<=o?e:o),r!==void 0&&(e=e>=r?e:r)),e}function clamp(e,r,o){return o===void 0&&(o=r,r=void 0),o!==void 0&&(o=(o=toNumber(o))==o?o:0),r!==void 0&&(r=(r=toNumber(r))==r?r:0),baseClamp(toNumber(e),r,o)}var CLONE_SYMBOLS_FLAG$2=4;function clone(e){return baseClone(e,CLONE_SYMBOLS_FLAG$2)}var CLONE_DEEP_FLAG$4=1,CLONE_SYMBOLS_FLAG$1=4;function cloneDeepWith(e,r){return baseClone(e,CLONE_DEEP_FLAG$4|CLONE_SYMBOLS_FLAG$1,r=typeof r=="function"?r:void 0)}var CLONE_SYMBOLS_FLAG=4;function cloneWith(e,r){return baseClone(e,CLONE_SYMBOLS_FLAG,r=typeof r=="function"?r:void 0)}function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__)}function compact(e){for(var r=-1,o=e==null?0:e.length,i=0,n=[];++r<o;){var h=e[r];h&&(n[i++]=h)}return n}function concat(){var e=arguments.length;if(!e)return[];for(var r=Array(e-1),o=arguments[0],i=e;i--;)r[i-1]=arguments[i];return arrayPush(isArray(o)?copyArray(o):[o],baseFlatten(r,1))}var FUNC_ERROR_TEXT$5="Expected a function";function cond(e){var r=e==null?0:e.length,o=baseIteratee;return e=r?arrayMap(e,(function(i){if(typeof i[1]!="function")throw new TypeError(FUNC_ERROR_TEXT$5);return[o(i[0]),i[1]]})):[],baseRest((function(i){for(var n=-1;++n<r;){var h=e[n];if(apply(h[0],this,i))return apply(h[1],this,i)}}))}function baseConformsTo(e,r,o){var i=o.length;if(e==null)return!i;for(e=Object(e);i--;){var n=o[i],h=r[n],f=e[n];if(f===void 0&&!(n in e)||!h(f))return!1}return!0}function baseConforms(e){var r=keys(e);return function(o){return baseConformsTo(o,e,r)}}var CLONE_DEEP_FLAG$3=1;function conforms(e){return baseConforms(baseClone(e,CLONE_DEEP_FLAG$3))}function conformsTo(e,r){return r==null||baseConformsTo(e,r,keys(r))}function arrayAggregator(e,r,o,i){for(var n=-1,h=e==null?0:e.length;++n<h;){var f=e[n];r(i,f,o(f),e)}return i}function baseAggregator(e,r,o,i){return baseEach(e,(function(n,h,f){r(i,n,o(n),f)})),i}function createAggregator(e,r){return function(o,i){var n=isArray(o)?arrayAggregator:baseAggregator,h=r?r():{};return n(o,e,baseIteratee(i),h)}}var objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty,countBy=createAggregator((function(e,r,o){hasOwnProperty$6.call(e,o)?++e[o]:baseAssignValue(e,o,1)}));function create(e,r){var o=baseCreate(e);return r==null?o:baseAssign(o,r)}var WRAP_CURRY_FLAG$1=8;function curry(e,r,o){var i=createWrap(e,WRAP_CURRY_FLAG$1,void 0,void 0,void 0,void 0,void 0,r=o?void 0:r);return i.placeholder=curry.placeholder,i}curry.placeholder={};var WRAP_CURRY_RIGHT_FLAG=16;function curryRight(e,r,o){var i=createWrap(e,WRAP_CURRY_RIGHT_FLAG,void 0,void 0,void 0,void 0,void 0,r=o?void 0:r);return i.placeholder=curryRight.placeholder,i}function defaultTo(e,r){return e==null||e!=e?r:e}curryRight.placeholder={};var objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty,defaults=baseRest((function(e,r){e=Object(e);var o=-1,i=r.length,n=i>2?r[2]:void 0;for(n&&isIterateeCall(r[0],r[1],n)&&(i=1);++o<i;)for(var h=r[o],f=keysIn(h),t=-1,a=f.length;++t<a;){var s=f[t],u=e[s];(u===void 0||eq(u,objectProto$6[s])&&!hasOwnProperty$5.call(e,s))&&(e[s]=h[s])}return e}));function assignMergeValue(e,r,o){(o!==void 0&&!eq(e[r],o)||o===void 0&&!(r in e))&&baseAssignValue(e,r,o)}function safeGet(e,r){if((r!=="constructor"||typeof e[r]!="function")&&r!="__proto__")return e[r]}function toPlainObject(e){return copyObject(e,keysIn(e))}function baseMergeDeep(e,r,o,i,n,h,f){var t=safeGet(e,o),a=safeGet(r,o),s=f.get(a);if(s)assignMergeValue(e,o,s);else{var u=h?h(t,a,o+"",e,r,f):void 0,c=u===void 0;if(c){var l=isArray(a),d=!l&&isBuffer(a),p=!l&&!d&&isTypedArray$2(a);u=a,l||d||p?isArray(t)?u=t:isArrayLikeObject(t)?u=copyArray(t):d?(c=!1,u=cloneBuffer(a,!0)):p?(c=!1,u=cloneTypedArray(a,!0)):u=[]:isPlainObject(a)||isArguments$1(a)?(u=t,isArguments$1(t)?u=toPlainObject(t):isObject(t)&&!isFunction(t)||(u=initCloneObject(a))):c=!1}c&&(f.set(a,u),n(u,a,i,h,f),f.delete(a)),assignMergeValue(e,o,u)}}function baseMerge(e,r,o,i,n){e!==r&&baseFor(r,(function(h,f){if(n||(n=new Stack),isObject(h))baseMergeDeep(e,r,f,o,baseMerge,i,n);else{var t=i?i(safeGet(e,f),h,f+"",e,r,n):void 0;t===void 0&&(t=h),assignMergeValue(e,f,t)}}),keysIn)}function customDefaultsMerge(e,r,o,i,n,h){return isObject(e)&&isObject(r)&&(h.set(r,e),baseMerge(e,r,void 0,customDefaultsMerge,h),h.delete(r)),e}var mergeWith=createAssigner((function(e,r,o,i){baseMerge(e,r,o,i)})),defaultsDeep=baseRest((function(e){return e.push(void 0,customDefaultsMerge),apply(mergeWith,void 0,e)})),FUNC_ERROR_TEXT$4="Expected a function";function baseDelay(e,r,o){if(typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT$4);return setTimeout((function(){e.apply(void 0,o)}),r)}var defer=baseRest((function(e,r){return baseDelay(e,1,r)})),delay=baseRest((function(e,r,o){return baseDelay(e,toNumber(r)||0,o)})),differenceWith=baseRest((function(e,r){var o=last(r);return isArrayLikeObject(o)&&(o=void 0),isArrayLikeObject(e)?baseDifference(e,baseFlatten(r,1,isArrayLikeObject,!0),void 0,o):[]})),divide=createMathOperation((function(e,r){return e/r}),1);function drop(e,r,o){var i=e==null?0:e.length;return i?(r=o||r===void 0?1:toInteger(r),baseSlice(e,r<0?0:r,i)):[]}function dropRight(e,r,o){var i=e==null?0:e.length;return i?(r=o||r===void 0?1:toInteger(r),baseSlice(e,0,(r=i-r)<0?0:r)):[]}function baseWhile(e,r,o,i){for(var n=e.length,h=i?n:-1;(i?h--:++h<n)&&r(e[h],h,e););return o?baseSlice(e,i?0:h,i?h+1:n):baseSlice(e,i?h+1:0,i?n:h)}function dropRightWhile(e,r){return e&&e.length?baseWhile(e,baseIteratee(r),!0,!0):[]}function dropWhile(e,r){return e&&e.length?baseWhile(e,baseIteratee(r),!0):[]}function castFunction(e){return typeof e=="function"?e:identity}function forEach$1(e,r){return(isArray(e)?arrayEach:baseEach)(e,castFunction(r))}function arrayEachRight(e,r){for(var o=e==null?0:e.length;o--&&r(e[o],o,e)!==!1;);return e}var baseForRight=createBaseFor(!0);function baseForOwnRight(e,r){return e&&baseForRight(e,r,keys)}var baseEachRight=createBaseEach(baseForOwnRight,!0);function forEachRight(e,r){return(isArray(e)?arrayEachRight:baseEachRight)(e,castFunction(r))}function endsWith(e,r,o){e=toString(e),r=baseToString(r);var i=e.length,n=o=o===void 0?i:baseClamp(toInteger(o),0,i);return(o-=r.length)>=0&&e.slice(o,n)==r}function baseToPairs(e,r){return arrayMap(r,(function(o){return[o,e[o]]}))}function setToPairs(e){var r=-1,o=Array(e.size);return e.forEach((function(i){o[++r]=[i,i]})),o}var mapTag$2="[object Map]",setTag$2="[object Set]";function createToPairs(e){return function(r){var o=getTag(r);return o==mapTag$2?mapToArray(r):o==setTag$2?setToPairs(r):baseToPairs(r,e(r))}}var toPairs=createToPairs(keys),toPairsIn=createToPairs(keysIn),htmlEscapes={"&":"&","<":"<",">":">",'"':""","'":"'"},escapeHtmlChar=basePropertyOf(htmlEscapes),reUnescapedHtml=/[&<>"']/g,reHasUnescapedHtml=RegExp(reUnescapedHtml.source);function escape$1(e){return(e=toString(e))&&reHasUnescapedHtml.test(e)?e.replace(reUnescapedHtml,escapeHtmlChar):e}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source);function escapeRegExp(e){return(e=toString(e))&&reHasRegExpChar.test(e)?e.replace(reRegExpChar,"\\$&"):e}var MAX_ARRAY_LENGTH$5=4294967295;function toLength(e){return e?baseClamp(toInteger(e),0,MAX_ARRAY_LENGTH$5):0}function baseFill(e,r,o,i){var n=e.length;for((o=toInteger(o))<0&&(o=-o>n?0:n+o),(i=i===void 0||i>n?n:toInteger(i))<0&&(i+=n),i=o>i?0:toLength(i);o<i;)e[o++]=r;return e}function fill(e,r,o,i){var n=e==null?0:e.length;return n?(o&&typeof o!="number"&&isIterateeCall(e,r,o)&&(o=0,i=n),baseFill(e,r,o,i)):[]}function baseFilter(e,r){var o=[];return baseEach(e,(function(i,n,h){r(i,n,h)&&o.push(i)})),o}function filter(e,r){return(isArray(e)?arrayFilter:baseFilter)(e,baseIteratee(r))}function baseFindKey(e,r,o){var i;return o(e,(function(n,h,f){if(r(n,h,f))return i=h,!1})),i}function findKey(e,r){return baseFindKey(e,baseIteratee(r),baseForOwn)}function findLastKey(e,r){return baseFindKey(e,baseIteratee(r),baseForOwnRight)}var INFINITY$1=1/0;function flatMapDeep(e,r){return baseFlatten(map(e,r),INFINITY$1)}function flatMapDepth(e,r,o){return o=o===void 0?1:toInteger(o),baseFlatten(map(e,r),o)}var INFINITY=1/0;function flattenDeep(e){return e!=null&&e.length?baseFlatten(e,INFINITY):[]}function flattenDepth(e,r){return e!=null&&e.length?(r=r===void 0?1:toInteger(r),baseFlatten(e,r)):[]}var WRAP_FLIP_FLAG=512;function flip(e){return createWrap(e,WRAP_FLIP_FLAG)}var floor$1=createRound("floor"),FUNC_ERROR_TEXT$3="Expected a function",WRAP_CURRY_FLAG=8,WRAP_PARTIAL_FLAG$1=32,WRAP_ARY_FLAG=128,WRAP_REARG_FLAG$1=256;function createFlow(e){return flatRest((function(r){var o=r.length,i=o,n=LodashWrapper.prototype.thru;for(e&&r.reverse();i--;){var h=r[i];if(typeof h!="function")throw new TypeError(FUNC_ERROR_TEXT$3);if(n&&!f&&getFuncName(h)=="wrapper")var f=new LodashWrapper([],!0)}for(i=f?i:o;++i<o;){var t=getFuncName(h=r[i]),a=t=="wrapper"?getData(h):void 0;f=a&&isLaziable(a[0])&&a[1]==(WRAP_ARY_FLAG|WRAP_CURRY_FLAG|WRAP_PARTIAL_FLAG$1|WRAP_REARG_FLAG$1)&&!a[4].length&&a[9]==1?f[getFuncName(a[0])].apply(f,a[3]):h.length==1&&isLaziable(h)?f[t]():f.thru(h)}return function(){var s=arguments,u=s[0];if(f&&s.length==1&&isArray(u))return f.plant(u).value();for(var c=0,l=o?r[c].apply(this,s):u;++c<o;)l=r[c].call(this,l);return l}}))}var flow=createFlow(),flowRight=createFlow(!0);function forIn(e,r){return e==null?e:baseFor(e,castFunction(r),keysIn)}function forInRight(e,r){return e==null?e:baseForRight(e,castFunction(r),keysIn)}function forOwn(e,r){return e&&baseForOwn(e,castFunction(r))}function forOwnRight(e,r){return e&&baseForOwnRight(e,castFunction(r))}function fromPairs(e){for(var r=-1,o=e==null?0:e.length,i={};++r<o;){var n=e[r];baseAssignValue(i,n[0],n[1])}return i}function baseFunctions(e,r){return arrayFilter(r,(function(o){return isFunction(e[o])}))}function functions(e){return e==null?[]:baseFunctions(e,keys(e))}function functionsIn(e){return e==null?[]:baseFunctions(e,keysIn(e))}var objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty,groupBy=createAggregator((function(e,r,o){hasOwnProperty$4.call(e,o)?e[o].push(r):baseAssignValue(e,o,[r])}));function createRelationalOperation(e){return function(r,o){return typeof r=="string"&&typeof o=="string"||(r=toNumber(r),o=toNumber(o)),e(r,o)}}var gt=createRelationalOperation(baseGt),gte=createRelationalOperation((function(e,r){return e>=r})),nativeMax$7=Math.max,nativeMin$9=Math.min;function baseInRange(e,r,o){return e>=nativeMin$9(r,o)&&e<nativeMax$7(r,o)}function inRange(e,r,o){return r=toFinite(r),o===void 0?(o=r,r=0):o=toFinite(o),baseInRange(e=toNumber(e),r,o)}var nativeMax$6=Math.max;function includes(e,r,o,i){e=isArrayLike(e)?e:values(e),o=o&&!i?toInteger(o):0;var n=e.length;return o<0&&(o=nativeMax$6(n+o,0)),isString(e)?o<=n&&e.indexOf(r,o)>-1:!!n&&baseIndexOf(e,r,o)>-1}var nativeMax$5=Math.max;function indexOf(e,r,o){var i=e==null?0:e.length;if(!i)return-1;var n=o==null?0:toInteger(o);return n<0&&(n=nativeMax$5(i+n,0)),baseIndexOf(e,r,n)}function initial(e){return e!=null&&e.length?baseSlice(e,0,-1):[]}var nativeMin$8=Math.min;function baseIntersection(e,r,o){for(var i=o?arrayIncludesWith:arrayIncludes,n=e[0].length,h=e.length,f=h,t=Array(h),a=1/0,s=[];f--;){var u=e[f];f&&r&&(u=arrayMap(u,baseUnary(r))),a=nativeMin$8(u.length,a),t[f]=!o&&(r||n>=120&&u.length>=120)?new SetCache(f&&u):void 0}u=e[0];var c=-1,l=t[0];e:for(;++c<n&&s.length<a;){var d=u[c],p=r?r(d):d;if(d=o||d!==0?d:0,!(l?cacheHas(l,p):i(s,p,o))){for(f=h;--f;){var y=t[f];if(!(y?cacheHas(y,p):i(e[f],p,o)))continue e}l&&l.push(p),s.push(d)}}return s}function castArrayLikeObject(e){return isArrayLikeObject(e)?e:[]}var intersection=baseRest((function(e){var r=arrayMap(e,castArrayLikeObject);return r.length&&r[0]===e[0]?baseIntersection(r):[]})),intersectionBy=baseRest((function(e){var r=last(e),o=arrayMap(e,castArrayLikeObject);return r===last(o)?r=void 0:o.pop(),o.length&&o[0]===e[0]?baseIntersection(o,baseIteratee(r)):[]})),intersectionWith=baseRest((function(e){var r=last(e),o=arrayMap(e,castArrayLikeObject);return(r=typeof r=="function"?r:void 0)&&o.pop(),o.length&&o[0]===e[0]?baseIntersection(o,void 0,r):[]}));function baseInverter(e,r,o,i){return baseForOwn(e,(function(n,h,f){r(i,o(n),h,f)})),i}function createInverter(e,r){return function(o,i){return baseInverter(o,e,r(i),{})}}var objectProto$4=Object.prototype,nativeObjectToString$1=objectProto$4.toString,invert=createInverter((function(e,r,o){r!=null&&typeof r.toString!="function"&&(r=nativeObjectToString$1.call(r)),e[r]=o}),constant(identity)),objectProto$3=Object.prototype,hasOwnProperty$3=objectProto$3.hasOwnProperty,nativeObjectToString=objectProto$3.toString,invertBy=createInverter((function(e,r,o){r!=null&&typeof r.toString!="function"&&(r=nativeObjectToString.call(r)),hasOwnProperty$3.call(e,r)?e[r].push(o):e[r]=[o]}),baseIteratee);function baseInvoke(e,r,o){r=castPath(r,e);var i=(e=parent(e,r))==null?e:e[toKey(last(r))];return i==null?void 0:apply(i,e,o)}var invoke=baseRest(baseInvoke),invokeMap=baseRest((function(e,r,o){var i=-1,n=typeof r=="function",h=isArrayLike(e)?Array(e.length):[];return baseEach(e,(function(f){h[++i]=n?apply(r,f,o):baseInvoke(f,r,o)})),h})),arrayBufferTag="[object ArrayBuffer]";function baseIsArrayBuffer(e){return isObjectLike(e)&&baseGetTag(e)==arrayBufferTag}var nodeIsArrayBuffer=nodeUtil&&nodeUtil.isArrayBuffer,isArrayBuffer=nodeIsArrayBuffer?baseUnary(nodeIsArrayBuffer):baseIsArrayBuffer,dateTag="[object Date]";function baseIsDate(e){return isObjectLike(e)&&baseGetTag(e)==dateTag}var nodeIsDate=nodeUtil&&nodeUtil.isDate,isDate=nodeIsDate?baseUnary(nodeIsDate):baseIsDate;function isElement(e){return isObjectLike(e)&&e.nodeType===1&&!isPlainObject(e)}function isEqualWith(e,r,o){var i=(o=typeof o=="function"?o:void 0)?o(e,r):void 0;return i===void 0?baseIsEqual(e,r,void 0,o):!!i}var nativeIsFinite=root.isFinite;function isFinite$1(e){return typeof e=="number"&&nativeIsFinite(e)}function isInteger(e){return typeof e=="number"&&e==toInteger(e)}function isMatch(e,r){return e===r||baseIsMatch(e,r,getMatchData(r))}function isMatchWith(e,r,o){return o=typeof o=="function"?o:void 0,baseIsMatch(e,r,getMatchData(r),o)}var isMaskable=coreJsData?isFunction:stubFalse,CORE_ERROR_TEXT="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";function isNative(e){if(isMaskable(e))throw new Error(CORE_ERROR_TEXT);return baseIsNative(e)}function isNull(e){return e===null}var regexpTag="[object RegExp]";function baseIsRegExp(e){return isObjectLike(e)&&baseGetTag(e)==regexpTag}var nodeIsRegExp=nodeUtil&&nodeUtil.isRegExp,isRegExp=nodeIsRegExp?baseUnary(nodeIsRegExp):baseIsRegExp,MAX_SAFE_INTEGER$3=9007199254740991;function isSafeInteger(e){return isInteger(e)&&e>=-MAX_SAFE_INTEGER$3&&e<=MAX_SAFE_INTEGER$3}function isUndefined(e){return e===void 0}var weakMapTag="[object WeakMap]";function isWeakMap(e){return isObjectLike(e)&&getTag(e)==weakMapTag}var weakSetTag="[object WeakSet]";function isWeakSet(e){return isObjectLike(e)&&baseGetTag(e)==weakSetTag}var CLONE_DEEP_FLAG$2=1;function iteratee(e){return baseIteratee(typeof e=="function"?e:baseClone(e,CLONE_DEEP_FLAG$2))}var arrayProto$4=Array.prototype,nativeJoin=arrayProto$4.join;function join(e,r){return e==null?"":nativeJoin.call(e,r)}var kebabCase=createCompounder((function(e,r,o){return e+(o?"-":"")+r.toLowerCase()})),keyBy=createAggregator((function(e,r,o){baseAssignValue(e,o,r)}));function strictLastIndexOf(e,r,o){for(var i=o+1;i--;)if(e[i]===r)return i;return i}var nativeMax$4=Math.max,nativeMin$7=Math.min;function lastIndexOf(e,r,o){var i=e==null?0:e.length;if(!i)return-1;var n=i;return o!==void 0&&(n=(n=toInteger(o))<0?nativeMax$4(i+n,0):nativeMin$7(n,i-1)),r==r?strictLastIndexOf(e,r,n):baseFindIndex(e,baseIsNaN,n,!0)}var lowerCase=createCompounder((function(e,r,o){return e+(o?" ":"")+r.toLowerCase()})),lowerFirst=createCaseFirst("toLowerCase"),lt=createRelationalOperation(baseLt),lte=createRelationalOperation((function(e,r){return e<=r}));function mapKeys(e,r){var o={};return r=baseIteratee(r),baseForOwn(e,(function(i,n,h){baseAssignValue(o,r(i,n,h),i)})),o}var CLONE_DEEP_FLAG$1=1;function matches(e){return baseMatches(baseClone(e,CLONE_DEEP_FLAG$1))}var CLONE_DEEP_FLAG=1;function matchesProperty(e,r){return baseMatchesProperty(e,baseClone(r,CLONE_DEEP_FLAG))}var NAN=NaN;function baseMean(e,r){var o=e==null?0:e.length;return o?baseSum(e,r)/o:NAN}function mean(e){return baseMean(e,identity)}function meanBy(e,r){return baseMean(e,baseIteratee(r))}var merge=createAssigner((function(e,r,o){baseMerge(e,r,o)})),method=baseRest((function(e,r){return function(o){return baseInvoke(o,e,r)}})),methodOf=baseRest((function(e,r){return function(o){return baseInvoke(e,o,r)}}));function mixin$1(e,r,o){var i=keys(r),n=baseFunctions(r,i),h=!(isObject(o)&&"chain"in o&&!o.chain),f=isFunction(e);return arrayEach(n,(function(t){var a=r[t];e[t]=a,f&&(e.prototype[t]=function(){var s=this.__chain__;if(h||s){var u=e(this.__wrapped__);return(u.__actions__=copyArray(this.__actions__)).push({func:a,args:arguments,thisArg:e}),u.__chain__=s,u}return a.apply(e,arrayPush([this.value()],arguments))})})),e}var multiply=createMathOperation((function(e,r){return e*r}),1),FUNC_ERROR_TEXT$2="Expected a function";function negate(e){if(typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT$2);return function(){var r=arguments;switch(r.length){case 0:return!e.call(this);case 1:return!e.call(this,r[0]);case 2:return!e.call(this,r[0],r[1]);case 3:return!e.call(this,r[0],r[1],r[2])}return!e.apply(this,r)}}function iteratorToArray(e){for(var r,o=[];!(r=e.next()).done;)o.push(r.value);return o}var mapTag$1="[object Map]",setTag$1="[object Set]",symIterator$1=Symbol$1?Symbol$1.iterator:void 0;function toArray(e){if(!e)return[];if(isArrayLike(e))return isString(e)?stringToArray(e):copyArray(e);if(symIterator$1&&e[symIterator$1])return iteratorToArray(e[symIterator$1]());var r=getTag(e);return(r==mapTag$1?mapToArray:r==setTag$1?setToArray:values)(e)}function wrapperNext(){this.__values__===void 0&&(this.__values__=toArray(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}}function baseNth(e,r){var o=e.length;if(o)return isIndex(r+=r<0?o:0,o)?e[r]:void 0}function nth(e,r){return e&&e.length?baseNth(e,toInteger(r)):void 0}function nthArg(e){return e=toInteger(e),baseRest((function(r){return baseNth(r,e)}))}function baseSet(e,r,o,i){if(!isObject(e))return e;for(var n=-1,h=(r=castPath(r,e)).length,f=h-1,t=e;t!=null&&++n<h;){var a=toKey(r[n]),s=o;if(a==="__proto__"||a==="constructor"||a==="prototype")return e;if(n!=f){var u=t[a];(s=i?i(u,a,t):void 0)===void 0&&(s=isObject(u)?u:isIndex(r[n+1])?[]:{})}assignValue(t,a,s),t=t[a]}return e}function basePickBy(e,r,o){for(var i=-1,n=r.length,h={};++i<n;){var f=r[i],t=baseGet(e,f);o(t,f)&&baseSet(h,castPath(f,e),t)}return h}function pickBy(e,r){if(e==null)return{};var o=arrayMap(getAllKeysIn(e),(function(i){return[i]}));return r=baseIteratee(r),basePickBy(e,o,(function(i,n){return r(i,n[0])}))}function omitBy(e,r){return pickBy(e,negate(baseIteratee(r)))}function once(e){return before(2,e)}function createOver(e){return flatRest((function(r){return r=arrayMap(r,baseUnary(baseIteratee)),baseRest((function(o){var i=this;return e(r,(function(n){return apply(n,i,o)}))}))}))}var over=createOver(arrayMap),castRest=baseRest,nativeMin$6=Math.min,overArgs=castRest((function(e,r){var o=(r=r.length==1&&isArray(r[0])?arrayMap(r[0],baseUnary(baseIteratee)):arrayMap(baseFlatten(r,1),baseUnary(baseIteratee))).length;return baseRest((function(i){for(var n=-1,h=nativeMin$6(i.length,o);++n<h;)i[n]=r[n].call(this,i[n]);return apply(e,this,i)}))})),overEvery=createOver(arrayEvery),overSome=createOver(arraySome),MAX_SAFE_INTEGER$2=9007199254740991,nativeFloor$3=Math.floor;function baseRepeat(e,r){var o="";if(!e||r<1||r>MAX_SAFE_INTEGER$2)return o;do r%2&&(o+=e),(r=nativeFloor$3(r/2))&&(e+=e);while(r);return o}var asciiSize=baseProperty("length"),rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsVarRange="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange+"]",rsCombo="["+rsComboRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ="\\u200d",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g");function unicodeSize(e){for(var r=reUnicode.lastIndex=0;reUnicode.test(e);)++r;return r}function stringSize(e){return hasUnicode(e)?unicodeSize(e):asciiSize(e)}var nativeCeil$1=Math.ceil;function createPadding(e,r){var o=(r=r===void 0?" ":baseToString(r)).length;if(o<2)return o?baseRepeat(r,e):r;var i=baseRepeat(r,nativeCeil$1(e/stringSize(r)));return hasUnicode(r)?castSlice(stringToArray(i),0,e).join(""):i.slice(0,e)}var nativeCeil=Math.ceil,nativeFloor$2=Math.floor;function pad(e,r,o){e=toString(e);var i=(r=toInteger(r))?stringSize(e):0;if(!r||i>=r)return e;var n=(r-i)/2;return createPadding(nativeFloor$2(n),o)+e+createPadding(nativeCeil(n),o)}function padEnd(e,r,o){e=toString(e);var i=(r=toInteger(r))?stringSize(e):0;return r&&i<r?e+createPadding(r-i,o):e}function padStart(e,r,o){e=toString(e);var i=(r=toInteger(r))?stringSize(e):0;return r&&i<r?createPadding(r-i,o)+e:e}var reTrimStart$1=/^\s+/,nativeParseInt=root.parseInt;function parseInt$1(e,r,o){return o||r==null?r=0:r&&(r=+r),nativeParseInt(toString(e).replace(reTrimStart$1,""),r||0)}var WRAP_PARTIAL_FLAG=32,partial=baseRest((function(e,r){var o=replaceHolders(r,getHolder(partial));return createWrap(e,WRAP_PARTIAL_FLAG,void 0,r,o)}));partial.placeholder={};var WRAP_PARTIAL_RIGHT_FLAG=64,partialRight=baseRest((function(e,r){var o=replaceHolders(r,getHolder(partialRight));return createWrap(e,WRAP_PARTIAL_RIGHT_FLAG,void 0,r,o)}));partialRight.placeholder={};var partition=createAggregator((function(e,r,o){e[o?0:1].push(r)}),(function(){return[[],[]]}));function basePick(e,r){return basePickBy(e,r,(function(o,i){return hasIn(e,i)}))}var pick=flatRest((function(e,r){return e==null?{}:basePick(e,r)}));function wrapperPlant(e){for(var r,o=this;o instanceof baseLodash;){var i=wrapperClone(o);i.__index__=0,i.__values__=void 0,r?n.__wrapped__=i:r=i;var n=i;o=o.__wrapped__}return n.__wrapped__=e,r}function propertyOf(e){return function(r){return e==null?void 0:baseGet(e,r)}}function baseIndexOfWith(e,r,o,i){for(var n=o-1,h=e.length;++n<h;)if(i(e[n],r))return n;return-1}var arrayProto$3=Array.prototype,splice$1=arrayProto$3.splice;function basePullAll(e,r,o,i){var n=i?baseIndexOfWith:baseIndexOf,h=-1,f=r.length,t=e;for(e===r&&(r=copyArray(r)),o&&(t=arrayMap(e,baseUnary(o)));++h<f;)for(var a=0,s=r[h],u=o?o(s):s;(a=n(t,u,a,i))>-1;)t!==e&&splice$1.call(t,a,1),splice$1.call(e,a,1);return e}function pullAll(e,r){return e&&e.length&&r&&r.length?basePullAll(e,r):e}var pull=baseRest(pullAll);function pullAllBy(e,r,o){return e&&e.length&&r&&r.length?basePullAll(e,r,baseIteratee(o)):e}function pullAllWith(e,r,o){return e&&e.length&&r&&r.length?basePullAll(e,r,void 0,o):e}var arrayProto$2=Array.prototype,splice=arrayProto$2.splice;function basePullAt(e,r){for(var o=e?r.length:0,i=o-1;o--;){var n=r[o];if(o==i||n!==h){var h=n;isIndex(n)?splice.call(e,n,1):baseUnset(e,n)}}return e}var pullAt=flatRest((function(e,r){var o=e==null?0:e.length,i=baseAt(e,r);return basePullAt(e,arrayMap(r,(function(n){return isIndex(n,o)?+n:n})).sort(compareAscending)),i})),nativeFloor$1=Math.floor,nativeRandom$1=Math.random;function baseRandom(e,r){return e+nativeFloor$1(nativeRandom$1()*(r-e+1))}var freeParseFloat=parseFloat,nativeMin$5=Math.min,nativeRandom=Math.random;function random(e,r,o){if(o&&typeof o!="boolean"&&isIterateeCall(e,r,o)&&(r=o=void 0),o===void 0&&(typeof r=="boolean"?(o=r,r=void 0):typeof e=="boolean"&&(o=e,e=void 0)),e===void 0&&r===void 0?(e=0,r=1):(e=toFinite(e),r===void 0?(r=e,e=0):r=toFinite(r)),e>r){var i=e;e=r,r=i}if(o||e%1||r%1){var n=nativeRandom();return nativeMin$5(e+n*(r-e+freeParseFloat("1e-"+((n+"").length-1))),r)}return baseRandom(e,r)}var rangeRight=createRange(!0),WRAP_REARG_FLAG=256,rearg=flatRest((function(e,r){return createWrap(e,WRAP_REARG_FLAG,void 0,void 0,void 0,r)}));function baseReduce(e,r,o,i,n){return n(e,(function(h,f,t){o=i?(i=!1,h):r(o,h,f,t)})),o}function reduce(e,r,o){var i=isArray(e)?arrayReduce:baseReduce,n=arguments.length<3;return i(e,baseIteratee(r),o,n,baseEach)}function arrayReduceRight(e,r,o,i){var n=e==null?0:e.length;for(i&&n&&(o=e[--n]);n--;)o=r(o,e[n],n,e);return o}function reduceRight(e,r,o){var i=isArray(e)?arrayReduceRight:baseReduce,n=arguments.length<3;return i(e,baseIteratee(r),o,n,baseEachRight)}function reject(e,r){return(isArray(e)?arrayFilter:baseFilter)(e,negate(baseIteratee(r)))}function remove(e,r){var o=[];if(!e||!e.length)return o;var i=-1,n=[],h=e.length;for(r=baseIteratee(r);++i<h;){var f=e[i];r(f,i,e)&&(o.push(f),n.push(i))}return basePullAt(e,n),o}function repeat(e,r,o){return r=(o?isIterateeCall(e,r,o):r===void 0)?1:toInteger(r),baseRepeat(toString(e),r)}function replace(){var e=arguments,r=toString(e[0]);return e.length<3?r:r.replace(e[1],e[2])}var FUNC_ERROR_TEXT$1="Expected a function";function rest(e,r){if(typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT$1);return r=r===void 0?r:toInteger(r),baseRest(e,r)}function result(e,r,o){var i=-1,n=(r=castPath(r,e)).length;for(n||(n=1,e=void 0);++i<n;){var h=e?.[toKey(r[i])];h===void 0&&(i=n,h=o),e=isFunction(h)?h.call(e):h}return e}var arrayProto$1=Array.prototype,nativeReverse=arrayProto$1.reverse;function reverse(e){return e==null?e:nativeReverse.call(e)}var round$1=createRound("round");function arraySample(e){var r=e.length;return r?e[baseRandom(0,r-1)]:void 0}function baseSample(e){return arraySample(values(e))}function sample(e){return(isArray(e)?arraySample:baseSample)(e)}function shuffleSelf(e,r){var o=-1,i=e.length,n=i-1;for(r=r===void 0?i:r;++o<r;){var h=baseRandom(o,n),f=e[h];e[h]=e[o],e[o]=f}return e.length=r,e}function arraySampleSize(e,r){return shuffleSelf(copyArray(e),baseClamp(r,0,e.length))}function baseSampleSize(e,r){var o=values(e);return shuffleSelf(o,baseClamp(r,0,o.length))}function sampleSize(e,r,o){return r=(o?isIterateeCall(e,r,o):r===void 0)?1:toInteger(r),(isArray(e)?arraySampleSize:baseSampleSize)(e,r)}function set(e,r,o){return e==null?e:baseSet(e,r,o)}function setWith(e,r,o,i){return i=typeof i=="function"?i:void 0,e==null?e:baseSet(e,r,o,i)}function arrayShuffle(e){return shuffleSelf(copyArray(e))}function baseShuffle(e){return shuffleSelf(values(e))}function shuffle(e){return(isArray(e)?arrayShuffle:baseShuffle)(e)}var mapTag="[object Map]",setTag="[object Set]";function size(e){if(e==null)return 0;if(isArrayLike(e))return isString(e)?stringSize(e):e.length;var r=getTag(e);return r==mapTag||r==setTag?e.size:baseKeys(e).length}function slice(e,r,o){var i=e==null?0:e.length;return i?(o&&typeof o!="number"&&isIterateeCall(e,r,o)?(r=0,o=i):(r=r==null?0:toInteger(r),o=o===void 0?i:toInteger(o)),baseSlice(e,r,o)):[]}var snakeCase=createCompounder((function(e,r,o){return e+(o?"_":"")+r.toLowerCase()})),MAX_ARRAY_LENGTH$4=4294967295,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH$4-1,nativeFloor=Math.floor,nativeMin$4=Math.min;function baseSortedIndexBy(e,r,o,i){var n=0,h=e==null?0:e.length;if(h===0)return 0;for(var f=(r=o(r))!=r,t=r===null,a=isSymbol(r),s=r===void 0;n<h;){var u=nativeFloor((n+h)/2),c=o(e[u]),l=c!==void 0,d=c===null,p=c==c,y=isSymbol(c);if(f)var m=i||p;else m=s?p&&(i||l):t?p&&l&&(i||!d):a?p&&l&&!d&&(i||!y):!d&&!y&&(i?c<=r:c<r);m?n=u+1:h=u}return nativeMin$4(h,MAX_ARRAY_INDEX)}var MAX_ARRAY_LENGTH$3=4294967295,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH$3>>>1;function baseSortedIndex(e,r,o){var i=0,n=e==null?i:e.length;if(typeof r=="number"&&r==r&&n<=HALF_MAX_ARRAY_LENGTH){for(;i<n;){var h=i+n>>>1,f=e[h];f!==null&&!isSymbol(f)&&(o?f<=r:f<r)?i=h+1:n=h}return n}return baseSortedIndexBy(e,r,identity,o)}function sortedIndex(e,r){return baseSortedIndex(e,r)}function sortedIndexBy(e,r,o){return baseSortedIndexBy(e,r,baseIteratee(o))}function sortedIndexOf(e,r){var o=e==null?0:e.length;if(o){var i=baseSortedIndex(e,r);if(i<o&&eq(e[i],r))return i}return-1}function sortedLastIndex(e,r){return baseSortedIndex(e,r,!0)}function sortedLastIndexBy(e,r,o){return baseSortedIndexBy(e,r,baseIteratee(o),!0)}function sortedLastIndexOf(e,r){if(e!=null&&e.length){var o=baseSortedIndex(e,r,!0)-1;if(eq(e[o],r))return o}return-1}function baseSortedUniq(e,r){for(var o=-1,i=e.length,n=0,h=[];++o<i;){var f=e[o],t=r?r(f):f;if(!o||!eq(t,a)){var a=t;h[n++]=f===0?0:f}}return h}function sortedUniq(e){return e&&e.length?baseSortedUniq(e):[]}function sortedUniqBy(e,r){return e&&e.length?baseSortedUniq(e,baseIteratee(r)):[]}var MAX_ARRAY_LENGTH$2=4294967295;function split(e,r,o){return o&&typeof o!="number"&&isIterateeCall(e,r,o)&&(r=o=void 0),(o=o===void 0?MAX_ARRAY_LENGTH$2:o>>>0)?(e=toString(e))&&(typeof r=="string"||r!=null&&!isRegExp(r))&&!(r=baseToString(r))&&hasUnicode(e)?castSlice(stringToArray(e),0,o):e.split(r,o):[]}var FUNC_ERROR_TEXT="Expected a function",nativeMax$3=Math.max;function spread(e,r){if(typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT);return r=r==null?0:nativeMax$3(toInteger(r),0),baseRest((function(o){var i=o[r],n=castSlice(o,0,r);return i&&arrayPush(n,i),apply(e,this,n)}))}var startCase=createCompounder((function(e,r,o){return e+(o?" ":"")+upperFirst(r)}));function startsWith(e,r,o){return e=toString(e),o=o==null?0:baseClamp(toInteger(o),0,e.length),r=baseToString(r),e.slice(o,o+r.length)==r}function stubObject(){return{}}function stubString(){return""}function stubTrue(){return!0}var subtract=createMathOperation((function(e,r){return e-r}),0);function sum(e){return e&&e.length?baseSum(e,identity):0}function tail(e){var r=e==null?0:e.length;return r?baseSlice(e,1,r):[]}function take(e,r,o){return e&&e.length?(r=o||r===void 0?1:toInteger(r),baseSlice(e,0,r<0?0:r)):[]}function takeRight(e,r,o){var i=e==null?0:e.length;return i?(r=o||r===void 0?1:toInteger(r),baseSlice(e,(r=i-r)<0?0:r,i)):[]}function takeRightWhile(e,r){return e&&e.length?baseWhile(e,baseIteratee(r),!1,!0):[]}function takeWhile(e,r){return e&&e.length?baseWhile(e,baseIteratee(r)):[]}function tap(e,r){return r(e),e}var objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function customDefaultsAssignIn(e,r,o,i){return e===void 0||eq(e,objectProto$2[o])&&!hasOwnProperty$2.call(i,o)?r:e}var stringEscapes={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function escapeStringChar(e){return"\\"+stringEscapes[e]}var reInterpolate=/<%=([\s\S]+?)%>/g,reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,templateSettings={escape:reEscape,evaluate:reEvaluate,interpolate:reInterpolate,variable:"",imports:{_:{escape:escape$1}}},INVALID_TEMPL_VAR_ERROR_TEXT="Invalid `variable` option passed into `_.template`",INVALID_TEMPL_IMPORTS_ERROR_TEXT="Invalid `imports` option passed into `_.template`",reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g,reForbiddenIdentifierChars=/[()=,{}\[\]\/\s]/,reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,reNoMatch=/($^)/,reUnescapedString=/['\n\r\u2028\u2029\\]/g,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function template(e,r,o){var i=templateSettings.imports._.templateSettings||templateSettings;o&&isIterateeCall(e,r,o)&&(r=void 0),e=toString(e),r=assignWith({},r,i,customDefaultsAssignIn);var n=assignWith({},r.imports,i.imports,customDefaultsAssignIn),h=keys(n),f=baseValues(n,h);arrayEach(h,(function(m){if(reForbiddenIdentifierChars.test(m))throw new Error(INVALID_TEMPL_IMPORTS_ERROR_TEXT)}));var t,a,s=0,u=r.interpolate||reNoMatch,c="__p += '",l=RegExp((r.escape||reNoMatch).source+"|"+u.source+"|"+(u===reInterpolate?reEsTemplate:reNoMatch).source+"|"+(r.evaluate||reNoMatch).source+"|$","g"),d=hasOwnProperty$1.call(r,"sourceURL")?"//# sourceURL="+(r.sourceURL+"").replace(/\s/g," ")+`
|
|
4
|
-
`:"";e.replace(l,(function(m,_,A,E,q,w){return A||(A=E),c+=e.slice(s,w).replace(reUnescapedString,escapeStringChar),_&&(t=!0,c+=`' +
|
|
5
|
-
__e(`+_+`) +
|
|
6
|
-
'`),q&&(a=!0,c+=`';
|
|
7
|
-
`+q+`;
|
|
8
|
-
__p += '`),A&&(c+=`' +
|
|
9
|
-
((__t = (`+A+`)) == null ? '' : __t) +
|
|
10
|
-
'`),s=w+m.length,m})),c+=`';
|
|
11
|
-
`;var p=hasOwnProperty$1.call(r,"variable")&&r.variable;if(p){if(reForbiddenIdentifierChars.test(p))throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT)}else c=`with (obj) {
|
|
12
|
-
`+c+`
|
|
13
|
-
}
|
|
14
|
-
`;c=(a?c.replace(reEmptyStringLeading,""):c).replace(reEmptyStringMiddle,"$1").replace(reEmptyStringTrailing,"$1;"),c="function("+(p||"obj")+`) {
|
|
15
|
-
`+(p?"":`obj || (obj = {});
|
|
16
|
-
`)+"var __t, __p = ''"+(t?", __e = _.escape":"")+(a?`, __j = Array.prototype.join;
|
|
17
|
-
function print() { __p += __j.call(arguments, '') }
|
|
18
|
-
`:`;
|
|
19
|
-
`)+c+`return __p
|
|
20
|
-
}`;var y=attempt((function(){return Function(h,d+"return "+c).apply(void 0,f)}));if(y.source=c,isError(y))throw y;return y}function thru(e,r){return r(e)}var MAX_SAFE_INTEGER$1=9007199254740991,MAX_ARRAY_LENGTH$1=4294967295,nativeMin$3=Math.min;function times(e,r){if((e=toInteger(e))<1||e>MAX_SAFE_INTEGER$1)return[];var o=MAX_ARRAY_LENGTH$1,i=nativeMin$3(e,MAX_ARRAY_LENGTH$1);r=castFunction(r),e-=MAX_ARRAY_LENGTH$1;for(var n=baseTimes(i,r);++o<e;)r(o);return n}function wrapperToIterator(){return this}function baseWrapperValue(e,r){var o=e;return o instanceof LazyWrapper&&(o=o.value()),arrayReduce(r,(function(i,n){return n.func.apply(n.thisArg,arrayPush([i],n.args))}),o)}function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)}function toLower(e){return toString(e).toLowerCase()}function toPath(e){return isArray(e)?arrayMap(e,toKey):isSymbol(e)?[e]:copyArray(stringToPath(toString(e)))}var MAX_SAFE_INTEGER=9007199254740991;function toSafeInteger(e){return e?baseClamp(toInteger(e),-MAX_SAFE_INTEGER,MAX_SAFE_INTEGER):e===0?e:0}function toUpper(e){return toString(e).toUpperCase()}function transform(e,r,o){var i=isArray(e),n=i||isBuffer(e)||isTypedArray$2(e);if(r=baseIteratee(r),o==null){var h=e&&e.constructor;o=n?i?new h:[]:isObject(e)&&isFunction(h)?baseCreate(getPrototype(e)):{}}return(n?arrayEach:baseForOwn)(e,(function(f,t,a){return r(o,f,t,a)})),o}function charsStartIndex(e,r){for(var o=-1,i=e.length;++o<i&&baseIndexOf(r,e[o],0)>-1;);return o}function trim(e,r,o){if((e=toString(e))&&(o||r===void 0))return baseTrim(e);if(!e||!(r=baseToString(r)))return e;var i=stringToArray(e),n=stringToArray(r),h=charsStartIndex(i,n),f=charsEndIndex(i,n)+1;return castSlice(i,h,f).join("")}var reTrimStart=/^\s+/;function trimStart(e,r,o){if((e=toString(e))&&(o||r===void 0))return e.replace(reTrimStart,"");if(!e||!(r=baseToString(r)))return e;var i=stringToArray(e),n=charsStartIndex(i,stringToArray(r));return castSlice(i,n).join("")}var DEFAULT_TRUNC_LENGTH=30,DEFAULT_TRUNC_OMISSION="...",reFlags=/\w*$/;function truncate(e,r){var o=DEFAULT_TRUNC_LENGTH,i=DEFAULT_TRUNC_OMISSION;if(isObject(r)){var n="separator"in r?r.separator:n;o="length"in r?toInteger(r.length):o,i="omission"in r?baseToString(r.omission):i}var h=(e=toString(e)).length;if(hasUnicode(e)){var f=stringToArray(e);h=f.length}if(o>=h)return e;var t=o-stringSize(i);if(t<1)return i;var a=f?castSlice(f,0,t).join(""):e.slice(0,t);if(n===void 0)return a+i;if(f&&(t+=a.length-t),isRegExp(n)){if(e.slice(t).search(n)){var s,u=a;for(n.global||(n=RegExp(n.source,toString(reFlags.exec(n))+"g")),n.lastIndex=0;s=n.exec(u);)var c=s.index;a=a.slice(0,c===void 0?t:c)}}else if(e.indexOf(baseToString(n),t)!=t){var l=a.lastIndexOf(n);l>-1&&(a=a.slice(0,l))}return a+i}function unary(e){return ary(e,1)}var htmlUnescapes={"&":"&","<":"<",">":">",""":'"',"'":"'"},unescapeHtmlChar=basePropertyOf(htmlUnescapes),reEscapedHtml=/&(?:amp|lt|gt|quot|#39);/g,reHasEscapedHtml=RegExp(reEscapedHtml.source);function unescape$1(e){return(e=toString(e))&&reHasEscapedHtml.test(e)?e.replace(reEscapedHtml,unescapeHtmlChar):e}var union=baseRest((function(e){return baseUniq(baseFlatten(e,1,isArrayLikeObject,!0))})),unionBy=baseRest((function(e){var r=last(e);return isArrayLikeObject(r)&&(r=void 0),baseUniq(baseFlatten(e,1,isArrayLikeObject,!0),baseIteratee(r))})),unionWith=baseRest((function(e){var r=last(e);return r=typeof r=="function"?r:void 0,baseUniq(baseFlatten(e,1,isArrayLikeObject,!0),void 0,r)}));function uniqWith(e,r){return r=typeof r=="function"?r:void 0,e&&e.length?baseUniq(e,void 0,r):[]}var idCounter=0;function uniqueId(e){var r=++idCounter;return toString(e)+r}function unset(e,r){return e==null||baseUnset(e,r)}var nativeMax$2=Math.max;function unzip(e){if(!e||!e.length)return[];var r=0;return e=arrayFilter(e,(function(o){if(isArrayLikeObject(o))return r=nativeMax$2(o.length,r),!0})),baseTimes(r,(function(o){return arrayMap(e,baseProperty(o))}))}function unzipWith(e,r){if(!e||!e.length)return[];var o=unzip(e);return r==null?o:arrayMap(o,(function(i){return apply(r,void 0,i)}))}function baseUpdate(e,r,o,i){return baseSet(e,r,o(baseGet(e,r)),i)}function update(e,r,o){return e==null?e:baseUpdate(e,r,castFunction(o))}function updateWith(e,r,o,i){return i=typeof i=="function"?i:void 0,e==null?e:baseUpdate(e,r,castFunction(o),i)}var upperCase=createCompounder((function(e,r,o){return e+(o?" ":"")+r.toUpperCase()}));function valuesIn(e){return e==null?[]:baseValues(e,keysIn(e))}var without=baseRest((function(e,r){return isArrayLikeObject(e)?baseDifference(e,r):[]}));function wrap(e,r){return partial(castFunction(r),e)}var wrapperAt=flatRest((function(e){var r=e.length,o=r?e[0]:0,i=this.__wrapped__,n=function(h){return baseAt(h,e)};return!(r>1||this.__actions__.length)&&i instanceof LazyWrapper&&isIndex(o)?((i=i.slice(o,+o+(r?1:0))).__actions__.push({func:thru,args:[n],thisArg:void 0}),new LodashWrapper(i,this.__chain__).thru((function(h){return r&&!h.length&&h.push(void 0),h}))):this.thru(n)}));function wrapperChain(){return chain(this)}function wrapperReverse(){var e=this.__wrapped__;if(e instanceof LazyWrapper){var r=e;return this.__actions__.length&&(r=new LazyWrapper(this)),(r=r.reverse()).__actions__.push({func:thru,args:[reverse],thisArg:void 0}),new LodashWrapper(r,this.__chain__)}return this.thru(reverse)}function baseXor(e,r,o){var i=e.length;if(i<2)return i?baseUniq(e[0]):[];for(var n=-1,h=Array(i);++n<i;)for(var f=e[n],t=-1;++t<i;)t!=n&&(h[n]=baseDifference(h[n]||f,e[t],r,o));return baseUniq(baseFlatten(h,1),r,o)}var xor$1=baseRest((function(e){return baseXor(arrayFilter(e,isArrayLikeObject))})),xorBy=baseRest((function(e){var r=last(e);return isArrayLikeObject(r)&&(r=void 0),baseXor(arrayFilter(e,isArrayLikeObject),baseIteratee(r))})),xorWith=baseRest((function(e){var r=last(e);return r=typeof r=="function"?r:void 0,baseXor(arrayFilter(e,isArrayLikeObject),void 0,r)})),zip=baseRest(unzip);function baseZipObject(e,r,o){for(var i=-1,n=e.length,h=r.length,f={};++i<n;){var t=i<h?r[i]:void 0;o(f,e[i],t)}return f}function zipObject(e,r){return baseZipObject(e||[],r||[],assignValue)}function zipObjectDeep(e,r){return baseZipObject(e||[],r||[],baseSet)}var zipWith=baseRest((function(e){var r=e.length,o=r>1?e[r-1]:void 0;return o=typeof o=="function"?(e.pop(),o):void 0,unzipWith(e,o)}));const array={chunk,compact,concat,difference,differenceBy,differenceWith,drop,dropRight,dropRightWhile,dropWhile,fill,findIndex,findLastIndex,flatten,flattenDeep,flattenDepth,fromPairs,head,indexOf,initial,intersection,intersectionBy,intersectionWith,join,lastIndexOf,nth,pull,pullAll,pullAllBy,pullAllWith,pullAt,remove,reverse,slice,sortedIndex,sortedIndexBy,sortedIndexOf,sortedLastIndex,sortedLastIndexBy,sortedLastIndexOf,sortedUniq,sortedUniqBy,tail,take,takeRight,takeRightWhile,takeWhile,union,unionBy,unionWith,uniq,uniqBy,uniqWith,unzip,unzipWith,without,xor:xor$1,xorBy,xorWith,zip,zipObject,zipObjectDeep,zipWith},collection={countBy,every,filter,find,findLast,flatMap,flatMapDeep,flatMapDepth,forEach:forEach$1,forEachRight,groupBy,includes,invokeMap,keyBy,map,orderBy,partition,reduce,reduceRight,reject,sample,sampleSize,shuffle,size,some,sortBy},date={now},func={after,ary,before,bind,bindKey,curry,curryRight,debounce,defer,delay,flip,memoize,once,overArgs,partial,partialRight,rearg,rest,spread,throttle,unary,wrap},lang={castArray,clone,cloneDeep,cloneDeepWith,cloneWith,conformsTo,eq,gt,gte,isArguments:isArguments$1,isArrayBuffer,isArrayLike,isArrayLikeObject,isBoolean,isBuffer,isDate,isElement,isEmpty,isEqual,isEqualWith,isError,isFinite:isFinite$1,isFunction,isInteger,isLength,isMap,isMatch,isMatchWith,isNaN:isNaN$1,isNative,isNil,isNull,isNumber,isObjectLike,isPlainObject,isRegExp,isSafeInteger,isSet,isString,isSymbol,isTypedArray:isTypedArray$2,isUndefined,isWeakMap,isWeakSet,lt,lte,toArray,toFinite,toLength,toNumber,toPlainObject,toSafeInteger,toString},math={add,ceil,divide,floor:floor$1,max:max$1,maxBy,mean,meanBy,min:min$1,minBy,multiply,round:round$1,subtract,sum,sumBy},number={clamp,inRange,random},object={assign,assignIn,assignInWith,assignWith,at,create,defaults,defaultsDeep,findKey,findLastKey,forIn,forInRight,forOwn,forOwnRight,functions,functionsIn,get:get$1,has,hasIn,invert,invertBy,invoke,keysIn,mapKeys,mapValues,merge,mergeWith,omit,omitBy,pick,pickBy,result,set,setWith,toPairs,toPairsIn,transform,unset,update,updateWith,values,valuesIn},seq={at:wrapperAt,chain,commit:wrapperCommit,next:wrapperNext,plant:wrapperPlant,reverse:wrapperReverse,tap,toIterator:wrapperToIterator,value:wrapperValue,wrapperChain},string={camelCase,capitalize,deburr,endsWith,escape:escape$1,escapeRegExp,kebabCase,lowerCase,lowerFirst,pad,padEnd,padStart,parseInt:parseInt$1,repeat,replace,snakeCase,split,startCase,startsWith,template,templateSettings,toLower,toUpper,trim,trimEnd,trimStart,truncate,unescape:unescape$1,upperCase,upperFirst,words},util$2={attempt,bindAll,cond,conforms,constant,defaultTo,flow,flowRight,iteratee,matches,matchesProperty,method,methodOf,noop,nthArg,over,overEvery,overSome,property,propertyOf,range:range$1,rangeRight,stubArray,stubFalse,stubObject,stubString,stubTrue,times,toPath,uniqueId};function lazyClone(){var e=new LazyWrapper(this.__wrapped__);return e.__actions__=copyArray(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=copyArray(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=copyArray(this.__views__),e}function lazyReverse(){if(this.__filtered__){var e=new LazyWrapper(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e}var nativeMax$1=Math.max,nativeMin$2=Math.min;function getView(e,r,o){for(var i=-1,n=o.length;++i<n;){var h=o[i],f=h.size;switch(h.type){case"drop":e+=f;break;case"dropRight":r-=f;break;case"take":r=nativeMin$2(r,e+f);break;case"takeRight":e=nativeMax$1(e,r-f)}}return{start:e,end:r}}var LAZY_FILTER_FLAG$1=1,LAZY_MAP_FLAG=2,nativeMin$1=Math.min;function lazyValue(){var e=this.__wrapped__.value(),r=this.__dir__,o=isArray(e),i=r<0,n=o?e.length:0,h=getView(0,n,this.__views__),f=h.start,t=h.end,a=t-f,s=i?t:f-1,u=this.__iteratees__,c=u.length,l=0,d=nativeMin$1(a,this.__takeCount__);if(!o||!i&&n==a&&d==a)return baseWrapperValue(e,this.__actions__);var p=[];e:for(;a--&&l<d;){for(var y=-1,m=e[s+=r];++y<c;){var _=u[y],A=_.iteratee,E=_.type,q=A(m);if(E==LAZY_MAP_FLAG)m=q;else if(!q){if(E==LAZY_FILTER_FLAG$1)continue e;break e}}p[l++]=m}return p}var VERSION="4.18.1",WRAP_BIND_KEY_FLAG=2,LAZY_FILTER_FLAG=1,LAZY_WHILE_FLAG=3,MAX_ARRAY_LENGTH=4294967295,arrayProto=Array.prototype,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,symIterator=Symbol$1?Symbol$1.iterator:void 0,nativeMax=Math.max,nativeMin=Math.min,mixin=(function(e){return function(r,o,i){if(i==null){var n=isObject(o),h=n&&keys(o),f=h&&h.length&&baseFunctions(o,h);(f?f.length:n)||(i=o,o=r,r=this)}return e(r,o,i)}})(mixin$1),source;lodash$1.after=func.after,lodash$1.ary=func.ary,lodash$1.assign=object.assign,lodash$1.assignIn=object.assignIn,lodash$1.assignInWith=object.assignInWith,lodash$1.assignWith=object.assignWith,lodash$1.at=object.at,lodash$1.before=func.before,lodash$1.bind=func.bind,lodash$1.bindAll=util$2.bindAll,lodash$1.bindKey=func.bindKey,lodash$1.castArray=lang.castArray,lodash$1.chain=seq.chain,lodash$1.chunk=array.chunk,lodash$1.compact=array.compact,lodash$1.concat=array.concat,lodash$1.cond=util$2.cond,lodash$1.conforms=util$2.conforms,lodash$1.constant=util$2.constant,lodash$1.countBy=collection.countBy,lodash$1.create=object.create,lodash$1.curry=func.curry,lodash$1.curryRight=func.curryRight,lodash$1.debounce=func.debounce,lodash$1.defaults=object.defaults,lodash$1.defaultsDeep=object.defaultsDeep,lodash$1.defer=func.defer,lodash$1.delay=func.delay,lodash$1.difference=array.difference,lodash$1.differenceBy=array.differenceBy,lodash$1.differenceWith=array.differenceWith,lodash$1.drop=array.drop,lodash$1.dropRight=array.dropRight,lodash$1.dropRightWhile=array.dropRightWhile,lodash$1.dropWhile=array.dropWhile,lodash$1.fill=array.fill,lodash$1.filter=collection.filter,lodash$1.flatMap=collection.flatMap,lodash$1.flatMapDeep=collection.flatMapDeep,lodash$1.flatMapDepth=collection.flatMapDepth,lodash$1.flatten=array.flatten,lodash$1.flattenDeep=array.flattenDeep,lodash$1.flattenDepth=array.flattenDepth,lodash$1.flip=func.flip,lodash$1.flow=util$2.flow,lodash$1.flowRight=util$2.flowRight,lodash$1.fromPairs=array.fromPairs,lodash$1.functions=object.functions,lodash$1.functionsIn=object.functionsIn,lodash$1.groupBy=collection.groupBy,lodash$1.initial=array.initial,lodash$1.intersection=array.intersection,lodash$1.intersectionBy=array.intersectionBy,lodash$1.intersectionWith=array.intersectionWith,lodash$1.invert=object.invert,lodash$1.invertBy=object.invertBy,lodash$1.invokeMap=collection.invokeMap,lodash$1.iteratee=util$2.iteratee,lodash$1.keyBy=collection.keyBy,lodash$1.keys=keys,lodash$1.keysIn=object.keysIn,lodash$1.map=collection.map,lodash$1.mapKeys=object.mapKeys,lodash$1.mapValues=object.mapValues,lodash$1.matches=util$2.matches,lodash$1.matchesProperty=util$2.matchesProperty,lodash$1.memoize=func.memoize,lodash$1.merge=object.merge,lodash$1.mergeWith=object.mergeWith,lodash$1.method=util$2.method,lodash$1.methodOf=util$2.methodOf,lodash$1.mixin=mixin,lodash$1.negate=negate,lodash$1.nthArg=util$2.nthArg,lodash$1.omit=object.omit,lodash$1.omitBy=object.omitBy,lodash$1.once=func.once,lodash$1.orderBy=collection.orderBy,lodash$1.over=util$2.over,lodash$1.overArgs=func.overArgs,lodash$1.overEvery=util$2.overEvery,lodash$1.overSome=util$2.overSome,lodash$1.partial=func.partial,lodash$1.partialRight=func.partialRight,lodash$1.partition=collection.partition,lodash$1.pick=object.pick,lodash$1.pickBy=object.pickBy,lodash$1.property=util$2.property,lodash$1.propertyOf=util$2.propertyOf,lodash$1.pull=array.pull,lodash$1.pullAll=array.pullAll,lodash$1.pullAllBy=array.pullAllBy,lodash$1.pullAllWith=array.pullAllWith,lodash$1.pullAt=array.pullAt,lodash$1.range=util$2.range,lodash$1.rangeRight=util$2.rangeRight,lodash$1.rearg=func.rearg,lodash$1.reject=collection.reject,lodash$1.remove=array.remove,lodash$1.rest=func.rest,lodash$1.reverse=array.reverse,lodash$1.sampleSize=collection.sampleSize,lodash$1.set=object.set,lodash$1.setWith=object.setWith,lodash$1.shuffle=collection.shuffle,lodash$1.slice=array.slice,lodash$1.sortBy=collection.sortBy,lodash$1.sortedUniq=array.sortedUniq,lodash$1.sortedUniqBy=array.sortedUniqBy,lodash$1.split=string.split,lodash$1.spread=func.spread,lodash$1.tail=array.tail,lodash$1.take=array.take,lodash$1.takeRight=array.takeRight,lodash$1.takeRightWhile=array.takeRightWhile,lodash$1.takeWhile=array.takeWhile,lodash$1.tap=seq.tap,lodash$1.throttle=func.throttle,lodash$1.thru=thru,lodash$1.toArray=lang.toArray,lodash$1.toPairs=object.toPairs,lodash$1.toPairsIn=object.toPairsIn,lodash$1.toPath=util$2.toPath,lodash$1.toPlainObject=lang.toPlainObject,lodash$1.transform=object.transform,lodash$1.unary=func.unary,lodash$1.union=array.union,lodash$1.unionBy=array.unionBy,lodash$1.unionWith=array.unionWith,lodash$1.uniq=array.uniq,lodash$1.uniqBy=array.uniqBy,lodash$1.uniqWith=array.uniqWith,lodash$1.unset=object.unset,lodash$1.unzip=array.unzip,lodash$1.unzipWith=array.unzipWith,lodash$1.update=object.update,lodash$1.updateWith=object.updateWith,lodash$1.values=object.values,lodash$1.valuesIn=object.valuesIn,lodash$1.without=array.without,lodash$1.words=string.words,lodash$1.wrap=func.wrap,lodash$1.xor=array.xor,lodash$1.xorBy=array.xorBy,lodash$1.xorWith=array.xorWith,lodash$1.zip=array.zip,lodash$1.zipObject=array.zipObject,lodash$1.zipObjectDeep=array.zipObjectDeep,lodash$1.zipWith=array.zipWith,lodash$1.entries=object.toPairs,lodash$1.entriesIn=object.toPairsIn,lodash$1.extend=object.assignIn,lodash$1.extendWith=object.assignInWith,mixin(lodash$1,lodash$1),lodash$1.add=math.add,lodash$1.attempt=util$2.attempt,lodash$1.camelCase=string.camelCase,lodash$1.capitalize=string.capitalize,lodash$1.ceil=math.ceil,lodash$1.clamp=number.clamp,lodash$1.clone=lang.clone,lodash$1.cloneDeep=lang.cloneDeep,lodash$1.cloneDeepWith=lang.cloneDeepWith,lodash$1.cloneWith=lang.cloneWith,lodash$1.conformsTo=lang.conformsTo,lodash$1.deburr=string.deburr,lodash$1.defaultTo=util$2.defaultTo,lodash$1.divide=math.divide,lodash$1.endsWith=string.endsWith,lodash$1.eq=lang.eq,lodash$1.escape=string.escape,lodash$1.escapeRegExp=string.escapeRegExp,lodash$1.every=collection.every,lodash$1.find=collection.find,lodash$1.findIndex=array.findIndex,lodash$1.findKey=object.findKey,lodash$1.findLast=collection.findLast,lodash$1.findLastIndex=array.findLastIndex,lodash$1.findLastKey=object.findLastKey,lodash$1.floor=math.floor,lodash$1.forEach=collection.forEach,lodash$1.forEachRight=collection.forEachRight,lodash$1.forIn=object.forIn,lodash$1.forInRight=object.forInRight,lodash$1.forOwn=object.forOwn,lodash$1.forOwnRight=object.forOwnRight,lodash$1.get=object.get,lodash$1.gt=lang.gt,lodash$1.gte=lang.gte,lodash$1.has=object.has,lodash$1.hasIn=object.hasIn,lodash$1.head=array.head,lodash$1.identity=identity,lodash$1.includes=collection.includes,lodash$1.indexOf=array.indexOf,lodash$1.inRange=number.inRange,lodash$1.invoke=object.invoke,lodash$1.isArguments=lang.isArguments,lodash$1.isArray=isArray,lodash$1.isArrayBuffer=lang.isArrayBuffer,lodash$1.isArrayLike=lang.isArrayLike,lodash$1.isArrayLikeObject=lang.isArrayLikeObject,lodash$1.isBoolean=lang.isBoolean,lodash$1.isBuffer=lang.isBuffer,lodash$1.isDate=lang.isDate,lodash$1.isElement=lang.isElement,lodash$1.isEmpty=lang.isEmpty,lodash$1.isEqual=lang.isEqual,lodash$1.isEqualWith=lang.isEqualWith,lodash$1.isError=lang.isError,lodash$1.isFinite=lang.isFinite,lodash$1.isFunction=lang.isFunction,lodash$1.isInteger=lang.isInteger,lodash$1.isLength=lang.isLength,lodash$1.isMap=lang.isMap,lodash$1.isMatch=lang.isMatch,lodash$1.isMatchWith=lang.isMatchWith,lodash$1.isNaN=lang.isNaN,lodash$1.isNative=lang.isNative,lodash$1.isNil=lang.isNil,lodash$1.isNull=lang.isNull,lodash$1.isNumber=lang.isNumber,lodash$1.isObject=isObject,lodash$1.isObjectLike=lang.isObjectLike,lodash$1.isPlainObject=lang.isPlainObject,lodash$1.isRegExp=lang.isRegExp,lodash$1.isSafeInteger=lang.isSafeInteger,lodash$1.isSet=lang.isSet,lodash$1.isString=lang.isString,lodash$1.isSymbol=lang.isSymbol,lodash$1.isTypedArray=lang.isTypedArray,lodash$1.isUndefined=lang.isUndefined,lodash$1.isWeakMap=lang.isWeakMap,lodash$1.isWeakSet=lang.isWeakSet,lodash$1.join=array.join,lodash$1.kebabCase=string.kebabCase,lodash$1.last=last,lodash$1.lastIndexOf=array.lastIndexOf,lodash$1.lowerCase=string.lowerCase,lodash$1.lowerFirst=string.lowerFirst,lodash$1.lt=lang.lt,lodash$1.lte=lang.lte,lodash$1.max=math.max,lodash$1.maxBy=math.maxBy,lodash$1.mean=math.mean,lodash$1.meanBy=math.meanBy,lodash$1.min=math.min,lodash$1.minBy=math.minBy,lodash$1.stubArray=util$2.stubArray,lodash$1.stubFalse=util$2.stubFalse,lodash$1.stubObject=util$2.stubObject,lodash$1.stubString=util$2.stubString,lodash$1.stubTrue=util$2.stubTrue,lodash$1.multiply=math.multiply,lodash$1.nth=array.nth,lodash$1.noop=util$2.noop,lodash$1.now=date.now,lodash$1.pad=string.pad,lodash$1.padEnd=string.padEnd,lodash$1.padStart=string.padStart,lodash$1.parseInt=string.parseInt,lodash$1.random=number.random,lodash$1.reduce=collection.reduce,lodash$1.reduceRight=collection.reduceRight,lodash$1.repeat=string.repeat,lodash$1.replace=string.replace,lodash$1.result=object.result,lodash$1.round=math.round,lodash$1.sample=collection.sample,lodash$1.size=collection.size,lodash$1.snakeCase=string.snakeCase,lodash$1.some=collection.some,lodash$1.sortedIndex=array.sortedIndex,lodash$1.sortedIndexBy=array.sortedIndexBy,lodash$1.sortedIndexOf=array.sortedIndexOf,lodash$1.sortedLastIndex=array.sortedLastIndex,lodash$1.sortedLastIndexBy=array.sortedLastIndexBy,lodash$1.sortedLastIndexOf=array.sortedLastIndexOf,lodash$1.startCase=string.startCase,lodash$1.startsWith=string.startsWith,lodash$1.subtract=math.subtract,lodash$1.sum=math.sum,lodash$1.sumBy=math.sumBy,lodash$1.template=string.template,lodash$1.times=util$2.times,lodash$1.toFinite=lang.toFinite,lodash$1.toInteger=toInteger,lodash$1.toLength=lang.toLength,lodash$1.toLower=string.toLower,lodash$1.toNumber=lang.toNumber,lodash$1.toSafeInteger=lang.toSafeInteger,lodash$1.toString=lang.toString,lodash$1.toUpper=string.toUpper,lodash$1.trim=string.trim,lodash$1.trimEnd=string.trimEnd,lodash$1.trimStart=string.trimStart,lodash$1.truncate=string.truncate,lodash$1.unescape=string.unescape,lodash$1.uniqueId=util$2.uniqueId,lodash$1.upperCase=string.upperCase,lodash$1.upperFirst=string.upperFirst,lodash$1.each=collection.forEach,lodash$1.eachRight=collection.forEachRight,lodash$1.first=array.head,mixin(lodash$1,(source={},baseForOwn(lodash$1,(function(e,r){hasOwnProperty.call(lodash$1.prototype,r)||(source[r]=e)})),source),{chain:!1}),lodash$1.VERSION=VERSION,(lodash$1.templateSettings=string.templateSettings).imports._=lodash$1,arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){lodash$1[e].placeholder=lodash$1})),arrayEach(["drop","take"],(function(e,r){LazyWrapper.prototype[e]=function(o){o=o===void 0?1:nativeMax(toInteger(o),0);var i=this.__filtered__&&!r?new LazyWrapper(this):this.clone();return i.__filtered__?i.__takeCount__=nativeMin(o,i.__takeCount__):i.__views__.push({size:nativeMin(o,MAX_ARRAY_LENGTH),type:e+(i.__dir__<0?"Right":"")}),i},LazyWrapper.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}})),arrayEach(["filter","map","takeWhile"],(function(e,r){var o=r+1,i=o==LAZY_FILTER_FLAG||o==LAZY_WHILE_FLAG;LazyWrapper.prototype[e]=function(n){var h=this.clone();return h.__iteratees__.push({iteratee:baseIteratee(n),type:o}),h.__filtered__=h.__filtered__||i,h}})),arrayEach(["head","last"],(function(e,r){var o="take"+(r?"Right":"");LazyWrapper.prototype[e]=function(){return this[o](1).value()[0]}})),arrayEach(["initial","tail"],(function(e,r){var o="drop"+(r?"":"Right");LazyWrapper.prototype[e]=function(){return this.__filtered__?new LazyWrapper(this):this[o](1)}})),LazyWrapper.prototype.compact=function(){return this.filter(identity)},LazyWrapper.prototype.find=function(e){return this.filter(e).head()},LazyWrapper.prototype.findLast=function(e){return this.reverse().find(e)},LazyWrapper.prototype.invokeMap=baseRest((function(e,r){return typeof e=="function"?new LazyWrapper(this):this.map((function(o){return baseInvoke(o,e,r)}))})),LazyWrapper.prototype.reject=function(e){return this.filter(negate(baseIteratee(e)))},LazyWrapper.prototype.slice=function(e,r){e=toInteger(e);var o=this;return o.__filtered__&&(e>0||r<0)?new LazyWrapper(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),r!==void 0&&(o=(r=toInteger(r))<0?o.dropRight(-r):o.take(r-e)),o)},LazyWrapper.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(MAX_ARRAY_LENGTH)},baseForOwn(LazyWrapper.prototype,(function(e,r){var o=/^(?:filter|find|map|reject)|While$/.test(r),i=/^(?:head|last)$/.test(r),n=lodash$1[i?"take"+(r=="last"?"Right":""):r],h=i||/^find/.test(r);n&&(lodash$1.prototype[r]=function(){var f=this.__wrapped__,t=i?[1]:arguments,a=f instanceof LazyWrapper,s=t[0],u=a||isArray(f),c=function(_){var A=n.apply(lodash$1,arrayPush([_],t));return i&&l?A[0]:A};u&&o&&typeof s=="function"&&s.length!=1&&(a=u=!1);var l=this.__chain__,d=!!this.__actions__.length,p=h&&!l,y=a&&!d;if(!h&&u){f=y?f:new LazyWrapper(this);var m=e.apply(f,t);return m.__actions__.push({func:thru,args:[c],thisArg:void 0}),new LodashWrapper(m,l)}return p&&y?e.apply(this,t):(m=this.thru(c),p?i?m.value()[0]:m.value():m)})})),arrayEach(["pop","push","shift","sort","splice","unshift"],(function(e){var r=arrayProto[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);lodash$1.prototype[e]=function(){var n=arguments;if(i&&!this.__chain__){var h=this.value();return r.apply(isArray(h)?h:[],n)}return this[o]((function(f){return r.apply(isArray(f)?f:[],n)}))}})),baseForOwn(LazyWrapper.prototype,(function(e,r){var o=lodash$1[r];if(o){var i=o.name+"";hasOwnProperty.call(realNames,i)||(realNames[i]=[]),realNames[i].push({name:r,func:o})}})),realNames[createHybrid(void 0,WRAP_BIND_KEY_FLAG).name]=[{name:"wrapper",func:void 0}],LazyWrapper.prototype.clone=lazyClone,LazyWrapper.prototype.reverse=lazyReverse,LazyWrapper.prototype.value=lazyValue,lodash$1.prototype.at=seq.at,lodash$1.prototype.chain=seq.wrapperChain,lodash$1.prototype.commit=seq.commit,lodash$1.prototype.next=seq.next,lodash$1.prototype.plant=seq.plant,lodash$1.prototype.reverse=seq.reverse,lodash$1.prototype.toJSON=lodash$1.prototype.valueOf=lodash$1.prototype.value=seq.value,lodash$1.prototype.first=lodash$1.prototype.head,symIterator&&(lodash$1.prototype[symIterator]=seq.toIterator);const lodash=Object.freeze(Object.defineProperty({__proto__:null,add,after,ary,assign,assignIn,assignInWith,assignWith,at,attempt,before,bind,bindAll,bindKey,camelCase,capitalize,castArray,ceil,chain,chunk,clamp,clone,cloneDeep,cloneDeepWith,cloneWith,commit:wrapperCommit,compact,concat,cond,conforms,conformsTo,constant,countBy,create,curry,curryRight,debounce,deburr,default:lodash$1,defaultTo,defaults,defaultsDeep,defer,delay,difference,differenceBy,differenceWith,divide,drop,dropRight,dropRightWhile,dropWhile,each:forEach$1,eachRight:forEachRight,endsWith,entries:toPairs,entriesIn:toPairsIn,eq,escape:escape$1,escapeRegExp,every,extend:assignIn,extendWith:assignInWith,fill,filter,find,findIndex,findKey,findLast,findLastIndex,findLastKey,first:head,flatMap,flatMapDeep,flatMapDepth,flatten,flattenDeep,flattenDepth,flip,floor:floor$1,flow,flowRight,forEach:forEach$1,forEachRight,forIn,forInRight,forOwn,forOwnRight,fromPairs,functions,functionsIn,get:get$1,groupBy,gt,gte,has,hasIn,head,identity,inRange,includes,indexOf,initial,intersection,intersectionBy,intersectionWith,invert,invertBy,invoke,invokeMap,isArguments:isArguments$1,isArray,isArrayBuffer,isArrayLike,isArrayLikeObject,isBoolean,isBuffer,isDate,isElement,isEmpty,isEqual,isEqualWith,isError,isFinite:isFinite$1,isFunction,isInteger,isLength,isMap,isMatch,isMatchWith,isNaN:isNaN$1,isNative,isNil,isNull,isNumber,isObject,isObjectLike,isPlainObject,isRegExp,isSafeInteger,isSet,isString,isSymbol,isTypedArray:isTypedArray$2,isUndefined,isWeakMap,isWeakSet,iteratee,join,kebabCase,keyBy,keys,keysIn,last,lastIndexOf,lodash:lodash$1,lowerCase,lowerFirst,lt,lte,map,mapKeys,mapValues,matches,matchesProperty,max:max$1,maxBy,mean,meanBy,memoize,merge,mergeWith,method,methodOf,min:min$1,minBy,mixin:mixin$1,multiply,negate,next:wrapperNext,noop,now,nth,nthArg,omit,omitBy,once,orderBy,over,overArgs,overEvery,overSome,pad,padEnd,padStart,parseInt:parseInt$1,partial,partialRight,partition,pick,pickBy,plant:wrapperPlant,property,propertyOf,pull,pullAll,pullAllBy,pullAllWith,pullAt,random,range:range$1,rangeRight,rearg,reduce,reduceRight,reject,remove,repeat,replace,rest,result,reverse,round:round$1,sample,sampleSize,set,setWith,shuffle,size,slice,snakeCase,some,sortBy,sortedIndex,sortedIndexBy,sortedIndexOf,sortedLastIndex,sortedLastIndexBy,sortedLastIndexOf,sortedUniq,sortedUniqBy,split,spread,startCase,startsWith,stubArray,stubFalse,stubObject,stubString,stubTrue,subtract,sum,sumBy,tail,take,takeRight,takeRightWhile,takeWhile,tap,template,templateSettings,throttle,thru,times,toArray,toFinite,toInteger,toIterator:wrapperToIterator,toJSON:wrapperValue,toLength,toLower,toNumber,toPairs,toPairsIn,toPath,toPlainObject,toSafeInteger,toString,toUpper,transform,trim,trimEnd,trimStart,truncate,unary,unescape:unescape$1,union,unionBy,unionWith,uniq,uniqBy,uniqWith,uniqueId,unset,unzip,unzipWith,update,updateWith,upperCase,upperFirst,value:wrapperValue,valueOf:wrapperValue,values,valuesIn,without,words,wrap,wrapperAt,wrapperChain,wrapperCommit,wrapperLodash:lodash$1,wrapperNext,wrapperPlant,wrapperReverse,wrapperToIterator,wrapperValue,xor:xor$1,xorBy,xorWith,zip,zipObject,zipObjectDeep,zipWith},Symbol.toStringTag,{value:"Module"}));var 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:{}},cryptoBrowserify={},browser$b={exports:{}},safeBuffer$1={exports:{}},dist={},hasRequiredDist,hasRequiredSafeBuffer$1,hasRequiredBrowser$b;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});for(var r={},o={byteLength:function(l){var d=a(l),p=d[0],y=d[1];return 3*(p+y)/4-y},toByteArray:function(l){var d,p,y=a(l),m=y[0],_=y[1],A=new h((function(w,x,P){return 3*(x+P)/4-P})(0,m,_)),E=0,q=_>0?m-4:m;for(p=0;p<q;p+=4)d=n[l.charCodeAt(p)]<<18|n[l.charCodeAt(p+1)]<<12|n[l.charCodeAt(p+2)]<<6|n[l.charCodeAt(p+3)],A[E++]=d>>16&255,A[E++]=d>>8&255,A[E++]=255&d;return _===2&&(d=n[l.charCodeAt(p)]<<2|n[l.charCodeAt(p+1)]>>4,A[E++]=255&d),_===1&&(d=n[l.charCodeAt(p)]<<10|n[l.charCodeAt(p+1)]<<4|n[l.charCodeAt(p+2)]>>2,A[E++]=d>>8&255,A[E++]=255&d),A},fromByteArray:function(l){for(var d,p=l.length,y=p%3,m=[],_=16383,A=0,E=p-y;A<E;A+=_)m.push(s(l,A,A+_>E?E:A+_));return y===1?(d=l[p-1],m.push(i[d>>2]+i[d<<4&63]+"==")):y===2&&(d=(l[p-2]<<8)+l[p-1],m.push(i[d>>10]+i[d>>4&63]+i[d<<2&63]+"=")),m.join("")}},i=[],n=[],h=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)i[t]=f[t],n[f.charCodeAt(t)]=t;function a(l){var d=l.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var p=l.indexOf("=");return p===-1&&(p=d),[p,p===d?0:4-p%4]}function s(l,d,p){for(var y,m,_=[],A=d;A<p;A+=3)y=(l[A]<<16&16711680)+(l[A+1]<<8&65280)+(255&l[A+2]),_.push(i[(m=y)>>18&63]+i[m>>12&63]+i[m>>6&63]+i[63&m]);return _.join("")}n[45]=62,n[95]=63;var u={read:function(l,d,p,y,m){var _,A,E=8*m-y-1,q=(1<<E)-1,w=q>>1,x=-7,P=p?m-1:0,O=p?-1:1,N=l[d+P];for(P+=O,_=N&(1<<-x)-1,N>>=-x,x+=E;x>0;_=256*_+l[d+P],P+=O,x-=8);for(A=_&(1<<-x)-1,_>>=-x,x+=y;x>0;A=256*A+l[d+P],P+=O,x-=8);if(_===0)_=1-w;else{if(_===q)return A?NaN:1/0*(N?-1:1);A+=Math.pow(2,y),_-=w}return(N?-1:1)*A*Math.pow(2,_-y)},write:function(l,d,p,y,m,_){var A,E,q,w=8*_-m-1,x=(1<<w)-1,P=x>>1,O=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=y?0:_-1,v=y?1:-1,B=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(E=isNaN(d)?1:0,A=x):(A=Math.floor(Math.log(d)/Math.LN2),d*(q=Math.pow(2,-A))<1&&(A--,q*=2),(d+=A+P>=1?O/q:O*Math.pow(2,1-P))*q>=2&&(A++,q/=2),A+P>=x?(E=0,A=x):A+P>=1?(E=(d*q-1)*Math.pow(2,m),A+=P):(E=d*Math.pow(2,P-1)*Math.pow(2,m),A=0));m>=8;l[p+N]=255&E,N+=v,E/=256,m-=8);for(A=A<<m|E,w+=m;w>0;l[p+N]=255&A,N+=v,A/=256,w-=8);l[p+N-v]|=128*B}};(function(l){const d=o,p=u,y=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;l.Buffer=w,l.SlowBuffer=function(S){return+S!=S&&(S=0),w.alloc(+S)},l.INSPECT_MAX_BYTES=50;const m=2147483647;l.kMaxLength=m;const{Uint8Array:_,ArrayBuffer:A,SharedArrayBuffer:E}=globalThis;function q(S){if(S>m)throw new RangeError('The value "'+S+'" is invalid for option "size"');const M=new _(S);return Object.setPrototypeOf(M,w.prototype),M}function w(S,M,C){if(typeof S=="number"){if(typeof M=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(S)}return x(S,M,C)}function x(S,M,C){if(typeof S=="string")return(function(G,Y){if(typeof Y=="string"&&Y!==""||(Y="utf8"),!w.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);const re=0|$(G,Y);let pe=q(re);const ce=pe.write(G,Y);return ce!==re&&(pe=pe.slice(0,ce)),pe})(S,M);if(A.isView(S))return(function(G){if(de(G,_)){const Y=new _(G);return v(Y.buffer,Y.byteOffset,Y.byteLength)}return N(G)})(S);if(S==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S);if(de(S,A)||S&&de(S.buffer,A)||E!==void 0&&(de(S,E)||S&&de(S.buffer,E)))return v(S,M,C);if(typeof S=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const W=S.valueOf&&S.valueOf();if(W!=null&&W!==S)return w.from(W,M,C);const z=(function(G){if(w.isBuffer(G)){const Y=0|B(G.length),re=q(Y);return re.length===0||G.copy(re,0,0,Y),re}if(G.length!==void 0)return typeof G.length!="number"||Oe(G.length)?q(0):N(G);if(G.type==="Buffer"&&Array.isArray(G.data))return N(G.data)})(S);if(z)return z;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof S[Symbol.toPrimitive]=="function")return w.from(S[Symbol.toPrimitive]("string"),M,C);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S)}function P(S){if(typeof S!="number")throw new TypeError('"size" argument must be of type number');if(S<0)throw new RangeError('The value "'+S+'" is invalid for option "size"')}function O(S){return P(S),q(S<0?0:0|B(S))}function N(S){const M=S.length<0?0:0|B(S.length),C=q(M);for(let W=0;W<M;W+=1)C[W]=255&S[W];return C}function v(S,M,C){if(M<0||S.byteLength<M)throw new RangeError('"offset" is outside of buffer bounds');if(S.byteLength<M+(C||0))throw new RangeError('"length" is outside of buffer bounds');let W;return W=M===void 0&&C===void 0?new _(S):C===void 0?new _(S,M):new _(S,M,C),Object.setPrototypeOf(W,w.prototype),W}function B(S){if(S>=m)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m.toString(16)+" bytes");return 0|S}function $(S,M){if(w.isBuffer(S))return S.length;if(A.isView(S)||de(S,A))return S.byteLength;if(typeof S!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof S);const C=S.length,W=arguments.length>2&&arguments[2]===!0;if(!W&&C===0)return 0;let z=!1;for(;;)switch(M){case"ascii":case"latin1":case"binary":return C;case"utf8":case"utf-8":return he(S).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*C;case"hex":return C>>>1;case"base64":return Ee(S).length;default:if(z)return W?-1:he(S).length;M=(""+M).toLowerCase(),z=!0}}function R(S,M,C){let W=!1;if((M===void 0||M<0)&&(M=0),M>this.length||((C===void 0||C>this.length)&&(C=this.length),C<=0)||(C>>>=0)<=(M>>>=0))return"";for(S||(S="utf8");;)switch(S){case"hex":return Z(this,M,C);case"utf8":case"utf-8":return j(this,M,C);case"ascii":return K(this,M,C);case"latin1":case"binary":return ee(this,M,C);case"base64":return I(this,M,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,M,C);default:if(W)throw new TypeError("Unknown encoding: "+S);S=(S+"").toLowerCase(),W=!0}}function g(S,M,C){const W=S[M];S[M]=S[C],S[C]=W}function b(S,M,C,W,z){if(S.length===0)return-1;if(typeof C=="string"?(W=C,C=0):C>2147483647?C=2147483647:C<-2147483648&&(C=-2147483648),Oe(C=+C)&&(C=z?0:S.length-1),C<0&&(C=S.length+C),C>=S.length){if(z)return-1;C=S.length-1}else if(C<0){if(!z)return-1;C=0}if(typeof M=="string"&&(M=w.from(M,W)),w.isBuffer(M))return M.length===0?-1:k(S,M,C,W,z);if(typeof M=="number")return M&=255,typeof _.prototype.indexOf=="function"?z?_.prototype.indexOf.call(S,M,C):_.prototype.lastIndexOf.call(S,M,C):k(S,[M],C,W,z);throw new TypeError("val must be string, number or Buffer")}function k(S,M,C,W,z){let G,Y=1,re=S.length,pe=M.length;if(W!==void 0&&((W=String(W).toLowerCase())==="ucs2"||W==="ucs-2"||W==="utf16le"||W==="utf-16le")){if(S.length<2||M.length<2)return-1;Y=2,re/=2,pe/=2,C/=2}function ce(ae,Re){return Y===1?ae[Re]:ae.readUInt16BE(Re*Y)}if(z){let ae=-1;for(G=C;G<re;G++)if(ce(S,G)===ce(M,ae===-1?0:G-ae)){if(ae===-1&&(ae=G),G-ae+1===pe)return ae*Y}else ae!==-1&&(G-=G-ae),ae=-1}else for(C+pe>re&&(C=re-pe),G=C;G>=0;G--){let ae=!0;for(let Re=0;Re<pe;Re++)if(ce(S,G+Re)!==ce(M,Re)){ae=!1;break}if(ae)return G}return-1}function L(S,M,C,W){C=Number(C)||0;const z=S.length-C;W?(W=Number(W))>z&&(W=z):W=z;const G=M.length;let Y;for(W>G/2&&(W=G/2),Y=0;Y<W;++Y){const re=parseInt(M.substr(2*Y,2),16);if(Oe(re))return Y;S[C+Y]=re}return Y}function F(S,M,C,W){return ge(he(M,S.length-C),S,C,W)}function T(S,M,C,W){return ge((function(z){const G=[];for(let Y=0;Y<z.length;++Y)G.push(255&z.charCodeAt(Y));return G})(M),S,C,W)}function U(S,M,C,W){return ge(Ee(M),S,C,W)}function D(S,M,C,W){return ge((function(z,G){let Y,re,pe;const ce=[];for(let ae=0;ae<z.length&&!((G-=2)<0);++ae)Y=z.charCodeAt(ae),re=Y>>8,pe=Y%256,ce.push(pe),ce.push(re);return ce})(M,S.length-C),S,C,W)}function I(S,M,C){return M===0&&C===S.length?d.fromByteArray(S):d.fromByteArray(S.slice(M,C))}function j(S,M,C){C=Math.min(S.length,C);const W=[];let z=M;for(;z<C;){const G=S[z];let Y=null,re=G>239?4:G>223?3:G>191?2:1;if(z+re<=C){let pe,ce,ae,Re;switch(re){case 1:G<128&&(Y=G);break;case 2:pe=S[z+1],(192&pe)==128&&(Re=(31&G)<<6|63&pe,Re>127&&(Y=Re));break;case 3:pe=S[z+1],ce=S[z+2],(192&pe)==128&&(192&ce)==128&&(Re=(15&G)<<12|(63&pe)<<6|63&ce,Re>2047&&(Re<55296||Re>57343)&&(Y=Re));break;case 4:pe=S[z+1],ce=S[z+2],ae=S[z+3],(192&pe)==128&&(192&ce)==128&&(192&ae)==128&&(Re=(15&G)<<18|(63&pe)<<12|(63&ce)<<6|63&ae,Re>65535&&Re<1114112&&(Y=Re))}}Y===null?(Y=65533,re=1):Y>65535&&(Y-=65536,W.push(Y>>>10&1023|55296),Y=56320|1023&Y),W.push(Y),z+=re}return(function(G){const Y=G.length;if(Y<=H)return String.fromCharCode.apply(String,G);let re="",pe=0;for(;pe<Y;)re+=String.fromCharCode.apply(String,G.slice(pe,pe+=H));return re})(W)}w.TYPED_ARRAY_SUPPORT=(function(){try{const S=new _(1),M={foo:function(){return 42}};return Object.setPrototypeOf(M,_.prototype),Object.setPrototypeOf(S,M),S.foo()===42}catch{return!1}})(),w.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||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(w.prototype,"parent",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.buffer}}),Object.defineProperty(w.prototype,"offset",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.byteOffset}}),w.poolSize=8192,w.from=function(S,M,C){return x(S,M,C)},Object.setPrototypeOf(w.prototype,_.prototype),Object.setPrototypeOf(w,_),w.alloc=function(S,M,C){return(function(W,z,G){return P(W),W<=0?q(W):z!==void 0?typeof G=="string"?q(W).fill(z,G):q(W).fill(z):q(W)})(S,M,C)},w.allocUnsafe=function(S){return O(S)},w.allocUnsafeSlow=function(S){return O(S)},w.isBuffer=function(S){return S!=null&&S._isBuffer===!0&&S!==w.prototype},w.compare=function(S,M){if(de(S,_)&&(S=w.from(S,S.offset,S.byteLength)),de(M,_)&&(M=w.from(M,M.offset,M.byteLength)),!w.isBuffer(S)||!w.isBuffer(M))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(S===M)return 0;let C=S.length,W=M.length;for(let z=0,G=Math.min(C,W);z<G;++z)if(S[z]!==M[z]){C=S[z],W=M[z];break}return C<W?-1:W<C?1:0},w.isEncoding=function(S){switch(String(S).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},w.concat=function(S,M){if(!Array.isArray(S))throw new TypeError('"list" argument must be an Array of Buffers');if(S.length===0)return w.alloc(0);let C;if(M===void 0)for(M=0,C=0;C<S.length;++C)M+=S[C].length;const W=w.allocUnsafe(M);let z=0;for(C=0;C<S.length;++C){let G=S[C];if(de(G,_))z+G.length>W.length?(w.isBuffer(G)||(G=w.from(G)),G.copy(W,z)):_.prototype.set.call(W,G,z);else{if(!w.isBuffer(G))throw new TypeError('"list" argument must be an Array of Buffers');G.copy(W,z)}z+=G.length}return W},w.byteLength=$,w.prototype._isBuffer=!0,w.prototype.swap16=function(){const S=this.length;if(S%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let M=0;M<S;M+=2)g(this,M,M+1);return this},w.prototype.swap32=function(){const S=this.length;if(S%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let M=0;M<S;M+=4)g(this,M,M+3),g(this,M+1,M+2);return this},w.prototype.swap64=function(){const S=this.length;if(S%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let M=0;M<S;M+=8)g(this,M,M+7),g(this,M+1,M+6),g(this,M+2,M+5),g(this,M+3,M+4);return this},w.prototype.toString=function(){const S=this.length;return S===0?"":arguments.length===0?j(this,0,S):R.apply(this,arguments)},w.prototype.toLocaleString=w.prototype.toString,w.prototype.equals=function(S){if(!w.isBuffer(S))throw new TypeError("Argument must be a Buffer");return this===S||w.compare(this,S)===0},w.prototype.inspect=function(){let S="";const M=l.INSPECT_MAX_BYTES;return S=this.toString("hex",0,M).replace(/(.{2})/g,"$1 ").trim(),this.length>M&&(S+=" ... "),"<Buffer "+S+">"},y&&(w.prototype[y]=w.prototype.inspect),w.prototype.compare=function(S,M,C,W,z){if(de(S,_)&&(S=w.from(S,S.offset,S.byteLength)),!w.isBuffer(S))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof S);if(M===void 0&&(M=0),C===void 0&&(C=S?S.length:0),W===void 0&&(W=0),z===void 0&&(z=this.length),M<0||C>S.length||W<0||z>this.length)throw new RangeError("out of range index");if(W>=z&&M>=C)return 0;if(W>=z)return-1;if(M>=C)return 1;if(this===S)return 0;let G=(z>>>=0)-(W>>>=0),Y=(C>>>=0)-(M>>>=0);const re=Math.min(G,Y),pe=this.slice(W,z),ce=S.slice(M,C);for(let ae=0;ae<re;++ae)if(pe[ae]!==ce[ae]){G=pe[ae],Y=ce[ae];break}return G<Y?-1:Y<G?1:0},w.prototype.includes=function(S,M,C){return this.indexOf(S,M,C)!==-1},w.prototype.indexOf=function(S,M,C){return b(this,S,M,C,!0)},w.prototype.lastIndexOf=function(S,M,C){return b(this,S,M,C,!1)},w.prototype.write=function(S,M,C,W){if(M===void 0)W="utf8",C=this.length,M=0;else if(C===void 0&&typeof M=="string")W=M,C=this.length,M=0;else{if(!isFinite(M))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");M>>>=0,isFinite(C)?(C>>>=0,W===void 0&&(W="utf8")):(W=C,C=void 0)}const z=this.length-M;if((C===void 0||C>z)&&(C=z),S.length>0&&(C<0||M<0)||M>this.length)throw new RangeError("Attempt to write outside buffer bounds");W||(W="utf8");let G=!1;for(;;)switch(W){case"hex":return L(this,S,M,C);case"utf8":case"utf-8":return F(this,S,M,C);case"ascii":case"latin1":case"binary":return T(this,S,M,C);case"base64":return U(this,S,M,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,S,M,C);default:if(G)throw new TypeError("Unknown encoding: "+W);W=(""+W).toLowerCase(),G=!0}},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const H=4096;function K(S,M,C){let W="";C=Math.min(S.length,C);for(let z=M;z<C;++z)W+=String.fromCharCode(127&S[z]);return W}function ee(S,M,C){let W="";C=Math.min(S.length,C);for(let z=M;z<C;++z)W+=String.fromCharCode(S[z]);return W}function Z(S,M,C){const W=S.length;(!M||M<0)&&(M=0),(!C||C<0||C>W)&&(C=W);let z="";for(let G=M;G<C;++G)z+=ve[S[G]];return z}function V(S,M,C){const W=S.slice(M,C);let z="";for(let G=0;G<W.length-1;G+=2)z+=String.fromCharCode(W[G]+256*W[G+1]);return z}function Q(S,M,C){if(S%1!=0||S<0)throw new RangeError("offset is not uint");if(S+M>C)throw new RangeError("Trying to access beyond buffer length")}function X(S,M,C,W,z,G){if(!w.isBuffer(S))throw new TypeError('"buffer" argument must be a Buffer instance');if(M>z||M<G)throw new RangeError('"value" argument is out of bounds');if(C+W>S.length)throw new RangeError("Index out of range")}function J(S,M,C,W,z){ue(M,W,z,S,C,7);let G=Number(M&BigInt(4294967295));S[C++]=G,G>>=8,S[C++]=G,G>>=8,S[C++]=G,G>>=8,S[C++]=G;let Y=Number(M>>BigInt(32)&BigInt(4294967295));return S[C++]=Y,Y>>=8,S[C++]=Y,Y>>=8,S[C++]=Y,Y>>=8,S[C++]=Y,C}function oe(S,M,C,W,z){ue(M,W,z,S,C,7);let G=Number(M&BigInt(4294967295));S[C+7]=G,G>>=8,S[C+6]=G,G>>=8,S[C+5]=G,G>>=8,S[C+4]=G;let Y=Number(M>>BigInt(32)&BigInt(4294967295));return S[C+3]=Y,Y>>=8,S[C+2]=Y,Y>>=8,S[C+1]=Y,Y>>=8,S[C]=Y,C+8}function se(S,M,C,W,z,G){if(C+W>S.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("Index out of range")}function ne(S,M,C,W,z){return M=+M,C>>>=0,z||se(S,0,C,4),p.write(S,M,C,W,23,4),C+4}function _e(S,M,C,W,z){return M=+M,C>>>=0,z||se(S,0,C,8),p.write(S,M,C,W,52,8),C+8}w.prototype.slice=function(S,M){const C=this.length;(S=~~S)<0?(S+=C)<0&&(S=0):S>C&&(S=C),(M=M===void 0?C:~~M)<0?(M+=C)<0&&(M=0):M>C&&(M=C),M<S&&(M=S);const W=this.subarray(S,M);return Object.setPrototypeOf(W,w.prototype),W},w.prototype.readUintLE=w.prototype.readUIntLE=function(S,M,C){S>>>=0,M>>>=0,C||Q(S,M,this.length);let W=this[S],z=1,G=0;for(;++G<M&&(z*=256);)W+=this[S+G]*z;return W},w.prototype.readUintBE=w.prototype.readUIntBE=function(S,M,C){S>>>=0,M>>>=0,C||Q(S,M,this.length);let W=this[S+--M],z=1;for(;M>0&&(z*=256);)W+=this[S+--M]*z;return W},w.prototype.readUint8=w.prototype.readUInt8=function(S,M){return S>>>=0,M||Q(S,1,this.length),this[S]},w.prototype.readUint16LE=w.prototype.readUInt16LE=function(S,M){return S>>>=0,M||Q(S,2,this.length),this[S]|this[S+1]<<8},w.prototype.readUint16BE=w.prototype.readUInt16BE=function(S,M){return S>>>=0,M||Q(S,2,this.length),this[S]<<8|this[S+1]},w.prototype.readUint32LE=w.prototype.readUInt32LE=function(S,M){return S>>>=0,M||Q(S,4,this.length),(this[S]|this[S+1]<<8|this[S+2]<<16)+16777216*this[S+3]},w.prototype.readUint32BE=w.prototype.readUInt32BE=function(S,M){return S>>>=0,M||Q(S,4,this.length),16777216*this[S]+(this[S+1]<<16|this[S+2]<<8|this[S+3])},w.prototype.readBigUInt64LE=be((function(S){fe(S>>>=0,"offset");const M=this[S],C=this[S+7];M!==void 0&&C!==void 0||me(S,this.length-8);const W=M+256*this[++S]+65536*this[++S]+this[++S]*2**24,z=this[++S]+256*this[++S]+65536*this[++S]+C*2**24;return BigInt(W)+(BigInt(z)<<BigInt(32))})),w.prototype.readBigUInt64BE=be((function(S){fe(S>>>=0,"offset");const M=this[S],C=this[S+7];M!==void 0&&C!==void 0||me(S,this.length-8);const W=M*2**24+65536*this[++S]+256*this[++S]+this[++S],z=this[++S]*2**24+65536*this[++S]+256*this[++S]+C;return(BigInt(W)<<BigInt(32))+BigInt(z)})),w.prototype.readIntLE=function(S,M,C){S>>>=0,M>>>=0,C||Q(S,M,this.length);let W=this[S],z=1,G=0;for(;++G<M&&(z*=256);)W+=this[S+G]*z;return z*=128,W>=z&&(W-=Math.pow(2,8*M)),W},w.prototype.readIntBE=function(S,M,C){S>>>=0,M>>>=0,C||Q(S,M,this.length);let W=M,z=1,G=this[S+--W];for(;W>0&&(z*=256);)G+=this[S+--W]*z;return z*=128,G>=z&&(G-=Math.pow(2,8*M)),G},w.prototype.readInt8=function(S,M){return S>>>=0,M||Q(S,1,this.length),128&this[S]?-1*(255-this[S]+1):this[S]},w.prototype.readInt16LE=function(S,M){S>>>=0,M||Q(S,2,this.length);const C=this[S]|this[S+1]<<8;return 32768&C?4294901760|C:C},w.prototype.readInt16BE=function(S,M){S>>>=0,M||Q(S,2,this.length);const C=this[S+1]|this[S]<<8;return 32768&C?4294901760|C:C},w.prototype.readInt32LE=function(S,M){return S>>>=0,M||Q(S,4,this.length),this[S]|this[S+1]<<8|this[S+2]<<16|this[S+3]<<24},w.prototype.readInt32BE=function(S,M){return S>>>=0,M||Q(S,4,this.length),this[S]<<24|this[S+1]<<16|this[S+2]<<8|this[S+3]},w.prototype.readBigInt64LE=be((function(S){fe(S>>>=0,"offset");const M=this[S],C=this[S+7];M!==void 0&&C!==void 0||me(S,this.length-8);const W=this[S+4]+256*this[S+5]+65536*this[S+6]+(C<<24);return(BigInt(W)<<BigInt(32))+BigInt(M+256*this[++S]+65536*this[++S]+this[++S]*2**24)})),w.prototype.readBigInt64BE=be((function(S){fe(S>>>=0,"offset");const M=this[S],C=this[S+7];M!==void 0&&C!==void 0||me(S,this.length-8);const W=(M<<24)+65536*this[++S]+256*this[++S]+this[++S];return(BigInt(W)<<BigInt(32))+BigInt(this[++S]*2**24+65536*this[++S]+256*this[++S]+C)})),w.prototype.readFloatLE=function(S,M){return S>>>=0,M||Q(S,4,this.length),p.read(this,S,!0,23,4)},w.prototype.readFloatBE=function(S,M){return S>>>=0,M||Q(S,4,this.length),p.read(this,S,!1,23,4)},w.prototype.readDoubleLE=function(S,M){return S>>>=0,M||Q(S,8,this.length),p.read(this,S,!0,52,8)},w.prototype.readDoubleBE=function(S,M){return S>>>=0,M||Q(S,8,this.length),p.read(this,S,!1,52,8)},w.prototype.writeUintLE=w.prototype.writeUIntLE=function(S,M,C,W){S=+S,M>>>=0,C>>>=0,!W&&X(this,S,M,C,Math.pow(2,8*C)-1,0);let z=1,G=0;for(this[M]=255&S;++G<C&&(z*=256);)this[M+G]=S/z&255;return M+C},w.prototype.writeUintBE=w.prototype.writeUIntBE=function(S,M,C,W){S=+S,M>>>=0,C>>>=0,!W&&X(this,S,M,C,Math.pow(2,8*C)-1,0);let z=C-1,G=1;for(this[M+z]=255&S;--z>=0&&(G*=256);)this[M+z]=S/G&255;return M+C},w.prototype.writeUint8=w.prototype.writeUInt8=function(S,M,C){return S=+S,M>>>=0,C||X(this,S,M,1,255,0),this[M]=255&S,M+1},w.prototype.writeUint16LE=w.prototype.writeUInt16LE=function(S,M,C){return S=+S,M>>>=0,C||X(this,S,M,2,65535,0),this[M]=255&S,this[M+1]=S>>>8,M+2},w.prototype.writeUint16BE=w.prototype.writeUInt16BE=function(S,M,C){return S=+S,M>>>=0,C||X(this,S,M,2,65535,0),this[M]=S>>>8,this[M+1]=255&S,M+2},w.prototype.writeUint32LE=w.prototype.writeUInt32LE=function(S,M,C){return S=+S,M>>>=0,C||X(this,S,M,4,4294967295,0),this[M+3]=S>>>24,this[M+2]=S>>>16,this[M+1]=S>>>8,this[M]=255&S,M+4},w.prototype.writeUint32BE=w.prototype.writeUInt32BE=function(S,M,C){return S=+S,M>>>=0,C||X(this,S,M,4,4294967295,0),this[M]=S>>>24,this[M+1]=S>>>16,this[M+2]=S>>>8,this[M+3]=255&S,M+4},w.prototype.writeBigUInt64LE=be((function(S,M=0){return J(this,S,M,BigInt(0),BigInt("0xffffffffffffffff"))})),w.prototype.writeBigUInt64BE=be((function(S,M=0){return oe(this,S,M,BigInt(0),BigInt("0xffffffffffffffff"))})),w.prototype.writeIntLE=function(S,M,C,W){if(S=+S,M>>>=0,!W){const re=Math.pow(2,8*C-1);X(this,S,M,C,re-1,-re)}let z=0,G=1,Y=0;for(this[M]=255&S;++z<C&&(G*=256);)S<0&&Y===0&&this[M+z-1]!==0&&(Y=1),this[M+z]=(S/G|0)-Y&255;return M+C},w.prototype.writeIntBE=function(S,M,C,W){if(S=+S,M>>>=0,!W){const re=Math.pow(2,8*C-1);X(this,S,M,C,re-1,-re)}let z=C-1,G=1,Y=0;for(this[M+z]=255&S;--z>=0&&(G*=256);)S<0&&Y===0&&this[M+z+1]!==0&&(Y=1),this[M+z]=(S/G|0)-Y&255;return M+C},w.prototype.writeInt8=function(S,M,C){return S=+S,M>>>=0,C||X(this,S,M,1,127,-128),S<0&&(S=255+S+1),this[M]=255&S,M+1},w.prototype.writeInt16LE=function(S,M,C){return S=+S,M>>>=0,C||X(this,S,M,2,32767,-32768),this[M]=255&S,this[M+1]=S>>>8,M+2},w.prototype.writeInt16BE=function(S,M,C){return S=+S,M>>>=0,C||X(this,S,M,2,32767,-32768),this[M]=S>>>8,this[M+1]=255&S,M+2},w.prototype.writeInt32LE=function(S,M,C){return S=+S,M>>>=0,C||X(this,S,M,4,2147483647,-2147483648),this[M]=255&S,this[M+1]=S>>>8,this[M+2]=S>>>16,this[M+3]=S>>>24,M+4},w.prototype.writeInt32BE=function(S,M,C){return S=+S,M>>>=0,C||X(this,S,M,4,2147483647,-2147483648),S<0&&(S=4294967295+S+1),this[M]=S>>>24,this[M+1]=S>>>16,this[M+2]=S>>>8,this[M+3]=255&S,M+4},w.prototype.writeBigInt64LE=be((function(S,M=0){return J(this,S,M,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),w.prototype.writeBigInt64BE=be((function(S,M=0){return oe(this,S,M,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),w.prototype.writeFloatLE=function(S,M,C){return ne(this,S,M,!0,C)},w.prototype.writeFloatBE=function(S,M,C){return ne(this,S,M,!1,C)},w.prototype.writeDoubleLE=function(S,M,C){return _e(this,S,M,!0,C)},w.prototype.writeDoubleBE=function(S,M,C){return _e(this,S,M,!1,C)},w.prototype.copy=function(S,M,C,W){if(!w.isBuffer(S))throw new TypeError("argument should be a Buffer");if(C||(C=0),W||W===0||(W=this.length),M>=S.length&&(M=S.length),M||(M=0),W>0&&W<C&&(W=C),W===C||S.length===0||this.length===0)return 0;if(M<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("sourceEnd out of bounds");W>this.length&&(W=this.length),S.length-M<W-C&&(W=S.length-M+C);const z=W-C;return this===S&&typeof _.prototype.copyWithin=="function"?this.copyWithin(M,C,W):_.prototype.set.call(S,this.subarray(C,W),M),z},w.prototype.fill=function(S,M,C,W){if(typeof S=="string"){if(typeof M=="string"?(W=M,M=0,C=this.length):typeof C=="string"&&(W=C,C=this.length),W!==void 0&&typeof W!="string")throw new TypeError("encoding must be a string");if(typeof W=="string"&&!w.isEncoding(W))throw new TypeError("Unknown encoding: "+W);if(S.length===1){const G=S.charCodeAt(0);(W==="utf8"&&G<128||W==="latin1")&&(S=G)}}else typeof S=="number"?S&=255:typeof S=="boolean"&&(S=Number(S));if(M<0||this.length<M||this.length<C)throw new RangeError("Out of range index");if(C<=M)return this;let z;if(M>>>=0,C=C===void 0?this.length:C>>>0,S||(S=0),typeof S=="number")for(z=M;z<C;++z)this[z]=S;else{const G=w.isBuffer(S)?S:w.from(S,W),Y=G.length;if(Y===0)throw new TypeError('The value "'+S+'" is invalid for argument "value"');for(z=0;z<C-M;++z)this[z+M]=G[z%Y]}return this};const te={};function ie(S,M,C){te[S]=class extends C{constructor(){super(),Object.defineProperty(this,"message",{value:M.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${S}]`,this.stack,delete this.name}get code(){return S}set code(W){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:W,writable:!0})}toString(){return`${this.name} [${S}]: ${this.message}`}}}function ye(S){let M="",C=S.length;const W=S[0]==="-"?1:0;for(;C>=W+4;C-=3)M=`_${S.slice(C-3,C)}${M}`;return`${S.slice(0,C)}${M}`}function ue(S,M,C,W,z,G){if(S>C||S<M){const Y=typeof M=="bigint"?"n":"";let re;throw re=M===0||M===BigInt(0)?`>= 0${Y} and < 2${Y} ** ${8*(G+1)}${Y}`:`>= -(2${Y} ** ${8*(G+1)-1}${Y}) and < 2 ** ${8*(G+1)-1}${Y}`,new te.ERR_OUT_OF_RANGE("value",re,S)}(function(Y,re,pe){fe(re,"offset"),Y[re]!==void 0&&Y[re+pe]!==void 0||me(re,Y.length-(pe+1))})(W,z,G)}function fe(S,M){if(typeof S!="number")throw new te.ERR_INVALID_ARG_TYPE(M,"number",S)}function me(S,M,C){throw Math.floor(S)!==S?(fe(S,C),new te.ERR_OUT_OF_RANGE("offset","an integer",S)):M<0?new te.ERR_BUFFER_OUT_OF_BOUNDS:new te.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${M}`,S)}ie("ERR_BUFFER_OUT_OF_BOUNDS",(function(S){return S?`${S} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),ie("ERR_INVALID_ARG_TYPE",(function(S,M){return`The "${S}" argument must be of type number. Received type ${typeof M}`}),TypeError),ie("ERR_OUT_OF_RANGE",(function(S,M,C){let W=`The value of "${S}" is out of range.`,z=C;return Number.isInteger(C)&&Math.abs(C)>2**32?z=ye(String(C)):typeof C=="bigint"&&(z=String(C),(C>BigInt(2)**BigInt(32)||C<-(BigInt(2)**BigInt(32)))&&(z=ye(z)),z+="n"),W+=` It must be ${M}. Received ${z}`,W}),RangeError);const le=/[^+/0-9A-Za-z-_]/g;function he(S,M){let C;M=M||1/0;const W=S.length;let z=null;const G=[];for(let Y=0;Y<W;++Y){if(C=S.charCodeAt(Y),C>55295&&C<57344){if(!z){if(C>56319){(M-=3)>-1&&G.push(239,191,189);continue}if(Y+1===W){(M-=3)>-1&&G.push(239,191,189);continue}z=C;continue}if(C<56320){(M-=3)>-1&&G.push(239,191,189),z=C;continue}C=65536+(z-55296<<10|C-56320)}else z&&(M-=3)>-1&&G.push(239,191,189);if(z=null,C<128){if((M-=1)<0)break;G.push(C)}else if(C<2048){if((M-=2)<0)break;G.push(C>>6|192,63&C|128)}else if(C<65536){if((M-=3)<0)break;G.push(C>>12|224,C>>6&63|128,63&C|128)}else{if(!(C<1114112))throw new Error("Invalid code point");if((M-=4)<0)break;G.push(C>>18|240,C>>12&63|128,C>>6&63|128,63&C|128)}}return G}function Ee(S){return d.toByteArray((function(M){if((M=(M=M.split("=")[0]).trim().replace(le,"")).length<2)return"";for(;M.length%4!=0;)M+="=";return M})(S))}function ge(S,M,C,W){let z;for(z=0;z<W&&!(z+C>=M.length||z>=S.length);++z)M[z+C]=S[z];return z}function de(S,M){return S instanceof M||S!=null&&S.constructor!=null&&S.constructor.name!=null&&S.constructor.name===M.name}function Oe(S){return S!=S}const ve=(function(){const S="0123456789abcdef",M=new Array(256);for(let C=0;C<16;++C){const W=16*C;for(let z=0;z<16;++z)M[W+z]=S[C]+S[z]}return M})();function be(S){return typeof BigInt>"u"?je:S}function je(){throw new Error("BigInt not supported")}})(r);const c=r.Buffer;e.Blob=r.Blob,e.BlobOptions=r.BlobOptions,e.Buffer=r.Buffer,e.File=r.File,e.FileOptions=r.FileOptions,e.INSPECT_MAX_BYTES=r.INSPECT_MAX_BYTES,e.SlowBuffer=r.SlowBuffer,e.TranscodeEncoding=r.TranscodeEncoding,e.atob=r.atob,e.btoa=r.btoa,e.constants=r.constants,e.default=c,e.isAscii=r.isAscii,e.isUtf8=r.isUtf8,e.kMaxLength=r.kMaxLength,e.kStringMaxLength=r.kStringMaxLength,e.resolveObjectURL=r.resolveObjectURL,e.transcode=r.transcode})(dist)),dist}function requireSafeBuffer$1(){return hasRequiredSafeBuffer$1||(hasRequiredSafeBuffer$1=1,(function(e,r){var o=requireDist(),i=o.Buffer;function n(f,t){for(var a in f)t[a]=f[a]}function h(f,t,a){return i(f,t,a)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=o:(n(o,r),r.Buffer=h),h.prototype=Object.create(i.prototype),n(i,h),h.from=function(f,t,a){if(typeof f=="number")throw new TypeError("Argument must not be a number");return i(f,t,a)},h.alloc=function(f,t,a){if(typeof f!="number")throw new TypeError("Argument must be a number");var s=i(f);return t!==void 0?typeof a=="string"?s.fill(t,a):s.fill(t):s.fill(0),s},h.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return i(f)},h.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(f)}})(safeBuffer$1,safeBuffer$1.exports)),safeBuffer$1.exports}function requireBrowser$b(){if(hasRequiredBrowser$b)return browser$b.exports;hasRequiredBrowser$b=1;var e=65536,r=4294967295,o=requireSafeBuffer$1().Buffer,i=commonjsGlobal.crypto||commonjsGlobal.msCrypto;return i&&i.getRandomValues?browser$b.exports=function(n,h){if(n>r)throw new RangeError("requested too many random bytes");var f=o.allocUnsafe(n);if(n>0)if(n>e)for(var t=0;t<n;t+=e)i.getRandomValues(f.slice(t,t+e));else i.getRandomValues(f);return typeof h=="function"?process$1.nextTick((function(){h(null,f)})):f}:browser$b.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
21
|
-
Use Chrome, Firefox or Internet Explorer 11`)},browser$b.exports}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(e,r){if(r){e.super_=r;var o=function(){};o.prototype=r.prototype,e.prototype=new o,e.prototype.constructor=e}}),inherits_browser.exports}var events={exports:{}},hasRequiredEvents,streamBrowser$1,hasRequiredStreamBrowser$1;function requireEvents(){if(hasRequiredEvents)return events.exports;hasRequiredEvents=1;var e,r=typeof Reflect=="object"?Reflect:null,o=r&&typeof r.apply=="function"?r.apply:function(y,m,_){return Function.prototype.apply.call(y,m,_)};e=r&&typeof r.ownKeys=="function"?r.ownKeys:Object.getOwnPropertySymbols?function(y){return Object.getOwnPropertyNames(y).concat(Object.getOwnPropertySymbols(y))}:function(y){return Object.getOwnPropertyNames(y)};var i=Number.isNaN||function(y){return y!=y};function n(){n.init.call(this)}events.exports=n,events.exports.once=function(y,m){return new Promise((function(_,A){function E(w){y.removeListener(m,q),A(w)}function q(){typeof y.removeListener=="function"&&y.removeListener("error",E),_([].slice.call(arguments))}p(y,m,q,{once:!0}),m!=="error"&&(function(w,x,P){typeof w.on=="function"&&p(w,"error",x,P)})(y,E,{once:!0})}))},n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var h=10;function f(y){if(typeof y!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof y)}function t(y){return y._maxListeners===void 0?n.defaultMaxListeners:y._maxListeners}function a(y,m,_,A){var E,q,w,x;if(f(_),(q=y._events)===void 0?(q=y._events=Object.create(null),y._eventsCount=0):(q.newListener!==void 0&&(y.emit("newListener",m,_.listener?_.listener:_),q=y._events),w=q[m]),w===void 0)w=q[m]=_,++y._eventsCount;else if(typeof w=="function"?w=q[m]=A?[_,w]:[w,_]:A?w.unshift(_):w.push(_),(E=t(y))>0&&w.length>E&&!w.warned){w.warned=!0;var P=new Error("Possible EventEmitter memory leak detected. "+w.length+" "+String(m)+" listeners added. Use emitter.setMaxListeners() to increase limit");P.name="MaxListenersExceededWarning",P.emitter=y,P.type=m,P.count=w.length,x=P,console&&console.warn&&console.warn(x)}return y}function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(y,m,_){var A={fired:!1,wrapFn:void 0,target:y,type:m,listener:_},E=s.bind(A);return E.listener=_,A.wrapFn=E,E}function c(y,m,_){var A=y._events;if(A===void 0)return[];var E=A[m];return E===void 0?[]:typeof E=="function"?_?[E.listener||E]:[E]:_?(function(q){for(var w=new Array(q.length),x=0;x<w.length;++x)w[x]=q[x].listener||q[x];return w})(E):d(E,E.length)}function l(y){var m=this._events;if(m!==void 0){var _=m[y];if(typeof _=="function")return 1;if(_!==void 0)return _.length}return 0}function d(y,m){for(var _=new Array(m),A=0;A<m;++A)_[A]=y[A];return _}function p(y,m,_,A){if(typeof y.on=="function")A.once?y.once(m,_):y.on(m,_);else{if(typeof y.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof y);y.addEventListener(m,(function E(q){A.once&&y.removeEventListener(m,E),_(q)}))}}return Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(y){if(typeof y!="number"||y<0||i(y))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+y+".");h=y}}),n.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},n.prototype.setMaxListeners=function(y){if(typeof y!="number"||y<0||i(y))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+y+".");return this._maxListeners=y,this},n.prototype.getMaxListeners=function(){return t(this)},n.prototype.emit=function(y){for(var m=[],_=1;_<arguments.length;_++)m.push(arguments[_]);var A=y==="error",E=this._events;if(E!==void 0)A=A&&E.error===void 0;else if(!A)return!1;if(A){var q;if(m.length>0&&(q=m[0]),q instanceof Error)throw q;var w=new Error("Unhandled error."+(q?" ("+q.message+")":""));throw w.context=q,w}var x=E[y];if(x===void 0)return!1;if(typeof x=="function")o(x,this,m);else{var P=x.length,O=d(x,P);for(_=0;_<P;++_)o(O[_],this,m)}return!0},n.prototype.addListener=function(y,m){return a(this,y,m,!1)},n.prototype.on=n.prototype.addListener,n.prototype.prependListener=function(y,m){return a(this,y,m,!0)},n.prototype.once=function(y,m){return f(m),this.on(y,u(this,y,m)),this},n.prototype.prependOnceListener=function(y,m){return f(m),this.prependListener(y,u(this,y,m)),this},n.prototype.removeListener=function(y,m){var _,A,E,q,w;if(f(m),(A=this._events)===void 0)return this;if((_=A[y])===void 0)return this;if(_===m||_.listener===m)--this._eventsCount==0?this._events=Object.create(null):(delete A[y],A.removeListener&&this.emit("removeListener",y,_.listener||m));else if(typeof _!="function"){for(E=-1,q=_.length-1;q>=0;q--)if(_[q]===m||_[q].listener===m){w=_[q].listener,E=q;break}if(E<0)return this;E===0?_.shift():(function(x,P){for(;P+1<x.length;P++)x[P]=x[P+1];x.pop()})(_,E),_.length===1&&(A[y]=_[0]),A.removeListener!==void 0&&this.emit("removeListener",y,w||m)}return this},n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=function(y){var m,_,A;if((_=this._events)===void 0)return this;if(_.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):_[y]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete _[y]),this;if(arguments.length===0){var E,q=Object.keys(_);for(A=0;A<q.length;++A)(E=q[A])!=="removeListener"&&this.removeAllListeners(E);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(m=_[y])=="function")this.removeListener(y,m);else if(m!==void 0)for(A=m.length-1;A>=0;A--)this.removeListener(y,m[A]);return this},n.prototype.listeners=function(y){return c(this,y,!0)},n.prototype.rawListeners=function(y){return c(this,y,!1)},n.listenerCount=function(y,m){return typeof y.listenerCount=="function"?y.listenerCount(m):l.call(y,m)},n.prototype.listenerCount=l,n.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 util$1={},types={},shams$2,hasRequiredShams$2,shams$1,hasRequiredShams$1,esObjectAtoms,hasRequiredEsObjectAtoms,esErrors,hasRequiredEsErrors,_eval,hasRequired_eval,range,hasRequiredRange,ref,hasRequiredRef,syntax,hasRequiredSyntax,type,hasRequiredType,uri,hasRequiredUri,abs,hasRequiredAbs,floor,hasRequiredFloor,max,hasRequiredMax,min,hasRequiredMin,pow,hasRequiredPow,round,hasRequiredRound,_isNaN,hasRequired_isNaN,sign$1,hasRequiredSign$1,gOPD,hasRequiredGOPD,gopd,hasRequiredGopd,esDefineProperty,hasRequiredEsDefineProperty,hasSymbols,hasRequiredHasSymbols,Reflect_getPrototypeOf,hasRequiredReflect_getPrototypeOf,Object_getPrototypeOf,hasRequiredObject_getPrototypeOf,implementation,hasRequiredImplementation,functionBind,hasRequiredFunctionBind,functionCall,hasRequiredFunctionCall,functionApply,hasRequiredFunctionApply,reflectApply,hasRequiredReflectApply,actualApply,hasRequiredActualApply,callBindApplyHelpers,hasRequiredCallBindApplyHelpers,get,hasRequiredGet,getProto,hasRequiredGetProto,hasown,hasRequiredHasown,getIntrinsic,hasRequiredGetIntrinsic;function requireShams$2(){return hasRequiredShams$2?shams$2:(hasRequiredShams$2=1,shams$2=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;for(var i in e[r]=42,e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var n=Object.getOwnPropertySymbols(e);if(n.length!==1||n[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(e,r);if(h.value!==42||h.enumerable!==!0)return!1}return!0})}function requireShams$1(){if(hasRequiredShams$1)return shams$1;hasRequiredShams$1=1;var e=requireShams$2();return shams$1=function(){return e()&&!!Symbol.toStringTag}}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 requireType(){return hasRequiredType?type:(hasRequiredType=1,type=TypeError)}function requireUri(){return hasRequiredUri?uri:(hasRequiredUri=1,uri=URIError)}function requireAbs(){return hasRequiredAbs?abs:(hasRequiredAbs=1,abs=Math.abs)}function requireFloor(){return hasRequiredFloor?floor:(hasRequiredFloor=1,floor=Math.floor)}function requireMax(){return hasRequiredMax?max:(hasRequiredMax=1,max=Math.max)}function requireMin(){return hasRequiredMin?min:(hasRequiredMin=1,min=Math.min)}function requirePow(){return hasRequiredPow?pow:(hasRequiredPow=1,pow=Math.pow)}function requireRound(){return hasRequiredRound?round:(hasRequiredRound=1,round=Math.round)}function require_isNaN(){return hasRequired_isNaN?_isNaN:(hasRequired_isNaN=1,_isNaN=Number.isNaN||function(e){return e!=e})}function requireSign$1(){if(hasRequiredSign$1)return sign$1;hasRequiredSign$1=1;var e=require_isNaN();return sign$1=function(r){return e(r)||r===0?r:r<0?-1:1},sign$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{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{e=!1}return esDefineProperty=e}function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols;hasRequiredHasSymbols=1;var e=typeof Symbol<"u"&&Symbol,r=requireShams$2();return hasSymbols=function(){return typeof e=="function"&&typeof Symbol=="function"&&typeof e("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&r()}}function requireReflect_getPrototypeOf(){return hasRequiredReflect_getPrototypeOf?Reflect_getPrototypeOf:(hasRequiredReflect_getPrototypeOf=1,Reflect_getPrototypeOf=typeof Reflect<"u"&&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,r=Math.max,o=function(i,n){for(var h=[],f=0;f<i.length;f+=1)h[f]=i[f];for(var t=0;t<n.length;t+=1)h[t+i.length]=n[t];return h};return implementation=function(i){var n=this;if(typeof n!="function"||e.apply(n)!=="[object Function]")throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var h,f=(function(c,l){for(var d=[],p=l,y=0;p<c.length;p+=1,y+=1)d[y]=c[p];return d})(arguments,1),t=r(0,n.length-f.length),a=[],s=0;s<t;s++)a[s]="$"+s;if(h=Function("binder","return function ("+(function(c,l){for(var d="",p=0;p<c.length;p+=1)d+=c[p],p+1<c.length&&(d+=l);return d})(a,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof h){var c=n.apply(this,o(f,arguments));return Object(c)===c?c:this}return n.apply(i,o(f,arguments))})),n.prototype){var u=function(){};u.prototype=n.prototype,h.prototype=new u,u.prototype=null}return h},implementation}function requireFunctionBind(){if(hasRequiredFunctionBind)return functionBind;hasRequiredFunctionBind=1;var e=requireImplementation();return functionBind=Function.prototype.bind||e}function requireFunctionCall(){return hasRequiredFunctionCall?functionCall:(hasRequiredFunctionCall=1,functionCall=Function.prototype.call)}function requireFunctionApply(){return hasRequiredFunctionApply?functionApply:(hasRequiredFunctionApply=1,functionApply=Function.prototype.apply)}function requireReflectApply(){return hasRequiredReflectApply?reflectApply:(hasRequiredReflectApply=1,reflectApply=typeof Reflect<"u"&&Reflect&&Reflect.apply)}function requireActualApply(){if(hasRequiredActualApply)return actualApply;hasRequiredActualApply=1;var e=requireFunctionBind(),r=requireFunctionApply(),o=requireFunctionCall(),i=requireReflectApply();return actualApply=i||e.call(o,r)}function requireCallBindApplyHelpers(){if(hasRequiredCallBindApplyHelpers)return callBindApplyHelpers;hasRequiredCallBindApplyHelpers=1;var e=requireFunctionBind(),r=requireType(),o=requireFunctionCall(),i=requireActualApply();return callBindApplyHelpers=function(n){if(n.length<1||typeof n[0]!="function")throw new r("a function is required");return i(e,o,n)}}function requireGet(){if(hasRequiredGet)return get;hasRequiredGet=1;var e,r=requireCallBindApplyHelpers(),o=requireGopd();try{e=[].__proto__===Array.prototype}catch(f){if(!f||typeof f!="object"||!("code"in f)||f.code!=="ERR_PROTO_ACCESS")throw f}var i=!!e&&o&&o(Object.prototype,"__proto__"),n=Object,h=n.getPrototypeOf;return get=i&&typeof i.get=="function"?r([i.get]):typeof h=="function"&&function(f){return h(f==null?f:n(f))}}function requireGetProto(){if(hasRequiredGetProto)return getProto;hasRequiredGetProto=1;var e=requireReflect_getPrototypeOf(),r=requireObject_getPrototypeOf(),o=requireGet();return getProto=e?function(i){return e(i)}:r?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return r(i)}:o?function(i){return o(i)}:null}function requireHasown(){if(hasRequiredHasown)return hasown;hasRequiredHasown=1;var e=Function.prototype.call,r=Object.prototype.hasOwnProperty,o=requireFunctionBind();return hasown=o.call(e,r)}function requireGetIntrinsic(){if(hasRequiredGetIntrinsic)return getIntrinsic;var e;hasRequiredGetIntrinsic=1;var r=requireEsObjectAtoms(),o=requireEsErrors(),i=require_eval(),n=requireRange(),h=requireRef(),f=requireSyntax(),t=requireType(),a=requireUri(),s=requireAbs(),u=requireFloor(),c=requireMax(),l=requireMin(),d=requirePow(),p=requireRound(),y=requireSign$1(),m=Function,_=function(V){try{return m('"use strict"; return ('+V+").constructor;")()}catch{}},A=requireGopd(),E=requireEsDefineProperty(),q=function(){throw new t},w=A?(function(){try{return q}catch{try{return A(arguments,"callee").get}catch{return q}}})():q,x=requireHasSymbols()(),P=requireGetProto(),O=requireObject_getPrototypeOf(),N=requireReflect_getPrototypeOf(),v=requireFunctionApply(),B=requireFunctionCall(),$={},R=typeof Uint8Array<"u"&&P?P(Uint8Array):e,g={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":x&&P?P([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":$,"%AsyncGenerator%":$,"%AsyncGeneratorFunction%":$,"%AsyncIteratorPrototype%":$,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":$,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":x&&P?P(P([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map<"u"&&x&&P?P(new Map()[Symbol.iterator]()):e,"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":A,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":n,"%ReferenceError%":h,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set<"u"&&x&&P?P(new Set()[Symbol.iterator]()):e,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":x&&P?P(""[Symbol.iterator]()):e,"%Symbol%":x?Symbol:e,"%SyntaxError%":f,"%ThrowTypeError%":w,"%TypedArray%":R,"%TypeError%":t,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":a,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":B,"%Function.prototype.apply%":v,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":O,"%Math.abs%":s,"%Math.floor%":u,"%Math.max%":c,"%Math.min%":l,"%Math.pow%":d,"%Math.round%":p,"%Math.sign%":y,"%Reflect.getPrototypeOf%":N};if(P)try{null.error}catch(V){var b=P(P(V));g["%Error.prototype%"]=b}var k=function V(Q){var X;if(Q==="%AsyncFunction%")X=_("async function () {}");else if(Q==="%GeneratorFunction%")X=_("function* () {}");else if(Q==="%AsyncGeneratorFunction%")X=_("async function* () {}");else if(Q==="%AsyncGenerator%"){var J=V("%AsyncGeneratorFunction%");J&&(X=J.prototype)}else if(Q==="%AsyncIteratorPrototype%"){var oe=V("%AsyncGenerator%");oe&&P&&(X=P(oe.prototype))}return g[Q]=X,X},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},F=requireFunctionBind(),T=requireHasown(),U=F.call(B,Array.prototype.concat),D=F.call(v,Array.prototype.splice),I=F.call(B,String.prototype.replace),j=F.call(B,String.prototype.slice),H=F.call(B,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ee=/\\(\\)?/g,Z=function(V,Q){var X,J=V;if(T(L,J)&&(J="%"+(X=L[J])[0]+"%"),T(g,J)){var oe=g[J];if(oe===$&&(oe=k(J)),oe===void 0&&!Q)throw new t("intrinsic "+V+" exists, but is not available. Please file an issue!");return{alias:X,name:J,value:oe}}throw new f("intrinsic "+V+" does not exist!")};return getIntrinsic=function(V,Q){if(typeof V!="string"||V.length===0)throw new t("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Q!="boolean")throw new t('"allowMissing" argument must be a boolean');if(H(/^%?[^%]*%?$/,V)===null)throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var X=(function(he){var Ee=j(he,0,1),ge=j(he,-1);if(Ee==="%"&&ge!=="%")throw new f("invalid intrinsic syntax, expected closing `%`");if(ge==="%"&&Ee!=="%")throw new f("invalid intrinsic syntax, expected opening `%`");var de=[];return I(he,K,(function(Oe,ve,be,je){de[de.length]=be?I(je,ee,"$1"):ve||Oe})),de})(V),J=X.length>0?X[0]:"",oe=Z("%"+J+"%",Q),se=oe.name,ne=oe.value,_e=!1,te=oe.alias;te&&(J=te[0],D(X,U([0,1],te)));for(var ie=1,ye=!0;ie<X.length;ie+=1){var ue=X[ie],fe=j(ue,0,1),me=j(ue,-1);if((fe==='"'||fe==="'"||fe==="`"||me==='"'||me==="'"||me==="`")&&fe!==me)throw new f("property names with quotes must have matching quotes");if(ue!=="constructor"&&ye||(_e=!0),T(g,se="%"+(J+="."+ue)+"%"))ne=g[se];else if(ne!=null){if(!(ue in ne)){if(!Q)throw new t("base intrinsic for "+V+" exists, but the property is not available.");return}if(A&&ie+1>=X.length){var le=A(ne,ue);ne=(ye=!!le)&&"get"in le&&!("originalValue"in le.get)?le.get:ne[ue]}else ye=T(ne,ue),ne=ne[ue];ye&&!_e&&(g[se]=ne)}}return ne},getIntrinsic}var callBind$1={exports:{}},hasRequiredCallBind$1,callBound$1,hasRequiredCallBound$1,isArguments,hasRequiredIsArguments,isGeneratorFunction,hasRequiredIsGeneratorFunction,isCallable,hasRequiredIsCallable,forEach_1,hasRequiredForEach$1,availableTypedArrays$1,hasRequiredAvailableTypedArrays$1,isTypedArray$1,hasRequiredIsTypedArray$1,whichTypedArray$1,hasRequiredWhichTypedArray$1,hasRequiredTypes,isBufferBrowser,hasRequiredIsBufferBrowser,hasRequiredUtil$1,buffer_list,hasRequiredBuffer_list,destroy_1$1,hasRequiredDestroy$1;function requireCallBind$1(){return hasRequiredCallBind$1||(hasRequiredCallBind$1=1,(function(e){var r=requireFunctionBind(),o=requireGetIntrinsic(),i=o("%Function.prototype.apply%"),n=o("%Function.prototype.call%"),h=o("%Reflect.apply%",!0)||r.call(n,i),f=o("%Object.getOwnPropertyDescriptor%",!0),t=o("%Object.defineProperty%",!0),a=o("%Math.max%");if(t)try{t({},"a",{value:1})}catch{t=null}e.exports=function(u){var c=h(r,n,arguments);return f&&t&&f(c,"length").configurable&&t(c,"length",{value:1+a(0,u.length-(arguments.length-1))}),c};var s=function(){return h(r,i,arguments)};t?t(e.exports,"apply",{value:s}):e.exports.apply=s})(callBind$1)),callBind$1.exports}function requireCallBound$1(){if(hasRequiredCallBound$1)return callBound$1;hasRequiredCallBound$1=1;var e=requireGetIntrinsic(),r=requireCallBind$1(),o=r(e("String.prototype.indexOf"));return callBound$1=function(i,n){var h=e(i,!!n);return typeof h=="function"&&o(i,".prototype.")>-1?r(h):h}}function requireIsArguments(){if(hasRequiredIsArguments)return isArguments;hasRequiredIsArguments=1;var e=requireShams$1()(),r=requireCallBound$1()("Object.prototype.toString"),o=function(h){return!(e&&h&&typeof h=="object"&&Symbol.toStringTag in h)&&r(h)==="[object Arguments]"},i=function(h){return!!o(h)||h!==null&&typeof h=="object"&&typeof h.length=="number"&&h.length>=0&&r(h)!=="[object Array]"&&r(h.callee)==="[object Function]"},n=(function(){return o(arguments)})();return o.isLegacyArguments=i,isArguments=n?o:i}function requireIsGeneratorFunction(){if(hasRequiredIsGeneratorFunction)return isGeneratorFunction;hasRequiredIsGeneratorFunction=1;var e,r=Object.prototype.toString,o=Function.prototype.toString,i=/^\s*(?:function)?\*/,n=requireShams$1()(),h=Object.getPrototypeOf;return isGeneratorFunction=function(f){if(typeof f!="function")return!1;if(i.test(o.call(f)))return!0;if(!n)return r.call(f)==="[object GeneratorFunction]";if(!h)return!1;if(e===void 0){var t=(function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}})();e=!!t&&h(t)}return h(f)===e}}function requireIsCallable(){if(hasRequiredIsCallable)return isCallable;hasRequiredIsCallable=1;var e,r,o=Function.prototype.toString,i=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof i=="function"&&typeof Object.defineProperty=="function")try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,e)}catch(l){l!==r&&(i=null)}else i=null;var n=/^\s*class\b/,h=function(l){try{var d=o.call(l);return n.test(d)}catch{return!1}},f=function(l){try{return!h(l)&&(o.call(l),!0)}catch{return!1}},t=Object.prototype.toString,a=typeof Symbol=="function"&&!!Symbol.toStringTag,s=!(0 in[,]),u=function(){return!1};if(typeof document=="object"){var c=document.all;t.call(c)===t.call(document.all)&&(u=function(l){if((s||!l)&&(l===void 0||typeof l=="object"))try{var d=t.call(l);return(d==="[object HTMLAllCollection]"||d==="[object HTML document.all class]"||d==="[object HTMLCollection]"||d==="[object Object]")&&l("")==null}catch{}return!1})}return isCallable=i?function(l){if(u(l))return!0;if(!l||typeof l!="function"&&typeof l!="object")return!1;try{i(l,null,e)}catch(d){if(d!==r)return!1}return!h(l)&&f(l)}:function(l){if(u(l))return!0;if(!l||typeof l!="function"&&typeof l!="object")return!1;if(a)return f(l);if(h(l))return!1;var d=t.call(l);return!(d!=="[object Function]"&&d!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(d))&&f(l)}}function requireForEach$1(){if(hasRequiredForEach$1)return forEach_1;hasRequiredForEach$1=1;var e=requireIsCallable(),r=Object.prototype.toString,o=Object.prototype.hasOwnProperty;return forEach_1=function(i,n,h){if(!e(n))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=h),r.call(i)==="[object Array]"?(function(t,a,s){for(var u=0,c=t.length;u<c;u++)o.call(t,u)&&(s==null?a(t[u],u,t):a.call(s,t[u],u,t))})(i,n,f):typeof i=="string"?(function(t,a,s){for(var u=0,c=t.length;u<c;u++)s==null?a(t.charAt(u),u,t):a.call(s,t.charAt(u),u,t)})(i,n,f):(function(t,a,s){for(var u in t)o.call(t,u)&&(s==null?a(t[u],u,t):a.call(s,t[u],u,t))})(i,n,f)},forEach_1}function requireAvailableTypedArrays$1(){if(hasRequiredAvailableTypedArrays$1)return availableTypedArrays$1;hasRequiredAvailableTypedArrays$1=1;var e=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],r=typeof globalThis>"u"?commonjsGlobal:globalThis;return availableTypedArrays$1=function(){for(var o=[],i=0;i<e.length;i++)typeof r[e[i]]=="function"&&(o[o.length]=e[i]);return o}}function requireIsTypedArray$1(){if(hasRequiredIsTypedArray$1)return isTypedArray$1;hasRequiredIsTypedArray$1=1;var e=requireForEach$1(),r=requireAvailableTypedArrays$1(),o=requireCallBound$1(),i=o("Object.prototype.toString"),n=requireShams$1()(),h=requireGopd(),f=typeof globalThis>"u"?commonjsGlobal:globalThis,t=r(),a=o("Array.prototype.indexOf",!0)||function(l,d){for(var p=0;p<l.length;p+=1)if(l[p]===d)return p;return-1},s=o("String.prototype.slice"),u={},c=Object.getPrototypeOf;return n&&h&&c&&e(t,(function(l){var d=new f[l];if(Symbol.toStringTag in d){var p=c(d),y=h(p,Symbol.toStringTag);if(!y){var m=c(p);y=h(m,Symbol.toStringTag)}u[l]=y.get}})),isTypedArray$1=function(l){if(!l||typeof l!="object")return!1;if(!n||!(Symbol.toStringTag in l)){var d=s(i(l),8,-1);return a(t,d)>-1}return!!h&&(function(p){var y=!1;return e(u,(function(m,_){if(!y)try{y=m.call(p)===_}catch{}})),y})(l)}}function requireWhichTypedArray$1(){if(hasRequiredWhichTypedArray$1)return whichTypedArray$1;hasRequiredWhichTypedArray$1=1;var e=requireForEach$1(),r=requireAvailableTypedArrays$1(),o=requireCallBound$1(),i=requireGopd(),n=o("Object.prototype.toString"),h=requireShams$1()(),f=typeof globalThis>"u"?commonjsGlobal:globalThis,t=r(),a=o("String.prototype.slice"),s={},u=Object.getPrototypeOf;h&&i&&u&&e(t,(function(l){if(typeof f[l]=="function"){var d=new f[l];if(Symbol.toStringTag in d){var p=u(d),y=i(p,Symbol.toStringTag);if(!y){var m=u(p);y=i(m,Symbol.toStringTag)}s[l]=y.get}}}));var c=requireIsTypedArray$1();return whichTypedArray$1=function(l){return!!c(l)&&(h&&Symbol.toStringTag in l?(function(d){var p=!1;return e(s,(function(y,m){if(!p)try{var _=y.call(d);_===m&&(p=_)}catch{}})),p})(l):a(n(l),8,-1))}}function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,(function(e){var r=requireIsArguments(),o=requireIsGeneratorFunction(),i=requireWhichTypedArray$1(),n=requireIsTypedArray$1();function h(b){return b.call.bind(b)}var f=typeof BigInt<"u",t=typeof Symbol<"u",a=h(Object.prototype.toString),s=h(Number.prototype.valueOf),u=h(String.prototype.valueOf),c=h(Boolean.prototype.valueOf);if(f)var l=h(BigInt.prototype.valueOf);if(t)var d=h(Symbol.prototype.valueOf);function p(b,k){if(typeof b!="object")return!1;try{return k(b),!0}catch{return!1}}function y(b){return a(b)==="[object Map]"}function m(b){return a(b)==="[object Set]"}function _(b){return a(b)==="[object WeakMap]"}function A(b){return a(b)==="[object WeakSet]"}function E(b){return a(b)==="[object ArrayBuffer]"}function q(b){return typeof ArrayBuffer<"u"&&(E.working?E(b):b instanceof ArrayBuffer)}function w(b){return a(b)==="[object DataView]"}function x(b){return typeof DataView<"u"&&(w.working?w(b):b instanceof DataView)}e.isArgumentsObject=r,e.isGeneratorFunction=o,e.isTypedArray=n,e.isPromise=function(b){return typeof Promise<"u"&&b instanceof Promise||b!==null&&typeof b=="object"&&typeof b.then=="function"&&typeof b.catch=="function"},e.isArrayBufferView=function(b){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(b):n(b)||x(b)},e.isUint8Array=function(b){return i(b)==="Uint8Array"},e.isUint8ClampedArray=function(b){return i(b)==="Uint8ClampedArray"},e.isUint16Array=function(b){return i(b)==="Uint16Array"},e.isUint32Array=function(b){return i(b)==="Uint32Array"},e.isInt8Array=function(b){return i(b)==="Int8Array"},e.isInt16Array=function(b){return i(b)==="Int16Array"},e.isInt32Array=function(b){return i(b)==="Int32Array"},e.isFloat32Array=function(b){return i(b)==="Float32Array"},e.isFloat64Array=function(b){return i(b)==="Float64Array"},e.isBigInt64Array=function(b){return i(b)==="BigInt64Array"},e.isBigUint64Array=function(b){return i(b)==="BigUint64Array"},y.working=typeof Map<"u"&&y(new Map),e.isMap=function(b){return typeof Map<"u"&&(y.working?y(b):b instanceof Map)},m.working=typeof Set<"u"&&m(new Set),e.isSet=function(b){return typeof Set<"u"&&(m.working?m(b):b instanceof Set)},_.working=typeof WeakMap<"u"&&_(new WeakMap),e.isWeakMap=function(b){return typeof WeakMap<"u"&&(_.working?_(b):b instanceof WeakMap)},A.working=typeof WeakSet<"u"&&A(new WeakSet),e.isWeakSet=function(b){return A(b)},E.working=typeof ArrayBuffer<"u"&&E(new ArrayBuffer),e.isArrayBuffer=q,w.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&w(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=x;var P=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function O(b){return a(b)==="[object SharedArrayBuffer]"}function N(b){return P!==void 0&&(O.working===void 0&&(O.working=O(new P)),O.working?O(b):b instanceof P)}function v(b){return p(b,s)}function B(b){return p(b,u)}function $(b){return p(b,c)}function R(b){return f&&p(b,l)}function g(b){return t&&p(b,d)}e.isSharedArrayBuffer=N,e.isAsyncFunction=function(b){return a(b)==="[object AsyncFunction]"},e.isMapIterator=function(b){return a(b)==="[object Map Iterator]"},e.isSetIterator=function(b){return a(b)==="[object Set Iterator]"},e.isGeneratorObject=function(b){return a(b)==="[object Generator]"},e.isWebAssemblyCompiledModule=function(b){return a(b)==="[object WebAssembly.Module]"},e.isNumberObject=v,e.isStringObject=B,e.isBooleanObject=$,e.isBigIntObject=R,e.isSymbolObject=g,e.isBoxedPrimitive=function(b){return v(b)||B(b)||$(b)||R(b)||g(b)},e.isAnyArrayBuffer=function(b){return typeof Uint8Array<"u"&&(q(b)||N(b))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(b){Object.defineProperty(e,b,{enumerable:!1,value:function(){throw new Error(b+" is not supported in userland")}})}))})(types)),types}function requireIsBufferBrowser(){return hasRequiredIsBufferBrowser?isBufferBrowser:(hasRequiredIsBufferBrowser=1,isBufferBrowser=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"})}function requireUtil$1(){return hasRequiredUtil$1||(hasRequiredUtil$1=1,(function(e){var r={},o=Object.getOwnPropertyDescriptors||function(g){for(var b=Object.keys(g),k={},L=0;L<b.length;L++)k[b[L]]=Object.getOwnPropertyDescriptor(g,b[L]);return k},i=/%[sdj%]/g;e.format=function(g){if(!_(g)){for(var b=[],k=0;k<arguments.length;k++)b.push(t(arguments[k]));return b.join(" ")}k=1;for(var L=arguments,F=L.length,T=String(g).replace(i,(function(D){if(D==="%%")return"%";if(k>=F)return D;switch(D){case"%s":return String(L[k++]);case"%d":return Number(L[k++]);case"%j":try{return JSON.stringify(L[k++])}catch{return"[Circular]"}default:return D}})),U=L[k];k<F;U=L[++k])y(U)||!q(U)?T+=" "+U:T+=" "+t(U);return T},e.deprecate=function(g,b){if(process$1!==void 0&&process$1.noDeprecation===!0)return g;if(process$1===void 0)return function(){return e.deprecate(g,b).apply(this,arguments)};var k=!1;return function(){if(!k){if(process$1.throwDeprecation)throw new Error(b);process$1.traceDeprecation?console.trace(b):console.error(b),k=!0}return g.apply(this,arguments)}};var n={},h=/^$/;if(r.NODE_DEBUG){var f=r.NODE_DEBUG;f=f.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),h=new RegExp("^"+f+"$","i")}function t(g,b){var k={seen:[],stylize:s};return arguments.length>=3&&(k.depth=arguments[2]),arguments.length>=4&&(k.colors=arguments[3]),p(b)?k.showHidden=b:b&&e._extend(k,b),A(k.showHidden)&&(k.showHidden=!1),A(k.depth)&&(k.depth=2),A(k.colors)&&(k.colors=!1),A(k.customInspect)&&(k.customInspect=!0),k.colors&&(k.stylize=a),u(k,g,k.depth)}function a(g,b){var k=t.styles[b];return k?"\x1B["+t.colors[k][0]+"m"+g+"\x1B["+t.colors[k][1]+"m":g}function s(g,b){return g}function u(g,b,k){if(g.customInspect&&b&&P(b.inspect)&&b.inspect!==e.inspect&&(!b.constructor||b.constructor.prototype!==b)){var L=b.inspect(k,g);return _(L)||(L=u(g,L,k)),L}var F=(function(ee,Z){if(A(Z))return ee.stylize("undefined","undefined");if(_(Z)){var V="'"+JSON.stringify(Z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ee.stylize(V,"string")}if(m(Z))return ee.stylize(""+Z,"number");if(p(Z))return ee.stylize(""+Z,"boolean");if(y(Z))return ee.stylize("null","null")})(g,b);if(F)return F;var T=Object.keys(b),U=(function(ee){var Z={};return ee.forEach((function(V,Q){Z[V]=!0})),Z})(T);if(g.showHidden&&(T=Object.getOwnPropertyNames(b)),x(b)&&(T.indexOf("message")>=0||T.indexOf("description")>=0))return c(b);if(T.length===0){if(P(b)){var D=b.name?": "+b.name:"";return g.stylize("[Function"+D+"]","special")}if(E(b))return g.stylize(RegExp.prototype.toString.call(b),"regexp");if(w(b))return g.stylize(Date.prototype.toString.call(b),"date");if(x(b))return c(b)}var I,j="",H=!1,K=["{","}"];return d(b)&&(H=!0,K=["[","]"]),P(b)&&(j=" [Function"+(b.name?": "+b.name:"")+"]"),E(b)&&(j=" "+RegExp.prototype.toString.call(b)),w(b)&&(j=" "+Date.prototype.toUTCString.call(b)),x(b)&&(j=" "+c(b)),T.length!==0||H&&b.length!=0?k<0?E(b)?g.stylize(RegExp.prototype.toString.call(b),"regexp"):g.stylize("[Object]","special"):(g.seen.push(b),I=H?(function(ee,Z,V,Q,X){for(var J=[],oe=0,se=Z.length;oe<se;++oe)B(Z,String(oe))?J.push(l(ee,Z,V,Q,String(oe),!0)):J.push("");return X.forEach((function(ne){ne.match(/^\d+$/)||J.push(l(ee,Z,V,Q,ne,!0))})),J})(g,b,k,U,T):T.map((function(ee){return l(g,b,k,U,ee,H)})),g.seen.pop(),(function(ee,Z,V){var Q=ee.reduce((function(X,J){return J.indexOf(`
|
|
22
|
-
`),X+J.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return Q>60?V[0]+(Z===""?"":Z+`
|
|
23
|
-
`)+" "+ee.join(`,
|
|
24
|
-
`)+" "+V[1]:V[0]+Z+" "+ee.join(", ")+" "+V[1]})(I,j,K)):K[0]+j+K[1]}function c(g){return"["+Error.prototype.toString.call(g)+"]"}function l(g,b,k,L,F,T){var U,D,I;if((I=Object.getOwnPropertyDescriptor(b,F)||{value:b[F]}).get?D=I.set?g.stylize("[Getter/Setter]","special"):g.stylize("[Getter]","special"):I.set&&(D=g.stylize("[Setter]","special")),B(L,F)||(U="["+F+"]"),D||(g.seen.indexOf(I.value)<0?(D=y(k)?u(g,I.value,null):u(g,I.value,k-1)).indexOf(`
|
|
25
|
-
`)>-1&&(D=T?D.split(`
|
|
26
|
-
`).map((function(j){return" "+j})).join(`
|
|
27
|
-
`).slice(2):`
|
|
28
|
-
`+D.split(`
|
|
29
|
-
`).map((function(j){return" "+j})).join(`
|
|
30
|
-
`)):D=g.stylize("[Circular]","special")),A(U)){if(T&&F.match(/^\d+$/))return D;(U=JSON.stringify(""+F)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(U=U.slice(1,-1),U=g.stylize(U,"name")):(U=U.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),U=g.stylize(U,"string"))}return U+": "+D}function d(g){return Array.isArray(g)}function p(g){return typeof g=="boolean"}function y(g){return g===null}function m(g){return typeof g=="number"}function _(g){return typeof g=="string"}function A(g){return g===void 0}function E(g){return q(g)&&O(g)==="[object RegExp]"}function q(g){return typeof g=="object"&&g!==null}function w(g){return q(g)&&O(g)==="[object Date]"}function x(g){return q(g)&&(O(g)==="[object Error]"||g instanceof Error)}function P(g){return typeof g=="function"}function O(g){return Object.prototype.toString.call(g)}function N(g){return g<10?"0"+g.toString(10):g.toString(10)}e.debuglog=function(g){if(g=g.toUpperCase(),!n[g])if(h.test(g)){var b=process$1.pid;n[g]=function(){var k=e.format.apply(e,arguments);console.error("%s %d: %s",g,b,k)}}else n[g]=function(){};return n[g]},e.inspect=t,t.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]},t.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=requireTypes(),e.isArray=d,e.isBoolean=p,e.isNull=y,e.isNullOrUndefined=function(g){return g==null},e.isNumber=m,e.isString=_,e.isSymbol=function(g){return typeof g=="symbol"},e.isUndefined=A,e.isRegExp=E,e.types.isRegExp=E,e.isObject=q,e.isDate=w,e.types.isDate=w,e.isError=x,e.types.isNativeError=x,e.isFunction=P,e.isPrimitive=function(g){return g===null||typeof g=="boolean"||typeof g=="number"||typeof g=="string"||typeof g=="symbol"||g===void 0},e.isBuffer=requireIsBufferBrowser();var v=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function B(g,b){return Object.prototype.hasOwnProperty.call(g,b)}e.log=function(){var g,b;console.log("%s - %s",(b=[N((g=new Date).getHours()),N(g.getMinutes()),N(g.getSeconds())].join(":"),[g.getDate(),v[g.getMonth()],b].join(" ")),e.format.apply(e,arguments))},e.inherits=requireInherits_browser(),e._extend=function(g,b){if(!b||!q(b))return g;for(var k=Object.keys(b),L=k.length;L--;)g[k[L]]=b[k[L]];return g};var $=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function R(g,b){if(!g){var k=new Error("Promise was rejected with a falsy value");k.reason=g,g=k}return b(g)}e.promisify=function(g){if(typeof g!="function")throw new TypeError('The "original" argument must be of type Function');if($&&g[$]){var b;if(typeof(b=g[$])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(b,$,{value:b,enumerable:!1,writable:!1,configurable:!0}),b}function b(){for(var k,L,F=new Promise((function(D,I){k=D,L=I})),T=[],U=0;U<arguments.length;U++)T.push(arguments[U]);T.push((function(D,I){D?L(D):k(I)}));try{g.apply(this,T)}catch(D){L(D)}return F}return Object.setPrototypeOf(b,Object.getPrototypeOf(g)),$&&Object.defineProperty(b,$,{value:b,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(b,o(g))},e.promisify.custom=$,e.callbackify=function(g){if(typeof g!="function")throw new TypeError('The "original" argument must be of type Function');function b(){for(var k=[],L=0;L<arguments.length;L++)k.push(arguments[L]);var F=k.pop();if(typeof F!="function")throw new TypeError("The last argument must be of type Function");var T=this,U=function(){return F.apply(T,arguments)};g.apply(this,k).then((function(D){process$1.nextTick(U.bind(null,null,D))}),(function(D){process$1.nextTick(R.bind(null,D,U))}))}return Object.setPrototypeOf(b,Object.getPrototypeOf(g)),Object.defineProperties(b,o(g)),b}})(util$1)),util$1}function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;function e(a,s){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);s&&(c=c.filter((function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable}))),u.push.apply(u,c)}return u}function r(a){for(var s=1;s<arguments.length;s++){var u=arguments[s]!=null?arguments[s]:{};s%2?e(Object(u),!0).forEach((function(c){o(a,c,u[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(u)):e(Object(u)).forEach((function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(u,c))}))}return a}function o(a,s,u){return(s=n(s))in a?Object.defineProperty(a,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[s]=u,a}function i(a,s,u){return s&&(function(c,l){for(var d=0;d<l.length;d++){var p=l[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(c,n(p.key),p)}})(a.prototype,s),Object.defineProperty(a,"prototype",{writable:!1}),a}function n(a){var s=(function(u,c){if(typeof u!="object"||u===null)return u;var l=u[Symbol.toPrimitive];if(l!==void 0){var d=l.call(u,c);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(u)})(a,"string");return typeof s=="symbol"?s:String(s)}hasRequiredBuffer_list=1;var h=requireDist().Buffer,f=requireUtil$1().inspect,t=f&&f.custom||"inspect";return buffer_list=(function(){function a(){(function(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")})(this,a),this.head=null,this.tail=null,this.length=0}return i(a,[{key:"push",value:function(s){var u={data:s,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length}},{key:"unshift",value:function(s){var u={data:s,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length}},{key:"shift",value:function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(s){if(this.length===0)return"";for(var u=this.head,c=""+u.data;u=u.next;)c+=s+u.data;return c}},{key:"concat",value:function(s){if(this.length===0)return h.alloc(0);for(var u,c,l,d=h.allocUnsafe(s>>>0),p=this.head,y=0;p;)u=p.data,c=d,l=y,h.prototype.copy.call(u,c,l),y+=p.data.length,p=p.next;return d}},{key:"consume",value:function(s,u){var c;return s<this.head.data.length?(c=this.head.data.slice(0,s),this.head.data=this.head.data.slice(s)):c=s===this.head.data.length?this.shift():u?this._getString(s):this._getBuffer(s),c}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(s){var u=this.head,c=1,l=u.data;for(s-=l.length;u=u.next;){var d=u.data,p=s>d.length?d.length:s;if(p===d.length?l+=d:l+=d.slice(0,s),(s-=p)===0){p===d.length?(++c,u.next?this.head=u.next:this.head=this.tail=null):(this.head=u,u.data=d.slice(p));break}++c}return this.length-=c,l}},{key:"_getBuffer",value:function(s){var u=h.allocUnsafe(s),c=this.head,l=1;for(c.data.copy(u),s-=c.data.length;c=c.next;){var d=c.data,p=s>d.length?d.length:s;if(d.copy(u,u.length-s,0,p),(s-=p)===0){p===d.length?(++l,c.next?this.head=c.next:this.head=this.tail=null):(this.head=c,c.data=d.slice(p));break}++l}return this.length-=l,u}},{key:t,value:function(s,u){return f(this,r(r({},u),{},{depth:0,customInspect:!1}))}}]),a})(),buffer_list}function requireDestroy$1(){if(hasRequiredDestroy$1)return destroy_1$1;function e(i,n){o(i,n),r(i)}function r(i){i._writableState&&!i._writableState.emitClose||i._readableState&&!i._readableState.emitClose||i.emit("close")}function o(i,n){i.emit("error",n)}return hasRequiredDestroy$1=1,destroy_1$1={destroy:function(i,n){var h=this,f=this._readableState&&this._readableState.destroyed,t=this._writableState&&this._writableState.destroyed;return f||t?(n?n(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process$1.nextTick(o,this,i)):process$1.nextTick(o,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,(function(a){!n&&a?h._writableState?h._writableState.errorEmitted?process$1.nextTick(r,h):(h._writableState.errorEmitted=!0,process$1.nextTick(e,h,a)):process$1.nextTick(e,h,a):n?(process$1.nextTick(r,h),n(a)):process$1.nextTick(r,h)})),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(i,n){var h=i._readableState,f=i._writableState;h&&h.autoDestroy||f&&f.autoDestroy?i.destroy(n):i.emit("error",n)}}}var errorsBrowser={},hasRequiredErrorsBrowser,state,hasRequiredState,browser$a,hasRequiredBrowser$a,_stream_writable$1,hasRequired_stream_writable$1,_stream_duplex$1,hasRequired_stream_duplex$1;function requireErrorsBrowser(){if(hasRequiredErrorsBrowser)return errorsBrowser;hasRequiredErrorsBrowser=1;var e={};function r(i,n,h){h||(h=Error);var f=(function(t){var a,s;function u(c,l,d){return t.call(this,(function(p,y,m){return typeof n=="string"?n:n(p,y,m)})(c,l,d))||this}return s=t,(a=u).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,u})(h);f.prototype.name=h.name,f.prototype.code=i,e[i]=f}function o(i,n){if(Array.isArray(i)){var h=i.length;return i=i.map((function(f){return String(f)})),h>2?"one of ".concat(n," ").concat(i.slice(0,h-1).join(", "),", or ")+i[h-1]:h===2?"one of ".concat(n," ").concat(i[0]," or ").concat(i[1]):"of ".concat(n," ").concat(i[0])}return"of ".concat(n," ").concat(String(i))}return r("ERR_INVALID_OPT_VALUE",(function(i,n){return'The value "'+n+'" is invalid for option "'+i+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(i,n,h){var f,t,a;if(typeof n=="string"&&(t="not ",n.substr(0,t.length)===t)?(f="must not be",n=n.replace(/^not /,"")):f="must be",(function(u,c,l){return(l===void 0||l>u.length)&&(l=u.length),u.substring(l-c.length,l)===c})(i," argument"))a="The ".concat(i," ").concat(f," ").concat(o(n,"type"));else{var s=(function(u,c,l){return typeof l!="number"&&(l=0),!(l+c.length>u.length)&&u.indexOf(c,l)!==-1})(i,".")?"property":"argument";a='The "'.concat(i,'" ').concat(s," ").concat(f," ").concat(o(n,"type"))}return a+=". Received type ".concat(typeof h)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(i){return"The "+i+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(i){return"Cannot call "+i+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(i){return"Unknown encoding: "+i}),TypeError),r("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(r,o,i,n){var h=(function(f,t,a){return f.highWaterMark!=null?f.highWaterMark:t?f[a]:null})(o,n,i);if(h!=null){if(!isFinite(h)||Math.floor(h)!==h||h<0)throw new e(n?i:"highWaterMark",h);return Math.floor(h)}return r.objectMode?16:16384}}}function requireBrowser$a(){if(hasRequiredBrowser$a)return browser$a;function e(r){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var o=commonjsGlobal.localStorage[r];return o!=null&&String(o).toLowerCase()==="true"}return hasRequiredBrowser$a=1,browser$a=function(r,o){if(e("noDeprecation"))return r;var i=!1;return function(){if(!i){if(e("throwDeprecation"))throw new Error(o);e("traceDeprecation")?console.trace(o):console.warn(o),i=!0}return r.apply(this,arguments)}},browser$a}function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;function e($){var R=this;this.next=null,this.entry=null,this.finish=function(){(function(g,b,k){var L=g.entry;for(g.entry=null;L;){var F=L.callback;b.pendingcb--,F(k),L=L.next}b.corkedRequestsFree.next=g})(R,$)}}var r;hasRequired_stream_writable$1=1,_stream_writable$1=w,w.WritableState=q;var o={deprecate:requireBrowser$a()},i=requireStreamBrowser$1(),n=requireDist().Buffer,h=(commonjsGlobal!==void 0?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},f,t=requireDestroy$1(),a=requireState().getHighWaterMark,s=requireErrorsBrowser().codes,u=s.ERR_INVALID_ARG_TYPE,c=s.ERR_METHOD_NOT_IMPLEMENTED,l=s.ERR_MULTIPLE_CALLBACK,d=s.ERR_STREAM_CANNOT_PIPE,p=s.ERR_STREAM_DESTROYED,y=s.ERR_STREAM_NULL_VALUES,m=s.ERR_STREAM_WRITE_AFTER_END,_=s.ERR_UNKNOWN_ENCODING,A=t.errorOrDestroy;function E(){}function q($,R,g){r=r||require_stream_duplex$1(),$=$||{},typeof g!="boolean"&&(g=R instanceof r),this.objectMode=!!$.objectMode,g&&(this.objectMode=this.objectMode||!!$.writableObjectMode),this.highWaterMark=a(this,$,"writableHighWaterMark",g),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var b=$.decodeStrings===!1;this.decodeStrings=!b,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(k){(function(L,F){var T=L._writableState,U=T.sync,D=T.writecb;if(typeof D!="function")throw new l;if((function(j){j.writing=!1,j.writecb=null,j.length-=j.writelen,j.writelen=0})(T),F)(function(j,H,K,ee,Z){--H.pendingcb,K?(process$1.nextTick(Z,ee),process$1.nextTick(B,j,H),j._writableState.errorEmitted=!0,A(j,ee)):(Z(ee),j._writableState.errorEmitted=!0,A(j,ee),B(j,H))})(L,T,U,F,D);else{var I=N(T)||L.destroyed;I||T.corked||T.bufferProcessing||!T.bufferedRequest||O(L,T),U?process$1.nextTick(P,L,T,I,D):P(L,T,I,D)}})(R,k)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=$.emitClose!==!1,this.autoDestroy=!!$.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function w($){var R=this instanceof(r=r||require_stream_duplex$1());if(!R&&!f.call(w,this))return new w($);this._writableState=new q($,this,R),this.writable=!0,$&&(typeof $.write=="function"&&(this._write=$.write),typeof $.writev=="function"&&(this._writev=$.writev),typeof $.destroy=="function"&&(this._destroy=$.destroy),typeof $.final=="function"&&(this._final=$.final)),i.call(this)}function x($,R,g,b,k,L,F){R.writelen=b,R.writecb=F,R.writing=!0,R.sync=!0,R.destroyed?R.onwrite(new p("write")):g?$._writev(k,R.onwrite):$._write(k,L,R.onwrite),R.sync=!1}function P($,R,g,b){g||(function(k,L){L.length===0&&L.needDrain&&(L.needDrain=!1,k.emit("drain"))})($,R),R.pendingcb--,b(),B($,R)}function O($,R){R.bufferProcessing=!0;var g=R.bufferedRequest;if($._writev&&g&&g.next){var b=R.bufferedRequestCount,k=new Array(b),L=R.corkedRequestsFree;L.entry=g;for(var F=0,T=!0;g;)k[F]=g,g.isBuf||(T=!1),g=g.next,F+=1;k.allBuffers=T,x($,R,!0,R.length,k,"",L.finish),R.pendingcb++,R.lastBufferedRequest=null,L.next?(R.corkedRequestsFree=L.next,L.next=null):R.corkedRequestsFree=new e(R),R.bufferedRequestCount=0}else{for(;g;){var U=g.chunk,D=g.encoding,I=g.callback;if(x($,R,!1,R.objectMode?1:U.length,U,D,I),g=g.next,R.bufferedRequestCount--,R.writing)break}g===null&&(R.lastBufferedRequest=null)}R.bufferedRequest=g,R.bufferProcessing=!1}function N($){return $.ending&&$.length===0&&$.bufferedRequest===null&&!$.finished&&!$.writing}function v($,R){$._final((function(g){R.pendingcb--,g&&A($,g),R.prefinished=!0,$.emit("prefinish"),B($,R)}))}function B($,R){var g=N(R);if(g&&((function(k,L){L.prefinished||L.finalCalled||(typeof k._final!="function"||L.destroyed?(L.prefinished=!0,k.emit("prefinish")):(L.pendingcb++,L.finalCalled=!0,process$1.nextTick(v,k,L)))})($,R),R.pendingcb===0&&(R.finished=!0,$.emit("finish"),R.autoDestroy))){var b=$._readableState;(!b||b.autoDestroy&&b.endEmitted)&&$.destroy()}return g}return requireInherits_browser()(w,i),q.prototype.getBuffer=function(){for(var $=this.bufferedRequest,R=[];$;)R.push($),$=$.next;return R},(function(){try{Object.defineProperty(q.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function($){return!!f.call(this,$)||this===w&&$&&$._writableState instanceof q}})):f=function($){return $ instanceof this},w.prototype.pipe=function(){A(this,new d)},w.prototype.write=function($,R,g){var b,k=this._writableState,L=!1,F=!k.objectMode&&(b=$,n.isBuffer(b)||b instanceof h);return F&&!n.isBuffer($)&&($=(function(T){return n.from(T)})($)),typeof R=="function"&&(g=R,R=null),F?R="buffer":R||(R=k.defaultEncoding),typeof g!="function"&&(g=E),k.ending?(function(T,U){var D=new m;A(T,D),process$1.nextTick(U,D)})(this,g):(F||(function(T,U,D,I){var j;return D===null?j=new y:typeof D=="string"||U.objectMode||(j=new u("chunk",["string","Buffer"],D)),!j||(A(T,j),process$1.nextTick(I,j),!1)})(this,k,$,g))&&(k.pendingcb++,L=(function(T,U,D,I,j,H){if(!D){var K=(function(Q,X,J){return Q.objectMode||Q.decodeStrings===!1||typeof X!="string"||(X=n.from(X,J)),X})(U,I,j);I!==K&&(D=!0,j="buffer",I=K)}var ee=U.objectMode?1:I.length;U.length+=ee;var Z=U.length<U.highWaterMark;if(Z||(U.needDrain=!0),U.writing||U.corked){var V=U.lastBufferedRequest;U.lastBufferedRequest={chunk:I,encoding:j,isBuf:D,callback:H,next:null},V?V.next=U.lastBufferedRequest:U.bufferedRequest=U.lastBufferedRequest,U.bufferedRequestCount+=1}else x(T,U,!1,ee,I,j,H);return Z})(this,k,F,$,R,g)),L},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var $=this._writableState;$.corked&&($.corked--,$.writing||$.corked||$.bufferProcessing||!$.bufferedRequest||O(this,$))},w.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=$.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf(($+"").toLowerCase())>-1))throw new _($);return this._writableState.defaultEncoding=$,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($,R,g){g(new c("_write()"))},w.prototype._writev=null,w.prototype.end=function($,R,g){var b=this._writableState;return typeof $=="function"?(g=$,$=null,R=null):typeof R=="function"&&(g=R,R=null),$!=null&&this.write($,R),b.corked&&(b.corked=1,this.uncork()),b.ending||(function(k,L,F){L.ending=!0,B(k,L),F&&(L.finished?process$1.nextTick(F):k.once("finish",F)),L.ended=!0,k.writable=!1})(this,b,g),this},Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function($){this._writableState&&(this._writableState.destroyed=$)}}),w.prototype.destroy=t.destroy,w.prototype._undestroy=t.undestroy,w.prototype._destroy=function($,R){R($)},_stream_writable$1}function require_stream_duplex$1(){if(hasRequired_stream_duplex$1)return _stream_duplex$1;hasRequired_stream_duplex$1=1;var e=Object.keys||function(s){var u=[];for(var c in s)u.push(c);return u};_stream_duplex$1=f;var r=require_stream_readable$1(),o=require_stream_writable$1();requireInherits_browser()(f,r);for(var i=e(o.prototype),n=0;n<i.length;n++){var h=i[n];f.prototype[h]||(f.prototype[h]=o.prototype[h])}function f(s){if(!(this instanceof f))return new f(s);r.call(this,s),o.call(this,s),this.allowHalfOpen=!0,s&&(s.readable===!1&&(this.readable=!1),s.writable===!1&&(this.writable=!1),s.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",t)))}function t(){this._writableState.ended||process$1.nextTick(a,this)}function a(s){s.end()}return Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(s){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=s,this._writableState.destroyed=s)}}),_stream_duplex$1}var string_decoder={},hasRequiredString_decoder,endOfStream,hasRequiredEndOfStream,async_iterator,hasRequiredAsync_iterator,fromBrowser,hasRequiredFromBrowser,_stream_readable$1,hasRequired_stream_readable$1,_stream_transform$1,hasRequired_stream_transform$1,_stream_passthrough$1,hasRequired_stream_passthrough$1,pipeline_1,hasRequiredPipeline,streamBrowserify,hasRequiredStreamBrowserify,hashBase$1,hasRequiredHashBase$1,md5_js,hasRequiredMd5_js,ripemd160$3,hasRequiredRipemd160$2;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var e=requireSafeBuffer$1().Buffer,r=e.isEncoding||function(c){switch((c=""+c)&&c.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 o(c){var l;switch(this.encoding=(function(d){var p=(function(y){if(!y)return"utf8";for(var m;;)switch(y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return y;default:if(m)return;y=(""+y).toLowerCase(),m=!0}})(d);if(typeof p!="string"&&(e.isEncoding===r||!r(d)))throw new Error("Unknown encoding: "+d);return p||d})(c),this.encoding){case"utf16le":this.text=h,this.end=f,l=4;break;case"utf8":this.fillLast=n,l=4;break;case"base64":this.text=t,this.end=a,l=3;break;default:return this.write=s,void(this.end=u)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(l)}function i(c){return c<=127?0:c>>5==6?2:c>>4==14?3:c>>3==30?4:c>>6==2?-1:-2}function n(c){var l=this.lastTotal-this.lastNeed,d=(function(p,y){if((192&y[0])!=128)return p.lastNeed=0,"�";if(p.lastNeed>1&&y.length>1){if((192&y[1])!=128)return p.lastNeed=1,"�";if(p.lastNeed>2&&y.length>2&&(192&y[2])!=128)return p.lastNeed=2,"�"}})(this,c);return d!==void 0?d:this.lastNeed<=c.length?(c.copy(this.lastChar,l,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(c.copy(this.lastChar,l,0,c.length),void(this.lastNeed-=c.length))}function h(c,l){if((c.length-l)%2==0){var d=c.toString("utf16le",l);if(d){var p=d.charCodeAt(d.length-1);if(p>=55296&&p<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1],d.slice(0,-1)}return d}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=c[c.length-1],c.toString("utf16le",l,c.length-1)}function f(c){var l=c&&c.length?this.write(c):"";if(this.lastNeed){var d=this.lastTotal-this.lastNeed;return l+this.lastChar.toString("utf16le",0,d)}return l}function t(c,l){var d=(c.length-l)%3;return d===0?c.toString("base64",l):(this.lastNeed=3-d,this.lastTotal=3,d===1?this.lastChar[0]=c[c.length-1]:(this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1]),c.toString("base64",l,c.length-d))}function a(c){var l=c&&c.length?this.write(c):"";return this.lastNeed?l+this.lastChar.toString("base64",0,3-this.lastNeed):l}function s(c){return c.toString(this.encoding)}function u(c){return c&&c.length?this.write(c):""}return string_decoder.StringDecoder=o,o.prototype.write=function(c){if(c.length===0)return"";var l,d;if(this.lastNeed){if((l=this.fillLast(c))===void 0)return"";d=this.lastNeed,this.lastNeed=0}else d=0;return d<c.length?l?l+this.text(c,d):this.text(c,d):l||""},o.prototype.end=function(c){var l=c&&c.length?this.write(c):"";return this.lastNeed?l+"�":l},o.prototype.text=function(c,l){var d=(function(y,m,_){var A=m.length-1;if(A<_)return 0;var E=i(m[A]);return E>=0?(E>0&&(y.lastNeed=E-1),E):--A<_||E===-2?0:(E=i(m[A]),E>=0?(E>0&&(y.lastNeed=E-2),E):--A<_||E===-2?0:(E=i(m[A]),E>=0?(E>0&&(E===2?E=0:y.lastNeed=E-3),E):0))})(this,c,l);if(!this.lastNeed)return c.toString("utf8",l);this.lastTotal=d;var p=c.length-(d-this.lastNeed);return c.copy(this.lastChar,0,p),c.toString("utf8",l,p)},o.prototype.fillLast=function(c){if(this.lastNeed<=c.length)return c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,c.length),this.lastNeed-=c.length},string_decoder}function requireEndOfStream(){if(hasRequiredEndOfStream)return endOfStream;hasRequiredEndOfStream=1;var e=requireErrorsBrowser().codes.ERR_STREAM_PREMATURE_CLOSE;function r(){}return endOfStream=function o(i,n,h){if(typeof n=="function")return o(i,null,n);n||(n={}),h=(function(m){var _=!1;return function(){if(!_){_=!0;for(var A=arguments.length,E=new Array(A),q=0;q<A;q++)E[q]=arguments[q];m.apply(this,E)}}})(h||r);var f=n.readable||n.readable!==!1&&i.readable,t=n.writable||n.writable!==!1&&i.writable,a=function(){i.writable||u()},s=i._writableState&&i._writableState.finished,u=function(){t=!1,s=!0,f||h.call(i)},c=i._readableState&&i._readableState.endEmitted,l=function(){f=!1,c=!0,t||h.call(i)},d=function(m){h.call(i,m)},p=function(){var m;return f&&!c?(i._readableState&&i._readableState.ended||(m=new e),h.call(i,m)):t&&!s?(i._writableState&&i._writableState.ended||(m=new e),h.call(i,m)):void 0},y=function(){i.req.on("finish",u)};return(function(m){return m.setHeader&&typeof m.abort=="function"})(i)?(i.on("complete",u),i.on("abort",p),i.req?y():i.on("request",y)):t&&!i._writableState&&(i.on("end",a),i.on("close",a)),i.on("end",l),i.on("finish",u),n.error!==!1&&i.on("error",d),i.on("close",p),function(){i.removeListener("complete",u),i.removeListener("abort",p),i.removeListener("request",y),i.req&&i.req.removeListener("finish",u),i.removeListener("end",a),i.removeListener("close",a),i.removeListener("finish",u),i.removeListener("end",l),i.removeListener("error",d),i.removeListener("close",p)}},endOfStream}function requireAsync_iterator(){if(hasRequiredAsync_iterator)return async_iterator;var e;function r(y,m,_){return(m=(function(A){var E=(function(q,w){if(typeof q!="object"||q===null)return q;var x=q[Symbol.toPrimitive];if(x!==void 0){var P=x.call(q,w);if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(q)})(A,"string");return typeof E=="symbol"?E:String(E)})(m))in y?Object.defineProperty(y,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):y[m]=_,y}hasRequiredAsync_iterator=1;var o=requireEndOfStream(),i=Symbol("lastResolve"),n=Symbol("lastReject"),h=Symbol("error"),f=Symbol("ended"),t=Symbol("lastPromise"),a=Symbol("handlePromise"),s=Symbol("stream");function u(y,m){return{value:y,done:m}}function c(y){var m=y[i];if(m!==null){var _=y[s].read();_!==null&&(y[t]=null,y[i]=null,y[n]=null,m(u(_,!1)))}}function l(y){process$1.nextTick(c,y)}var d=Object.getPrototypeOf((function(){})),p=Object.setPrototypeOf((e={get stream(){return this[s]},next:function(){var y=this,m=this[h];if(m!==null)return Promise.reject(m);if(this[f])return Promise.resolve(u(void 0,!0));if(this[s].destroyed)return new Promise((function(q,w){process$1.nextTick((function(){y[h]?w(y[h]):q(u(void 0,!0))}))}));var _,A=this[t];if(A)_=new Promise((function(q,w){return function(x,P){q.then((function(){w[f]?x(u(void 0,!0)):w[a](x,P)}),P)}})(A,this));else{var E=this[s].read();if(E!==null)return Promise.resolve(u(E,!1));_=new Promise(this[a])}return this[t]=_,_}},r(e,Symbol.asyncIterator,(function(){return this})),r(e,"return",(function(){var y=this;return new Promise((function(m,_){y[s].destroy(null,(function(A){A?_(A):m(u(void 0,!0))}))}))})),e),d);return async_iterator=function(y){var m,_=Object.create(p,(r(m={},s,{value:y,writable:!0}),r(m,i,{value:null,writable:!0}),r(m,n,{value:null,writable:!0}),r(m,h,{value:null,writable:!0}),r(m,f,{value:y._readableState.endEmitted,writable:!0}),r(m,a,{value:function(A,E){var q=_[s].read();q?(_[t]=null,_[i]=null,_[n]=null,A(u(q,!1))):(_[i]=A,_[n]=E)},writable:!0}),m));return _[t]=null,o(y,(function(A){if(A&&A.code!=="ERR_STREAM_PREMATURE_CLOSE"){var E=_[n];return E!==null&&(_[t]=null,_[i]=null,_[n]=null,E(A)),void(_[h]=A)}var q=_[i];q!==null&&(_[t]=null,_[i]=null,_[n]=null,q(u(void 0,!0))),_[f]=!0})),y.on("readable",l.bind(null,_)),_},async_iterator}function requireFromBrowser(){return hasRequiredFromBrowser?fromBrowser:(hasRequiredFromBrowser=1,fromBrowser=function(){throw new Error("Readable.from is not available in the browser")})}function require_stream_readable$1(){if(hasRequired_stream_readable$1)return _stream_readable$1;var e;hasRequired_stream_readable$1=1,_stream_readable$1=w,w.ReadableState=q,requireEvents().EventEmitter;var r=function(I,j){return I.listeners(j).length},o=requireStreamBrowser$1(),i=requireDist().Buffer,n=(commonjsGlobal!==void 0?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},h,f=requireUtil$1();h=f&&f.debuglog?f.debuglog("stream"):function(){};var t,a,s,u=requireBuffer_list(),c=requireDestroy$1(),l=requireState().getHighWaterMark,d=requireErrorsBrowser().codes,p=d.ERR_INVALID_ARG_TYPE,y=d.ERR_STREAM_PUSH_AFTER_EOF,m=d.ERR_METHOD_NOT_IMPLEMENTED,_=d.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;requireInherits_browser()(w,o);var A=c.errorOrDestroy,E=["error","close","destroy","pause","resume"];function q(I,j,H){e=e||require_stream_duplex$1(),I=I||{},typeof H!="boolean"&&(H=j instanceof e),this.objectMode=!!I.objectMode,H&&(this.objectMode=this.objectMode||!!I.readableObjectMode),this.highWaterMark=l(this,I,"readableHighWaterMark",H),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=I.emitClose!==!1,this.autoDestroy=!!I.autoDestroy,this.destroyed=!1,this.defaultEncoding=I.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,I.encoding&&(t||(t=requireString_decoder().StringDecoder),this.decoder=new t(I.encoding),this.encoding=I.encoding)}function w(I){if(e=e||require_stream_duplex$1(),!(this instanceof w))return new w(I);var j=this instanceof e;this._readableState=new q(I,this,j),this.readable=!0,I&&(typeof I.read=="function"&&(this._read=I.read),typeof I.destroy=="function"&&(this._destroy=I.destroy)),o.call(this)}function x(I,j,H,K,ee){h("readableAddChunk",j);var Z,V=I._readableState;if(j===null)V.reading=!1,(function(Q,X){if(h("onEofChunk"),!X.ended){if(X.decoder){var J=X.decoder.end();J&&J.length&&(X.buffer.push(J),X.length+=X.objectMode?1:J.length)}X.ended=!0,X.sync?v(Q):(X.needReadable=!1,X.emittedReadable||(X.emittedReadable=!0,B(Q)))}})(I,V);else if(ee||(Z=(function(Q,X){var J;oe=X,i.isBuffer(oe)||oe instanceof n||typeof X=="string"||X===void 0||Q.objectMode||(J=new p("chunk",["string","Buffer","Uint8Array"],X));var oe;return J})(V,j)),Z)A(I,Z);else if(V.objectMode||j&&j.length>0)if(typeof j=="string"||V.objectMode||Object.getPrototypeOf(j)===i.prototype||(j=(function(Q){return i.from(Q)})(j)),K)V.endEmitted?A(I,new _):P(I,V,j,!0);else if(V.ended)A(I,new y);else{if(V.destroyed)return!1;V.reading=!1,V.decoder&&!H?(j=V.decoder.write(j),V.objectMode||j.length!==0?P(I,V,j,!1):$(I,V)):P(I,V,j,!1)}else K||(V.reading=!1,$(I,V));return!V.ended&&(V.length<V.highWaterMark||V.length===0)}function P(I,j,H,K){j.flowing&&j.length===0&&!j.sync?(j.awaitDrain=0,I.emit("data",H)):(j.length+=j.objectMode?1:H.length,K?j.buffer.unshift(H):j.buffer.push(H),j.needReadable&&v(I)),$(I,j)}Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(I){this._readableState&&(this._readableState.destroyed=I)}}),w.prototype.destroy=c.destroy,w.prototype._undestroy=c.undestroy,w.prototype._destroy=function(I,j){j(I)},w.prototype.push=function(I,j){var H,K=this._readableState;return K.objectMode?H=!0:typeof I=="string"&&((j=j||K.defaultEncoding)!==K.encoding&&(I=i.from(I,j),j=""),H=!0),x(this,I,j,!1,H)},w.prototype.unshift=function(I){return x(this,I,null,!0,!1)},w.prototype.isPaused=function(){return this._readableState.flowing===!1},w.prototype.setEncoding=function(I){t||(t=requireString_decoder().StringDecoder);var j=new t(I);this._readableState.decoder=j,this._readableState.encoding=this._readableState.decoder.encoding;for(var H=this._readableState.buffer.head,K="";H!==null;)K+=j.write(H.data),H=H.next;return this._readableState.buffer.clear(),K!==""&&this._readableState.buffer.push(K),this._readableState.length=K.length,this};var O=1073741824;function N(I,j){return I<=0||j.length===0&&j.ended?0:j.objectMode?1:I!=I?j.flowing&&j.length?j.buffer.head.data.length:j.length:(I>j.highWaterMark&&(j.highWaterMark=(function(H){return H>=O?H=O:(H--,H|=H>>>1,H|=H>>>2,H|=H>>>4,H|=H>>>8,H|=H>>>16,H++),H})(I)),I<=j.length?I:j.ended?j.length:(j.needReadable=!0,0))}function v(I){var j=I._readableState;h("emitReadable",j.needReadable,j.emittedReadable),j.needReadable=!1,j.emittedReadable||(h("emitReadable",j.flowing),j.emittedReadable=!0,process$1.nextTick(B,I))}function B(I){var j=I._readableState;h("emitReadable_",j.destroyed,j.length,j.ended),j.destroyed||!j.length&&!j.ended||(I.emit("readable"),j.emittedReadable=!1),j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,L(I)}function $(I,j){j.readingMore||(j.readingMore=!0,process$1.nextTick(R,I,j))}function R(I,j){for(;!j.reading&&!j.ended&&(j.length<j.highWaterMark||j.flowing&&j.length===0);){var H=j.length;if(h("maybeReadMore read 0"),I.read(0),H===j.length)break}j.readingMore=!1}function g(I){var j=I._readableState;j.readableListening=I.listenerCount("readable")>0,j.resumeScheduled&&!j.paused?j.flowing=!0:I.listenerCount("data")>0&&I.resume()}function b(I){h("readable nexttick read 0"),I.read(0)}function k(I,j){h("resume",j.reading),j.reading||I.read(0),j.resumeScheduled=!1,I.emit("resume"),L(I),j.flowing&&!j.reading&&I.read(0)}function L(I){var j=I._readableState;for(h("flow",j.flowing);j.flowing&&I.read()!==null;);}function F(I,j){return j.length===0?null:(j.objectMode?H=j.buffer.shift():!I||I>=j.length?(H=j.decoder?j.buffer.join(""):j.buffer.length===1?j.buffer.first():j.buffer.concat(j.length),j.buffer.clear()):H=j.buffer.consume(I,j.decoder),H);var H}function T(I){var j=I._readableState;h("endReadable",j.endEmitted),j.endEmitted||(j.ended=!0,process$1.nextTick(U,j,I))}function U(I,j){if(h("endReadableNT",I.endEmitted,I.length),!I.endEmitted&&I.length===0&&(I.endEmitted=!0,j.readable=!1,j.emit("end"),I.autoDestroy)){var H=j._writableState;(!H||H.autoDestroy&&H.finished)&&j.destroy()}}function D(I,j){for(var H=0,K=I.length;H<K;H++)if(I[H]===j)return H;return-1}return w.prototype.read=function(I){h("read",I),I=parseInt(I,10);var j=this._readableState,H=I;if(I!==0&&(j.emittedReadable=!1),I===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended))return h("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?T(this):v(this),null;if((I=N(I,j))===0&&j.ended)return j.length===0&&T(this),null;var K,ee=j.needReadable;return h("need readable",ee),(j.length===0||j.length-I<j.highWaterMark)&&h("length less than watermark",ee=!0),j.ended||j.reading?h("reading or ended",ee=!1):ee&&(h("do read"),j.reading=!0,j.sync=!0,j.length===0&&(j.needReadable=!0),this._read(j.highWaterMark),j.sync=!1,j.reading||(I=N(H,j))),(K=I>0?F(I,j):null)===null?(j.needReadable=j.length<=j.highWaterMark,I=0):(j.length-=I,j.awaitDrain=0),j.length===0&&(j.ended||(j.needReadable=!0),H!==I&&j.ended&&T(this)),K!==null&&this.emit("data",K),K},w.prototype._read=function(I){A(this,new m("_read()"))},w.prototype.pipe=function(I,j){var H=this,K=this._readableState;switch(K.pipesCount){case 0:K.pipes=I;break;case 1:K.pipes=[K.pipes,I];break;default:K.pipes.push(I)}K.pipesCount+=1,h("pipe count=%d opts=%j",K.pipesCount,j);var ee=(!j||j.end!==!1)&&I!==process$1.stdout&&I!==process$1.stderr?V:_e;function Z(te,ie){h("onunpipe"),te===H&&ie&&ie.hasUnpiped===!1&&(ie.hasUnpiped=!0,h("cleanup"),I.removeListener("close",se),I.removeListener("finish",ne),I.removeListener("drain",Q),I.removeListener("error",oe),I.removeListener("unpipe",Z),H.removeListener("end",V),H.removeListener("end",_e),H.removeListener("data",J),X=!0,!K.awaitDrain||I._writableState&&!I._writableState.needDrain||Q())}function V(){h("onend"),I.end()}K.endEmitted?process$1.nextTick(ee):H.once("end",ee),I.on("unpipe",Z);var Q=(function(te){return function(){var ie=te._readableState;h("pipeOnDrain",ie.awaitDrain),ie.awaitDrain&&ie.awaitDrain--,ie.awaitDrain===0&&r(te,"data")&&(ie.flowing=!0,L(te))}})(H);I.on("drain",Q);var X=!1;function J(te){h("ondata");var ie=I.write(te);h("dest.write",ie),ie===!1&&((K.pipesCount===1&&K.pipes===I||K.pipesCount>1&&D(K.pipes,I)!==-1)&&!X&&(h("false write response, pause",K.awaitDrain),K.awaitDrain++),H.pause())}function oe(te){h("onerror",te),_e(),I.removeListener("error",oe),r(I,"error")===0&&A(I,te)}function se(){I.removeListener("finish",ne),_e()}function ne(){h("onfinish"),I.removeListener("close",se),_e()}function _e(){h("unpipe"),H.unpipe(I)}return H.on("data",J),(function(te,ie,ye){if(typeof te.prependListener=="function")return te.prependListener(ie,ye);te._events&&te._events[ie]?Array.isArray(te._events[ie])?te._events[ie].unshift(ye):te._events[ie]=[ye,te._events[ie]]:te.on(ie,ye)})(I,"error",oe),I.once("close",se),I.once("finish",ne),I.emit("pipe",H),K.flowing||(h("pipe resume"),H.resume()),I},w.prototype.unpipe=function(I){var j=this._readableState,H={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return I&&I!==j.pipes||(I||(I=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,I&&I.emit("unpipe",this,H)),this;if(!I){var K=j.pipes,ee=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var Z=0;Z<ee;Z++)K[Z].emit("unpipe",this,{hasUnpiped:!1});return this}var V=D(j.pipes,I);return V===-1||(j.pipes.splice(V,1),j.pipesCount-=1,j.pipesCount===1&&(j.pipes=j.pipes[0]),I.emit("unpipe",this,H)),this},w.prototype.on=function(I,j){var H=o.prototype.on.call(this,I,j),K=this._readableState;return I==="data"?(K.readableListening=this.listenerCount("readable")>0,K.flowing!==!1&&this.resume()):I==="readable"&&(K.endEmitted||K.readableListening||(K.readableListening=K.needReadable=!0,K.flowing=!1,K.emittedReadable=!1,h("on readable",K.length,K.reading),K.length?v(this):K.reading||process$1.nextTick(b,this))),H},w.prototype.addListener=w.prototype.on,w.prototype.removeListener=function(I,j){var H=o.prototype.removeListener.call(this,I,j);return I==="readable"&&process$1.nextTick(g,this),H},w.prototype.removeAllListeners=function(I){var j=o.prototype.removeAllListeners.apply(this,arguments);return I!=="readable"&&I!==void 0||process$1.nextTick(g,this),j},w.prototype.resume=function(){var I=this._readableState;return I.flowing||(h("resume"),I.flowing=!I.readableListening,(function(j,H){H.resumeScheduled||(H.resumeScheduled=!0,process$1.nextTick(k,j,H))})(this,I)),I.paused=!1,this},w.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},w.prototype.wrap=function(I){var j=this,H=this._readableState,K=!1;for(var ee in I.on("end",(function(){if(h("wrapped end"),H.decoder&&!H.ended){var V=H.decoder.end();V&&V.length&&j.push(V)}j.push(null)})),I.on("data",(function(V){h("wrapped data"),H.decoder&&(V=H.decoder.write(V)),H.objectMode&&V==null||(H.objectMode||V&&V.length)&&(j.push(V)||(K=!0,I.pause()))})),I)this[ee]===void 0&&typeof I[ee]=="function"&&(this[ee]=(function(V){return function(){return I[V].apply(I,arguments)}})(ee));for(var Z=0;Z<E.length;Z++)I.on(E[Z],this.emit.bind(this,E[Z]));return this._read=function(V){h("wrapped _read",V),K&&(K=!1,I.resume())},this},typeof Symbol=="function"&&(w.prototype[Symbol.asyncIterator]=function(){return a===void 0&&(a=requireAsync_iterator()),a(this)}),Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(w.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(w.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(I){this._readableState&&(this._readableState.flowing=I)}}),w._fromList=F,Object.defineProperty(w.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(w.from=function(I,j){return s===void 0&&(s=requireFromBrowser()),s(w,I,j)}),_stream_readable$1}function require_stream_transform$1(){if(hasRequired_stream_transform$1)return _stream_transform$1;hasRequired_stream_transform$1=1,_stream_transform$1=t;var e=requireErrorsBrowser().codes,r=e.ERR_METHOD_NOT_IMPLEMENTED,o=e.ERR_MULTIPLE_CALLBACK,i=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,n=e.ERR_TRANSFORM_WITH_LENGTH_0,h=require_stream_duplex$1();function f(u,c){var l=this._transformState;l.transforming=!1;var d=l.writecb;if(d===null)return this.emit("error",new o);l.writechunk=null,l.writecb=null,c!=null&&this.push(c),d(u);var p=this._readableState;p.reading=!1,(p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}function t(u){if(!(this instanceof t))return new t(u);h.call(this,u),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",a)}function a(){var u=this;typeof this._flush!="function"||this._readableState.destroyed?s(this,null,null):this._flush((function(c,l){s(u,c,l)}))}function s(u,c,l){if(c)return u.emit("error",c);if(l!=null&&u.push(l),u._writableState.length)throw new n;if(u._transformState.transforming)throw new i;return u.push(null)}return requireInherits_browser()(t,h),t.prototype.push=function(u,c){return this._transformState.needTransform=!1,h.prototype.push.call(this,u,c)},t.prototype._transform=function(u,c,l){l(new r("_transform()"))},t.prototype._write=function(u,c,l){var d=this._transformState;if(d.writecb=l,d.writechunk=u,d.writeencoding=c,!d.transforming){var p=this._readableState;(d.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},t.prototype._read=function(u){var c=this._transformState;c.writechunk===null||c.transforming?c.needTransform=!0:(c.transforming=!0,this._transform(c.writechunk,c.writeencoding,c.afterTransform))},t.prototype._destroy=function(u,c){h.prototype._destroy.call(this,u,(function(l){c(l)}))},_stream_transform$1}function require_stream_passthrough$1(){if(hasRequired_stream_passthrough$1)return _stream_passthrough$1;hasRequired_stream_passthrough$1=1,_stream_passthrough$1=r;var e=require_stream_transform$1();function r(o){if(!(this instanceof r))return new r(o);e.call(this,o)}return requireInherits_browser()(r,e),r.prototype._transform=function(o,i,n){n(null,o)},_stream_passthrough$1}function requirePipeline(){if(hasRequiredPipeline)return pipeline_1;var e;hasRequiredPipeline=1;var r=requireErrorsBrowser().codes,o=r.ERR_MISSING_ARGS,i=r.ERR_STREAM_DESTROYED;function n(t){if(t)throw t}function h(t){t()}function f(t,a){return t.pipe(a)}return pipeline_1=function(){for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];var u,c=(function(d){return d.length?typeof d[d.length-1]!="function"?n:d.pop():n})(a);if(Array.isArray(a[0])&&(a=a[0]),a.length<2)throw new o("streams");var l=a.map((function(d,p){var y=p<a.length-1;return(function(m,_,A,E){E=(function(x){var P=!1;return function(){P||(P=!0,x.apply(void 0,arguments))}})(E);var q=!1;m.on("close",(function(){q=!0})),e===void 0&&(e=requireEndOfStream()),e(m,{readable:_,writable:A},(function(x){if(x)return E(x);q=!0,E()}));var w=!1;return function(x){if(!q&&!w)return w=!0,(function(P){return P.setHeader&&typeof P.abort=="function"})(m)?m.abort():typeof m.destroy=="function"?m.destroy():void E(x||new i("pipe"))}})(d,y,p>0,(function(m){u||(u=m),m&&l.forEach(h),y||(l.forEach(h),c(u))}))}));return a.reduce(f)},pipeline_1}function requireStreamBrowserify(){if(hasRequiredStreamBrowserify)return streamBrowserify;hasRequiredStreamBrowserify=1,streamBrowserify=r;var e=requireEvents().EventEmitter;function r(){e.call(this)}return requireInherits_browser()(r,e),r.Readable=require_stream_readable$1(),r.Writable=require_stream_writable$1(),r.Duplex=require_stream_duplex$1(),r.Transform=require_stream_transform$1(),r.PassThrough=require_stream_passthrough$1(),r.finished=requireEndOfStream(),r.pipeline=requirePipeline(),r.Stream=r,r.prototype.pipe=function(o,i){var n=this;function h(l){o.writable&&o.write(l)===!1&&n.pause&&n.pause()}function f(){n.readable&&n.resume&&n.resume()}n.on("data",h),o.on("drain",f),o._isStdio||i&&i.end===!1||(n.on("end",a),n.on("close",s));var t=!1;function a(){t||(t=!0,o.end())}function s(){t||(t=!0,typeof o.destroy=="function"&&o.destroy())}function u(l){if(c(),e.listenerCount(this,"error")===0)throw l}function c(){n.removeListener("data",h),o.removeListener("drain",f),n.removeListener("end",a),n.removeListener("close",s),n.removeListener("error",u),o.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),o.removeListener("close",c)}return n.on("error",u),o.on("error",u),n.on("end",c),n.on("close",c),o.on("close",c),o.emit("pipe",n),o},streamBrowserify}function requireHashBase$1(){if(hasRequiredHashBase$1)return hashBase$1;hasRequiredHashBase$1=1;var e=requireSafeBuffer$1().Buffer,r=requireStreamBrowserify().Transform;function o(h){r.call(this),this._block=e.allocUnsafe(h),this._blockSize=h,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}requireInherits_browser()(o,r),o.prototype._transform=function(h,f,t){var a=null;try{this.update(h,f)}catch(s){a=s}t(a)},o.prototype._flush=function(h){var f=null;try{this.push(this.digest())}catch(t){f=t}h(f)};var i=typeof Uint8Array<"u",n=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return o.prototype.update=function(h,f){if(this._finalized)throw new Error("Digest already called");h=(function(l,d){if(l instanceof e)return l;if(typeof l=="string")return e.from(l,d);if(n&&ArrayBuffer.isView(l)){if(l.byteLength===0)return e.alloc(0);var p=e.from(l.buffer,l.byteOffset,l.byteLength);if(p.byteLength===l.byteLength)return p}if(i&&l instanceof Uint8Array||e.isBuffer(l)&&l.constructor&&typeof l.constructor.isBuffer=="function"&&l.constructor.isBuffer(l))return e.from(l);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')})(h,f);for(var t=this._block,a=0;this._blockOffset+h.length-a>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)t[s++]=h[a++];this._update(),this._blockOffset=0}for(;a<h.length;)t[this._blockOffset++]=h[a++];for(var u=0,c=8*h.length;c>0;++u)this._length[u]+=c,(c=this._length[u]/4294967296|0)>0&&(this._length[u]-=4294967296*c);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(h){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var f=this._digest();h!==void 0&&(f=f.toString(h)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return f},o.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase$1=o}function requireMd5_js(){if(hasRequiredMd5_js)return md5_js;hasRequiredMd5_js=1;var e=requireInherits_browser(),r=requireHashBase$1(),o=requireSafeBuffer$1().Buffer,i=new Array(16);function n(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function h(u,c){return u<<c|u>>>32-c}function f(u,c,l,d,p,y,m){return h(u+(c&l|~c&d)+p+y|0,m)+c|0}function t(u,c,l,d,p,y,m){return h(u+(c&d|l&~d)+p+y|0,m)+c|0}function a(u,c,l,d,p,y,m){return h(u+(c^l^d)+p+y|0,m)+c|0}function s(u,c,l,d,p,y,m){return h(u+(l^(c|~d))+p+y|0,m)+c|0}return e(n,r),n.prototype._update=function(){for(var u=i,c=0;c<16;++c)u[c]=this._block.readInt32LE(4*c);var l=this._a,d=this._b,p=this._c,y=this._d;l=f(l,d,p,y,u[0],3614090360,7),y=f(y,l,d,p,u[1],3905402710,12),p=f(p,y,l,d,u[2],606105819,17),d=f(d,p,y,l,u[3],3250441966,22),l=f(l,d,p,y,u[4],4118548399,7),y=f(y,l,d,p,u[5],1200080426,12),p=f(p,y,l,d,u[6],2821735955,17),d=f(d,p,y,l,u[7],4249261313,22),l=f(l,d,p,y,u[8],1770035416,7),y=f(y,l,d,p,u[9],2336552879,12),p=f(p,y,l,d,u[10],4294925233,17),d=f(d,p,y,l,u[11],2304563134,22),l=f(l,d,p,y,u[12],1804603682,7),y=f(y,l,d,p,u[13],4254626195,12),p=f(p,y,l,d,u[14],2792965006,17),l=t(l,d=f(d,p,y,l,u[15],1236535329,22),p,y,u[1],4129170786,5),y=t(y,l,d,p,u[6],3225465664,9),p=t(p,y,l,d,u[11],643717713,14),d=t(d,p,y,l,u[0],3921069994,20),l=t(l,d,p,y,u[5],3593408605,5),y=t(y,l,d,p,u[10],38016083,9),p=t(p,y,l,d,u[15],3634488961,14),d=t(d,p,y,l,u[4],3889429448,20),l=t(l,d,p,y,u[9],568446438,5),y=t(y,l,d,p,u[14],3275163606,9),p=t(p,y,l,d,u[3],4107603335,14),d=t(d,p,y,l,u[8],1163531501,20),l=t(l,d,p,y,u[13],2850285829,5),y=t(y,l,d,p,u[2],4243563512,9),p=t(p,y,l,d,u[7],1735328473,14),l=a(l,d=t(d,p,y,l,u[12],2368359562,20),p,y,u[5],4294588738,4),y=a(y,l,d,p,u[8],2272392833,11),p=a(p,y,l,d,u[11],1839030562,16),d=a(d,p,y,l,u[14],4259657740,23),l=a(l,d,p,y,u[1],2763975236,4),y=a(y,l,d,p,u[4],1272893353,11),p=a(p,y,l,d,u[7],4139469664,16),d=a(d,p,y,l,u[10],3200236656,23),l=a(l,d,p,y,u[13],681279174,4),y=a(y,l,d,p,u[0],3936430074,11),p=a(p,y,l,d,u[3],3572445317,16),d=a(d,p,y,l,u[6],76029189,23),l=a(l,d,p,y,u[9],3654602809,4),y=a(y,l,d,p,u[12],3873151461,11),p=a(p,y,l,d,u[15],530742520,16),l=s(l,d=a(d,p,y,l,u[2],3299628645,23),p,y,u[0],4096336452,6),y=s(y,l,d,p,u[7],1126891415,10),p=s(p,y,l,d,u[14],2878612391,15),d=s(d,p,y,l,u[5],4237533241,21),l=s(l,d,p,y,u[12],1700485571,6),y=s(y,l,d,p,u[3],2399980690,10),p=s(p,y,l,d,u[10],4293915773,15),d=s(d,p,y,l,u[1],2240044497,21),l=s(l,d,p,y,u[8],1873313359,6),y=s(y,l,d,p,u[15],4264355552,10),p=s(p,y,l,d,u[6],2734768916,15),d=s(d,p,y,l,u[13],1309151649,21),l=s(l,d,p,y,u[4],4149444226,6),y=s(y,l,d,p,u[11],3174756917,10),p=s(p,y,l,d,u[2],718787259,15),d=s(d,p,y,l,u[9],3951481745,21),this._a=this._a+l|0,this._b=this._b+d|0,this._c=this._c+p|0,this._d=this._d+y|0},n.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 u=o.allocUnsafe(16);return u.writeInt32LE(this._a,0),u.writeInt32LE(this._b,4),u.writeInt32LE(this._c,8),u.writeInt32LE(this._d,12),u},md5_js=n}function requireRipemd160$2(){if(hasRequiredRipemd160$2)return ripemd160$3;hasRequiredRipemd160$2=1;var e=requireDist().Buffer,r=requireInherits_browser(),o=requireHashBase$1(),i=new Array(16),n=[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],h=[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],f=[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],t=[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],a=[0,1518500249,1859775393,2400959708,2840853838],s=[1352829926,1548603684,1836072691,2053994217,0];function u(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function c(_,A){return _<<A|_>>>32-A}function l(_,A,E,q,w,x,P,O){return c(_+(A^E^q)+x+P|0,O)+w|0}function d(_,A,E,q,w,x,P,O){return c(_+(A&E|~A&q)+x+P|0,O)+w|0}function p(_,A,E,q,w,x,P,O){return c(_+((A|~E)^q)+x+P|0,O)+w|0}function y(_,A,E,q,w,x,P,O){return c(_+(A&q|E&~q)+x+P|0,O)+w|0}function m(_,A,E,q,w,x,P,O){return c(_+(A^(E|~q))+x+P|0,O)+w|0}return r(u,o),u.prototype._update=function(){for(var _=i,A=0;A<16;++A)_[A]=this._block.readInt32LE(4*A);for(var E=0|this._a,q=0|this._b,w=0|this._c,x=0|this._d,P=0|this._e,O=0|this._a,N=0|this._b,v=0|this._c,B=0|this._d,$=0|this._e,R=0;R<80;R+=1){var g,b;R<16?(g=l(E,q,w,x,P,_[n[R]],a[0],f[R]),b=m(O,N,v,B,$,_[h[R]],s[0],t[R])):R<32?(g=d(E,q,w,x,P,_[n[R]],a[1],f[R]),b=y(O,N,v,B,$,_[h[R]],s[1],t[R])):R<48?(g=p(E,q,w,x,P,_[n[R]],a[2],f[R]),b=p(O,N,v,B,$,_[h[R]],s[2],t[R])):R<64?(g=y(E,q,w,x,P,_[n[R]],a[3],f[R]),b=d(O,N,v,B,$,_[h[R]],s[3],t[R])):(g=m(E,q,w,x,P,_[n[R]],a[4],f[R]),b=l(O,N,v,B,$,_[h[R]],s[4],t[R])),E=P,P=x,x=c(w,10),w=q,q=g,O=$,$=B,B=c(v,10),v=N,N=b}var k=this._b+w+B|0;this._b=this._c+x+$|0,this._c=this._d+P+O|0,this._d=this._e+E+N|0,this._e=this._a+q+v|0,this._a=k},u.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.alloc?e.alloc(20):new e(20);return _.writeInt32LE(this._a,0),_.writeInt32LE(this._b,4),_.writeInt32LE(this._c,8),_.writeInt32LE(this._d,12),_.writeInt32LE(this._e,16),_},ripemd160$3=u}var sha_js={exports:{}},isarray$1,hasRequiredIsarray$1,callBound,hasRequiredCallBound,forEach,hasRequiredForEach,possibleTypedArrayNames,hasRequiredPossibleTypedArrayNames,availableTypedArrays,hasRequiredAvailableTypedArrays;function requireIsarray$1(){if(hasRequiredIsarray$1)return isarray$1;hasRequiredIsarray$1=1;var e={}.toString;return isarray$1=Array.isArray||function(r){return e.call(r)=="[object Array]"}}function requireCallBound(){if(hasRequiredCallBound)return callBound;hasRequiredCallBound=1;var e=requireGetIntrinsic(),r=requireCallBindApplyHelpers(),o=r([e("%String.prototype.indexOf%")]);return callBound=function(i,n){var h=e(i,!!n);return typeof h=="function"&&o(i,".prototype.")>-1?r([h]):h}}function requireForEach(){if(hasRequiredForEach)return forEach;hasRequiredForEach=1;var e=requireIsCallable(),r=Object.prototype.toString,o=Object.prototype.hasOwnProperty;return forEach=function(i,n,h){if(!e(n))throw new TypeError("iterator must be a function");var f,t;arguments.length>=3&&(f=h),t=i,r.call(t)==="[object Array]"?(function(a,s,u){for(var c=0,l=a.length;c<l;c++)o.call(a,c)&&(u==null?s(a[c],c,a):s.call(u,a[c],c,a))})(i,n,f):typeof i=="string"?(function(a,s,u){for(var c=0,l=a.length;c<l;c++)u==null?s(a.charAt(c),c,a):s.call(u,a.charAt(c),c,a)})(i,n,f):(function(a,s,u){for(var c in a)o.call(a,c)&&(u==null?s(a[c],c,a):s.call(u,a[c],c,a))})(i,n,f)},forEach}function requirePossibleTypedArrayNames(){return hasRequiredPossibleTypedArrayNames?possibleTypedArrayNames:(hasRequiredPossibleTypedArrayNames=1,possibleTypedArrayNames=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"])}function requireAvailableTypedArrays(){if(hasRequiredAvailableTypedArrays)return availableTypedArrays;hasRequiredAvailableTypedArrays=1;var e=requirePossibleTypedArrayNames(),r=typeof globalThis>"u"?commonjsGlobal:globalThis;return availableTypedArrays=function(){for(var o=[],i=0;i<e.length;i++)typeof r[e[i]]=="function"&&(o[o.length]=e[i]);return o}}var callBind={exports:{}},defineDataProperty,hasRequiredDefineDataProperty,hasPropertyDescriptors_1,hasRequiredHasPropertyDescriptors,setFunctionLength,hasRequiredSetFunctionLength,applyBind,hasRequiredApplyBind,hasRequiredCallBind,shams,hasRequiredShams,whichTypedArray,hasRequiredWhichTypedArray,isTypedArray,hasRequiredIsTypedArray,typedArrayBuffer,hasRequiredTypedArrayBuffer,toBuffer,hasRequiredToBuffer$2,hash$1,hasRequiredHash$1,sha$1,hasRequiredSha$1,sha1$2,hasRequiredSha1$1,sha256$3,hasRequiredSha256$1,sha224$3,hasRequiredSha224$1,sha512$3,hasRequiredSha512$1,sha384$3,hasRequiredSha384$1,hasRequiredSha_js,cipherBase,hasRequiredCipherBase,browser$9,hasRequiredBrowser$9,legacy,hasRequiredLegacy,md5$2,hasRequiredMd5$1,browser$8,hasRequiredBrowser$8;function requireDefineDataProperty(){if(hasRequiredDefineDataProperty)return defineDataProperty;hasRequiredDefineDataProperty=1;var e=requireEsDefineProperty(),r=requireSyntax(),o=requireType(),i=requireGopd();return defineDataProperty=function(n,h,f){if(!n||typeof n!="object"&&typeof n!="function")throw new o("`obj` must be an object or a function`");if(typeof h!="string"&&typeof h!="symbol")throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new o("`loose`, if provided, must be a boolean");var t=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],c=!!i&&i(n,h);if(e)e(n,h,{configurable:s===null&&c?c.configurable:!s,enumerable:t===null&&c?c.enumerable:!t,value:f,writable:a===null&&c?c.writable:!a});else{if(!u&&(t||a||s))throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");n[h]=f}},defineDataProperty}function requireHasPropertyDescriptors(){if(hasRequiredHasPropertyDescriptors)return hasPropertyDescriptors_1;hasRequiredHasPropertyDescriptors=1;var e=requireEsDefineProperty(),r=function(){return!!e};return r.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},hasPropertyDescriptors_1=r}function requireSetFunctionLength(){if(hasRequiredSetFunctionLength)return setFunctionLength;hasRequiredSetFunctionLength=1;var e=requireGetIntrinsic(),r=requireDefineDataProperty(),o=requireHasPropertyDescriptors()(),i=requireGopd(),n=requireType(),h=e("%Math.floor%");return setFunctionLength=function(f,t){if(typeof f!="function")throw new n("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||h(t)!==t)throw new n("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],s=!0,u=!0;if("length"in f&&i){var c=i(f,"length");c&&!c.configurable&&(s=!1),c&&!c.writable&&(u=!1)}return(s||u||!a)&&(o?r(f,"length",t,!0,!0):r(f,"length",t)),f},setFunctionLength}function requireApplyBind(){if(hasRequiredApplyBind)return applyBind;hasRequiredApplyBind=1;var e=requireFunctionBind(),r=requireFunctionApply(),o=requireActualApply();return applyBind=function(){return o(e,r,arguments)},applyBind}function requireCallBind(){return hasRequiredCallBind||(hasRequiredCallBind=1,(function(e){var r=requireSetFunctionLength(),o=requireEsDefineProperty(),i=requireCallBindApplyHelpers(),n=requireApplyBind();e.exports=function(h){var f=i(arguments),t=h.length-(arguments.length-1);return r(f,1+(t>0?t:0),!0)},o?o(e.exports,"apply",{value:n}):e.exports.apply=n})(callBind)),callBind.exports}function requireShams(){if(hasRequiredShams)return shams;hasRequiredShams=1;var e=requireShams$2();return shams=function(){return e()&&!!Symbol.toStringTag}}function requireWhichTypedArray(){if(hasRequiredWhichTypedArray)return whichTypedArray;hasRequiredWhichTypedArray=1;var e=requireForEach(),r=requireAvailableTypedArrays(),o=requireCallBind(),i=requireCallBound(),n=requireGopd(),h=requireGetProto(),f=i("Object.prototype.toString"),t=requireShams()(),a=typeof globalThis>"u"?commonjsGlobal:globalThis,s=r(),u=i("String.prototype.slice"),c=i("Array.prototype.indexOf",!0)||function(d,p){for(var y=0;y<d.length;y+=1)if(d[y]===p)return y;return-1},l={__proto__:null};return e(s,t&&n&&h?function(d){var p=new a[d];if(Symbol.toStringTag in p&&h){var y=h(p),m=n(y,Symbol.toStringTag);if(!m&&y){var _=h(y);m=n(_,Symbol.toStringTag)}l["$"+d]=o(m.get)}}:function(d){var p=new a[d],y=p.slice||p.set;y&&(l["$"+d]=o(y))}),whichTypedArray=function(d){if(!d||typeof d!="object")return!1;if(!t){var p=u(f(d),8,-1);return c(s,p)>-1?p:p==="Object"&&(function(y){var m=!1;return e(l,(function(_,A){if(!m)try{_(y),m=u(A,1)}catch{}})),m})(d)}return n?(function(y){var m=!1;return e(l,(function(_,A){if(!m)try{"$"+_(y)===A&&(m=u(A,1))}catch{}})),m})(d):null}}function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray;hasRequiredIsTypedArray=1;var e=requireWhichTypedArray();return isTypedArray=function(r){return!!e(r)}}function requireTypedArrayBuffer(){if(hasRequiredTypedArrayBuffer)return typedArrayBuffer;hasRequiredTypedArrayBuffer=1;var e=requireType(),r=requireCallBound()("TypedArray.prototype.buffer",!0),o=requireIsTypedArray();return typedArrayBuffer=r||function(i){if(!o(i))throw new e("Not a Typed Array");return i.buffer}}function requireToBuffer$2(){if(hasRequiredToBuffer$2)return toBuffer;hasRequiredToBuffer$2=1;var e=requireSafeBuffer$1().Buffer,r=requireIsarray$1(),o=requireTypedArrayBuffer(),i=ArrayBuffer.isView||function(t){try{return o(t),!0}catch{return!1}},n=typeof Uint8Array<"u",h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",f=h&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return toBuffer=function(t,a){if(e.isBuffer(t))return t.constructor&&!("isBuffer"in t)?e.from(t):t;if(typeof t=="string")return e.from(t,a);if(h&&i(t)){if(t.byteLength===0)return e.alloc(0);if(f){var s=e.from(t.buffer,t.byteOffset,t.byteLength);if(s.byteLength===t.byteLength)return s}var u=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),c=e.from(u);if(c.length===t.byteLength)return c}if(n&&t instanceof Uint8Array)return e.from(t);var l=r(t);if(l)for(var d=0;d<t.length;d+=1){var p=t[d];if(typeof p!="number"||p<0||p>255||~~p!==p)throw new RangeError("Array items must be numbers in the range 0-255.")}if(l||e.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return e.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},toBuffer}function requireHash$1(){if(hasRequiredHash$1)return hash$1;hasRequiredHash$1=1;var e=requireSafeBuffer$1().Buffer,r=requireToBuffer$2();function o(i,n){this._block=e.alloc(i),this._finalSize=n,this._blockSize=i,this._len=0}return o.prototype.update=function(i,n){i=r(i,n||"utf8");for(var h=this._block,f=this._blockSize,t=i.length,a=this._len,s=0;s<t;){for(var u=a%f,c=Math.min(t-s,f-u),l=0;l<c;l++)h[u+l]=i[s+l];s+=c,(a+=c)%f==0&&this._update(h)}return this._len+=t,this},o.prototype.digest=function(i){var n=this._len%this._blockSize;this._block[n]=128,this._block.fill(0,n+1),n>=this._finalSize&&(this._update(this._block),this._block.fill(0));var h=8*this._len;if(h<=4294967295)this._block.writeUInt32BE(h,this._blockSize-4);else{var f=(4294967295&h)>>>0,t=(h-f)/4294967296;this._block.writeUInt32BE(t,this._blockSize-8),this._block.writeUInt32BE(f,this._blockSize-4)}this._update(this._block);var a=this._hash();return i?a.toString(i):a},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},hash$1=o}function requireSha$1(){if(hasRequiredSha$1)return sha$1;hasRequiredSha$1=1;var e=requireInherits_browser(),r=requireHash$1(),o=requireSafeBuffer$1().Buffer,i=[1518500249,1859775393,-1894007588,-899497514],n=new Array(80);function h(){this.init(),this._w=n,r.call(this,64,56)}function f(a){return a<<30|a>>>2}function t(a,s,u,c){return a===0?s&u|~s&c:a===2?s&u|s&c|u&c:s^u^c}return e(h,r),h.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},h.prototype._update=function(a){for(var s,u=this._w,c=0|this._a,l=0|this._b,d=0|this._c,p=0|this._d,y=0|this._e,m=0;m<16;++m)u[m]=a.readInt32BE(4*m);for(;m<80;++m)u[m]=u[m-3]^u[m-8]^u[m-14]^u[m-16];for(var _=0;_<80;++_){var A=~~(_/20),E=0|((s=c)<<5|s>>>27)+t(A,l,d,p)+y+u[_]+i[A];y=p,p=d,d=f(l),l=c,c=E}this._a=c+this._a|0,this._b=l+this._b|0,this._c=d+this._c|0,this._d=p+this._d|0,this._e=y+this._e|0},h.prototype._hash=function(){var a=o.allocUnsafe(20);return a.writeInt32BE(0|this._a,0),a.writeInt32BE(0|this._b,4),a.writeInt32BE(0|this._c,8),a.writeInt32BE(0|this._d,12),a.writeInt32BE(0|this._e,16),a},sha$1=h}function requireSha1$1(){if(hasRequiredSha1$1)return sha1$2;hasRequiredSha1$1=1;var e=requireInherits_browser(),r=requireHash$1(),o=requireSafeBuffer$1().Buffer,i=[1518500249,1859775393,-1894007588,-899497514],n=new Array(80);function h(){this.init(),this._w=n,r.call(this,64,56)}function f(s){return s<<5|s>>>27}function t(s){return s<<30|s>>>2}function a(s,u,c,l){return s===0?u&c|~u&l:s===2?u&c|u&l|c&l:u^c^l}return e(h,r),h.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},h.prototype._update=function(s){for(var u,c=this._w,l=0|this._a,d=0|this._b,p=0|this._c,y=0|this._d,m=0|this._e,_=0;_<16;++_)c[_]=s.readInt32BE(4*_);for(;_<80;++_)c[_]=(u=c[_-3]^c[_-8]^c[_-14]^c[_-16])<<1|u>>>31;for(var A=0;A<80;++A){var E=~~(A/20),q=f(l)+a(E,d,p,y)+m+c[A]+i[E]|0;m=y,y=p,p=t(d),d=l,l=q}this._a=l+this._a|0,this._b=d+this._b|0,this._c=p+this._c|0,this._d=y+this._d|0,this._e=m+this._e|0},h.prototype._hash=function(){var s=o.allocUnsafe(20);return s.writeInt32BE(0|this._a,0),s.writeInt32BE(0|this._b,4),s.writeInt32BE(0|this._c,8),s.writeInt32BE(0|this._d,12),s.writeInt32BE(0|this._e,16),s},sha1$2=h}function requireSha256$1(){if(hasRequiredSha256$1)return sha256$3;hasRequiredSha256$1=1;var e=requireInherits_browser(),r=requireHash$1(),o=requireSafeBuffer$1().Buffer,i=[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],n=new Array(64);function h(){this.init(),this._w=n,r.call(this,64,56)}function f(c,l,d){return d^c&(l^d)}function t(c,l,d){return c&l|d&(c|l)}function a(c){return(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10)}function s(c){return(c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7)}function u(c){return(c>>>7|c<<25)^(c>>>18|c<<14)^c>>>3}return e(h,r),h.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},h.prototype._update=function(c){for(var l,d=this._w,p=0|this._a,y=0|this._b,m=0|this._c,_=0|this._d,A=0|this._e,E=0|this._f,q=0|this._g,w=0|this._h,x=0;x<16;++x)d[x]=c.readInt32BE(4*x);for(;x<64;++x)d[x]=0|(((l=d[x-2])>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+d[x-7]+u(d[x-15])+d[x-16];for(var P=0;P<64;++P){var O=w+s(A)+f(A,E,q)+i[P]+d[P]|0,N=a(p)+t(p,y,m)|0;w=q,q=E,E=A,A=_+O|0,_=m,m=y,y=p,p=O+N|0}this._a=p+this._a|0,this._b=y+this._b|0,this._c=m+this._c|0,this._d=_+this._d|0,this._e=A+this._e|0,this._f=E+this._f|0,this._g=q+this._g|0,this._h=w+this._h|0},h.prototype._hash=function(){var c=o.allocUnsafe(32);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c.writeInt32BE(this._h,28),c},sha256$3=h}function requireSha224$1(){if(hasRequiredSha224$1)return sha224$3;hasRequiredSha224$1=1;var e=requireInherits_browser(),r=requireSha256$1(),o=requireHash$1(),i=requireSafeBuffer$1().Buffer,n=new Array(64);function h(){this.init(),this._w=n,o.call(this,64,56)}return e(h,r),h.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},h.prototype._hash=function(){var f=i.allocUnsafe(28);return f.writeInt32BE(this._a,0),f.writeInt32BE(this._b,4),f.writeInt32BE(this._c,8),f.writeInt32BE(this._d,12),f.writeInt32BE(this._e,16),f.writeInt32BE(this._f,20),f.writeInt32BE(this._g,24),f},sha224$3=h}function requireSha512$1(){if(hasRequiredSha512$1)return sha512$3;hasRequiredSha512$1=1;var e=requireInherits_browser(),r=requireHash$1(),o=requireSafeBuffer$1().Buffer,i=[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],n=new Array(160);function h(){this.init(),this._w=n,r.call(this,128,112)}function f(y,m,_){return _^y&(m^_)}function t(y,m,_){return y&m|_&(y|m)}function a(y,m){return(y>>>28|m<<4)^(m>>>2|y<<30)^(m>>>7|y<<25)}function s(y,m){return(y>>>14|m<<18)^(y>>>18|m<<14)^(m>>>9|y<<23)}function u(y,m){return(y>>>1|m<<31)^(y>>>8|m<<24)^y>>>7}function c(y,m){return(y>>>1|m<<31)^(y>>>8|m<<24)^(y>>>7|m<<25)}function l(y,m){return(y>>>19|m<<13)^(m>>>29|y<<3)^y>>>6}function d(y,m){return(y>>>19|m<<13)^(m>>>29|y<<3)^(y>>>6|m<<26)}function p(y,m){return y>>>0<m>>>0?1:0}return e(h,r),h.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},h.prototype._update=function(y){for(var m=this._w,_=0|this._ah,A=0|this._bh,E=0|this._ch,q=0|this._dh,w=0|this._eh,x=0|this._fh,P=0|this._gh,O=0|this._hh,N=0|this._al,v=0|this._bl,B=0|this._cl,$=0|this._dl,R=0|this._el,g=0|this._fl,b=0|this._gl,k=0|this._hl,L=0;L<32;L+=2)m[L]=y.readInt32BE(4*L),m[L+1]=y.readInt32BE(4*L+4);for(;L<160;L+=2){var F=m[L-30],T=m[L-30+1],U=u(F,T),D=c(T,F),I=l(F=m[L-4],T=m[L-4+1]),j=d(T,F),H=m[L-14],K=m[L-14+1],ee=m[L-32],Z=m[L-32+1],V=D+K|0,Q=U+H+p(V,D)|0;Q=(Q=Q+I+p(V=V+j|0,j)|0)+ee+p(V=V+Z|0,Z)|0,m[L]=Q,m[L+1]=V}for(var X=0;X<160;X+=2){Q=m[X],V=m[X+1];var J=t(_,A,E),oe=t(N,v,B),se=a(_,N),ne=a(N,_),_e=s(w,R),te=s(R,w),ie=i[X],ye=i[X+1],ue=f(w,x,P),fe=f(R,g,b),me=k+te|0,le=O+_e+p(me,k)|0;le=(le=(le=le+ue+p(me=me+fe|0,fe)|0)+ie+p(me=me+ye|0,ye)|0)+Q+p(me=me+V|0,V)|0;var he=ne+oe|0,Ee=se+J+p(he,ne)|0;O=P,k=b,P=x,b=g,x=w,g=R,w=q+le+p(R=$+me|0,$)|0,q=E,$=B,E=A,B=v,A=_,v=N,_=le+Ee+p(N=me+he|0,me)|0}this._al=this._al+N|0,this._bl=this._bl+v|0,this._cl=this._cl+B|0,this._dl=this._dl+$|0,this._el=this._el+R|0,this._fl=this._fl+g|0,this._gl=this._gl+b|0,this._hl=this._hl+k|0,this._ah=this._ah+_+p(this._al,N)|0,this._bh=this._bh+A+p(this._bl,v)|0,this._ch=this._ch+E+p(this._cl,B)|0,this._dh=this._dh+q+p(this._dl,$)|0,this._eh=this._eh+w+p(this._el,R)|0,this._fh=this._fh+x+p(this._fl,g)|0,this._gh=this._gh+P+p(this._gl,b)|0,this._hh=this._hh+O+p(this._hl,k)|0},h.prototype._hash=function(){var y=o.allocUnsafe(64);function m(_,A,E){y.writeInt32BE(_,E),y.writeInt32BE(A,E+4)}return m(this._ah,this._al,0),m(this._bh,this._bl,8),m(this._ch,this._cl,16),m(this._dh,this._dl,24),m(this._eh,this._el,32),m(this._fh,this._fl,40),m(this._gh,this._gl,48),m(this._hh,this._hl,56),y},sha512$3=h}function requireSha384$1(){if(hasRequiredSha384$1)return sha384$3;hasRequiredSha384$1=1;var e=requireInherits_browser(),r=requireSha512$1(),o=requireHash$1(),i=requireSafeBuffer$1().Buffer,n=new Array(160);function h(){this.init(),this._w=n,o.call(this,128,112)}return e(h,r),h.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},h.prototype._hash=function(){var f=i.allocUnsafe(48);function t(a,s,u){f.writeInt32BE(a,u),f.writeInt32BE(s,u+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),f},sha384$3=h}function requireSha_js(){return hasRequiredSha_js||(hasRequiredSha_js=1,(e=sha_js).exports=function(r){var o=r.toLowerCase(),i=e.exports[o];if(!i)throw new Error(o+" is not supported (we accept pull requests)");return new i},e.exports.sha=requireSha$1(),e.exports.sha1=requireSha1$1(),e.exports.sha224=requireSha224$1(),e.exports.sha256=requireSha256$1(),e.exports.sha384=requireSha384$1(),e.exports.sha512=requireSha512$1()),sha_js.exports;var e}function requireCipherBase(){if(hasRequiredCipherBase)return cipherBase;hasRequiredCipherBase=1;var e=requireSafeBuffer$1().Buffer,r=requireStreamBrowserify().Transform,o=requireString_decoder().StringDecoder;function i(f){r.call(this),this.hashMode=typeof f=="string",this.hashMode?this[f]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}requireInherits_browser()(i,r);var n=typeof Uint8Array<"u",h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return i.prototype.update=function(f,t,a){var s=(function(c,l){if(c instanceof e)return c;if(typeof c=="string")return e.from(c,l);if(h&&ArrayBuffer.isView(c)){if(c.byteLength===0)return e.alloc(0);var d=e.from(c.buffer,c.byteOffset,c.byteLength);if(d.byteLength===c.byteLength)return d}if(n&&c instanceof Uint8Array||e.isBuffer(c)&&c.constructor&&typeof c.constructor.isBuffer=="function"&&c.constructor.isBuffer(c))return e.from(c);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')})(f,t),u=this._update(s);return this.hashMode?this:(a&&(u=this._toString(u,a)),u)},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(f,t,a){var s;try{this.hashMode?this._update(f):this.push(this._update(f))}catch(u){s=u}finally{a(s)}},i.prototype._flush=function(f){var t;try{this.push(this.__final())}catch(a){t=a}f(t)},i.prototype._finalOrDigest=function(f){var t=this.__final()||e.alloc(0);return f&&(t=this._toString(t,f,!0)),t},i.prototype._toString=function(f,t,a){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can’t switch encodings");var s=this._decoder.write(f);return a&&(s+=this._decoder.end()),s},cipherBase=i}function requireBrowser$9(){if(hasRequiredBrowser$9)return browser$9;hasRequiredBrowser$9=1;var e=requireInherits_browser(),r=requireMd5_js(),o=requireRipemd160$2(),i=requireSha_js(),n=requireCipherBase();function h(f){n.call(this,"digest"),this._hash=f}return e(h,n),h.prototype._update=function(f){this._hash.update(f)},h.prototype._final=function(){return this._hash.digest()},browser$9=function(f){return(f=f.toLowerCase())==="md5"?new r:f==="rmd160"||f==="ripemd160"?new o:new h(i(f))}}function requireLegacy(){if(hasRequiredLegacy)return legacy;hasRequiredLegacy=1;var e=requireInherits_browser(),r=requireSafeBuffer$1().Buffer,o=requireCipherBase(),i=r.alloc(128),n=64;function h(f,t){o.call(this,"digest"),typeof t=="string"&&(t=r.from(t)),this._alg=f,this._key=t,t.length>n?t=f(t):t.length<n&&(t=r.concat([t,i],n));for(var a=this._ipad=r.allocUnsafe(n),s=this._opad=r.allocUnsafe(n),u=0;u<n;u++)a[u]=54^t[u],s[u]=92^t[u];this._hash=[a]}return e(h,o),h.prototype._update=function(f){this._hash.push(f)},h.prototype._final=function(){var f=this._alg(r.concat(this._hash));return this._alg(r.concat([this._opad,f]))},legacy=h}function requireMd5$1(){if(hasRequiredMd5$1)return md5$2;hasRequiredMd5$1=1;var e=requireMd5_js();return md5$2=function(r){return new e().update(r).digest()},md5$2}function requireBrowser$8(){if(hasRequiredBrowser$8)return browser$8;hasRequiredBrowser$8=1;var e=requireInherits_browser(),r=requireLegacy(),o=requireCipherBase(),i=requireSafeBuffer$1().Buffer,n=requireMd5$1(),h=requireRipemd160$2(),f=requireSha_js(),t=i.alloc(128);function a(s,u){o.call(this,"digest"),typeof u=="string"&&(u=i.from(u));var c=s==="sha512"||s==="sha384"?128:64;this._alg=s,this._key=u,u.length>c?u=(s==="rmd160"?new h:f(s)).update(u).digest():u.length<c&&(u=i.concat([u,t],c));for(var l=this._ipad=i.allocUnsafe(c),d=this._opad=i.allocUnsafe(c),p=0;p<c;p++)l[p]=54^u[p],d[p]=92^u[p];this._hash=s==="rmd160"?new h:f(s),this._hash.update(l)}return e(a,o),a.prototype._update=function(s){this._hash.update(s)},a.prototype._final=function(){var s=this._hash.digest();return(this._alg==="rmd160"?new h:f(this._alg)).update(this._opad).update(s).digest()},browser$8=function(s,u){return(s=s.toLowerCase())==="rmd160"||s==="ripemd160"?new a("rmd160",u):s==="md5"?new r(n,u):new a(s,u)},browser$8}const sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},sha256$2={sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha224$2={sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha384$2={sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512$2={sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},DSA={sign:"dsa",hash:"sha1",id:""},ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},require$$6={sha224WithRSAEncryption,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:sha256$2,sha224:sha224$2,sha384:sha384$2,sha512:sha512$2,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var algos,hasRequiredAlgos;function requireAlgos(){return hasRequiredAlgos?algos:(hasRequiredAlgos=1,algos=require$$6)}var browser$7={},precondition,hasRequiredPrecondition,defaultEncoding_1,hasRequiredDefaultEncoding,toBuffer_1$1,hasRequiredToBuffer$1;function requirePrecondition(){if(hasRequiredPrecondition)return precondition;hasRequiredPrecondition=1;var e=isFinite,r=Math.pow(2,30)-1;return precondition=function(o,i){if(typeof o!="number")throw new TypeError("Iterations not a number");if(o<0||!e(o))throw new TypeError("Bad iterations");if(typeof i!="number")throw new TypeError("Key length not a number");if(i<0||i>r||i!=i)throw new TypeError("Bad key length");return i+0}}function requireDefaultEncoding(){if(hasRequiredDefaultEncoding)return defaultEncoding_1;var e;return hasRequiredDefaultEncoding=1,commonjsGlobal.process&&commonjsGlobal.process.browser?e="utf-8":commonjsGlobal.process&&commonjsGlobal.process.version?e=parseInt(process$1.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":e="utf-8",defaultEncoding_1=e}function requireToBuffer$1(){if(hasRequiredToBuffer$1)return toBuffer_1$1;hasRequiredToBuffer$1=1;var e=requireSafeBuffer$1().Buffer,r=requireToBuffer$2(),o=typeof Uint8Array<"u",i=o&&typeof ArrayBuffer<"u"&&ArrayBuffer.isView;return toBuffer_1$1=function(n,h){if(typeof n=="string"||e.isBuffer(n)||o&&n instanceof Uint8Array||i&&i(n))return r(n,h);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}}var readableBrowser={exports:{}},processNextickArgs={exports:{}},hasRequiredProcessNextickArgs,isarray,hasRequiredIsarray,streamBrowser,hasRequiredStreamBrowser;function requireProcessNextickArgs(){return hasRequiredProcessNextickArgs||(hasRequiredProcessNextickArgs=1,process$1===void 0||!process$1.version||process$1.version.indexOf("v0.")===0||process$1.version.indexOf("v1.")===0&&process$1.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick:function(e,r,o,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var n,h,f=arguments.length;switch(f){case 0:case 1:return process$1.nextTick(e);case 2:return process$1.nextTick((function(){e.call(null,r)}));case 3:return process$1.nextTick((function(){e.call(null,r,o)}));case 4:return process$1.nextTick((function(){e.call(null,r,o,i)}));default:for(n=new Array(f-1),h=0;h<n.length;)n[h++]=arguments[h];return process$1.nextTick((function(){e.apply(null,n)}))}}}:processNextickArgs.exports=process$1),processNextickArgs.exports}function requireIsarray(){if(hasRequiredIsarray)return isarray;hasRequiredIsarray=1;var e={}.toString;return isarray=Array.isArray||function(r){return e.call(r)=="[object Array]"}}function requireStreamBrowser(){return hasRequiredStreamBrowser?streamBrowser:(hasRequiredStreamBrowser=1,streamBrowser=requireEvents().EventEmitter)}var safeBuffer={exports:{}},hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,(function(e,r){var o=requireDist(),i=o.Buffer;function n(f,t){for(var a in f)t[a]=f[a]}function h(f,t,a){return i(f,t,a)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=o:(n(o,r),r.Buffer=h),n(i,h),h.from=function(f,t,a){if(typeof f=="number")throw new TypeError("Argument must not be a number");return i(f,t,a)},h.alloc=function(f,t,a){if(typeof f!="number")throw new TypeError("Argument must be a number");var s=i(f);return t!==void 0?typeof a=="string"?s.fill(t,a):s.fill(t):s.fill(0),s},h.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return i(f)},h.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(f)}})(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var util={},hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util;function e(r){return Object.prototype.toString.call(r)}return hasRequiredUtil=1,util.isArray=function(r){return Array.isArray?Array.isArray(r):e(r)==="[object Array]"},util.isBoolean=function(r){return typeof r=="boolean"},util.isNull=function(r){return r===null},util.isNullOrUndefined=function(r){return r==null},util.isNumber=function(r){return typeof r=="number"},util.isString=function(r){return typeof r=="string"},util.isSymbol=function(r){return typeof r=="symbol"},util.isUndefined=function(r){return r===void 0},util.isRegExp=function(r){return e(r)==="[object RegExp]"},util.isObject=function(r){return typeof r=="object"&&r!==null},util.isDate=function(r){return e(r)==="[object Date]"},util.isError=function(r){return e(r)==="[object Error]"||r instanceof Error},util.isFunction=function(r){return typeof r=="function"},util.isPrimitive=function(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||r===void 0},util.isBuffer=requireDist().Buffer.isBuffer,util}var BufferList={exports:{}},hasRequiredBufferList,destroy_1,hasRequiredDestroy,_stream_writable,hasRequired_stream_writable,_stream_duplex,hasRequired_stream_duplex,_stream_readable,hasRequired_stream_readable,_stream_transform,hasRequired_stream_transform,_stream_passthrough,hasRequired_stream_passthrough,hasRequiredReadableBrowser,hashBase,hasRequiredHashBase,ripemd160$2,hasRequiredRipemd160$1,toBuffer_1,hasRequiredToBuffer,syncBrowser,hasRequiredSyncBrowser,async,hasRequiredAsync,hasRequiredBrowser$7;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,(function(e){var r=requireSafeBuffer().Buffer,o=requireUtil$1();e.exports=(function(){function i(){(function(n,h){if(!(n instanceof h))throw new TypeError("Cannot call a class as a function")})(this,i),this.head=null,this.tail=null,this.length=0}return i.prototype.push=function(n){var h={data:n,next:null};this.length>0?this.tail.next=h:this.head=h,this.tail=h,++this.length},i.prototype.unshift=function(n){var h={data:n,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length},i.prototype.shift=function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(n){if(this.length===0)return"";for(var h=this.head,f=""+h.data;h=h.next;)f+=n+h.data;return f},i.prototype.concat=function(n){if(this.length===0)return r.alloc(0);for(var h,f,t,a=r.allocUnsafe(n>>>0),s=this.head,u=0;s;)h=s.data,f=a,t=u,h.copy(f,t),u+=s.data.length,s=s.next;return a},i})(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var i=o.inspect({length:this.length});return this.constructor.name+" "+i})})(BufferList)),BufferList.exports}function requireDestroy(){if(hasRequiredDestroy)return destroy_1;hasRequiredDestroy=1;var e=requireProcessNextickArgs();function r(o,i){o.emit("error",i)}return destroy_1={destroy:function(o,i){var n=this,h=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return h||f?(i?i(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(r,this,o)):e.nextTick(r,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,(function(t){!i&&t?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,e.nextTick(r,n,t)):e.nextTick(r,n,t):i&&i(t)})),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 require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var e=requireProcessNextickArgs();function r(q){var w=this;this.next=null,this.entry=null,this.finish=function(){(function(x,P,O){var N=x.entry;for(x.entry=null;N;){var v=N.callback;P.pendingcb--,v(O),N=N.next}P.corkedRequestsFree.next=x})(w,q)}}_stream_writable=d;var o,i=!process$1.browser&&["v0.10","v0.9."].indexOf(process$1.version.slice(0,5))>-1?setImmediate:e.nextTick;d.WritableState=l;var n=Object.create(requireUtil());n.inherits=requireInherits_browser();var h={deprecate:requireBrowser$a()},f=requireStreamBrowser(),t=requireSafeBuffer().Buffer,a=(commonjsGlobal!==void 0?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},s,u=requireDestroy();function c(){}function l(q,w){o=o||require_stream_duplex(),q=q||{};var x=w instanceof o;this.objectMode=!!q.objectMode,x&&(this.objectMode=this.objectMode||!!q.writableObjectMode);var P=q.highWaterMark,O=q.writableHighWaterMark,N=this.objectMode?16:16384;this.highWaterMark=P||P===0?P:x&&(O||O===0)?O:N,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 v=q.decodeStrings===!1;this.decodeStrings=!v,this.defaultEncoding=q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(B){(function($,R){var g=$._writableState,b=g.sync,k=g.writecb;if((function(F){F.writing=!1,F.writecb=null,F.length-=F.writelen,F.writelen=0})(g),R)(function(F,T,U,D,I){--T.pendingcb,U?(e.nextTick(I,D),e.nextTick(E,F,T),F._writableState.errorEmitted=!0,F.emit("error",D)):(I(D),F._writableState.errorEmitted=!0,F.emit("error",D),E(F,T))})($,g,b,R,k);else{var L=_(g);L||g.corked||g.bufferProcessing||!g.bufferedRequest||m($,g),b?i(y,$,g,L,k):y($,g,L,k)}})(w,B)},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 r(this)}function d(q){if(o=o||require_stream_duplex(),!(s.call(d,this)||this instanceof o))return new d(q);this._writableState=new l(q,this),this.writable=!0,q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final)),f.call(this)}function p(q,w,x,P,O,N,v){w.writelen=P,w.writecb=v,w.writing=!0,w.sync=!0,x?q._writev(O,w.onwrite):q._write(O,N,w.onwrite),w.sync=!1}function y(q,w,x,P){x||(function(O,N){N.length===0&&N.needDrain&&(N.needDrain=!1,O.emit("drain"))})(q,w),w.pendingcb--,P(),E(q,w)}function m(q,w){w.bufferProcessing=!0;var x=w.bufferedRequest;if(q._writev&&x&&x.next){var P=w.bufferedRequestCount,O=new Array(P),N=w.corkedRequestsFree;N.entry=x;for(var v=0,B=!0;x;)O[v]=x,x.isBuf||(B=!1),x=x.next,v+=1;O.allBuffers=B,p(q,w,!0,w.length,O,"",N.finish),w.pendingcb++,w.lastBufferedRequest=null,N.next?(w.corkedRequestsFree=N.next,N.next=null):w.corkedRequestsFree=new r(w),w.bufferedRequestCount=0}else{for(;x;){var $=x.chunk,R=x.encoding,g=x.callback;if(p(q,w,!1,w.objectMode?1:$.length,$,R,g),x=x.next,w.bufferedRequestCount--,w.writing)break}x===null&&(w.lastBufferedRequest=null)}w.bufferedRequest=x,w.bufferProcessing=!1}function _(q){return q.ending&&q.length===0&&q.bufferedRequest===null&&!q.finished&&!q.writing}function A(q,w){q._final((function(x){w.pendingcb--,x&&q.emit("error",x),w.prefinished=!0,q.emit("prefinish"),E(q,w)}))}function E(q,w){var x=_(w);return x&&((function(P,O){O.prefinished||O.finalCalled||(typeof P._final=="function"?(O.pendingcb++,O.finalCalled=!0,e.nextTick(A,P,O)):(O.prefinished=!0,P.emit("prefinish")))})(q,w),w.pendingcb===0&&(w.finished=!0,q.emit("finish"))),x}return n.inherits(d,f),l.prototype.getBuffer=function(){for(var q=this.bufferedRequest,w=[];q;)w.push(q),q=q.next;return w},(function(){try{Object.defineProperty(l.prototype,"buffer",{get:h.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(d,Symbol.hasInstance,{value:function(q){return!!s.call(this,q)||this===d&&q&&q._writableState instanceof l}})):s=function(q){return q instanceof this},d.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},d.prototype.write=function(q,w,x){var P,O=this._writableState,N=!1,v=!O.objectMode&&(P=q,t.isBuffer(P)||P instanceof a);return v&&!t.isBuffer(q)&&(q=(function(B){return t.from(B)})(q)),typeof w=="function"&&(x=w,w=null),v?w="buffer":w||(w=O.defaultEncoding),typeof x!="function"&&(x=c),O.ended?(function(B,$){var R=new Error("write after end");B.emit("error",R),e.nextTick($,R)})(this,x):(v||(function(B,$,R,g){var b=!0,k=!1;return R===null?k=new TypeError("May not write null values to stream"):typeof R=="string"||R===void 0||$.objectMode||(k=new TypeError("Invalid non-string/buffer chunk")),k&&(B.emit("error",k),e.nextTick(g,k),b=!1),b})(this,O,q,x))&&(O.pendingcb++,N=(function(B,$,R,g,b,k){if(!R){var L=(function(D,I,j){return D.objectMode||D.decodeStrings===!1||typeof I!="string"||(I=t.from(I,j)),I})($,g,b);g!==L&&(R=!0,b="buffer",g=L)}var F=$.objectMode?1:g.length;$.length+=F;var T=$.length<$.highWaterMark;if(T||($.needDrain=!0),$.writing||$.corked){var U=$.lastBufferedRequest;$.lastBufferedRequest={chunk:g,encoding:b,isBuf:R,callback:k,next:null},U?U.next=$.lastBufferedRequest:$.bufferedRequest=$.lastBufferedRequest,$.bufferedRequestCount+=1}else p(B,$,!1,F,g,b,k);return T})(this,O,v,q,w,x)),N},d.prototype.cork=function(){this._writableState.corked++},d.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,q.writing||q.corked||q.bufferProcessing||!q.bufferedRequest||m(this,q))},d.prototype.setDefaultEncoding=function(q){if(typeof q=="string"&&(q=q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((q+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+q);return this._writableState.defaultEncoding=q,this},Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),d.prototype._write=function(q,w,x){x(new Error("_write() is not implemented"))},d.prototype._writev=null,d.prototype.end=function(q,w,x){var P=this._writableState;typeof q=="function"?(x=q,q=null,w=null):typeof w=="function"&&(x=w,w=null),q!=null&&this.write(q,w),P.corked&&(P.corked=1,this.uncork()),P.ending||(function(O,N,v){N.ending=!0,E(O,N),v&&(N.finished?e.nextTick(v):O.once("finish",v)),N.ended=!0,O.writable=!1})(this,P,x)},Object.defineProperty(d.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(q){this._writableState&&(this._writableState.destroyed=q)}}),d.prototype.destroy=u.destroy,d.prototype._undestroy=u.undestroy,d.prototype._destroy=function(q,w){this.end(),w(q)},_stream_writable}function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var e=requireProcessNextickArgs(),r=Object.keys||function(c){var l=[];for(var d in c)l.push(d);return l};_stream_duplex=a;var o=Object.create(requireUtil());o.inherits=requireInherits_browser();var i=require_stream_readable(),n=require_stream_writable();o.inherits(a,i);for(var h=r(n.prototype),f=0;f<h.length;f++){var t=h[f];a.prototype[t]||(a.prototype[t]=n.prototype[t])}function a(c){if(!(this instanceof a))return new a(c);i.call(this,c),n.call(this,c),c&&c.readable===!1&&(this.readable=!1),c&&c.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,c&&c.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",s)}function s(){this.allowHalfOpen||this._writableState.ended||e.nextTick(u,this)}function u(c){c.end()}return Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),a.prototype._destroy=function(c,l){this.push(null),this.end(),e.nextTick(l,c)},_stream_duplex}function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;hasRequired_stream_readable=1;var e=requireProcessNextickArgs();_stream_readable=y;var r,o=requireIsarray();y.ReadableState=p,requireEvents().EventEmitter;var i=function(b,k){return b.listeners(k).length},n=requireStreamBrowser(),h=requireSafeBuffer().Buffer,f=(commonjsGlobal!==void 0?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},t=Object.create(requireUtil());t.inherits=requireInherits_browser();var a=requireUtil$1(),s=void 0;s=a&&a.debuglog?a.debuglog("stream"):function(){};var u,c=requireBufferList(),l=requireDestroy();t.inherits(y,n);var d=["error","close","destroy","pause","resume"];function p(b,k){b=b||{};var L=k instanceof(r=r||require_stream_duplex());this.objectMode=!!b.objectMode,L&&(this.objectMode=this.objectMode||!!b.readableObjectMode);var F=b.highWaterMark,T=b.readableHighWaterMark,U=this.objectMode?16:16384;this.highWaterMark=F||F===0?F:L&&(T||T===0)?T:U,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new c,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=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(u||(u=requireString_decoder().StringDecoder),this.decoder=new u(b.encoding),this.encoding=b.encoding)}function y(b){if(r=r||require_stream_duplex(),!(this instanceof y))return new y(b);this._readableState=new p(b,this),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),n.call(this)}function m(b,k,L,F,T){var U,D=b._readableState;return k===null?(D.reading=!1,(function(I,j){if(!j.ended){if(j.decoder){var H=j.decoder.end();H&&H.length&&(j.buffer.push(H),j.length+=j.objectMode?1:H.length)}j.ended=!0,q(I)}})(b,D)):(T||(U=(function(I,j){var H;K=j,h.isBuffer(K)||K instanceof f||typeof j=="string"||j===void 0||I.objectMode||(H=new TypeError("Invalid non-string/buffer chunk"));var K;return H})(D,k)),U?b.emit("error",U):D.objectMode||k&&k.length>0?(typeof k=="string"||D.objectMode||Object.getPrototypeOf(k)===h.prototype||(k=(function(I){return h.from(I)})(k)),F?D.endEmitted?b.emit("error",new Error("stream.unshift() after end event")):_(b,D,k,!0):D.ended?b.emit("error",new Error("stream.push() after EOF")):(D.reading=!1,D.decoder&&!L?(k=D.decoder.write(k),D.objectMode||k.length!==0?_(b,D,k,!1):x(b,D)):_(b,D,k,!1))):F||(D.reading=!1)),(function(I){return!I.ended&&(I.needReadable||I.length<I.highWaterMark||I.length===0)})(D)}function _(b,k,L,F){k.flowing&&k.length===0&&!k.sync?(b.emit("data",L),b.read(0)):(k.length+=k.objectMode?1:L.length,F?k.buffer.unshift(L):k.buffer.push(L),k.needReadable&&q(b)),x(b,k)}Object.defineProperty(y.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(b){this._readableState&&(this._readableState.destroyed=b)}}),y.prototype.destroy=l.destroy,y.prototype._undestroy=l.undestroy,y.prototype._destroy=function(b,k){this.push(null),k(b)},y.prototype.push=function(b,k){var L,F=this._readableState;return F.objectMode?L=!0:typeof b=="string"&&((k=k||F.defaultEncoding)!==F.encoding&&(b=h.from(b,k),k=""),L=!0),m(this,b,k,!1,L)},y.prototype.unshift=function(b){return m(this,b,null,!0,!1)},y.prototype.isPaused=function(){return this._readableState.flowing===!1},y.prototype.setEncoding=function(b){return u||(u=requireString_decoder().StringDecoder),this._readableState.decoder=new u(b),this._readableState.encoding=b,this};var A=8388608;function E(b,k){return b<=0||k.length===0&&k.ended?0:k.objectMode?1:b!=b?k.flowing&&k.length?k.buffer.head.data.length:k.length:(b>k.highWaterMark&&(k.highWaterMark=(function(L){return L>=A?L=A:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L})(b)),b<=k.length?b:k.ended?k.length:(k.needReadable=!0,0))}function q(b){var k=b._readableState;k.needReadable=!1,k.emittedReadable||(s("emitReadable",k.flowing),k.emittedReadable=!0,k.sync?e.nextTick(w,b):w(b))}function w(b){s("emit readable"),b.emit("readable"),v(b)}function x(b,k){k.readingMore||(k.readingMore=!0,e.nextTick(P,b,k))}function P(b,k){for(var L=k.length;!k.reading&&!k.flowing&&!k.ended&&k.length<k.highWaterMark&&(s("maybeReadMore read 0"),b.read(0),L!==k.length);)L=k.length;k.readingMore=!1}function O(b){s("readable nexttick read 0"),b.read(0)}function N(b,k){k.reading||(s("resume read 0"),b.read(0)),k.resumeScheduled=!1,k.awaitDrain=0,b.emit("resume"),v(b),k.flowing&&!k.reading&&b.read(0)}function v(b){var k=b._readableState;for(s("flow",k.flowing);k.flowing&&b.read()!==null;);}function B(b,k){return k.length===0?null:(k.objectMode?L=k.buffer.shift():!b||b>=k.length?(L=k.decoder?k.buffer.join(""):k.buffer.length===1?k.buffer.head.data:k.buffer.concat(k.length),k.buffer.clear()):L=(function(F,T,U){var D;return F<T.head.data.length?(D=T.head.data.slice(0,F),T.head.data=T.head.data.slice(F)):D=F===T.head.data.length?T.shift():U?(function(I,j){var H=j.head,K=1,ee=H.data;for(I-=ee.length;H=H.next;){var Z=H.data,V=I>Z.length?Z.length:I;if(V===Z.length?ee+=Z:ee+=Z.slice(0,I),(I-=V)===0){V===Z.length?(++K,H.next?j.head=H.next:j.head=j.tail=null):(j.head=H,H.data=Z.slice(V));break}++K}return j.length-=K,ee})(F,T):(function(I,j){var H=h.allocUnsafe(I),K=j.head,ee=1;for(K.data.copy(H),I-=K.data.length;K=K.next;){var Z=K.data,V=I>Z.length?Z.length:I;if(Z.copy(H,H.length-I,0,V),(I-=V)===0){V===Z.length?(++ee,K.next?j.head=K.next:j.head=j.tail=null):(j.head=K,K.data=Z.slice(V));break}++ee}return j.length-=ee,H})(F,T),D})(b,k.buffer,k.decoder),L);var L}function $(b){var k=b._readableState;if(k.length>0)throw new Error('"endReadable()" called on non-empty stream');k.endEmitted||(k.ended=!0,e.nextTick(R,k,b))}function R(b,k){b.endEmitted||b.length!==0||(b.endEmitted=!0,k.readable=!1,k.emit("end"))}function g(b,k){for(var L=0,F=b.length;L<F;L++)if(b[L]===k)return L;return-1}return y.prototype.read=function(b){s("read",b),b=parseInt(b,10);var k=this._readableState,L=b;if(b!==0&&(k.emittedReadable=!1),b===0&&k.needReadable&&(k.length>=k.highWaterMark||k.ended))return s("read: emitReadable",k.length,k.ended),k.length===0&&k.ended?$(this):q(this),null;if((b=E(b,k))===0&&k.ended)return k.length===0&&$(this),null;var F,T=k.needReadable;return s("need readable",T),(k.length===0||k.length-b<k.highWaterMark)&&s("length less than watermark",T=!0),k.ended||k.reading?s("reading or ended",T=!1):T&&(s("do read"),k.reading=!0,k.sync=!0,k.length===0&&(k.needReadable=!0),this._read(k.highWaterMark),k.sync=!1,k.reading||(b=E(L,k))),(F=b>0?B(b,k):null)===null?(k.needReadable=!0,b=0):k.length-=b,k.length===0&&(k.ended||(k.needReadable=!0),L!==b&&k.ended&&$(this)),F!==null&&this.emit("data",F),F},y.prototype._read=function(b){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(b,k){var L=this,F=this._readableState;switch(F.pipesCount){case 0:F.pipes=b;break;case 1:F.pipes=[F.pipes,b];break;default:F.pipes.push(b)}F.pipesCount+=1,s("pipe count=%d opts=%j",F.pipesCount,k);var T=(!k||k.end!==!1)&&b!==process$1.stdout&&b!==process$1.stderr?D:Q;function U(X,J){s("onunpipe"),X===L&&J&&J.hasUnpiped===!1&&(J.hasUnpiped=!0,s("cleanup"),b.removeListener("close",Z),b.removeListener("finish",V),b.removeListener("drain",I),b.removeListener("error",ee),b.removeListener("unpipe",U),L.removeListener("end",D),L.removeListener("end",Q),L.removeListener("data",K),j=!0,!F.awaitDrain||b._writableState&&!b._writableState.needDrain||I())}function D(){s("onend"),b.end()}F.endEmitted?e.nextTick(T):L.once("end",T),b.on("unpipe",U);var I=(function(X){return function(){var J=X._readableState;s("pipeOnDrain",J.awaitDrain),J.awaitDrain&&J.awaitDrain--,J.awaitDrain===0&&i(X,"data")&&(J.flowing=!0,v(X))}})(L);b.on("drain",I);var j=!1,H=!1;function K(X){s("ondata"),H=!1,b.write(X)!==!1||H||((F.pipesCount===1&&F.pipes===b||F.pipesCount>1&&g(F.pipes,b)!==-1)&&!j&&(s("false write response, pause",F.awaitDrain),F.awaitDrain++,H=!0),L.pause())}function ee(X){s("onerror",X),Q(),b.removeListener("error",ee),i(b,"error")===0&&b.emit("error",X)}function Z(){b.removeListener("finish",V),Q()}function V(){s("onfinish"),b.removeListener("close",Z),Q()}function Q(){s("unpipe"),L.unpipe(b)}return L.on("data",K),(function(X,J,oe){if(typeof X.prependListener=="function")return X.prependListener(J,oe);X._events&&X._events[J]?o(X._events[J])?X._events[J].unshift(oe):X._events[J]=[oe,X._events[J]]:X.on(J,oe)})(b,"error",ee),b.once("close",Z),b.once("finish",V),b.emit("pipe",L),F.flowing||(s("pipe resume"),L.resume()),b},y.prototype.unpipe=function(b){var k=this._readableState,L={hasUnpiped:!1};if(k.pipesCount===0)return this;if(k.pipesCount===1)return b&&b!==k.pipes||(b||(b=k.pipes),k.pipes=null,k.pipesCount=0,k.flowing=!1,b&&b.emit("unpipe",this,L)),this;if(!b){var F=k.pipes,T=k.pipesCount;k.pipes=null,k.pipesCount=0,k.flowing=!1;for(var U=0;U<T;U++)F[U].emit("unpipe",this,{hasUnpiped:!1});return this}var D=g(k.pipes,b);return D===-1||(k.pipes.splice(D,1),k.pipesCount-=1,k.pipesCount===1&&(k.pipes=k.pipes[0]),b.emit("unpipe",this,L)),this},y.prototype.on=function(b,k){var L=n.prototype.on.call(this,b,k);if(b==="data")this._readableState.flowing!==!1&&this.resume();else if(b==="readable"){var F=this._readableState;F.endEmitted||F.readableListening||(F.readableListening=F.needReadable=!0,F.emittedReadable=!1,F.reading?F.length&&q(this):e.nextTick(O,this))}return L},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var b=this._readableState;return b.flowing||(s("resume"),b.flowing=!0,(function(k,L){L.resumeScheduled||(L.resumeScheduled=!0,e.nextTick(N,k,L))})(this,b)),this},y.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(b){var k=this,L=this._readableState,F=!1;for(var T in b.on("end",(function(){if(s("wrapped end"),L.decoder&&!L.ended){var D=L.decoder.end();D&&D.length&&k.push(D)}k.push(null)})),b.on("data",(function(D){s("wrapped data"),L.decoder&&(D=L.decoder.write(D)),L.objectMode&&D==null||(L.objectMode||D&&D.length)&&(k.push(D)||(F=!0,b.pause()))})),b)this[T]===void 0&&typeof b[T]=="function"&&(this[T]=(function(D){return function(){return b[D].apply(b,arguments)}})(T));for(var U=0;U<d.length;U++)b.on(d[U],this.emit.bind(this,d[U]));return this._read=function(D){s("wrapped _read",D),F&&(F=!1,b.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=B,_stream_readable}function require_stream_transform(){if(hasRequired_stream_transform)return _stream_transform;hasRequired_stream_transform=1,_stream_transform=i;var e=require_stream_duplex(),r=Object.create(requireUtil());function o(f,t){var a=this._transformState;a.transforming=!1;var s=a.writecb;if(!s)return this.emit("error",new Error("write callback called multiple times"));a.writechunk=null,a.writecb=null,t!=null&&this.push(t),s(f);var u=this._readableState;u.reading=!1,(u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}function i(f){if(!(this instanceof i))return new i(f);e.call(this,f),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",n)}function n(){var f=this;typeof this._flush=="function"?this._flush((function(t,a){h(f,t,a)})):h(this,null,null)}function h(f,t,a){if(t)return f.emit("error",t);if(a!=null&&f.push(a),f._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(f._transformState.transforming)throw new Error("Calling transform done when still transforming");return f.push(null)}return r.inherits=requireInherits_browser(),r.inherits(i,e),i.prototype.push=function(f,t){return this._transformState.needTransform=!1,e.prototype.push.call(this,f,t)},i.prototype._transform=function(f,t,a){throw new Error("_transform() is not implemented")},i.prototype._write=function(f,t,a){var s=this._transformState;if(s.writecb=a,s.writechunk=f,s.writeencoding=t,!s.transforming){var u=this._readableState;(s.needTransform||u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}},i.prototype._read=function(f){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},i.prototype._destroy=function(f,t){var a=this;e.prototype._destroy.call(this,f,(function(s){t(s),a.emit("close")}))},_stream_transform}function require_stream_passthrough(){if(hasRequired_stream_passthrough)return _stream_passthrough;hasRequired_stream_passthrough=1,_stream_passthrough=o;var e=require_stream_transform(),r=Object.create(requireUtil());function o(i){if(!(this instanceof o))return new o(i);e.call(this,i)}return r.inherits=requireInherits_browser(),r.inherits(o,e),o.prototype._transform=function(i,n,h){h(null,i)},_stream_passthrough}function requireReadableBrowser(){return hasRequiredReadableBrowser||(hasRequiredReadableBrowser=1,e=readableBrowser,r=readableBrowser.exports,(r=e.exports=require_stream_readable()).Stream=r,r.Readable=r,r.Writable=require_stream_writable(),r.Duplex=require_stream_duplex(),r.Transform=require_stream_transform(),r.PassThrough=require_stream_passthrough()),readableBrowser.exports;var e,r}function requireHashBase(){if(hasRequiredHashBase)return hashBase;hasRequiredHashBase=1;var e=requireSafeBuffer$1().Buffer,r=requireToBuffer$1(),o=requireReadableBrowser().Transform;function i(n){o.call(this),this._block=e.allocUnsafe(n),this._blockSize=n,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return requireInherits_browser()(i,o),i.prototype._transform=function(n,h,f){var t=null;try{this.update(n,h)}catch(a){t=a}f(t)},i.prototype._flush=function(n){var h=null;try{this.push(this.digest())}catch(f){h=f}n(h)},i.prototype.update=function(n,h){if(this._finalized)throw new Error("Digest already called");for(var f=r(n,h),t=this._block,a=0;this._blockOffset+f.length-a>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)t[s]=f[a],s+=1,a+=1;this._update(),this._blockOffset=0}for(;a<f.length;)t[this._blockOffset]=f[a],this._blockOffset+=1,a+=1;for(var u=0,c=8*f.length;c>0;++u)this._length[u]+=c,(c=this._length[u]/4294967296|0)>0&&(this._length[u]-=4294967296*c);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(n){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var h=this._digest();n!==void 0&&(h=h.toString(n)),this._block.fill(0),this._blockOffset=0;for(var f=0;f<4;++f)this._length[f]=0;return h},i.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase=i}function requireRipemd160$1(){if(hasRequiredRipemd160$1)return ripemd160$2;hasRequiredRipemd160$1=1;var e=requireDist().Buffer,r=requireInherits_browser(),o=requireHashBase(),i=new Array(16),n=[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],h=[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],f=[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],t=[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],a=[0,1518500249,1859775393,2400959708,2840853838],s=[1352829926,1548603684,1836072691,2053994217,0];function u(_,A){return _<<A|_>>>32-A}function c(_,A,E,q,w,x,P,O){return u(_+(A^E^q)+x+P|0,O)+w|0}function l(_,A,E,q,w,x,P,O){return u(_+(A&E|~A&q)+x+P|0,O)+w|0}function d(_,A,E,q,w,x,P,O){return u(_+((A|~E)^q)+x+P|0,O)+w|0}function p(_,A,E,q,w,x,P,O){return u(_+(A&q|E&~q)+x+P|0,O)+w|0}function y(_,A,E,q,w,x,P,O){return u(_+(A^(E|~q))+x+P|0,O)+w|0}function m(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}return r(m,o),m.prototype._update=function(){for(var _=i,A=0;A<16;++A)_[A]=this._block.readInt32LE(4*A);for(var E=0|this._a,q=0|this._b,w=0|this._c,x=0|this._d,P=0|this._e,O=0|this._a,N=0|this._b,v=0|this._c,B=0|this._d,$=0|this._e,R=0;R<80;R+=1){var g,b;R<16?(g=c(E,q,w,x,P,_[n[R]],a[0],f[R]),b=y(O,N,v,B,$,_[h[R]],s[0],t[R])):R<32?(g=l(E,q,w,x,P,_[n[R]],a[1],f[R]),b=p(O,N,v,B,$,_[h[R]],s[1],t[R])):R<48?(g=d(E,q,w,x,P,_[n[R]],a[2],f[R]),b=d(O,N,v,B,$,_[h[R]],s[2],t[R])):R<64?(g=p(E,q,w,x,P,_[n[R]],a[3],f[R]),b=l(O,N,v,B,$,_[h[R]],s[3],t[R])):(g=y(E,q,w,x,P,_[n[R]],a[4],f[R]),b=c(O,N,v,B,$,_[h[R]],s[4],t[R])),E=P,P=x,x=u(w,10),w=q,q=g,O=$,$=B,B=u(v,10),v=N,N=b}var k=this._b+w+B|0;this._b=this._c+x+$|0,this._c=this._d+P+O|0,this._d=this._e+E+N|0,this._e=this._a+q+v|0,this._a=k},m.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 _=e.alloc?e.alloc(20):new e(20);return _.writeInt32LE(this._a,0),_.writeInt32LE(this._b,4),_.writeInt32LE(this._c,8),_.writeInt32LE(this._d,12),_.writeInt32LE(this._e,16),_},ripemd160$2=m}function requireToBuffer(){if(hasRequiredToBuffer)return toBuffer_1;hasRequiredToBuffer=1;var e=requireSafeBuffer$1().Buffer,r=requireToBuffer$2(),o=typeof Uint8Array<"u",i=o&&typeof ArrayBuffer<"u"&&ArrayBuffer.isView;return toBuffer_1=function(n,h,f){if(typeof n=="string"||e.isBuffer(n)||o&&n instanceof Uint8Array||i&&i(n))return r(n,h);throw new TypeError(f+" must be a string, a Buffer, a Uint8Array, or a DataView")}}function requireSyncBrowser(){if(hasRequiredSyncBrowser)return syncBrowser;hasRequiredSyncBrowser=1;var e=requireMd5$1(),r=requireRipemd160$1(),o=requireSha_js(),i=requireSafeBuffer$1().Buffer,n=requirePrecondition(),h=requireDefaultEncoding(),f=requireToBuffer(),t=i.alloc(128),a={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},s={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function u(l){return new r().update(l).digest()}function c(l,d,p){var y=(function(w){return w==="rmd160"||w==="ripemd160"?u:w==="md5"?e:function(x){return o(w).update(x).digest()}})(l),m=l==="sha512"||l==="sha384"?128:64;d.length>m?d=y(d):d.length<m&&(d=i.concat([d,t],m));for(var _=i.allocUnsafe(m+a[l]),A=i.allocUnsafe(m+a[l]),E=0;E<m;E++)_[E]=54^d[E],A[E]=92^d[E];var q=i.allocUnsafe(m+p+4);_.copy(q,0,0,m),this.ipad1=q,this.ipad2=_,this.opad=A,this.alg=l,this.blocksize=m,this.hash=y,this.size=a[l]}return c.prototype.run=function(l,d){return l.copy(d,this.blocksize),this.hash(d).copy(this.opad,this.blocksize),this.hash(this.opad)},syncBrowser=function(l,d,p,y,m){y=n(p,y),l=f(l,h,"Password"),d=f(d,h,"Salt");var _=(m||"sha1").toLowerCase(),A=s[_]||_,E=a[A];if(typeof E!="number"||!E)throw new TypeError("Digest algorithm not supported: "+m);var q=new c(A,l,d.length),w=i.allocUnsafe(y),x=i.allocUnsafe(d.length+4);d.copy(x,0,0,d.length);for(var P=0,O=E,N=Math.ceil(y/O),v=1;v<=N;v++){x.writeUInt32BE(v,d.length);for(var B=q.run(x,q.ipad1),$=B,R=1;R<p;R++){$=q.run($,q.ipad2);for(var g=0;g<O;g++)B[g]^=$[g]}B.copy(w,P),P+=O}return w},syncBrowser}function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var e,r,o=requireSafeBuffer$1().Buffer,i=requirePrecondition(),n=requireDefaultEncoding(),h=requireSyncBrowser(),f=requireToBuffer(),t=commonjsGlobal.crypto&&commonjsGlobal.crypto.subtle,a={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},s=[];function u(){return r||(r=commonjsGlobal.process&&commonjsGlobal.process.nextTick?commonjsGlobal.process.nextTick:commonjsGlobal.queueMicrotask?commonjsGlobal.queueMicrotask:commonjsGlobal.setImmediate?commonjsGlobal.setImmediate:commonjsGlobal.setTimeout)}function c(l,d,p,y,m){return t.importKey("raw",l,{name:"PBKDF2"},!1,["deriveBits"]).then((function(_){return t.deriveBits({name:"PBKDF2",salt:d,iterations:p,hash:{name:m}},_,y<<3)})).then((function(_){return o.from(_)}))}return async=function(l,d,p,y,m,_){if(typeof m=="function"&&(_=m,m=void 0),y=i(p,y),l=f(l,n,"Password"),d=f(d,n,"Salt"),typeof _!="function")throw new Error("No callback provided to pbkdf2");var A=a[(m=m||"sha1").toLowerCase()];A&&typeof commonjsGlobal.Promise=="function"?(function(E,q){E.then((function(w){u()((function(){q(null,w)}))}),(function(w){u()((function(){q(w)}))}))})((function(E){if(commonjsGlobal.process&&!commonjsGlobal.process.browser||!t||!t.importKey||!t.deriveBits)return Promise.resolve(!1);if(s[E]!==void 0)return s[E];var q=c(e=e||o.alloc(8),e,10,128,E).then((function(){return!0}),(function(){return!1}));return s[E]=q,q})(A).then((function(E){return E?c(l,d,p,y,A):h(l,d,p,y,m)})),_):u()((function(){var E;try{E=h(l,d,p,y,m)}catch(q){return void _(q)}_(null,E)}))}}function requireBrowser$7(){return hasRequiredBrowser$7||(hasRequiredBrowser$7=1,browser$7.pbkdf2=requireAsync(),browser$7.pbkdf2Sync=requireSyncBrowser()),browser$7}var browser$6={},des$1={},utils$3={},hasRequiredUtils$3,minimalisticAssert,hasRequiredMinimalisticAssert,cipher,hasRequiredCipher,des,hasRequiredDes$1;function requireUtils$3(){if(hasRequiredUtils$3)return utils$3;hasRequiredUtils$3=1,utils$3.readUInt32BE=function(i,n){return(i[0+n]<<24|i[1+n]<<16|i[2+n]<<8|i[3+n])>>>0},utils$3.writeUInt32BE=function(i,n,h){i[0+h]=n>>>24,i[1+h]=n>>>16&255,i[2+h]=n>>>8&255,i[3+h]=255&n},utils$3.ip=function(i,n,h,f){for(var t=0,a=0,s=6;s>=0;s-=2){for(var u=0;u<=24;u+=8)t<<=1,t|=n>>>u+s&1;for(u=0;u<=24;u+=8)t<<=1,t|=i>>>u+s&1}for(s=6;s>=0;s-=2){for(u=1;u<=25;u+=8)a<<=1,a|=n>>>u+s&1;for(u=1;u<=25;u+=8)a<<=1,a|=i>>>u+s&1}h[f+0]=t>>>0,h[f+1]=a>>>0},utils$3.rip=function(i,n,h,f){for(var t=0,a=0,s=0;s<4;s++)for(var u=24;u>=0;u-=8)t<<=1,t|=n>>>u+s&1,t<<=1,t|=i>>>u+s&1;for(s=4;s<8;s++)for(u=24;u>=0;u-=8)a<<=1,a|=n>>>u+s&1,a<<=1,a|=i>>>u+s&1;h[f+0]=t>>>0,h[f+1]=a>>>0},utils$3.pc1=function(i,n,h,f){for(var t=0,a=0,s=7;s>=5;s--){for(var u=0;u<=24;u+=8)t<<=1,t|=n>>u+s&1;for(u=0;u<=24;u+=8)t<<=1,t|=i>>u+s&1}for(u=0;u<=24;u+=8)t<<=1,t|=n>>u+s&1;for(s=1;s<=3;s++){for(u=0;u<=24;u+=8)a<<=1,a|=n>>u+s&1;for(u=0;u<=24;u+=8)a<<=1,a|=i>>u+s&1}for(u=0;u<=24;u+=8)a<<=1,a|=i>>u+s&1;h[f+0]=t>>>0,h[f+1]=a>>>0},utils$3.r28shl=function(i,n){return i<<n&268435455|i>>>28-n};var e=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$3.pc2=function(i,n,h,f){for(var t=0,a=0,s=e.length>>>1,u=0;u<s;u++)t<<=1,t|=i>>>e[u]&1;for(u=s;u<e.length;u++)a<<=1,a|=n>>>e[u]&1;h[f+0]=t>>>0,h[f+1]=a>>>0},utils$3.expand=function(i,n,h){var f=0,t=0;f=(1&i)<<5|i>>>27;for(var a=23;a>=15;a-=4)f<<=6,f|=i>>>a&63;for(a=11;a>=3;a-=4)t|=i>>>a&63,t<<=6;t|=(31&i)<<1|i>>>31,n[h+0]=f>>>0,n[h+1]=t>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$3.substitute=function(i,n){for(var h=0,f=0;f<4;f++)h<<=4,h|=r[64*f+(i>>>18-6*f&63)];for(f=0;f<4;f++)h<<=4,h|=r[256+64*f+(n>>>18-6*f&63)];return h>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];return utils$3.permute=function(i){for(var n=0,h=0;h<o.length;h++)n<<=1,n|=i>>>o[h]&1;return n>>>0},utils$3.padSplit=function(i,n,h){for(var f=i.toString(2);f.length<n;)f="0"+f;for(var t=[],a=0;a<n;a+=h)t.push(f.slice(a,a+h));return t.join(" ")},utils$3}function requireMinimalisticAssert(){if(hasRequiredMinimalisticAssert)return minimalisticAssert;function e(r,o){if(!r)throw new Error(o||"Assertion failed")}return hasRequiredMinimalisticAssert=1,minimalisticAssert=e,e.equal=function(r,o,i){if(r!=o)throw new Error(i||"Assertion failed: "+r+" != "+o)},minimalisticAssert}function requireCipher(){if(hasRequiredCipher)return cipher;hasRequiredCipher=1;var e=requireMinimalisticAssert();function r(o){this.options=o,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=o.padding!==!1}return cipher=r,r.prototype._init=function(){},r.prototype.update=function(o){return o.length===0?[]:this.type==="decrypt"?this._updateDecrypt(o):this._updateEncrypt(o)},r.prototype._buffer=function(o,i){for(var n=Math.min(this.buffer.length-this.bufferOff,o.length-i),h=0;h<n;h++)this.buffer[this.bufferOff+h]=o[i+h];return this.bufferOff+=n,n},r.prototype._flushBuffer=function(o,i){return this._update(this.buffer,0,o,i),this.bufferOff=0,this.blockSize},r.prototype._updateEncrypt=function(o){var i=0,n=0,h=(this.bufferOff+o.length)/this.blockSize|0,f=new Array(h*this.blockSize);this.bufferOff!==0&&(i+=this._buffer(o,i),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(f,n)));for(var t=o.length-(o.length-i)%this.blockSize;i<t;i+=this.blockSize)this._update(o,i,f,n),n+=this.blockSize;for(;i<o.length;i++,this.bufferOff++)this.buffer[this.bufferOff]=o[i];return f},r.prototype._updateDecrypt=function(o){for(var i=0,n=0,h=Math.ceil((this.bufferOff+o.length)/this.blockSize)-1,f=new Array(h*this.blockSize);h>0;h--)i+=this._buffer(o,i),n+=this._flushBuffer(f,n);return i+=this._buffer(o,i),f},r.prototype.final=function(o){var i,n;return o&&(i=this.update(o)),n=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),i?i.concat(n):n},r.prototype._pad=function(o,i){if(i===0)return!1;for(;i<o.length;)o[i++]=0;return!0},r.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var o=new Array(this.blockSize);return this._update(this.buffer,0,o,0),o},r.prototype._unpad=function(o){return o},r.prototype._finalDecrypt=function(){e.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var o=new Array(this.blockSize);return this._flushBuffer(o,0),this._unpad(o)},cipher}function requireDes$1(){if(hasRequiredDes$1)return des;hasRequiredDes$1=1;var e=requireMinimalisticAssert(),r=requireInherits_browser(),o=requireUtils$3(),i=requireCipher();function n(){this.tmp=new Array(2),this.keys=null}function h(t){i.call(this,t);var a=new n;this._desState=a,this.deriveKeys(a,t.key)}r(h,i),des=h,h.create=function(t){return new h(t)};var f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return h.prototype.deriveKeys=function(t,a){t.keys=new Array(32),e.equal(a.length,this.blockSize,"Invalid key length");var s=o.readUInt32BE(a,0),u=o.readUInt32BE(a,4);o.pc1(s,u,t.tmp,0),s=t.tmp[0],u=t.tmp[1];for(var c=0;c<t.keys.length;c+=2){var l=f[c>>>1];s=o.r28shl(s,l),u=o.r28shl(u,l),o.pc2(s,u,t.keys,c)}},h.prototype._update=function(t,a,s,u){var c=this._desState,l=o.readUInt32BE(t,a),d=o.readUInt32BE(t,a+4);o.ip(l,d,c.tmp,0),l=c.tmp[0],d=c.tmp[1],this.type==="encrypt"?this._encrypt(c,l,d,c.tmp,0):this._decrypt(c,l,d,c.tmp,0),l=c.tmp[0],d=c.tmp[1],o.writeUInt32BE(s,l,u),o.writeUInt32BE(s,d,u+4)},h.prototype._pad=function(t,a){if(this.padding===!1)return!1;for(var s=t.length-a,u=a;u<t.length;u++)t[u]=s;return!0},h.prototype._unpad=function(t){if(this.padding===!1)return t;for(var a=t[t.length-1],s=t.length-a;s<t.length;s++)e.equal(t[s],a);return t.slice(0,t.length-a)},h.prototype._encrypt=function(t,a,s,u,c){for(var l=a,d=s,p=0;p<t.keys.length;p+=2){var y=t.keys[p],m=t.keys[p+1];o.expand(d,t.tmp,0),y^=t.tmp[0],m^=t.tmp[1];var _=o.substitute(y,m),A=d;d=(l^o.permute(_))>>>0,l=A}o.rip(d,l,u,c)},h.prototype._decrypt=function(t,a,s,u,c){for(var l=s,d=a,p=t.keys.length-2;p>=0;p-=2){var y=t.keys[p],m=t.keys[p+1];o.expand(l,t.tmp,0),y^=t.tmp[0],m^=t.tmp[1];var _=o.substitute(y,m),A=l;l=(d^o.permute(_))>>>0,d=A}o.rip(l,d,u,c)},des}var cbc$1={},hasRequiredCbc$1,ede,hasRequiredEde,hasRequiredDes,browserifyDes,hasRequiredBrowserifyDes;function requireCbc$1(){if(hasRequiredCbc$1)return cbc$1;hasRequiredCbc$1=1;var e=requireMinimalisticAssert(),r=requireInherits_browser(),o={};function i(n){e.equal(n.length,8,"Invalid IV length"),this.iv=new Array(8);for(var h=0;h<this.iv.length;h++)this.iv[h]=n[h]}return cbc$1.instantiate=function(n){function h(s){n.call(this,s),this._cbcInit()}r(h,n);for(var f=Object.keys(o),t=0;t<f.length;t++){var a=f[t];h.prototype[a]=o[a]}return h.create=function(s){return new h(s)},h},o._cbcInit=function(){var n=new i(this.options.iv);this._cbcState=n},o._update=function(n,h,f,t){var a=this._cbcState,s=this.constructor.super_.prototype,u=a.iv;if(this.type==="encrypt"){for(var c=0;c<this.blockSize;c++)u[c]^=n[h+c];for(s._update.call(this,u,0,f,t),c=0;c<this.blockSize;c++)u[c]=f[t+c]}else{for(s._update.call(this,n,h,f,t),c=0;c<this.blockSize;c++)f[t+c]^=u[c];for(c=0;c<this.blockSize;c++)u[c]=n[h+c]}},cbc$1}function requireEde(){if(hasRequiredEde)return ede;hasRequiredEde=1;var e=requireMinimalisticAssert(),r=requireInherits_browser(),o=requireCipher(),i=requireDes$1();function n(f,t){e.equal(t.length,24,"Invalid key length");var a=t.slice(0,8),s=t.slice(8,16),u=t.slice(16,24);this.ciphers=f==="encrypt"?[i.create({type:"encrypt",key:a}),i.create({type:"decrypt",key:s}),i.create({type:"encrypt",key:u})]:[i.create({type:"decrypt",key:u}),i.create({type:"encrypt",key:s}),i.create({type:"decrypt",key:a})]}function h(f){o.call(this,f);var t=new n(this.type,this.options.key);this._edeState=t}return r(h,o),ede=h,h.create=function(f){return new h(f)},h.prototype._update=function(f,t,a,s){var u=this._edeState;u.ciphers[0]._update(f,t,a,s),u.ciphers[1]._update(a,s,a,s),u.ciphers[2]._update(a,s,a,s)},h.prototype._pad=i.prototype._pad,h.prototype._unpad=i.prototype._unpad,ede}function requireDes(){return hasRequiredDes||(hasRequiredDes=1,des$1.utils=requireUtils$3(),des$1.Cipher=requireCipher(),des$1.DES=requireDes$1(),des$1.CBC=requireCbc$1(),des$1.EDE=requireEde()),des$1}function requireBrowserifyDes(){if(hasRequiredBrowserifyDes)return browserifyDes;hasRequiredBrowserifyDes=1;var e=requireCipherBase(),r=requireDes(),o=requireInherits_browser(),i=requireSafeBuffer$1().Buffer,n={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};function h(f){e.call(this);var t,a=f.mode.toLowerCase(),s=n[a];t=f.decrypt?"decrypt":"encrypt";var u=f.key;i.isBuffer(u)||(u=i.from(u)),a!=="des-ede"&&a!=="des-ede-cbc"||(u=i.concat([u,u.slice(0,8)]));var c=f.iv;i.isBuffer(c)||(c=i.from(c)),this._des=s.create({key:u,iv:c,type:t})}return n.des=n["des-cbc"],n.des3=n["des-ede3-cbc"],browserifyDes=h,o(h,e),h.prototype._update=function(f){return i.from(this._des.update(f))},h.prototype._final=function(){return i.from(this._des.final())},browserifyDes}var browser$5={},encrypter={},ecb={},hasRequiredEcb;function requireEcb(){return hasRequiredEcb||(hasRequiredEcb=1,ecb.encrypt=function(e,r){return e._cipher.encryptBlock(r)},ecb.decrypt=function(e,r){return e._cipher.decryptBlock(r)}),ecb}var cbc={},bufferXor,hasRequiredBufferXor,hasRequiredCbc;function requireBufferXor(){return hasRequiredBufferXor||(hasRequiredBufferXor=1,bufferXor=function(e,r){for(var o=Math.min(e.length,r.length),i=new Buffer(o),n=0;n<o;++n)i[n]=e[n]^r[n];return i}),bufferXor}function requireCbc(){if(hasRequiredCbc)return cbc;hasRequiredCbc=1;var e=requireBufferXor();return cbc.encrypt=function(r,o){var i=e(o,r._prev);return r._prev=r._cipher.encryptBlock(i),r._prev},cbc.decrypt=function(r,o){var i=r._prev;r._prev=o;var n=r._cipher.decryptBlock(o);return e(n,i)},cbc}var cfb={},hasRequiredCfb;function requireCfb(){if(hasRequiredCfb)return cfb;hasRequiredCfb=1;var e=requireSafeBuffer$1().Buffer,r=requireBufferXor();function o(i,n,h){var f=n.length,t=r(n,i._cache);return i._cache=i._cache.slice(f),i._prev=e.concat([i._prev,h?n:t]),t}return cfb.encrypt=function(i,n,h){for(var f,t=e.allocUnsafe(0);n.length;){if(i._cache.length===0&&(i._cache=i._cipher.encryptBlock(i._prev),i._prev=e.allocUnsafe(0)),!(i._cache.length<=n.length)){t=e.concat([t,o(i,n,h)]);break}f=i._cache.length,t=e.concat([t,o(i,n.slice(0,f),h)]),n=n.slice(f)}return t},cfb}var cfb8={},hasRequiredCfb8;function requireCfb8(){if(hasRequiredCfb8)return cfb8;hasRequiredCfb8=1;var e=requireSafeBuffer$1().Buffer;function r(o,i,n){var h=o._cipher.encryptBlock(o._prev)[0]^i;return o._prev=e.concat([o._prev.slice(1),e.from([n?i:h])]),h}return cfb8.encrypt=function(o,i,n){for(var h=i.length,f=e.allocUnsafe(h),t=-1;++t<h;)f[t]=r(o,i[t],n);return f},cfb8}var cfb1={},hasRequiredCfb1;function requireCfb1(){if(hasRequiredCfb1)return cfb1;hasRequiredCfb1=1;var e=requireSafeBuffer$1().Buffer;function r(i,n,h){for(var f,t,a=-1,s=0;++a<8;)f=n&1<<7-a?128:0,s+=(128&(t=i._cipher.encryptBlock(i._prev)[0]^f))>>a%8,i._prev=o(i._prev,h?f:t);return s}function o(i,n){var h=i.length,f=-1,t=e.allocUnsafe(i.length);for(i=e.concat([i,e.from([n])]);++f<h;)t[f]=i[f]<<1|i[f+1]>>7;return t}return cfb1.encrypt=function(i,n,h){for(var f=n.length,t=e.allocUnsafe(f),a=-1;++a<f;)t[a]=r(i,n[a],h);return t},cfb1}var ofb={},hasRequiredOfb;function requireOfb(){if(hasRequiredOfb)return ofb;hasRequiredOfb=1;var e=requireBufferXor();function r(o){return o._prev=o._cipher.encryptBlock(o._prev),o._prev}return ofb.encrypt=function(o,i){for(;o._cache.length<i.length;)o._cache=Buffer.concat([o._cache,r(o)]);var n=o._cache.slice(0,i.length);return o._cache=o._cache.slice(i.length),e(i,n)},ofb}var ctr={},incr32_1,hasRequiredIncr32,hasRequiredCtr;function requireIncr32(){return hasRequiredIncr32?incr32_1:(hasRequiredIncr32=1,incr32_1=function(e){for(var r,o=e.length;o--;){if((r=e.readUInt8(o))!==255){r++,e.writeUInt8(r,o);break}e.writeUInt8(0,o)}})}function requireCtr(){if(hasRequiredCtr)return ctr;hasRequiredCtr=1;var e=requireBufferXor(),r=requireSafeBuffer$1().Buffer,o=requireIncr32();function i(n){var h=n._cipher.encryptBlockRaw(n._prev);return o(n._prev),h}return ctr.encrypt=function(n,h){var f=Math.ceil(h.length/16),t=n._cache.length;n._cache=r.concat([n._cache,r.allocUnsafe(16*f)]);for(var a=0;a<f;a++){var s=i(n),u=t+16*a;n._cache.writeUInt32BE(s[0],u+0),n._cache.writeUInt32BE(s[1],u+4),n._cache.writeUInt32BE(s[2],u+8),n._cache.writeUInt32BE(s[3],u+12)}var c=n._cache.slice(0,h.length);return n._cache=n._cache.slice(h.length),e(h,c)},ctr}const aes128={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},require$$2={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128,aes192,aes256,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var modes_1,hasRequiredModes$1;function requireModes$1(){if(hasRequiredModes$1)return modes_1;hasRequiredModes$1=1;var e={ECB:requireEcb(),CBC:requireCbc(),CFB:requireCfb(),CFB8:requireCfb8(),CFB1:requireCfb1(),OFB:requireOfb(),CTR:requireCtr(),GCM:requireCtr()},r=require$$2;for(var o in r)r[o].module=e[r[o].mode];return modes_1=r}var aes$2={},hasRequiredAes$1,ghash,hasRequiredGhash,authCipher,hasRequiredAuthCipher,streamCipher,hasRequiredStreamCipher,evp_bytestokey,hasRequiredEvp_bytestokey,hasRequiredEncrypter;function requireAes$1(){if(hasRequiredAes$1)return aes$2;hasRequiredAes$1=1;var e=requireSafeBuffer$1().Buffer;function r(t){e.isBuffer(t)||(t=e.from(t));for(var a=t.length/4|0,s=new Array(a),u=0;u<a;u++)s[u]=t.readUInt32BE(4*u);return s}function o(t){for(;0<t.length;t++)t[0]=0}function i(t,a,s,u,c){for(var l,d,p,y,m=s[0],_=s[1],A=s[2],E=s[3],q=t[0]^a[0],w=t[1]^a[1],x=t[2]^a[2],P=t[3]^a[3],O=4,N=1;N<c;N++)l=m[q>>>24]^_[w>>>16&255]^A[x>>>8&255]^E[255&P]^a[O++],d=m[w>>>24]^_[x>>>16&255]^A[P>>>8&255]^E[255&q]^a[O++],p=m[x>>>24]^_[P>>>16&255]^A[q>>>8&255]^E[255&w]^a[O++],y=m[P>>>24]^_[q>>>16&255]^A[w>>>8&255]^E[255&x]^a[O++],q=l,w=d,x=p,P=y;return l=(u[q>>>24]<<24|u[w>>>16&255]<<16|u[x>>>8&255]<<8|u[255&P])^a[O++],d=(u[w>>>24]<<24|u[x>>>16&255]<<16|u[P>>>8&255]<<8|u[255&q])^a[O++],p=(u[x>>>24]<<24|u[P>>>16&255]<<16|u[q>>>8&255]<<8|u[255&w])^a[O++],y=(u[P>>>24]<<24|u[q>>>16&255]<<16|u[w>>>8&255]<<8|u[255&x])^a[O++],[l>>>=0,d>>>=0,p>>>=0,y>>>=0]}var n=[0,1,2,4,8,16,32,64,128,27,54],h=(function(){for(var t=new Array(256),a=0;a<256;a++)t[a]=a<128?a<<1:a<<1^283;for(var s=[],u=[],c=[[],[],[],[]],l=[[],[],[],[]],d=0,p=0,y=0;y<256;++y){var m=p^p<<1^p<<2^p<<3^p<<4;m=m>>>8^255&m^99,s[d]=m,u[m]=d;var _=t[d],A=t[_],E=t[A],q=257*t[m]^16843008*m;c[0][d]=q<<24|q>>>8,c[1][d]=q<<16|q>>>16,c[2][d]=q<<8|q>>>24,c[3][d]=q,q=16843009*E^65537*A^257*_^16843008*d,l[0][m]=q<<24|q>>>8,l[1][m]=q<<16|q>>>16,l[2][m]=q<<8|q>>>24,l[3][m]=q,d===0?d=p=1:(d=_^t[t[t[E^_]]],p^=t[t[p]])}return{SBOX:s,INV_SBOX:u,SUB_MIX:c,INV_SUB_MIX:l}})();function f(t){this._key=r(t),this._reset()}return f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var t=this._key,a=t.length,s=a+6,u=4*(s+1),c=[],l=0;l<a;l++)c[l]=t[l];for(l=a;l<u;l++){var d=c[l-1];l%a==0?(d=d<<8|d>>>24,d=h.SBOX[d>>>24]<<24|h.SBOX[d>>>16&255]<<16|h.SBOX[d>>>8&255]<<8|h.SBOX[255&d],d^=n[l/a|0]<<24):a>6&&l%a==4&&(d=h.SBOX[d>>>24]<<24|h.SBOX[d>>>16&255]<<16|h.SBOX[d>>>8&255]<<8|h.SBOX[255&d]),c[l]=c[l-a]^d}for(var p=[],y=0;y<u;y++){var m=u-y,_=c[m-(y%4?0:4)];p[y]=y<4||m<=4?_:h.INV_SUB_MIX[0][h.SBOX[_>>>24]]^h.INV_SUB_MIX[1][h.SBOX[_>>>16&255]]^h.INV_SUB_MIX[2][h.SBOX[_>>>8&255]]^h.INV_SUB_MIX[3][h.SBOX[255&_]]}this._nRounds=s,this._keySchedule=c,this._invKeySchedule=p},f.prototype.encryptBlockRaw=function(t){return i(t=r(t),this._keySchedule,h.SUB_MIX,h.SBOX,this._nRounds)},f.prototype.encryptBlock=function(t){var a=this.encryptBlockRaw(t),s=e.allocUnsafe(16);return s.writeUInt32BE(a[0],0),s.writeUInt32BE(a[1],4),s.writeUInt32BE(a[2],8),s.writeUInt32BE(a[3],12),s},f.prototype.decryptBlock=function(t){var a=(t=r(t))[1];t[1]=t[3],t[3]=a;var s=i(t,this._invKeySchedule,h.INV_SUB_MIX,h.INV_SBOX,this._nRounds),u=e.allocUnsafe(16);return u.writeUInt32BE(s[0],0),u.writeUInt32BE(s[3],4),u.writeUInt32BE(s[2],8),u.writeUInt32BE(s[1],12),u},f.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},aes$2.AES=f,aes$2}function requireGhash(){if(hasRequiredGhash)return ghash;hasRequiredGhash=1;var e=requireSafeBuffer$1().Buffer,r=e.alloc(16,0);function o(n){var h=e.allocUnsafe(16);return h.writeUInt32BE(n[0]>>>0,0),h.writeUInt32BE(n[1]>>>0,4),h.writeUInt32BE(n[2]>>>0,8),h.writeUInt32BE(n[3]>>>0,12),h}function i(n){this.h=n,this.state=e.alloc(16,0),this.cache=e.allocUnsafe(0)}return i.prototype.ghash=function(n){for(var h=-1;++h<n.length;)this.state[h]^=n[h];this._multiply()},i.prototype._multiply=function(){for(var n,h,f,t=[(n=this.h).readUInt32BE(0),n.readUInt32BE(4),n.readUInt32BE(8),n.readUInt32BE(12)],a=[0,0,0,0],s=-1;++s<128;){for(this.state[~~(s/8)]&1<<7-s%8&&(a[0]^=t[0],a[1]^=t[1],a[2]^=t[2],a[3]^=t[3]),f=!!(1&t[3]),h=3;h>0;h--)t[h]=t[h]>>>1|(1&t[h-1])<<31;t[0]=t[0]>>>1,f&&(t[0]=t[0]^225<<24)}this.state=o(a)},i.prototype.update=function(n){var h;for(this.cache=e.concat([this.cache,n]);this.cache.length>=16;)h=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(h)},i.prototype.final=function(n,h){return this.cache.length&&this.ghash(e.concat([this.cache,r],16)),this.ghash(o([0,n,0,h])),this.state},ghash=i}function requireAuthCipher(){if(hasRequiredAuthCipher)return authCipher;hasRequiredAuthCipher=1;var e=requireAes$1(),r=requireSafeBuffer$1().Buffer,o=requireCipherBase(),i=requireInherits_browser(),n=requireGhash(),h=requireBufferXor(),f=requireIncr32();function t(a,s,u,c){o.call(this);var l=r.alloc(4,0);this._cipher=new e.AES(s);var d=this._cipher.encryptBlock(l);this._ghash=new n(d),u=(function(p,y,m){if(y.length===12)return p._finID=r.concat([y,r.from([0,0,0,1])]),r.concat([y,r.from([0,0,0,2])]);var _=new n(m),A=y.length,E=A%16;_.update(y),E&&(E=16-E,_.update(r.alloc(E,0))),_.update(r.alloc(8,0));var q=8*A,w=r.alloc(8);w.writeUIntBE(q,0,8),_.update(w),p._finID=_.state;var x=r.from(p._finID);return f(x),x})(this,u,d),this._prev=r.from(u),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=c,this._alen=0,this._len=0,this._mode=a,this._authTag=null,this._called=!1}return i(t,o),t.prototype._update=function(a){if(!this._called&&this._alen){var s=16-this._alen%16;s<16&&(s=r.alloc(s,0),this._ghash.update(s))}this._called=!0;var u=this._mode.encrypt(this,a);return this._decrypt?this._ghash.update(a):this._ghash.update(u),this._len+=a.length,u},t.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var a=h(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&(function(s,u){var c=0;s.length!==u.length&&c++;for(var l=Math.min(s.length,u.length),d=0;d<l;++d)c+=s[d]^u[d];return c})(a,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=a,this._cipher.scrub()},t.prototype.getAuthTag=function(){if(this._decrypt||!r.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},t.prototype.setAuthTag=function(a){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=a},t.prototype.setAAD=function(a){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(a),this._alen+=a.length},authCipher=t}function requireStreamCipher(){if(hasRequiredStreamCipher)return streamCipher;hasRequiredStreamCipher=1;var e=requireAes$1(),r=requireSafeBuffer$1().Buffer,o=requireCipherBase();function i(n,h,f,t){o.call(this),this._cipher=new e.AES(h),this._prev=r.from(f),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=t,this._mode=n}return requireInherits_browser()(i,o),i.prototype._update=function(n){return this._mode.encrypt(this,n,this._decrypt)},i.prototype._final=function(){this._cipher.scrub()},streamCipher=i}function requireEvp_bytestokey(){if(hasRequiredEvp_bytestokey)return evp_bytestokey;hasRequiredEvp_bytestokey=1;var e=requireSafeBuffer$1().Buffer,r=requireMd5_js();return evp_bytestokey=function(o,i,n,h){if(e.isBuffer(o)||(o=e.from(o,"binary")),i&&(e.isBuffer(i)||(i=e.from(i,"binary")),i.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var f=n/8,t=e.alloc(f),a=e.alloc(h||0),s=e.alloc(0);f>0||h>0;){var u=new r;u.update(s),u.update(o),i&&u.update(i),s=u.digest();var c=0;if(f>0){var l=t.length-f;c=Math.min(f,s.length),s.copy(t,l,0,c),f-=c}if(c<s.length&&h>0){var d=a.length-h,p=Math.min(h,s.length-c);s.copy(a,d,c,c+p),h-=p}}return s.fill(0),{key:t,iv:a}},evp_bytestokey}function requireEncrypter(){if(hasRequiredEncrypter)return encrypter;hasRequiredEncrypter=1;var e=requireModes$1(),r=requireAuthCipher(),o=requireSafeBuffer$1().Buffer,i=requireStreamCipher(),n=requireCipherBase(),h=requireAes$1(),f=requireEvp_bytestokey();function t(c,l,d){n.call(this),this._cache=new s,this._cipher=new h.AES(l),this._prev=o.from(d),this._mode=c,this._autopadding=!0}requireInherits_browser()(t,n),t.prototype._update=function(c){var l,d;this._cache.add(c);for(var p=[];l=this._cache.get();)d=this._mode.encrypt(this,l),p.push(d);return o.concat(p)};var a=o.alloc(16,16);function s(){this.cache=o.allocUnsafe(0)}function u(c,l,d){var p=e[c.toLowerCase()];if(!p)throw new TypeError("invalid suite type");if(typeof l=="string"&&(l=o.from(l)),l.length!==p.key/8)throw new TypeError("invalid key length "+l.length);if(typeof d=="string"&&(d=o.from(d)),p.mode!=="GCM"&&d.length!==p.iv)throw new TypeError("invalid iv length "+d.length);return p.type==="stream"?new i(p.module,l,d):p.type==="auth"?new r(p.module,l,d):new t(p.module,l,d)}return t.prototype._final=function(){var c=this._cache.flush();if(this._autopadding)return c=this._mode.encrypt(this,c),this._cipher.scrub(),c;if(!c.equals(a))throw this._cipher.scrub(),new Error("data not multiple of block length")},t.prototype.setAutoPadding=function(c){return this._autopadding=!!c,this},s.prototype.add=function(c){this.cache=o.concat([this.cache,c])},s.prototype.get=function(){if(this.cache.length>15){var c=this.cache.slice(0,16);return this.cache=this.cache.slice(16),c}return null},s.prototype.flush=function(){for(var c=16-this.cache.length,l=o.allocUnsafe(c),d=-1;++d<c;)l.writeUInt8(c,d);return o.concat([this.cache,l])},encrypter.createCipheriv=u,encrypter.createCipher=function(c,l){var d=e[c.toLowerCase()];if(!d)throw new TypeError("invalid suite type");var p=f(l,!1,d.key,d.iv);return u(c,p.key,p.iv)},encrypter}var decrypter={},hasRequiredDecrypter,hasRequiredBrowser$6;function requireDecrypter(){if(hasRequiredDecrypter)return decrypter;hasRequiredDecrypter=1;var e=requireAuthCipher(),r=requireSafeBuffer$1().Buffer,o=requireModes$1(),i=requireStreamCipher(),n=requireCipherBase(),h=requireAes$1(),f=requireEvp_bytestokey();function t(u,c,l){n.call(this),this._cache=new a,this._last=void 0,this._cipher=new h.AES(c),this._prev=r.from(l),this._mode=u,this._autopadding=!0}function a(){this.cache=r.allocUnsafe(0)}function s(u,c,l){var d=o[u.toLowerCase()];if(!d)throw new TypeError("invalid suite type");if(typeof l=="string"&&(l=r.from(l)),d.mode!=="GCM"&&l.length!==d.iv)throw new TypeError("invalid iv length "+l.length);if(typeof c=="string"&&(c=r.from(c)),c.length!==d.key/8)throw new TypeError("invalid key length "+c.length);return d.type==="stream"?new i(d.module,c,l,!0):d.type==="auth"?new e(d.module,c,l,!0):new t(d.module,c,l)}return requireInherits_browser()(t,n),t.prototype._update=function(u){var c,l;this._cache.add(u);for(var d=[];c=this._cache.get(this._autopadding);)l=this._mode.decrypt(this,c),d.push(l);return r.concat(d)},t.prototype._final=function(){var u=this._cache.flush();if(this._autopadding)return(function(c){var l=c[15];if(l<1||l>16)throw new Error("unable to decrypt data");for(var d=-1;++d<l;)if(c[d+(16-l)]!==l)throw new Error("unable to decrypt data");if(l!==16)return c.slice(0,16-l)})(this._mode.decrypt(this,u));if(u)throw new Error("data not multiple of block length")},t.prototype.setAutoPadding=function(u){return this._autopadding=!!u,this},a.prototype.add=function(u){this.cache=r.concat([this.cache,u])},a.prototype.get=function(u){var c;if(u){if(this.cache.length>16)return c=this.cache.slice(0,16),this.cache=this.cache.slice(16),c}else if(this.cache.length>=16)return c=this.cache.slice(0,16),this.cache=this.cache.slice(16),c;return null},a.prototype.flush=function(){if(this.cache.length)return this.cache},decrypter.createDecipher=function(u,c){var l=o[u.toLowerCase()];if(!l)throw new TypeError("invalid suite type");var d=f(c,!1,l.key,l.iv);return s(u,d.key,d.iv)},decrypter.createDecipheriv=s,decrypter}function requireBrowser$6(){if(hasRequiredBrowser$6)return browser$5;hasRequiredBrowser$6=1;var e=requireEncrypter(),r=requireDecrypter(),o=require$$2;return browser$5.createCipher=browser$5.Cipher=e.createCipher,browser$5.createCipheriv=browser$5.Cipheriv=e.createCipheriv,browser$5.createDecipher=browser$5.Decipher=r.createDecipher,browser$5.createDecipheriv=browser$5.Decipheriv=r.createDecipheriv,browser$5.listCiphers=browser$5.getCiphers=function(){return Object.keys(o)},browser$5}var modes={},hasRequiredModes,hasRequiredBrowser$5;function requireModes(){return hasRequiredModes||(hasRequiredModes=1,(e=modes)["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}),modes;var e}function requireBrowser$5(){if(hasRequiredBrowser$5)return browser$6;hasRequiredBrowser$5=1;var e=requireBrowserifyDes(),r=requireBrowser$6(),o=requireModes$1(),i=requireModes(),n=requireEvp_bytestokey();function h(t,a,s){if(t=t.toLowerCase(),o[t])return r.createCipheriv(t,a,s);if(i[t])return new e({key:a,iv:s,mode:t});throw new TypeError("invalid suite type")}function f(t,a,s){if(t=t.toLowerCase(),o[t])return r.createDecipheriv(t,a,s);if(i[t])return new e({key:a,iv:s,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}return browser$6.createCipher=browser$6.Cipher=function(t,a){var s,u;if(t=t.toLowerCase(),o[t])s=o[t].key,u=o[t].iv;else{if(!i[t])throw new TypeError("invalid suite type");s=8*i[t].key,u=i[t].iv}var c=n(a,!1,s,u);return h(t,c.key,c.iv)},browser$6.createCipheriv=browser$6.Cipheriv=h,browser$6.createDecipher=browser$6.Decipher=function(t,a){var s,u;if(t=t.toLowerCase(),o[t])s=o[t].key,u=o[t].iv;else{if(!i[t])throw new TypeError("invalid suite type");s=8*i[t].key,u=i[t].iv}var c=n(a,!1,s,u);return f(t,c.key,c.iv)},browser$6.createDecipheriv=browser$6.Decipheriv=f,browser$6.listCiphers=browser$6.getCiphers=function(){return Object.keys(i).concat(r.getCiphers())},browser$6}var browser$4={},bn$1={exports:{}},bn=bn$1.exports,hasRequiredBn;function requireBn(){return hasRequiredBn||(hasRequiredBn=1,(function(e,r){function o(v,B){if(!v)throw new Error(B||"Assertion failed")}function i(v,B){v.super_=B;var $=function(){};$.prototype=B.prototype,v.prototype=new $,v.prototype.constructor=v}function n(v,B,$){if(n.isBN(v))return v;this.negative=0,this.words=null,this.length=0,this.red=null,v!==null&&(B!=="le"&&B!=="be"||($=B,B=10),this._init(v||0,B||10,$||"be"))}var h;typeof e=="object"?e.exports=n:r.BN=n,n.BN=n,n.wordSize=26;try{h=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:requireDist().Buffer}catch{}function f(v,B){var $=v.charCodeAt(B);return $>=48&&$<=57?$-48:$>=65&&$<=70?$-55:$>=97&&$<=102?$-87:void o(!1,"Invalid character in "+v)}function t(v,B,$){var R=f(v,$);return $-1>=B&&(R|=f(v,$-1)<<4),R}function a(v,B,$,R){for(var g=0,b=0,k=Math.min(v.length,$),L=B;L<k;L++){var F=v.charCodeAt(L)-48;g*=R,b=F>=49?F-49+10:F>=17?F-17+10:F,o(F>=0&&b<R,"Invalid character"),g+=b}return g}function s(v,B){v.words=B.words,v.length=B.length,v.negative=B.negative,v.red=B.red}if(n.isBN=function(v){return v instanceof n||v!==null&&typeof v=="object"&&v.constructor.wordSize===n.wordSize&&Array.isArray(v.words)},n.max=function(v,B){return v.cmp(B)>0?v:B},n.min=function(v,B){return v.cmp(B)<0?v:B},n.prototype._init=function(v,B,$){if(typeof v=="number")return this._initNumber(v,B,$);if(typeof v=="object")return this._initArray(v,B,$);B==="hex"&&(B=16),o(B===(0|B)&&B>=2&&B<=36);var R=0;(v=v.toString().replace(/\s+/g,""))[0]==="-"&&(R++,this.negative=1),R<v.length&&(B===16?this._parseHex(v,R,$):(this._parseBase(v,B,R),$==="le"&&this._initArray(this.toArray(),B,$)))},n.prototype._initNumber=function(v,B,$){v<0&&(this.negative=1,v=-v),v<67108864?(this.words=[67108863&v],this.length=1):v<4503599627370496?(this.words=[67108863&v,v/67108864&67108863],this.length=2):(o(v<9007199254740992),this.words=[67108863&v,v/67108864&67108863,1],this.length=3),$==="le"&&this._initArray(this.toArray(),B,$)},n.prototype._initArray=function(v,B,$){if(o(typeof v.length=="number"),v.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(v.length/3),this.words=new Array(this.length);for(var R=0;R<this.length;R++)this.words[R]=0;var g,b,k=0;if($==="be")for(R=v.length-1,g=0;R>=0;R-=3)b=v[R]|v[R-1]<<8|v[R-2]<<16,this.words[g]|=b<<k&67108863,this.words[g+1]=b>>>26-k&67108863,(k+=24)>=26&&(k-=26,g++);else if($==="le")for(R=0,g=0;R<v.length;R+=3)b=v[R]|v[R+1]<<8|v[R+2]<<16,this.words[g]|=b<<k&67108863,this.words[g+1]=b>>>26-k&67108863,(k+=24)>=26&&(k-=26,g++);return this._strip()},n.prototype._parseHex=function(v,B,$){this.length=Math.ceil((v.length-B)/6),this.words=new Array(this.length);for(var R=0;R<this.length;R++)this.words[R]=0;var g,b=0,k=0;if($==="be")for(R=v.length-1;R>=B;R-=2)g=t(v,B,R)<<b,this.words[k]|=67108863&g,b>=18?(b-=18,k+=1,this.words[k]|=g>>>26):b+=8;else for(R=(v.length-B)%2==0?B+1:B;R<v.length;R+=2)g=t(v,B,R)<<b,this.words[k]|=67108863&g,b>=18?(b-=18,k+=1,this.words[k]|=g>>>26):b+=8;this._strip()},n.prototype._parseBase=function(v,B,$){this.words=[0],this.length=1;for(var R=0,g=1;g<=67108863;g*=B)R++;R--,g=g/B|0;for(var b=v.length-$,k=b%R,L=Math.min(b,b-k)+$,F=0,T=$;T<L;T+=R)F=a(v,T,T+R,B),this.imuln(g),this.words[0]+F<67108864?this.words[0]+=F:this._iaddn(F);if(k!==0){var U=1;for(F=a(v,T,v.length,B),T=0;T<k;T++)U*=B;this.imuln(U),this.words[0]+F<67108864?this.words[0]+=F:this._iaddn(F)}this._strip()},n.prototype.copy=function(v){v.words=new Array(this.length);for(var B=0;B<this.length;B++)v.words[B]=this.words[B];v.length=this.length,v.negative=this.negative,v.red=this.red},n.prototype._move=function(v){s(v,this)},n.prototype.clone=function(){var v=new n(null);return this.copy(v),v},n.prototype._expand=function(v){for(;this.length<v;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch{n.prototype.inspect=u}else n.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(v,B,$){$.negative=B.negative^v.negative;var R=v.length+B.length|0;$.length=R,R=R-1|0;var g=0|v.words[0],b=0|B.words[0],k=g*b,L=67108863&k,F=k/67108864|0;$.words[0]=L;for(var T=1;T<R;T++){for(var U=F>>>26,D=67108863&F,I=Math.min(T,B.length-1),j=Math.max(0,T-v.length+1);j<=I;j++){var H=T-j|0;U+=(k=(g=0|v.words[H])*(b=0|B.words[j])+D)/67108864|0,D=67108863&k}$.words[T]=0|D,F=0|U}return F!==0?$.words[T]=0|F:$.length--,$._strip()}n.prototype.toString=function(v,B){var $;if(B=0|B||1,(v=v||10)===16||v==="hex"){$="";for(var R=0,g=0,b=0;b<this.length;b++){var k=this.words[b],L=(16777215&(k<<R|g)).toString(16);g=k>>>24-R&16777215,(R+=2)>=26&&(R-=26,b--),$=g!==0||b!==this.length-1?c[6-L.length]+L+$:L+$}for(g!==0&&($=g.toString(16)+$);$.length%B!=0;)$="0"+$;return this.negative!==0&&($="-"+$),$}if(v===(0|v)&&v>=2&&v<=36){var F=l[v],T=d[v];$="";var U=this.clone();for(U.negative=0;!U.isZero();){var D=U.modrn(T).toString(v);$=(U=U.idivn(T)).isZero()?D+$:c[F-D.length]+D+$}for(this.isZero()&&($="0"+$);$.length%B!=0;)$="0"+$;return this.negative!==0&&($="-"+$),$}o(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var v=this.words[0];return this.length===2?v+=67108864*this.words[1]:this.length===3&&this.words[2]===1?v+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-v:v},n.prototype.toJSON=function(){return this.toString(16,2)},h&&(n.prototype.toBuffer=function(v,B){return this.toArrayLike(h,v,B)}),n.prototype.toArray=function(v,B){return this.toArrayLike(Array,v,B)},n.prototype.toArrayLike=function(v,B,$){this._strip();var R=this.byteLength(),g=$||Math.max(1,R);o(R<=g,"byte array longer than desired length"),o(g>0,"Requested array length <= 0");var b=(function(k,L){return k.allocUnsafe?k.allocUnsafe(L):new k(L)})(v,g);return this["_toArrayLike"+(B==="le"?"LE":"BE")](b,R),b},n.prototype._toArrayLikeLE=function(v,B){for(var $=0,R=0,g=0,b=0;g<this.length;g++){var k=this.words[g]<<b|R;v[$++]=255&k,$<v.length&&(v[$++]=k>>8&255),$<v.length&&(v[$++]=k>>16&255),b===6?($<v.length&&(v[$++]=k>>24&255),R=0,b=0):(R=k>>>24,b+=2)}if($<v.length)for(v[$++]=R;$<v.length;)v[$++]=0},n.prototype._toArrayLikeBE=function(v,B){for(var $=v.length-1,R=0,g=0,b=0;g<this.length;g++){var k=this.words[g]<<b|R;v[$--]=255&k,$>=0&&(v[$--]=k>>8&255),$>=0&&(v[$--]=k>>16&255),b===6?($>=0&&(v[$--]=k>>24&255),R=0,b=0):(R=k>>>24,b+=2)}if($>=0)for(v[$--]=R;$>=0;)v[$--]=0},Math.clz32?n.prototype._countBits=function(v){return 32-Math.clz32(v)}:n.prototype._countBits=function(v){var B=v,$=0;return B>=4096&&($+=13,B>>>=13),B>=64&&($+=7,B>>>=7),B>=8&&($+=4,B>>>=4),B>=2&&($+=2,B>>>=2),$+B},n.prototype._zeroBits=function(v){if(v===0)return 26;var B=v,$=0;return 8191&B||($+=13,B>>>=13),127&B||($+=7,B>>>=7),15&B||($+=4,B>>>=4),3&B||($+=2,B>>>=2),1&B||$++,$},n.prototype.bitLength=function(){var v=this.words[this.length-1],B=this._countBits(v);return 26*(this.length-1)+B},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var v=0,B=0;B<this.length;B++){var $=this._zeroBits(this.words[B]);if(v+=$,$!==26)break}return v},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(v){return this.negative!==0?this.abs().inotn(v).iaddn(1):this.clone()},n.prototype.fromTwos=function(v){return this.testn(v-1)?this.notn(v).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(v){for(;this.length<v.length;)this.words[this.length++]=0;for(var B=0;B<v.length;B++)this.words[B]=this.words[B]|v.words[B];return this._strip()},n.prototype.ior=function(v){return o(!(this.negative|v.negative)),this.iuor(v)},n.prototype.or=function(v){return this.length>v.length?this.clone().ior(v):v.clone().ior(this)},n.prototype.uor=function(v){return this.length>v.length?this.clone().iuor(v):v.clone().iuor(this)},n.prototype.iuand=function(v){var B;B=this.length>v.length?v:this;for(var $=0;$<B.length;$++)this.words[$]=this.words[$]&v.words[$];return this.length=B.length,this._strip()},n.prototype.iand=function(v){return o(!(this.negative|v.negative)),this.iuand(v)},n.prototype.and=function(v){return this.length>v.length?this.clone().iand(v):v.clone().iand(this)},n.prototype.uand=function(v){return this.length>v.length?this.clone().iuand(v):v.clone().iuand(this)},n.prototype.iuxor=function(v){var B,$;this.length>v.length?(B=this,$=v):(B=v,$=this);for(var R=0;R<$.length;R++)this.words[R]=B.words[R]^$.words[R];if(this!==B)for(;R<B.length;R++)this.words[R]=B.words[R];return this.length=B.length,this._strip()},n.prototype.ixor=function(v){return o(!(this.negative|v.negative)),this.iuxor(v)},n.prototype.xor=function(v){return this.length>v.length?this.clone().ixor(v):v.clone().ixor(this)},n.prototype.uxor=function(v){return this.length>v.length?this.clone().iuxor(v):v.clone().iuxor(this)},n.prototype.inotn=function(v){o(typeof v=="number"&&v>=0);var B=0|Math.ceil(v/26),$=v%26;this._expand(B),$>0&&B--;for(var R=0;R<B;R++)this.words[R]=67108863&~this.words[R];return $>0&&(this.words[R]=~this.words[R]&67108863>>26-$),this._strip()},n.prototype.notn=function(v){return this.clone().inotn(v)},n.prototype.setn=function(v,B){o(typeof v=="number"&&v>=0);var $=v/26|0,R=v%26;return this._expand($+1),this.words[$]=B?this.words[$]|1<<R:this.words[$]&~(1<<R),this._strip()},n.prototype.iadd=function(v){var B,$,R;if(this.negative!==0&&v.negative===0)return this.negative=0,B=this.isub(v),this.negative^=1,this._normSign();if(this.negative===0&&v.negative!==0)return v.negative=0,B=this.isub(v),v.negative=1,B._normSign();this.length>v.length?($=this,R=v):($=v,R=this);for(var g=0,b=0;b<R.length;b++)B=(0|$.words[b])+(0|R.words[b])+g,this.words[b]=67108863&B,g=B>>>26;for(;g!==0&&b<$.length;b++)B=(0|$.words[b])+g,this.words[b]=67108863&B,g=B>>>26;if(this.length=$.length,g!==0)this.words[this.length]=g,this.length++;else if($!==this)for(;b<$.length;b++)this.words[b]=$.words[b];return this},n.prototype.add=function(v){var B;return v.negative!==0&&this.negative===0?(v.negative=0,B=this.sub(v),v.negative^=1,B):v.negative===0&&this.negative!==0?(this.negative=0,B=v.sub(this),this.negative=1,B):this.length>v.length?this.clone().iadd(v):v.clone().iadd(this)},n.prototype.isub=function(v){if(v.negative!==0){v.negative=0;var B=this.iadd(v);return v.negative=1,B._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(v),this.negative=1,this._normSign();var $,R,g=this.cmp(v);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;g>0?($=this,R=v):($=v,R=this);for(var b=0,k=0;k<R.length;k++)b=(B=(0|$.words[k])-(0|R.words[k])+b)>>26,this.words[k]=67108863&B;for(;b!==0&&k<$.length;k++)b=(B=(0|$.words[k])+b)>>26,this.words[k]=67108863&B;if(b===0&&k<$.length&&$!==this)for(;k<$.length;k++)this.words[k]=$.words[k];return this.length=Math.max(this.length,k),$!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(v){return this.clone().isub(v)};var y=function(v,B,$){var R,g,b,k=v.words,L=B.words,F=$.words,T=0,U=0|k[0],D=8191&U,I=U>>>13,j=0|k[1],H=8191&j,K=j>>>13,ee=0|k[2],Z=8191&ee,V=ee>>>13,Q=0|k[3],X=8191&Q,J=Q>>>13,oe=0|k[4],se=8191&oe,ne=oe>>>13,_e=0|k[5],te=8191&_e,ie=_e>>>13,ye=0|k[6],ue=8191&ye,fe=ye>>>13,me=0|k[7],le=8191&me,he=me>>>13,Ee=0|k[8],ge=8191&Ee,de=Ee>>>13,Oe=0|k[9],ve=8191&Oe,be=Oe>>>13,je=0|L[0],S=8191&je,M=je>>>13,C=0|L[1],W=8191&C,z=C>>>13,G=0|L[2],Y=8191&G,re=G>>>13,pe=0|L[3],ce=8191&pe,ae=pe>>>13,Re=0|L[4],$e=8191&Re,qe=Re>>>13,Le=0|L[5],Be=8191&Le,Ae=Le>>>13,De=0|L[6],Se=8191&De,we=De>>>13,Te=0|L[7],ke=8191&Te,Me=Te>>>13,ar=0|L[8],Ie=8191&ar,xe=ar>>>13,or=0|L[9],Pe=8191&or,Ce=or>>>13;$.negative=v.negative^B.negative,$.length=19;var Fe=(T+(R=Math.imul(D,S))|0)+((8191&(g=(g=Math.imul(D,M))+Math.imul(I,S)|0))<<13)|0;T=((b=Math.imul(I,M))+(g>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,R=Math.imul(H,S),g=(g=Math.imul(H,M))+Math.imul(K,S)|0,b=Math.imul(K,M);var Ue=(T+(R=R+Math.imul(D,W)|0)|0)+((8191&(g=(g=g+Math.imul(D,z)|0)+Math.imul(I,W)|0))<<13)|0;T=((b=b+Math.imul(I,z)|0)+(g>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,R=Math.imul(Z,S),g=(g=Math.imul(Z,M))+Math.imul(V,S)|0,b=Math.imul(V,M),R=R+Math.imul(H,W)|0,g=(g=g+Math.imul(H,z)|0)+Math.imul(K,W)|0,b=b+Math.imul(K,z)|0;var Ne=(T+(R=R+Math.imul(D,Y)|0)|0)+((8191&(g=(g=g+Math.imul(D,re)|0)+Math.imul(I,Y)|0))<<13)|0;T=((b=b+Math.imul(I,re)|0)+(g>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,R=Math.imul(X,S),g=(g=Math.imul(X,M))+Math.imul(J,S)|0,b=Math.imul(J,M),R=R+Math.imul(Z,W)|0,g=(g=g+Math.imul(Z,z)|0)+Math.imul(V,W)|0,b=b+Math.imul(V,z)|0,R=R+Math.imul(H,Y)|0,g=(g=g+Math.imul(H,re)|0)+Math.imul(K,Y)|0,b=b+Math.imul(K,re)|0;var We=(T+(R=R+Math.imul(D,ce)|0)|0)+((8191&(g=(g=g+Math.imul(D,ae)|0)+Math.imul(I,ce)|0))<<13)|0;T=((b=b+Math.imul(I,ae)|0)+(g>>>13)|0)+(We>>>26)|0,We&=67108863,R=Math.imul(se,S),g=(g=Math.imul(se,M))+Math.imul(ne,S)|0,b=Math.imul(ne,M),R=R+Math.imul(X,W)|0,g=(g=g+Math.imul(X,z)|0)+Math.imul(J,W)|0,b=b+Math.imul(J,z)|0,R=R+Math.imul(Z,Y)|0,g=(g=g+Math.imul(Z,re)|0)+Math.imul(V,Y)|0,b=b+Math.imul(V,re)|0,R=R+Math.imul(H,ce)|0,g=(g=g+Math.imul(H,ae)|0)+Math.imul(K,ce)|0,b=b+Math.imul(K,ae)|0;var ze=(T+(R=R+Math.imul(D,$e)|0)|0)+((8191&(g=(g=g+Math.imul(D,qe)|0)+Math.imul(I,$e)|0))<<13)|0;T=((b=b+Math.imul(I,qe)|0)+(g>>>13)|0)+(ze>>>26)|0,ze&=67108863,R=Math.imul(te,S),g=(g=Math.imul(te,M))+Math.imul(ie,S)|0,b=Math.imul(ie,M),R=R+Math.imul(se,W)|0,g=(g=g+Math.imul(se,z)|0)+Math.imul(ne,W)|0,b=b+Math.imul(ne,z)|0,R=R+Math.imul(X,Y)|0,g=(g=g+Math.imul(X,re)|0)+Math.imul(J,Y)|0,b=b+Math.imul(J,re)|0,R=R+Math.imul(Z,ce)|0,g=(g=g+Math.imul(Z,ae)|0)+Math.imul(V,ce)|0,b=b+Math.imul(V,ae)|0,R=R+Math.imul(H,$e)|0,g=(g=g+Math.imul(H,qe)|0)+Math.imul(K,$e)|0,b=b+Math.imul(K,qe)|0;var He=(T+(R=R+Math.imul(D,Be)|0)|0)+((8191&(g=(g=g+Math.imul(D,Ae)|0)+Math.imul(I,Be)|0))<<13)|0;T=((b=b+Math.imul(I,Ae)|0)+(g>>>13)|0)+(He>>>26)|0,He&=67108863,R=Math.imul(ue,S),g=(g=Math.imul(ue,M))+Math.imul(fe,S)|0,b=Math.imul(fe,M),R=R+Math.imul(te,W)|0,g=(g=g+Math.imul(te,z)|0)+Math.imul(ie,W)|0,b=b+Math.imul(ie,z)|0,R=R+Math.imul(se,Y)|0,g=(g=g+Math.imul(se,re)|0)+Math.imul(ne,Y)|0,b=b+Math.imul(ne,re)|0,R=R+Math.imul(X,ce)|0,g=(g=g+Math.imul(X,ae)|0)+Math.imul(J,ce)|0,b=b+Math.imul(J,ae)|0,R=R+Math.imul(Z,$e)|0,g=(g=g+Math.imul(Z,qe)|0)+Math.imul(V,$e)|0,b=b+Math.imul(V,qe)|0,R=R+Math.imul(H,Be)|0,g=(g=g+Math.imul(H,Ae)|0)+Math.imul(K,Be)|0,b=b+Math.imul(K,Ae)|0;var Ge=(T+(R=R+Math.imul(D,Se)|0)|0)+((8191&(g=(g=g+Math.imul(D,we)|0)+Math.imul(I,Se)|0))<<13)|0;T=((b=b+Math.imul(I,we)|0)+(g>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,R=Math.imul(le,S),g=(g=Math.imul(le,M))+Math.imul(he,S)|0,b=Math.imul(he,M),R=R+Math.imul(ue,W)|0,g=(g=g+Math.imul(ue,z)|0)+Math.imul(fe,W)|0,b=b+Math.imul(fe,z)|0,R=R+Math.imul(te,Y)|0,g=(g=g+Math.imul(te,re)|0)+Math.imul(ie,Y)|0,b=b+Math.imul(ie,re)|0,R=R+Math.imul(se,ce)|0,g=(g=g+Math.imul(se,ae)|0)+Math.imul(ne,ce)|0,b=b+Math.imul(ne,ae)|0,R=R+Math.imul(X,$e)|0,g=(g=g+Math.imul(X,qe)|0)+Math.imul(J,$e)|0,b=b+Math.imul(J,qe)|0,R=R+Math.imul(Z,Be)|0,g=(g=g+Math.imul(Z,Ae)|0)+Math.imul(V,Be)|0,b=b+Math.imul(V,Ae)|0,R=R+Math.imul(H,Se)|0,g=(g=g+Math.imul(H,we)|0)+Math.imul(K,Se)|0,b=b+Math.imul(K,we)|0;var Ke=(T+(R=R+Math.imul(D,ke)|0)|0)+((8191&(g=(g=g+Math.imul(D,Me)|0)+Math.imul(I,ke)|0))<<13)|0;T=((b=b+Math.imul(I,Me)|0)+(g>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,R=Math.imul(ge,S),g=(g=Math.imul(ge,M))+Math.imul(de,S)|0,b=Math.imul(de,M),R=R+Math.imul(le,W)|0,g=(g=g+Math.imul(le,z)|0)+Math.imul(he,W)|0,b=b+Math.imul(he,z)|0,R=R+Math.imul(ue,Y)|0,g=(g=g+Math.imul(ue,re)|0)+Math.imul(fe,Y)|0,b=b+Math.imul(fe,re)|0,R=R+Math.imul(te,ce)|0,g=(g=g+Math.imul(te,ae)|0)+Math.imul(ie,ce)|0,b=b+Math.imul(ie,ae)|0,R=R+Math.imul(se,$e)|0,g=(g=g+Math.imul(se,qe)|0)+Math.imul(ne,$e)|0,b=b+Math.imul(ne,qe)|0,R=R+Math.imul(X,Be)|0,g=(g=g+Math.imul(X,Ae)|0)+Math.imul(J,Be)|0,b=b+Math.imul(J,Ae)|0,R=R+Math.imul(Z,Se)|0,g=(g=g+Math.imul(Z,we)|0)+Math.imul(V,Se)|0,b=b+Math.imul(V,we)|0,R=R+Math.imul(H,ke)|0,g=(g=g+Math.imul(H,Me)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Me)|0;var Ve=(T+(R=R+Math.imul(D,Ie)|0)|0)+((8191&(g=(g=g+Math.imul(D,xe)|0)+Math.imul(I,Ie)|0))<<13)|0;T=((b=b+Math.imul(I,xe)|0)+(g>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,R=Math.imul(ve,S),g=(g=Math.imul(ve,M))+Math.imul(be,S)|0,b=Math.imul(be,M),R=R+Math.imul(ge,W)|0,g=(g=g+Math.imul(ge,z)|0)+Math.imul(de,W)|0,b=b+Math.imul(de,z)|0,R=R+Math.imul(le,Y)|0,g=(g=g+Math.imul(le,re)|0)+Math.imul(he,Y)|0,b=b+Math.imul(he,re)|0,R=R+Math.imul(ue,ce)|0,g=(g=g+Math.imul(ue,ae)|0)+Math.imul(fe,ce)|0,b=b+Math.imul(fe,ae)|0,R=R+Math.imul(te,$e)|0,g=(g=g+Math.imul(te,qe)|0)+Math.imul(ie,$e)|0,b=b+Math.imul(ie,qe)|0,R=R+Math.imul(se,Be)|0,g=(g=g+Math.imul(se,Ae)|0)+Math.imul(ne,Be)|0,b=b+Math.imul(ne,Ae)|0,R=R+Math.imul(X,Se)|0,g=(g=g+Math.imul(X,we)|0)+Math.imul(J,Se)|0,b=b+Math.imul(J,we)|0,R=R+Math.imul(Z,ke)|0,g=(g=g+Math.imul(Z,Me)|0)+Math.imul(V,ke)|0,b=b+Math.imul(V,Me)|0,R=R+Math.imul(H,Ie)|0,g=(g=g+Math.imul(H,xe)|0)+Math.imul(K,Ie)|0,b=b+Math.imul(K,xe)|0;var Xe=(T+(R=R+Math.imul(D,Pe)|0)|0)+((8191&(g=(g=g+Math.imul(D,Ce)|0)+Math.imul(I,Pe)|0))<<13)|0;T=((b=b+Math.imul(I,Ce)|0)+(g>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,R=Math.imul(ve,W),g=(g=Math.imul(ve,z))+Math.imul(be,W)|0,b=Math.imul(be,z),R=R+Math.imul(ge,Y)|0,g=(g=g+Math.imul(ge,re)|0)+Math.imul(de,Y)|0,b=b+Math.imul(de,re)|0,R=R+Math.imul(le,ce)|0,g=(g=g+Math.imul(le,ae)|0)+Math.imul(he,ce)|0,b=b+Math.imul(he,ae)|0,R=R+Math.imul(ue,$e)|0,g=(g=g+Math.imul(ue,qe)|0)+Math.imul(fe,$e)|0,b=b+Math.imul(fe,qe)|0,R=R+Math.imul(te,Be)|0,g=(g=g+Math.imul(te,Ae)|0)+Math.imul(ie,Be)|0,b=b+Math.imul(ie,Ae)|0,R=R+Math.imul(se,Se)|0,g=(g=g+Math.imul(se,we)|0)+Math.imul(ne,Se)|0,b=b+Math.imul(ne,we)|0,R=R+Math.imul(X,ke)|0,g=(g=g+Math.imul(X,Me)|0)+Math.imul(J,ke)|0,b=b+Math.imul(J,Me)|0,R=R+Math.imul(Z,Ie)|0,g=(g=g+Math.imul(Z,xe)|0)+Math.imul(V,Ie)|0,b=b+Math.imul(V,xe)|0;var Ye=(T+(R=R+Math.imul(H,Pe)|0)|0)+((8191&(g=(g=g+Math.imul(H,Ce)|0)+Math.imul(K,Pe)|0))<<13)|0;T=((b=b+Math.imul(K,Ce)|0)+(g>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,R=Math.imul(ve,Y),g=(g=Math.imul(ve,re))+Math.imul(be,Y)|0,b=Math.imul(be,re),R=R+Math.imul(ge,ce)|0,g=(g=g+Math.imul(ge,ae)|0)+Math.imul(de,ce)|0,b=b+Math.imul(de,ae)|0,R=R+Math.imul(le,$e)|0,g=(g=g+Math.imul(le,qe)|0)+Math.imul(he,$e)|0,b=b+Math.imul(he,qe)|0,R=R+Math.imul(ue,Be)|0,g=(g=g+Math.imul(ue,Ae)|0)+Math.imul(fe,Be)|0,b=b+Math.imul(fe,Ae)|0,R=R+Math.imul(te,Se)|0,g=(g=g+Math.imul(te,we)|0)+Math.imul(ie,Se)|0,b=b+Math.imul(ie,we)|0,R=R+Math.imul(se,ke)|0,g=(g=g+Math.imul(se,Me)|0)+Math.imul(ne,ke)|0,b=b+Math.imul(ne,Me)|0,R=R+Math.imul(X,Ie)|0,g=(g=g+Math.imul(X,xe)|0)+Math.imul(J,Ie)|0,b=b+Math.imul(J,xe)|0;var Ze=(T+(R=R+Math.imul(Z,Pe)|0)|0)+((8191&(g=(g=g+Math.imul(Z,Ce)|0)+Math.imul(V,Pe)|0))<<13)|0;T=((b=b+Math.imul(V,Ce)|0)+(g>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,R=Math.imul(ve,ce),g=(g=Math.imul(ve,ae))+Math.imul(be,ce)|0,b=Math.imul(be,ae),R=R+Math.imul(ge,$e)|0,g=(g=g+Math.imul(ge,qe)|0)+Math.imul(de,$e)|0,b=b+Math.imul(de,qe)|0,R=R+Math.imul(le,Be)|0,g=(g=g+Math.imul(le,Ae)|0)+Math.imul(he,Be)|0,b=b+Math.imul(he,Ae)|0,R=R+Math.imul(ue,Se)|0,g=(g=g+Math.imul(ue,we)|0)+Math.imul(fe,Se)|0,b=b+Math.imul(fe,we)|0,R=R+Math.imul(te,ke)|0,g=(g=g+Math.imul(te,Me)|0)+Math.imul(ie,ke)|0,b=b+Math.imul(ie,Me)|0,R=R+Math.imul(se,Ie)|0,g=(g=g+Math.imul(se,xe)|0)+Math.imul(ne,Ie)|0,b=b+Math.imul(ne,xe)|0;var Je=(T+(R=R+Math.imul(X,Pe)|0)|0)+((8191&(g=(g=g+Math.imul(X,Ce)|0)+Math.imul(J,Pe)|0))<<13)|0;T=((b=b+Math.imul(J,Ce)|0)+(g>>>13)|0)+(Je>>>26)|0,Je&=67108863,R=Math.imul(ve,$e),g=(g=Math.imul(ve,qe))+Math.imul(be,$e)|0,b=Math.imul(be,qe),R=R+Math.imul(ge,Be)|0,g=(g=g+Math.imul(ge,Ae)|0)+Math.imul(de,Be)|0,b=b+Math.imul(de,Ae)|0,R=R+Math.imul(le,Se)|0,g=(g=g+Math.imul(le,we)|0)+Math.imul(he,Se)|0,b=b+Math.imul(he,we)|0,R=R+Math.imul(ue,ke)|0,g=(g=g+Math.imul(ue,Me)|0)+Math.imul(fe,ke)|0,b=b+Math.imul(fe,Me)|0,R=R+Math.imul(te,Ie)|0,g=(g=g+Math.imul(te,xe)|0)+Math.imul(ie,Ie)|0,b=b+Math.imul(ie,xe)|0;var Qe=(T+(R=R+Math.imul(se,Pe)|0)|0)+((8191&(g=(g=g+Math.imul(se,Ce)|0)+Math.imul(ne,Pe)|0))<<13)|0;T=((b=b+Math.imul(ne,Ce)|0)+(g>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,R=Math.imul(ve,Be),g=(g=Math.imul(ve,Ae))+Math.imul(be,Be)|0,b=Math.imul(be,Ae),R=R+Math.imul(ge,Se)|0,g=(g=g+Math.imul(ge,we)|0)+Math.imul(de,Se)|0,b=b+Math.imul(de,we)|0,R=R+Math.imul(le,ke)|0,g=(g=g+Math.imul(le,Me)|0)+Math.imul(he,ke)|0,b=b+Math.imul(he,Me)|0,R=R+Math.imul(ue,Ie)|0,g=(g=g+Math.imul(ue,xe)|0)+Math.imul(fe,Ie)|0,b=b+Math.imul(fe,xe)|0;var er=(T+(R=R+Math.imul(te,Pe)|0)|0)+((8191&(g=(g=g+Math.imul(te,Ce)|0)+Math.imul(ie,Pe)|0))<<13)|0;T=((b=b+Math.imul(ie,Ce)|0)+(g>>>13)|0)+(er>>>26)|0,er&=67108863,R=Math.imul(ve,Se),g=(g=Math.imul(ve,we))+Math.imul(be,Se)|0,b=Math.imul(be,we),R=R+Math.imul(ge,ke)|0,g=(g=g+Math.imul(ge,Me)|0)+Math.imul(de,ke)|0,b=b+Math.imul(de,Me)|0,R=R+Math.imul(le,Ie)|0,g=(g=g+Math.imul(le,xe)|0)+Math.imul(he,Ie)|0,b=b+Math.imul(he,xe)|0;var rr=(T+(R=R+Math.imul(ue,Pe)|0)|0)+((8191&(g=(g=g+Math.imul(ue,Ce)|0)+Math.imul(fe,Pe)|0))<<13)|0;T=((b=b+Math.imul(fe,Ce)|0)+(g>>>13)|0)+(rr>>>26)|0,rr&=67108863,R=Math.imul(ve,ke),g=(g=Math.imul(ve,Me))+Math.imul(be,ke)|0,b=Math.imul(be,Me),R=R+Math.imul(ge,Ie)|0,g=(g=g+Math.imul(ge,xe)|0)+Math.imul(de,Ie)|0,b=b+Math.imul(de,xe)|0;var tr=(T+(R=R+Math.imul(le,Pe)|0)|0)+((8191&(g=(g=g+Math.imul(le,Ce)|0)+Math.imul(he,Pe)|0))<<13)|0;T=((b=b+Math.imul(he,Ce)|0)+(g>>>13)|0)+(tr>>>26)|0,tr&=67108863,R=Math.imul(ve,Ie),g=(g=Math.imul(ve,xe))+Math.imul(be,Ie)|0,b=Math.imul(be,xe);var ir=(T+(R=R+Math.imul(ge,Pe)|0)|0)+((8191&(g=(g=g+Math.imul(ge,Ce)|0)+Math.imul(de,Pe)|0))<<13)|0;T=((b=b+Math.imul(de,Ce)|0)+(g>>>13)|0)+(ir>>>26)|0,ir&=67108863;var nr=(T+(R=Math.imul(ve,Pe))|0)+((8191&(g=(g=Math.imul(ve,Ce))+Math.imul(be,Pe)|0))<<13)|0;return T=((b=Math.imul(be,Ce))+(g>>>13)|0)+(nr>>>26)|0,nr&=67108863,F[0]=Fe,F[1]=Ue,F[2]=Ne,F[3]=We,F[4]=ze,F[5]=He,F[6]=Ge,F[7]=Ke,F[8]=Ve,F[9]=Xe,F[10]=Ye,F[11]=Ze,F[12]=Je,F[13]=Qe,F[14]=er,F[15]=rr,F[16]=tr,F[17]=ir,F[18]=nr,T!==0&&(F[19]=T,$.length++),$};function m(v,B,$){$.negative=B.negative^v.negative,$.length=v.length+B.length;for(var R=0,g=0,b=0;b<$.length-1;b++){var k=g;g=0;for(var L=67108863&R,F=Math.min(b,B.length-1),T=Math.max(0,b-v.length+1);T<=F;T++){var U=b-T,D=(0|v.words[U])*(0|B.words[T]),I=67108863&D;L=67108863&(I=I+L|0),g+=(k=(k=k+(D/67108864|0)|0)+(I>>>26)|0)>>>26,k&=67108863}$.words[b]=L,R=k,k=g}return R!==0?$.words[b]=R:$.length--,$._strip()}function _(v,B,$){return m(v,B,$)}Math.imul||(y=p),n.prototype.mulTo=function(v,B){var $=this.length+v.length;return this.length===10&&v.length===10?y(this,v,B):$<63?p(this,v,B):$<1024?m(this,v,B):_(this,v,B)},n.prototype.mul=function(v){var B=new n(null);return B.words=new Array(this.length+v.length),this.mulTo(v,B)},n.prototype.mulf=function(v){var B=new n(null);return B.words=new Array(this.length+v.length),_(this,v,B)},n.prototype.imul=function(v){return this.clone().mulTo(v,this)},n.prototype.imuln=function(v){var B=v<0;B&&(v=-v),o(typeof v=="number"),o(v<67108864);for(var $=0,R=0;R<this.length;R++){var g=(0|this.words[R])*v,b=(67108863&g)+(67108863&$);$>>=26,$+=g/67108864|0,$+=b>>>26,this.words[R]=67108863&b}return $!==0&&(this.words[R]=$,this.length++),this.length=v===0?1:this.length,B?this.ineg():this},n.prototype.muln=function(v){return this.clone().imuln(v)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(v){var B=(function(b){for(var k=new Array(b.bitLength()),L=0;L<k.length;L++){var F=L/26|0,T=L%26;k[L]=b.words[F]>>>T&1}return k})(v);if(B.length===0)return new n(1);for(var $=this,R=0;R<B.length&&B[R]===0;R++,$=$.sqr());if(++R<B.length)for(var g=$.sqr();R<B.length;R++,g=g.sqr())B[R]!==0&&($=$.mul(g));return $},n.prototype.iushln=function(v){o(typeof v=="number"&&v>=0);var B,$=v%26,R=(v-$)/26,g=67108863>>>26-$<<26-$;if($!==0){var b=0;for(B=0;B<this.length;B++){var k=this.words[B]&g,L=(0|this.words[B])-k<<$;this.words[B]=L|b,b=k>>>26-$}b&&(this.words[B]=b,this.length++)}if(R!==0){for(B=this.length-1;B>=0;B--)this.words[B+R]=this.words[B];for(B=0;B<R;B++)this.words[B]=0;this.length+=R}return this._strip()},n.prototype.ishln=function(v){return o(this.negative===0),this.iushln(v)},n.prototype.iushrn=function(v,B,$){var R;o(typeof v=="number"&&v>=0),R=B?(B-B%26)/26:0;var g=v%26,b=Math.min((v-g)/26,this.length),k=67108863^67108863>>>g<<g,L=$;if(R-=b,R=Math.max(0,R),L){for(var F=0;F<b;F++)L.words[F]=this.words[F];L.length=b}if(b!==0)if(this.length>b)for(this.length-=b,F=0;F<this.length;F++)this.words[F]=this.words[F+b];else this.words[0]=0,this.length=1;var T=0;for(F=this.length-1;F>=0&&(T!==0||F>=R);F--){var U=0|this.words[F];this.words[F]=T<<26-g|U>>>g,T=U&k}return L&&T!==0&&(L.words[L.length++]=T),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(v,B,$){return o(this.negative===0),this.iushrn(v,B,$)},n.prototype.shln=function(v){return this.clone().ishln(v)},n.prototype.ushln=function(v){return this.clone().iushln(v)},n.prototype.shrn=function(v){return this.clone().ishrn(v)},n.prototype.ushrn=function(v){return this.clone().iushrn(v)},n.prototype.testn=function(v){o(typeof v=="number"&&v>=0);var B=v%26,$=(v-B)/26,R=1<<B;return!(this.length<=$||!(this.words[$]&R))},n.prototype.imaskn=function(v){o(typeof v=="number"&&v>=0);var B=v%26,$=(v-B)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=$)return this;if(B!==0&&$++,this.length=Math.min($,this.length),B!==0){var R=67108863^67108863>>>B<<B;this.words[this.length-1]&=R}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.maskn=function(v){return this.clone().imaskn(v)},n.prototype.iaddn=function(v){return o(typeof v=="number"),o(v<67108864),v<0?this.isubn(-v):this.negative!==0?this.length===1&&(0|this.words[0])<=v?(this.words[0]=v-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(v),this.negative=1,this):this._iaddn(v)},n.prototype._iaddn=function(v){this.words[0]+=v;for(var B=0;B<this.length&&this.words[B]>=67108864;B++)this.words[B]-=67108864,B===this.length-1?this.words[B+1]=1:this.words[B+1]++;return this.length=Math.max(this.length,B+1),this},n.prototype.isubn=function(v){if(o(typeof v=="number"),o(v<67108864),v<0)return this.iaddn(-v);if(this.negative!==0)return this.negative=0,this.iaddn(v),this.negative=1,this;if(this.words[0]-=v,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var B=0;B<this.length&&this.words[B]<0;B++)this.words[B]+=67108864,this.words[B+1]-=1;return this._strip()},n.prototype.addn=function(v){return this.clone().iaddn(v)},n.prototype.subn=function(v){return this.clone().isubn(v)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(v,B,$){var R,g,b=v.length+$;this._expand(b);var k=0;for(R=0;R<v.length;R++){g=(0|this.words[R+$])+k;var L=(0|v.words[R])*B;k=((g-=67108863&L)>>26)-(L/67108864|0),this.words[R+$]=67108863&g}for(;R<this.length-$;R++)k=(g=(0|this.words[R+$])+k)>>26,this.words[R+$]=67108863&g;if(k===0)return this._strip();for(o(k===-1),k=0,R=0;R<this.length;R++)k=(g=-(0|this.words[R])+k)>>26,this.words[R]=67108863&g;return this.negative=1,this._strip()},n.prototype._wordDiv=function(v,B){var $=(this.length,v.length),R=this.clone(),g=v,b=0|g.words[g.length-1];($=26-this._countBits(b))!=0&&(g=g.ushln($),R.iushln($),b=0|g.words[g.length-1]);var k,L=R.length-g.length;if(B!=="mod"){(k=new n(null)).length=L+1,k.words=new Array(k.length);for(var F=0;F<k.length;F++)k.words[F]=0}var T=R.clone()._ishlnsubmul(g,1,L);T.negative===0&&(R=T,k&&(k.words[L]=1));for(var U=L-1;U>=0;U--){var D=67108864*(0|R.words[g.length+U])+(0|R.words[g.length+U-1]);for(D=Math.min(D/b|0,67108863),R._ishlnsubmul(g,D,U);R.negative!==0;)D--,R.negative=0,R._ishlnsubmul(g,1,U),R.isZero()||(R.negative^=1);k&&(k.words[U]=D)}return k&&k._strip(),R._strip(),B!=="div"&&$!==0&&R.iushrn($),{div:k||null,mod:R}},n.prototype.divmod=function(v,B,$){return o(!v.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:this.negative!==0&&v.negative===0?(b=this.neg().divmod(v,B),B!=="mod"&&(R=b.div.neg()),B!=="div"&&(g=b.mod.neg(),$&&g.negative!==0&&g.iadd(v)),{div:R,mod:g}):this.negative===0&&v.negative!==0?(b=this.divmod(v.neg(),B),B!=="mod"&&(R=b.div.neg()),{div:R,mod:b.mod}):this.negative&v.negative?(b=this.neg().divmod(v.neg(),B),B!=="div"&&(g=b.mod.neg(),$&&g.negative!==0&&g.isub(v)),{div:b.div,mod:g}):v.length>this.length||this.cmp(v)<0?{div:new n(0),mod:this}:v.length===1?B==="div"?{div:this.divn(v.words[0]),mod:null}:B==="mod"?{div:null,mod:new n(this.modrn(v.words[0]))}:{div:this.divn(v.words[0]),mod:new n(this.modrn(v.words[0]))}:this._wordDiv(v,B);var R,g,b},n.prototype.div=function(v){return this.divmod(v,"div",!1).div},n.prototype.mod=function(v){return this.divmod(v,"mod",!1).mod},n.prototype.umod=function(v){return this.divmod(v,"mod",!0).mod},n.prototype.divRound=function(v){var B=this.divmod(v);if(B.mod.isZero())return B.div;var $=B.div.negative!==0?B.mod.isub(v):B.mod,R=v.ushrn(1),g=v.andln(1),b=$.cmp(R);return b<0||g===1&&b===0?B.div:B.div.negative!==0?B.div.isubn(1):B.div.iaddn(1)},n.prototype.modrn=function(v){var B=v<0;B&&(v=-v),o(v<=67108863);for(var $=(1<<26)%v,R=0,g=this.length-1;g>=0;g--)R=($*R+(0|this.words[g]))%v;return B?-R:R},n.prototype.modn=function(v){return this.modrn(v)},n.prototype.idivn=function(v){var B=v<0;B&&(v=-v),o(v<=67108863);for(var $=0,R=this.length-1;R>=0;R--){var g=(0|this.words[R])+67108864*$;this.words[R]=g/v|0,$=g%v}return this._strip(),B?this.ineg():this},n.prototype.divn=function(v){return this.clone().idivn(v)},n.prototype.egcd=function(v){o(v.negative===0),o(!v.isZero());var B=this,$=v.clone();B=B.negative!==0?B.umod(v):B.clone();for(var R=new n(1),g=new n(0),b=new n(0),k=new n(1),L=0;B.isEven()&&$.isEven();)B.iushrn(1),$.iushrn(1),++L;for(var F=$.clone(),T=B.clone();!B.isZero();){for(var U=0,D=1;!(B.words[0]&D)&&U<26;++U,D<<=1);if(U>0)for(B.iushrn(U);U-- >0;)(R.isOdd()||g.isOdd())&&(R.iadd(F),g.isub(T)),R.iushrn(1),g.iushrn(1);for(var I=0,j=1;!($.words[0]&j)&&I<26;++I,j<<=1);if(I>0)for($.iushrn(I);I-- >0;)(b.isOdd()||k.isOdd())&&(b.iadd(F),k.isub(T)),b.iushrn(1),k.iushrn(1);B.cmp($)>=0?(B.isub($),R.isub(b),g.isub(k)):($.isub(B),b.isub(R),k.isub(g))}return{a:b,b:k,gcd:$.iushln(L)}},n.prototype._invmp=function(v){o(v.negative===0),o(!v.isZero());var B=this,$=v.clone();B=B.negative!==0?B.umod(v):B.clone();for(var R,g=new n(1),b=new n(0),k=$.clone();B.cmpn(1)>0&&$.cmpn(1)>0;){for(var L=0,F=1;!(B.words[0]&F)&&L<26;++L,F<<=1);if(L>0)for(B.iushrn(L);L-- >0;)g.isOdd()&&g.iadd(k),g.iushrn(1);for(var T=0,U=1;!($.words[0]&U)&&T<26;++T,U<<=1);if(T>0)for($.iushrn(T);T-- >0;)b.isOdd()&&b.iadd(k),b.iushrn(1);B.cmp($)>=0?(B.isub($),g.isub(b)):($.isub(B),b.isub(g))}return(R=B.cmpn(1)===0?g:b).cmpn(0)<0&&R.iadd(v),R},n.prototype.gcd=function(v){if(this.isZero())return v.abs();if(v.isZero())return this.abs();var B=this.clone(),$=v.clone();B.negative=0,$.negative=0;for(var R=0;B.isEven()&&$.isEven();R++)B.iushrn(1),$.iushrn(1);for(;;){for(;B.isEven();)B.iushrn(1);for(;$.isEven();)$.iushrn(1);var g=B.cmp($);if(g<0){var b=B;B=$,$=b}else if(g===0||$.cmpn(1)===0)break;B.isub($)}return $.iushln(R)},n.prototype.invm=function(v){return this.egcd(v).a.umod(v)},n.prototype.isEven=function(){return!(1&this.words[0])},n.prototype.isOdd=function(){return!(1&~this.words[0])},n.prototype.andln=function(v){return this.words[0]&v},n.prototype.bincn=function(v){o(typeof v=="number");var B=v%26,$=(v-B)/26,R=1<<B;if(this.length<=$)return this._expand($+1),this.words[$]|=R,this;for(var g=R,b=$;g!==0&&b<this.length;b++){var k=0|this.words[b];g=(k+=g)>>>26,k&=67108863,this.words[b]=k}return g!==0&&(this.words[b]=g,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(v){var B,$=v<0;if(this.negative!==0&&!$)return-1;if(this.negative===0&&$)return 1;if(this._strip(),this.length>1)B=1;else{$&&(v=-v),o(v<=67108863,"Number is too big");var R=0|this.words[0];B=R===v?0:R<v?-1:1}return this.negative!==0?0|-B:B},n.prototype.cmp=function(v){if(this.negative!==0&&v.negative===0)return-1;if(this.negative===0&&v.negative!==0)return 1;var B=this.ucmp(v);return this.negative!==0?0|-B:B},n.prototype.ucmp=function(v){if(this.length>v.length)return 1;if(this.length<v.length)return-1;for(var B=0,$=this.length-1;$>=0;$--){var R=0|this.words[$],g=0|v.words[$];if(R!==g){R<g?B=-1:R>g&&(B=1);break}}return B},n.prototype.gtn=function(v){return this.cmpn(v)===1},n.prototype.gt=function(v){return this.cmp(v)===1},n.prototype.gten=function(v){return this.cmpn(v)>=0},n.prototype.gte=function(v){return this.cmp(v)>=0},n.prototype.ltn=function(v){return this.cmpn(v)===-1},n.prototype.lt=function(v){return this.cmp(v)===-1},n.prototype.lten=function(v){return this.cmpn(v)<=0},n.prototype.lte=function(v){return this.cmp(v)<=0},n.prototype.eqn=function(v){return this.cmpn(v)===0},n.prototype.eq=function(v){return this.cmp(v)===0},n.red=function(v){return new O(v)},n.prototype.toRed=function(v){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),v.convertTo(this)._forceRed(v)},n.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(v){return this.red=v,this},n.prototype.forceRed=function(v){return o(!this.red,"Already a number in reduction context"),this._forceRed(v)},n.prototype.redAdd=function(v){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,v)},n.prototype.redIAdd=function(v){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,v)},n.prototype.redSub=function(v){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,v)},n.prototype.redISub=function(v){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,v)},n.prototype.redShl=function(v){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,v)},n.prototype.redMul=function(v){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.mul(this,v)},n.prototype.redIMul=function(v){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.imul(this,v)},n.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(v){return o(this.red&&!v.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,v)};var A={k256:null,p224:null,p192:null,p25519:null};function E(v,B){this.name=v,this.p=new n(B,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function q(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function P(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(v){if(typeof v=="string"){var B=n._prime(v);this.m=B.p,this.prime=B}else o(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}function N(v){O.call(this,v),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}E.prototype._tmp=function(){var v=new n(null);return v.words=new Array(Math.ceil(this.n/13)),v},E.prototype.ireduce=function(v){var B,$=v;do this.split($,this.tmp),B=($=($=this.imulK($)).iadd(this.tmp)).bitLength();while(B>this.n);var R=B<this.n?-1:$.ucmp(this.p);return R===0?($.words[0]=0,$.length=1):R>0?$.isub(this.p):$.strip!==void 0?$.strip():$._strip(),$},E.prototype.split=function(v,B){v.iushrn(this.n,0,B)},E.prototype.imulK=function(v){return v.imul(this.k)},i(q,E),q.prototype.split=function(v,B){for(var $=4194303,R=Math.min(v.length,9),g=0;g<R;g++)B.words[g]=v.words[g];if(B.length=R,v.length<=9)return v.words[0]=0,void(v.length=1);var b=v.words[9];for(B.words[B.length++]=b&$,g=10;g<v.length;g++){var k=0|v.words[g];v.words[g-10]=(k&$)<<4|b>>>22,b=k}b>>>=22,v.words[g-10]=b,b===0&&v.length>10?v.length-=10:v.length-=9},q.prototype.imulK=function(v){v.words[v.length]=0,v.words[v.length+1]=0,v.length+=2;for(var B=0,$=0;$<v.length;$++){var R=0|v.words[$];B+=977*R,v.words[$]=67108863&B,B=64*R+(B/67108864|0)}return v.words[v.length-1]===0&&(v.length--,v.words[v.length-1]===0&&v.length--),v},i(w,E),i(x,E),i(P,E),P.prototype.imulK=function(v){for(var B=0,$=0;$<v.length;$++){var R=19*(0|v.words[$])+B,g=67108863&R;R>>>=26,v.words[$]=g,B=R}return B!==0&&(v.words[v.length++]=B),v},n._prime=function(v){if(A[v])return A[v];var B;if(v==="k256")B=new q;else if(v==="p224")B=new w;else if(v==="p192")B=new x;else{if(v!=="p25519")throw new Error("Unknown prime "+v);B=new P}return A[v]=B,B},O.prototype._verify1=function(v){o(v.negative===0,"red works only with positives"),o(v.red,"red works only with red numbers")},O.prototype._verify2=function(v,B){o(!(v.negative|B.negative),"red works only with positives"),o(v.red&&v.red===B.red,"red works only with red numbers")},O.prototype.imod=function(v){return this.prime?this.prime.ireduce(v)._forceRed(this):(s(v,v.umod(this.m)._forceRed(this)),v)},O.prototype.neg=function(v){return v.isZero()?v.clone():this.m.sub(v)._forceRed(this)},O.prototype.add=function(v,B){this._verify2(v,B);var $=v.add(B);return $.cmp(this.m)>=0&&$.isub(this.m),$._forceRed(this)},O.prototype.iadd=function(v,B){this._verify2(v,B);var $=v.iadd(B);return $.cmp(this.m)>=0&&$.isub(this.m),$},O.prototype.sub=function(v,B){this._verify2(v,B);var $=v.sub(B);return $.cmpn(0)<0&&$.iadd(this.m),$._forceRed(this)},O.prototype.isub=function(v,B){this._verify2(v,B);var $=v.isub(B);return $.cmpn(0)<0&&$.iadd(this.m),$},O.prototype.shl=function(v,B){return this._verify1(v),this.imod(v.ushln(B))},O.prototype.imul=function(v,B){return this._verify2(v,B),this.imod(v.imul(B))},O.prototype.mul=function(v,B){return this._verify2(v,B),this.imod(v.mul(B))},O.prototype.isqr=function(v){return this.imul(v,v.clone())},O.prototype.sqr=function(v){return this.mul(v,v)},O.prototype.sqrt=function(v){if(v.isZero())return v.clone();var B=this.m.andln(3);if(o(B%2==1),B===3){var $=this.m.add(new n(1)).iushrn(2);return this.pow(v,$)}for(var R=this.m.subn(1),g=0;!R.isZero()&&R.andln(1)===0;)g++,R.iushrn(1);o(!R.isZero());var b=new n(1).toRed(this),k=b.redNeg(),L=this.m.subn(1).iushrn(1),F=this.m.bitLength();for(F=new n(2*F*F).toRed(this);this.pow(F,L).cmp(k)!==0;)F.redIAdd(k);for(var T=this.pow(F,R),U=this.pow(v,R.addn(1).iushrn(1)),D=this.pow(v,R),I=g;D.cmp(b)!==0;){for(var j=D,H=0;j.cmp(b)!==0;H++)j=j.redSqr();o(H<I);var K=this.pow(T,new n(1).iushln(I-H-1));U=U.redMul(K),T=K.redSqr(),D=D.redMul(T),I=H}return U},O.prototype.invm=function(v){var B=v._invmp(this.m);return B.negative!==0?(B.negative=0,this.imod(B).redNeg()):this.imod(B)},O.prototype.pow=function(v,B){if(B.isZero())return new n(1).toRed(this);if(B.cmpn(1)===0)return v.clone();var $=new Array(16);$[0]=new n(1).toRed(this),$[1]=v;for(var R=2;R<$.length;R++)$[R]=this.mul($[R-1],v);var g=$[0],b=0,k=0,L=B.bitLength()%26;for(L===0&&(L=26),R=B.length-1;R>=0;R--){for(var F=B.words[R],T=L-1;T>=0;T--){var U=F>>T&1;g!==$[0]&&(g=this.sqr(g)),U!==0||b!==0?(b<<=1,b|=U,(++k==4||R===0&&T===0)&&(g=this.mul(g,$[b]),k=0,b=0)):k=0}L=26}return g},O.prototype.convertTo=function(v){var B=v.umod(this.m);return B===v?B.clone():B},O.prototype.convertFrom=function(v){var B=v.clone();return B.red=null,B},n.mont=function(v){return new N(v)},i(N,O),N.prototype.convertTo=function(v){return this.imod(v.ushln(this.shift))},N.prototype.convertFrom=function(v){var B=this.imod(v.mul(this.rinv));return B.red=null,B},N.prototype.imul=function(v,B){if(v.isZero()||B.isZero())return v.words[0]=0,v.length=1,v;var $=v.imul(B),R=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=$.isub(R).iushrn(this.shift),b=g;return g.cmp(this.m)>=0?b=g.isub(this.m):g.cmpn(0)<0&&(b=g.iadd(this.m)),b._forceRed(this)},N.prototype.mul=function(v,B){if(v.isZero()||B.isZero())return new n(0)._forceRed(this);var $=v.mul(B),R=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=$.isub(R).iushrn(this.shift),b=g;return g.cmp(this.m)>=0?b=g.isub(this.m):g.cmpn(0)<0&&(b=g.iadd(this.m)),b._forceRed(this)},N.prototype.invm=function(v){return this.imod(v._invmp(this.m).mul(this.r2))._forceRed(this)}})(bn$1,bn)),bn$1.exports}var brorand={exports:{}},hasRequiredBrorand,mr,hasRequiredMr,generatePrime,hasRequiredGeneratePrime;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;var e;function r(i){this.rand=i}if(hasRequiredBrorand=1,brorand.exports=function(i){return e||(e=new r(null)),e.generate(i)},brorand.exports.Rand=r,r.prototype.generate=function(i){return this._rand(i)},r.prototype._rand=function(i){if(this.rand.getBytes)return this.rand.getBytes(i);for(var n=new Uint8Array(i),h=0;h<n.length;h++)n[h]=this.rand.getByte();return n},typeof self=="object")self.crypto&&self.crypto.getRandomValues?r.prototype._rand=function(i){var n=new Uint8Array(i);return self.crypto.getRandomValues(n),n}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(i){var n=new Uint8Array(i);return self.msCrypto.getRandomValues(n),n}:typeof window=="object"&&(r.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=requireCryptoBrowserify();if(typeof o.randomBytes!="function")throw new Error("Not supported");r.prototype._rand=function(i){return o.randomBytes(i)}}catch{}return brorand.exports}function requireMr(){if(hasRequiredMr)return mr;hasRequiredMr=1;var e=requireBn(),r=requireBrorand();function o(i){this.rand=i||new r.Rand}return mr=o,o.create=function(i){return new o(i)},o.prototype._randbelow=function(i){var n=i.bitLength(),h=Math.ceil(n/8);do var f=new e(this.rand.generate(h));while(f.cmp(i)>=0);return f},o.prototype._randrange=function(i,n){var h=n.sub(i);return i.add(this._randbelow(h))},o.prototype.test=function(i,n,h){var f=i.bitLength(),t=e.mont(i),a=new e(1).toRed(t);n||(n=Math.max(1,f/48|0));for(var s=i.subn(1),u=0;!s.testn(u);u++);for(var c=i.shrn(u),l=s.toRed(t);n>0;n--){var d=this._randrange(new e(2),s);h&&h(d);var p=d.toRed(t).redPow(c);if(p.cmp(a)!==0&&p.cmp(l)!==0){for(var y=1;y<u;y++){if((p=p.redSqr()).cmp(a)===0)return!1;if(p.cmp(l)===0)break}if(y===u)return!1}}return!0},o.prototype.getDivisor=function(i,n){var h=i.bitLength(),f=e.mont(i),t=new e(1).toRed(f);n||(n=Math.max(1,h/48|0));for(var a=i.subn(1),s=0;!a.testn(s);s++);for(var u=i.shrn(s),c=a.toRed(f);n>0;n--){var l=this._randrange(new e(2),a),d=i.gcd(l);if(d.cmpn(1)!==0)return d;var p=l.toRed(f).redPow(u);if(p.cmp(t)!==0&&p.cmp(c)!==0){for(var y=1;y<s;y++){if((p=p.redSqr()).cmp(t)===0)return p.fromRed().subn(1).gcd(i);if(p.cmp(c)===0)break}if(y===s)return(p=p.redSqr()).fromRed().subn(1).gcd(i)}}return!1},mr}function requireGeneratePrime(){if(hasRequiredGeneratePrime)return generatePrime;hasRequiredGeneratePrime=1;var e=requireBrowser$b();generatePrime=y,y.simpleSieve=d,y.fermatTest=p;var r=requireBn(),o=new r(24),i=new(requireMr()),n=new r(1),h=new r(2),f=new r(5);new r(16),new r(8);var t=new r(10),a=new r(3);new r(7);var s=new r(11),u=new r(4);new r(12);var c=null;function l(){if(c!==null)return c;var m=[];m[0]=2;for(var _=1,A=3;A<1048576;A+=2){for(var E=Math.ceil(Math.sqrt(A)),q=0;q<_&&m[q]<=E&&A%m[q]!=0;q++);_!==q&&m[q]<=E||(m[_++]=A)}return c=m,m}function d(m){for(var _=l(),A=0;A<_.length;A++)if(m.modn(_[A])===0)return m.cmpn(_[A])===0;return!0}function p(m){var _=r.mont(m);return h.toRed(_).redPow(m.subn(1)).fromRed().cmpn(1)===0}function y(m,_){if(m<16)return new r(_===2||_===5?[140,123]:[140,39]);var A,E;for(_=new r(_);;){for(A=new r(e(Math.ceil(m/8)));A.bitLength()>m;)A.ishrn(1);if(A.isEven()&&A.iadd(n),A.testn(1)||A.iadd(h),_.cmp(h)){if(!_.cmp(f))for(;A.mod(t).cmp(a);)A.iadd(u)}else for(;A.mod(o).cmp(s);)A.iadd(u);if(d(E=A.shrn(1))&&d(A)&&p(E)&&p(A)&&i.test(E)&&i.test(A))return A}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$2={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh,hasRequiredBrowser$4;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var e=requireBn(),r=new(requireMr()),o=new e(24),i=new e(11),n=new e(10),h=new e(3),f=new e(7),t=requireGeneratePrime(),a=requireBrowser$b();function s(p,y){return y=y||"utf8",Buffer.isBuffer(p)||(p=new Buffer(p,y)),this._pub=new e(p),this}function u(p,y){return y=y||"utf8",Buffer.isBuffer(p)||(p=new Buffer(p,y)),this._priv=new e(p),this}dh=l;var c={};function l(p,y,m){this.setGenerator(y),this.__prime=new e(p),this._prime=e.mont(this.__prime),this._primeLen=p.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,m?(this.setPublicKey=s,this.setPrivateKey=u):this._primeCode=8}function d(p,y){var m=new Buffer(p.toArray());return y?m.toString(y):m}return Object.defineProperty(l.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=(function(p,y){var m=y.toString("hex"),_=[m,p.toString(16)].join("_");if(_ in c)return c[_];var A,E=0;if(p.isEven()||!t.simpleSieve||!t.fermatTest(p)||!r.test(p))return E+=1,E+=m==="02"||m==="05"?8:4,c[_]=E,E;switch(r.test(p.shrn(1))||(E+=2),m){case"02":p.mod(o).cmp(i)&&(E+=8);break;case"05":(A=p.mod(n)).cmp(h)&&A.cmp(f)&&(E+=8);break;default:E+=4}return c[_]=E,E})(this.__prime,this.__gen)),this._primeCode}}),l.prototype.generateKeys=function(){return this._priv||(this._priv=new e(a(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},l.prototype.computeSecret=function(p){var y=(p=(p=new e(p)).toRed(this._prime)).redPow(this._priv).fromRed(),m=new Buffer(y.toArray()),_=this.getPrime();if(m.length<_.length){var A=new Buffer(_.length-m.length);A.fill(0),m=Buffer.concat([A,m])}return m},l.prototype.getPublicKey=function(p){return d(this._pub,p)},l.prototype.getPrivateKey=function(p){return d(this._priv,p)},l.prototype.getPrime=function(p){return d(this.__prime,p)},l.prototype.getGenerator=function(p){return d(this._gen,p)},l.prototype.setGenerator=function(p,y){return y=y||"utf8",Buffer.isBuffer(p)||(p=new Buffer(p,y)),this.__gen=p,this._gen=new e(p),this},dh}function requireBrowser$4(){if(hasRequiredBrowser$4)return browser$4;hasRequiredBrowser$4=1;var e=requireGeneratePrime(),r=require$$1$2,o=requireDh(),i={binary:!0,hex:!0,base64:!0};return browser$4.DiffieHellmanGroup=browser$4.createDiffieHellmanGroup=browser$4.getDiffieHellman=function(n){var h=new Buffer(r[n].prime,"hex"),f=new Buffer(r[n].gen,"hex");return new o(h,f)},browser$4.createDiffieHellman=browser$4.DiffieHellman=function n(h,f,t,a){return Buffer.isBuffer(f)||i[f]===void 0?n(h,"binary",f,t):(f=f||"binary",a=a||"binary",t=t||new Buffer([2]),Buffer.isBuffer(t)||(t=new Buffer(t,a)),typeof h=="number"?new o(e(h,t),t,!0):(Buffer.isBuffer(h)||(h=new Buffer(h,f)),new o(h,t,!0)))},browser$4}var sign={exports:{}},browserifyRsa,hasRequiredBrowserifyRsa;function requireBrowserifyRsa(){if(hasRequiredBrowserifyRsa)return browserifyRsa;hasRequiredBrowserifyRsa=1;var e=requireBn(),r=requireBrowser$b(),o=requireSafeBuffer$1().Buffer;function i(h){var f,t=h.modulus.byteLength();do f=new e(r(t));while(f.cmp(h.modulus)>=0||!f.umod(h.prime1)||!f.umod(h.prime2));return f}function n(h,f){var t=(function(A){var E=i(A);return{blinder:E.toRed(e.mont(A.modulus)).redPow(new e(A.publicExponent)).fromRed(),unblinder:E.invm(A.modulus)}})(f),a=f.modulus.byteLength(),s=new e(h).mul(t.blinder).umod(f.modulus),u=s.toRed(e.mont(f.prime1)),c=s.toRed(e.mont(f.prime2)),l=f.coefficient,d=f.prime1,p=f.prime2,y=u.redPow(f.exponent1).fromRed(),m=c.redPow(f.exponent2).fromRed(),_=y.isub(m).imul(l).umod(d).imul(p);return m.iadd(_).imul(t.unblinder).umod(f.modulus).toArrayLike(o,"be",a)}return n.getr=i,browserifyRsa=n}var elliptic={};const version="6.6.1",require$$0={version};var utils$2={},utils$1={},hasRequiredUtils$2,hasRequiredUtils$1;function requireUtils$2(){return hasRequiredUtils$2||(hasRequiredUtils$2=1,(function(){var e=utils$1;function r(i){return i.length===1?"0"+i:i}function o(i){for(var n="",h=0;h<i.length;h++)n+=r(i[h].toString(16));return n}e.toArray=function(i,n){if(Array.isArray(i))return i.slice();if(!i)return[];var h=[];if(typeof i!="string"){for(var f=0;f<i.length;f++)h[f]=0|i[f];return h}if(n==="hex")for((i=i.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(i="0"+i),f=0;f<i.length;f+=2)h.push(parseInt(i[f]+i[f+1],16));else for(f=0;f<i.length;f++){var t=i.charCodeAt(f),a=t>>8,s=255&t;a?h.push(a,s):h.push(s)}return h},e.zero2=r,e.toHex=o,e.encode=function(i,n){return n==="hex"?o(i):i}})()),utils$1}function requireUtils$1(){return hasRequiredUtils$1||(hasRequiredUtils$1=1,(function(){var e=utils$2,r=requireBn(),o=requireMinimalisticAssert(),i=requireUtils$2();e.assert=o,e.toArray=i.toArray,e.zero2=i.zero2,e.toHex=i.toHex,e.encode=i.encode,e.getNAF=function(n,h,f){var t,a=new Array(Math.max(n.bitLength(),f)+1);for(t=0;t<a.length;t+=1)a[t]=0;var s=1<<h+1,u=n.clone();for(t=0;t<a.length;t++){var c,l=u.andln(s-1);u.isOdd()?(c=l>(s>>1)-1?(s>>1)-l:l,u.isubn(c)):c=0,a[t]=c,u.iushrn(1)}return a},e.getJSF=function(n,h){var f=[[],[]];n=n.clone(),h=h.clone();for(var t,a=0,s=0;n.cmpn(-a)>0||h.cmpn(-s)>0;){var u,c,l=n.andln(3)+a&3,d=h.andln(3)+s&3;l===3&&(l=-1),d===3&&(d=-1),u=1&l?(t=n.andln(7)+a&7)!==3&&t!==5||d!==2?l:-l:0,f[0].push(u),c=1&d?(t=h.andln(7)+s&7)!==3&&t!==5||l!==2?d:-d:0,f[1].push(c),2*a===u+1&&(a=1-a),2*s===c+1&&(s=1-s),n.iushrn(1),h.iushrn(1)}return f},e.cachedProperty=function(n,h,f){var t="_"+h;n.prototype[h]=function(){return this[t]!==void 0?this[t]:this[t]=f.call(this)}},e.parseBytes=function(n){return typeof n=="string"?e.toArray(n,"hex"):n},e.intFromLE=function(n){return new r(n,"hex","le")}})()),utils$2}var curve={},base$1,hasRequiredBase$1,short,hasRequiredShort,mont,hasRequiredMont,edwards,hasRequiredEdwards,hasRequiredCurve;function requireBase$1(){if(hasRequiredBase$1)return base$1;hasRequiredBase$1=1;var e=requireBn(),r=requireUtils$1(),o=r.getNAF,i=r.getJSF,n=r.assert;function h(t,a){this.type=t,this.p=new e(a.p,16),this.red=a.prime?e.red(a.prime):e.mont(this.p),this.zero=new e(0).toRed(this.red),this.one=new e(1).toRed(this.red),this.two=new e(2).toRed(this.red),this.n=a.n&&new e(a.n,16),this.g=a.g&&this.pointFromJSON(a.g,a.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var s=this.n&&this.p.div(this.n);!s||s.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(t,a){this.curve=t,this.type=a,this.precomputed=null}return base$1=h,h.prototype.point=function(){throw new Error("Not implemented")},h.prototype.validate=function(){throw new Error("Not implemented")},h.prototype._fixedNafMul=function(t,a){n(t.precomputed);var s=t._getDoubles(),u=o(a,1,this._bitLength),c=(1<<s.step+1)-(s.step%2==0?2:1);c/=3;var l,d,p=[];for(l=0;l<u.length;l+=s.step){d=0;for(var y=l+s.step-1;y>=l;y--)d=(d<<1)+u[y];p.push(d)}for(var m=this.jpoint(null,null,null),_=this.jpoint(null,null,null),A=c;A>0;A--){for(l=0;l<p.length;l++)(d=p[l])===A?_=_.mixedAdd(s.points[l]):d===-A&&(_=_.mixedAdd(s.points[l].neg()));m=m.add(_)}return m.toP()},h.prototype._wnafMul=function(t,a){var s=4,u=t._getNAFPoints(s);s=u.wnd;for(var c=u.points,l=o(a,s,this._bitLength),d=this.jpoint(null,null,null),p=l.length-1;p>=0;p--){for(var y=0;p>=0&&l[p]===0;p--)y++;if(p>=0&&y++,d=d.dblp(y),p<0)break;var m=l[p];n(m!==0),d=t.type==="affine"?m>0?d.mixedAdd(c[m-1>>1]):d.mixedAdd(c[-m-1>>1].neg()):m>0?d.add(c[m-1>>1]):d.add(c[-m-1>>1].neg())}return t.type==="affine"?d.toP():d},h.prototype._wnafMulAdd=function(t,a,s,u,c){var l,d,p,y=this._wnafT1,m=this._wnafT2,_=this._wnafT3,A=0;for(l=0;l<u;l++){var E=(p=a[l])._getNAFPoints(t);y[l]=E.wnd,m[l]=E.points}for(l=u-1;l>=1;l-=2){var q=l-1,w=l;if(y[q]===1&&y[w]===1){var x=[a[q],null,null,a[w]];a[q].y.cmp(a[w].y)===0?(x[1]=a[q].add(a[w]),x[2]=a[q].toJ().mixedAdd(a[w].neg())):a[q].y.cmp(a[w].y.redNeg())===0?(x[1]=a[q].toJ().mixedAdd(a[w]),x[2]=a[q].add(a[w].neg())):(x[1]=a[q].toJ().mixedAdd(a[w]),x[2]=a[q].toJ().mixedAdd(a[w].neg()));var P=[-3,-1,-5,-7,0,7,5,1,3],O=i(s[q],s[w]);for(A=Math.max(O[0].length,A),_[q]=new Array(A),_[w]=new Array(A),d=0;d<A;d++){var N=0|O[0][d],v=0|O[1][d];_[q][d]=P[3*(N+1)+(v+1)],_[w][d]=0,m[q]=x}}else _[q]=o(s[q],y[q],this._bitLength),_[w]=o(s[w],y[w],this._bitLength),A=Math.max(_[q].length,A),A=Math.max(_[w].length,A)}var B=this.jpoint(null,null,null),$=this._wnafT4;for(l=A;l>=0;l--){for(var R=0;l>=0;){var g=!0;for(d=0;d<u;d++)$[d]=0|_[d][l],$[d]!==0&&(g=!1);if(!g)break;R++,l--}if(l>=0&&R++,B=B.dblp(R),l<0)break;for(d=0;d<u;d++){var b=$[d];b!==0&&(b>0?p=m[d][b-1>>1]:b<0&&(p=m[d][-b-1>>1].neg()),B=p.type==="affine"?B.mixedAdd(p):B.add(p))}}for(l=0;l<u;l++)m[l]=null;return c?B:B.toP()},h.BasePoint=f,f.prototype.eq=function(){throw new Error("Not implemented")},f.prototype.validate=function(){return this.curve.validate(this)},h.prototype.decodePoint=function(t,a){t=r.toArray(t,a);var s=this.p.byteLength();if((t[0]===4||t[0]===6||t[0]===7)&&t.length-1==2*s)return t[0]===6?n(t[t.length-1]%2==0):t[0]===7&&n(t[t.length-1]%2==1),this.point(t.slice(1,1+s),t.slice(1+s,1+2*s));if((t[0]===2||t[0]===3)&&t.length-1===s)return this.pointFromX(t.slice(1,1+s),t[0]===3);throw new Error("Unknown point format")},f.prototype.encodeCompressed=function(t){return this.encode(t,!0)},f.prototype._encode=function(t){var a=this.curve.p.byteLength(),s=this.getX().toArray("be",a);return t?[this.getY().isEven()?2:3].concat(s):[4].concat(s,this.getY().toArray("be",a))},f.prototype.encode=function(t,a){return r.encode(this._encode(a),t)},f.prototype.precompute=function(t){if(this.precomputed)return this;var a={doubles:null,naf:null,beta:null};return a.naf=this._getNAFPoints(8),a.doubles=this._getDoubles(4,t),a.beta=this._getBeta(),this.precomputed=a,this},f.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var a=this.precomputed.doubles;return!!a&&a.points.length>=Math.ceil((t.bitLength()+1)/a.step)},f.prototype._getDoubles=function(t,a){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var s=[this],u=this,c=0;c<a;c+=t){for(var l=0;l<t;l++)u=u.dbl();s.push(u)}return{step:t,points:s}},f.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var a=[this],s=(1<<t)-1,u=s===1?null:this.dbl(),c=1;c<s;c++)a[c]=a[c-1].add(u);return{wnd:t,points:a}},f.prototype._getBeta=function(){return null},f.prototype.dblp=function(t){for(var a=this,s=0;s<t;s++)a=a.dbl();return a},base$1}function requireShort(){if(hasRequiredShort)return short;hasRequiredShort=1;var e=requireUtils$1(),r=requireBn(),o=requireInherits_browser(),i=requireBase$1(),n=e.assert;function h(a){i.call(this,"short",a),this.a=new r(a.a,16).toRed(this.red),this.b=new r(a.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(a),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function f(a,s,u,c){i.BasePoint.call(this,a,"affine"),s===null&&u===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new r(s,16),this.y=new r(u,16),c&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function t(a,s,u,c){i.BasePoint.call(this,a,"jacobian"),s===null&&u===null&&c===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new r(0)):(this.x=new r(s,16),this.y=new r(u,16),this.z=new r(c,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}return o(h,i),short=h,h.prototype._getEndomorphism=function(a){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var s,u;if(a.beta)s=new r(a.beta,16).toRed(this.red);else{var c=this._getEndoRoots(this.p);s=(s=c[0].cmp(c[1])<0?c[0]:c[1]).toRed(this.red)}if(a.lambda)u=new r(a.lambda,16);else{var l=this._getEndoRoots(this.n);this.g.mul(l[0]).x.cmp(this.g.x.redMul(s))===0?u=l[0]:(u=l[1],n(this.g.mul(u).x.cmp(this.g.x.redMul(s))===0))}return{beta:s,lambda:u,basis:a.basis?a.basis.map((function(d){return{a:new r(d.a,16),b:new r(d.b,16)}})):this._getEndoBasis(u)}}},h.prototype._getEndoRoots=function(a){var s=a===this.p?this.red:r.mont(a),u=new r(2).toRed(s).redInvm(),c=u.redNeg(),l=new r(3).toRed(s).redNeg().redSqrt().redMul(u);return[c.redAdd(l).fromRed(),c.redSub(l).fromRed()]},h.prototype._getEndoBasis=function(a){for(var s,u,c,l,d,p,y,m,_,A=this.n.ushrn(Math.floor(this.n.bitLength()/2)),E=a,q=this.n.clone(),w=new r(1),x=new r(0),P=new r(0),O=new r(1),N=0;E.cmpn(0)!==0;){var v=q.div(E);m=q.sub(v.mul(E)),_=P.sub(v.mul(w));var B=O.sub(v.mul(x));if(!c&&m.cmp(A)<0)s=y.neg(),u=w,c=m.neg(),l=_;else if(c&&++N==2)break;y=m,q=E,E=m,P=w,w=_,O=x,x=B}d=m.neg(),p=_;var $=c.sqr().add(l.sqr());return d.sqr().add(p.sqr()).cmp($)>=0&&(d=s,p=u),c.negative&&(c=c.neg(),l=l.neg()),d.negative&&(d=d.neg(),p=p.neg()),[{a:c,b:l},{a:d,b:p}]},h.prototype._endoSplit=function(a){var s=this.endo.basis,u=s[0],c=s[1],l=c.b.mul(a).divRound(this.n),d=u.b.neg().mul(a).divRound(this.n),p=l.mul(u.a),y=d.mul(c.a),m=l.mul(u.b),_=d.mul(c.b);return{k1:a.sub(p).sub(y),k2:m.add(_).neg()}},h.prototype.pointFromX=function(a,s){(a=new r(a,16)).red||(a=a.toRed(this.red));var u=a.redSqr().redMul(a).redIAdd(a.redMul(this.a)).redIAdd(this.b),c=u.redSqrt();if(c.redSqr().redSub(u).cmp(this.zero)!==0)throw new Error("invalid point");var l=c.fromRed().isOdd();return(s&&!l||!s&&l)&&(c=c.redNeg()),this.point(a,c)},h.prototype.validate=function(a){if(a.inf)return!0;var s=a.x,u=a.y,c=this.a.redMul(s),l=s.redSqr().redMul(s).redIAdd(c).redIAdd(this.b);return u.redSqr().redISub(l).cmpn(0)===0},h.prototype._endoWnafMulAdd=function(a,s,u){for(var c=this._endoWnafT1,l=this._endoWnafT2,d=0;d<a.length;d++){var p=this._endoSplit(s[d]),y=a[d],m=y._getBeta();p.k1.negative&&(p.k1.ineg(),y=y.neg(!0)),p.k2.negative&&(p.k2.ineg(),m=m.neg(!0)),c[2*d]=y,c[2*d+1]=m,l[2*d]=p.k1,l[2*d+1]=p.k2}for(var _=this._wnafMulAdd(1,c,l,2*d,u),A=0;A<2*d;A++)c[A]=null,l[A]=null;return _},o(f,i.BasePoint),h.prototype.point=function(a,s,u){return new f(this,a,s,u)},h.prototype.pointFromJSON=function(a,s){return f.fromJSON(this,a,s)},f.prototype._getBeta=function(){if(this.curve.endo){var a=this.precomputed;if(a&&a.beta)return a.beta;var s=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(a){var u=this.curve,c=function(l){return u.point(l.x.redMul(u.endo.beta),l.y)};a.beta=s,s.precomputed={beta:null,naf:a.naf&&{wnd:a.naf.wnd,points:a.naf.points.map(c)},doubles:a.doubles&&{step:a.doubles.step,points:a.doubles.points.map(c)}}}return s}},f.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},f.fromJSON=function(a,s,u){typeof s=="string"&&(s=JSON.parse(s));var c=a.point(s[0],s[1],u);if(!s[2])return c;function l(p){return a.point(p[0],p[1],u)}var d=s[2];return c.precomputed={beta:null,doubles:d.doubles&&{step:d.doubles.step,points:[c].concat(d.doubles.points.map(l))},naf:d.naf&&{wnd:d.naf.wnd,points:[c].concat(d.naf.points.map(l))}},c},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(a){if(this.inf)return a;if(a.inf)return this;if(this.eq(a))return this.dbl();if(this.neg().eq(a))return this.curve.point(null,null);if(this.x.cmp(a.x)===0)return this.curve.point(null,null);var s=this.y.redSub(a.y);s.cmpn(0)!==0&&(s=s.redMul(this.x.redSub(a.x).redInvm()));var u=s.redSqr().redISub(this.x).redISub(a.x),c=s.redMul(this.x.redSub(u)).redISub(this.y);return this.curve.point(u,c)},f.prototype.dbl=function(){if(this.inf)return this;var a=this.y.redAdd(this.y);if(a.cmpn(0)===0)return this.curve.point(null,null);var s=this.curve.a,u=this.x.redSqr(),c=a.redInvm(),l=u.redAdd(u).redIAdd(u).redIAdd(s).redMul(c),d=l.redSqr().redISub(this.x.redAdd(this.x)),p=l.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,p)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(a){return a=new r(a,16),this.isInfinity()?this:this._hasDoubles(a)?this.curve._fixedNafMul(this,a):this.curve.endo?this.curve._endoWnafMulAdd([this],[a]):this.curve._wnafMul(this,a)},f.prototype.mulAdd=function(a,s,u){var c=[this,s],l=[a,u];return this.curve.endo?this.curve._endoWnafMulAdd(c,l):this.curve._wnafMulAdd(1,c,l,2)},f.prototype.jmulAdd=function(a,s,u){var c=[this,s],l=[a,u];return this.curve.endo?this.curve._endoWnafMulAdd(c,l,!0):this.curve._wnafMulAdd(1,c,l,2,!0)},f.prototype.eq=function(a){return this===a||this.inf===a.inf&&(this.inf||this.x.cmp(a.x)===0&&this.y.cmp(a.y)===0)},f.prototype.neg=function(a){if(this.inf)return this;var s=this.curve.point(this.x,this.y.redNeg());if(a&&this.precomputed){var u=this.precomputed,c=function(l){return l.neg()};s.precomputed={naf:u.naf&&{wnd:u.naf.wnd,points:u.naf.points.map(c)},doubles:u.doubles&&{step:u.doubles.step,points:u.doubles.points.map(c)}}}return s},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(t,i.BasePoint),h.prototype.jpoint=function(a,s,u){return new t(this,a,s,u)},t.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var a=this.z.redInvm(),s=a.redSqr(),u=this.x.redMul(s),c=this.y.redMul(s).redMul(a);return this.curve.point(u,c)},t.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},t.prototype.add=function(a){if(this.isInfinity())return a;if(a.isInfinity())return this;var s=a.z.redSqr(),u=this.z.redSqr(),c=this.x.redMul(s),l=a.x.redMul(u),d=this.y.redMul(s.redMul(a.z)),p=a.y.redMul(u.redMul(this.z)),y=c.redSub(l),m=d.redSub(p);if(y.cmpn(0)===0)return m.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var _=y.redSqr(),A=_.redMul(y),E=c.redMul(_),q=m.redSqr().redIAdd(A).redISub(E).redISub(E),w=m.redMul(E.redISub(q)).redISub(d.redMul(A)),x=this.z.redMul(a.z).redMul(y);return this.curve.jpoint(q,w,x)},t.prototype.mixedAdd=function(a){if(this.isInfinity())return a.toJ();if(a.isInfinity())return this;var s=this.z.redSqr(),u=this.x,c=a.x.redMul(s),l=this.y,d=a.y.redMul(s).redMul(this.z),p=u.redSub(c),y=l.redSub(d);if(p.cmpn(0)===0)return y.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var m=p.redSqr(),_=m.redMul(p),A=u.redMul(m),E=y.redSqr().redIAdd(_).redISub(A).redISub(A),q=y.redMul(A.redISub(E)).redISub(l.redMul(_)),w=this.z.redMul(p);return this.curve.jpoint(E,q,w)},t.prototype.dblp=function(a){if(a===0)return this;if(this.isInfinity())return this;if(!a)return this.dbl();var s;if(this.curve.zeroA||this.curve.threeA){var u=this;for(s=0;s<a;s++)u=u.dbl();return u}var c=this.curve.a,l=this.curve.tinv,d=this.x,p=this.y,y=this.z,m=y.redSqr().redSqr(),_=p.redAdd(p);for(s=0;s<a;s++){var A=d.redSqr(),E=_.redSqr(),q=E.redSqr(),w=A.redAdd(A).redIAdd(A).redIAdd(c.redMul(m)),x=d.redMul(E),P=w.redSqr().redISub(x.redAdd(x)),O=x.redISub(P),N=w.redMul(O);N=N.redIAdd(N).redISub(q);var v=_.redMul(y);s+1<a&&(m=m.redMul(q)),d=P,y=v,_=N}return this.curve.jpoint(d,_.redMul(l),y)},t.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},t.prototype._zeroDbl=function(){var a,s,u;if(this.zOne){var c=this.x.redSqr(),l=this.y.redSqr(),d=l.redSqr(),p=this.x.redAdd(l).redSqr().redISub(c).redISub(d);p=p.redIAdd(p);var y=c.redAdd(c).redIAdd(c),m=y.redSqr().redISub(p).redISub(p),_=d.redIAdd(d);_=(_=_.redIAdd(_)).redIAdd(_),a=m,s=y.redMul(p.redISub(m)).redISub(_),u=this.y.redAdd(this.y)}else{var A=this.x.redSqr(),E=this.y.redSqr(),q=E.redSqr(),w=this.x.redAdd(E).redSqr().redISub(A).redISub(q);w=w.redIAdd(w);var x=A.redAdd(A).redIAdd(A),P=x.redSqr(),O=q.redIAdd(q);O=(O=O.redIAdd(O)).redIAdd(O),a=P.redISub(w).redISub(w),s=x.redMul(w.redISub(a)).redISub(O),u=(u=this.y.redMul(this.z)).redIAdd(u)}return this.curve.jpoint(a,s,u)},t.prototype._threeDbl=function(){var a,s,u;if(this.zOne){var c=this.x.redSqr(),l=this.y.redSqr(),d=l.redSqr(),p=this.x.redAdd(l).redSqr().redISub(c).redISub(d);p=p.redIAdd(p);var y=c.redAdd(c).redIAdd(c).redIAdd(this.curve.a),m=y.redSqr().redISub(p).redISub(p);a=m;var _=d.redIAdd(d);_=(_=_.redIAdd(_)).redIAdd(_),s=y.redMul(p.redISub(m)).redISub(_),u=this.y.redAdd(this.y)}else{var A=this.z.redSqr(),E=this.y.redSqr(),q=this.x.redMul(E),w=this.x.redSub(A).redMul(this.x.redAdd(A));w=w.redAdd(w).redIAdd(w);var x=q.redIAdd(q),P=(x=x.redIAdd(x)).redAdd(x);a=w.redSqr().redISub(P),u=this.y.redAdd(this.z).redSqr().redISub(E).redISub(A);var O=E.redSqr();O=(O=(O=O.redIAdd(O)).redIAdd(O)).redIAdd(O),s=w.redMul(x.redISub(a)).redISub(O)}return this.curve.jpoint(a,s,u)},t.prototype._dbl=function(){var a=this.curve.a,s=this.x,u=this.y,c=this.z,l=c.redSqr().redSqr(),d=s.redSqr(),p=u.redSqr(),y=d.redAdd(d).redIAdd(d).redIAdd(a.redMul(l)),m=s.redAdd(s),_=(m=m.redIAdd(m)).redMul(p),A=y.redSqr().redISub(_.redAdd(_)),E=_.redISub(A),q=p.redSqr();q=(q=(q=q.redIAdd(q)).redIAdd(q)).redIAdd(q);var w=y.redMul(E).redISub(q),x=u.redAdd(u).redMul(c);return this.curve.jpoint(A,w,x)},t.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var a=this.x.redSqr(),s=this.y.redSqr(),u=this.z.redSqr(),c=s.redSqr(),l=a.redAdd(a).redIAdd(a),d=l.redSqr(),p=this.x.redAdd(s).redSqr().redISub(a).redISub(c),y=(p=(p=(p=p.redIAdd(p)).redAdd(p).redIAdd(p)).redISub(d)).redSqr(),m=c.redIAdd(c);m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m);var _=l.redIAdd(p).redSqr().redISub(d).redISub(y).redISub(m),A=s.redMul(_);A=(A=A.redIAdd(A)).redIAdd(A);var E=this.x.redMul(y).redISub(A);E=(E=E.redIAdd(E)).redIAdd(E);var q=this.y.redMul(_.redMul(m.redISub(_)).redISub(p.redMul(y)));q=(q=(q=q.redIAdd(q)).redIAdd(q)).redIAdd(q);var w=this.z.redAdd(p).redSqr().redISub(u).redISub(y);return this.curve.jpoint(E,q,w)},t.prototype.mul=function(a,s){return a=new r(a,s),this.curve._wnafMul(this,a)},t.prototype.eq=function(a){if(a.type==="affine")return this.eq(a.toJ());if(this===a)return!0;var s=this.z.redSqr(),u=a.z.redSqr();if(this.x.redMul(u).redISub(a.x.redMul(s)).cmpn(0)!==0)return!1;var c=s.redMul(this.z),l=u.redMul(a.z);return this.y.redMul(l).redISub(a.y.redMul(c)).cmpn(0)===0},t.prototype.eqXToP=function(a){var s=this.z.redSqr(),u=a.toRed(this.curve.red).redMul(s);if(this.x.cmp(u)===0)return!0;for(var c=a.clone(),l=this.curve.redN.redMul(s);;){if(c.iadd(this.curve.n),c.cmp(this.curve.p)>=0)return!1;if(u.redIAdd(l),this.x.cmp(u)===0)return!0}},t.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},t.prototype.isInfinity=function(){return this.z.cmpn(0)===0},short}function requireMont(){if(hasRequiredMont)return mont;hasRequiredMont=1;var e=requireBn(),r=requireInherits_browser(),o=requireBase$1(),i=requireUtils$1();function n(f){o.call(this,"mont",f),this.a=new e(f.a,16).toRed(this.red),this.b=new e(f.b,16).toRed(this.red),this.i4=new e(4).toRed(this.red).redInvm(),this.two=new e(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function h(f,t,a){o.BasePoint.call(this,f,"projective"),t===null&&a===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new e(t,16),this.z=new e(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return r(n,o),mont=n,n.prototype.validate=function(f){var t=f.normalize().x,a=t.redSqr(),s=a.redMul(t).redAdd(a.redMul(this.a)).redAdd(t);return s.redSqrt().redSqr().cmp(s)===0},r(h,o.BasePoint),n.prototype.decodePoint=function(f,t){return this.point(i.toArray(f,t),1)},n.prototype.point=function(f,t){return new h(this,f,t)},n.prototype.pointFromJSON=function(f){return h.fromJSON(this,f)},h.prototype.precompute=function(){},h.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},h.fromJSON=function(f,t){return new h(f,t[0],t[1]||f.one)},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return this.z.cmpn(0)===0},h.prototype.dbl=function(){var f=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),a=f.redSub(t),s=f.redMul(t),u=a.redMul(t.redAdd(this.curve.a24.redMul(a)));return this.curve.point(s,u)},h.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.diffAdd=function(f,t){var a=this.x.redAdd(this.z),s=this.x.redSub(this.z),u=f.x.redAdd(f.z),c=f.x.redSub(f.z).redMul(a),l=u.redMul(s),d=t.z.redMul(c.redAdd(l).redSqr()),p=t.x.redMul(c.redISub(l).redSqr());return this.curve.point(d,p)},h.prototype.mul=function(f){for(var t=f.clone(),a=this,s=this.curve.point(null,null),u=[];t.cmpn(0)!==0;t.iushrn(1))u.push(t.andln(1));for(var c=u.length-1;c>=0;c--)u[c]===0?(a=a.diffAdd(s,this),s=s.dbl()):(s=a.diffAdd(s,this),a=a.dbl());return s},h.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.eq=function(f){return this.getX().cmp(f.getX())===0},h.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},mont}function requireEdwards(){if(hasRequiredEdwards)return edwards;hasRequiredEdwards=1;var e=requireUtils$1(),r=requireBn(),o=requireInherits_browser(),i=requireBase$1(),n=e.assert;function h(t){this.twisted=(0|t.a)!=1,this.mOneA=this.twisted&&(0|t.a)==-1,this.extended=this.mOneA,i.call(this,"edwards",t),this.a=new r(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new r(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new r(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),n(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|t.c)==1}function f(t,a,s,u,c){i.BasePoint.call(this,t,"projective"),a===null&&s===null&&u===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new r(a,16),this.y=new r(s,16),this.z=u?new r(u,16):this.curve.one,this.t=c&&new r(c,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}return o(h,i),edwards=h,h.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},h.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},h.prototype.jpoint=function(t,a,s,u){return this.point(t,a,s,u)},h.prototype.pointFromX=function(t,a){(t=new r(t,16)).red||(t=t.toRed(this.red));var s=t.redSqr(),u=this.c2.redSub(this.a.redMul(s)),c=this.one.redSub(this.c2.redMul(this.d).redMul(s)),l=u.redMul(c.redInvm()),d=l.redSqrt();if(d.redSqr().redSub(l).cmp(this.zero)!==0)throw new Error("invalid point");var p=d.fromRed().isOdd();return(a&&!p||!a&&p)&&(d=d.redNeg()),this.point(t,d)},h.prototype.pointFromY=function(t,a){(t=new r(t,16)).red||(t=t.toRed(this.red));var s=t.redSqr(),u=s.redSub(this.c2),c=s.redMul(this.d).redMul(this.c2).redSub(this.a),l=u.redMul(c.redInvm());if(l.cmp(this.zero)===0){if(a)throw new Error("invalid point");return this.point(this.zero,t)}var d=l.redSqrt();if(d.redSqr().redSub(l).cmp(this.zero)!==0)throw new Error("invalid point");return d.fromRed().isOdd()!==a&&(d=d.redNeg()),this.point(d,t)},h.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var a=t.x.redSqr(),s=t.y.redSqr(),u=a.redMul(this.a).redAdd(s),c=this.c2.redMul(this.one.redAdd(this.d.redMul(a).redMul(s)));return u.cmp(c)===0},o(f,i.BasePoint),h.prototype.pointFromJSON=function(t){return f.fromJSON(this,t)},h.prototype.point=function(t,a,s,u){return new f(this,t,a,s,u)},f.fromJSON=function(t,a){return new f(t,a[0],a[1],a[2])},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},f.prototype._extDbl=function(){var t=this.x.redSqr(),a=this.y.redSqr(),s=this.z.redSqr();s=s.redIAdd(s);var u=this.curve._mulA(t),c=this.x.redAdd(this.y).redSqr().redISub(t).redISub(a),l=u.redAdd(a),d=l.redSub(s),p=u.redSub(a),y=c.redMul(d),m=l.redMul(p),_=c.redMul(p),A=d.redMul(l);return this.curve.point(y,m,A,_)},f.prototype._projDbl=function(){var t,a,s,u,c,l,d=this.x.redAdd(this.y).redSqr(),p=this.x.redSqr(),y=this.y.redSqr();if(this.curve.twisted){var m=(u=this.curve._mulA(p)).redAdd(y);this.zOne?(t=d.redSub(p).redSub(y).redMul(m.redSub(this.curve.two)),a=m.redMul(u.redSub(y)),s=m.redSqr().redSub(m).redSub(m)):(c=this.z.redSqr(),l=m.redSub(c).redISub(c),t=d.redSub(p).redISub(y).redMul(l),a=m.redMul(u.redSub(y)),s=m.redMul(l))}else u=p.redAdd(y),c=this.curve._mulC(this.z).redSqr(),l=u.redSub(c).redSub(c),t=this.curve._mulC(d.redISub(u)).redMul(l),a=this.curve._mulC(u).redMul(p.redISub(y)),s=u.redMul(l);return this.curve.point(t,a,s)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(t){var a=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),s=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),u=this.t.redMul(this.curve.dd).redMul(t.t),c=this.z.redMul(t.z.redAdd(t.z)),l=s.redSub(a),d=c.redSub(u),p=c.redAdd(u),y=s.redAdd(a),m=l.redMul(d),_=p.redMul(y),A=l.redMul(y),E=d.redMul(p);return this.curve.point(m,_,E,A)},f.prototype._projAdd=function(t){var a,s,u=this.z.redMul(t.z),c=u.redSqr(),l=this.x.redMul(t.x),d=this.y.redMul(t.y),p=this.curve.d.redMul(l).redMul(d),y=c.redSub(p),m=c.redAdd(p),_=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(l).redISub(d),A=u.redMul(y).redMul(_);return this.curve.twisted?(a=u.redMul(m).redMul(d.redSub(this.curve._mulA(l))),s=y.redMul(m)):(a=u.redMul(m).redMul(d.redSub(l)),s=this.curve._mulC(y).redMul(m)),this.curve.point(A,a,s)},f.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},f.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},f.prototype.mulAdd=function(t,a,s){return this.curve._wnafMulAdd(1,[this,a],[t,s],2,!1)},f.prototype.jmulAdd=function(t,a,s){return this.curve._wnafMulAdd(1,[this,a],[t,s],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(t){return this===t||this.getX().cmp(t.getX())===0&&this.getY().cmp(t.getY())===0},f.prototype.eqXToP=function(t){var a=t.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(a)===0)return!0;for(var s=t.clone(),u=this.curve.redN.redMul(this.z);;){if(s.iadd(this.curve.n),s.cmp(this.curve.p)>=0)return!1;if(a.redIAdd(u),this.x.cmp(a)===0)return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add,edwards}function requireCurve(){return hasRequiredCurve||(hasRequiredCurve=1,(function(e){var r=e;r.base=requireBase$1(),r.short=requireShort(),r.mont=requireMont(),r.edwards=requireEdwards()})(curve)),curve}var curves={},hash={},utils={},hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils;hasRequiredUtils=1;var e=requireMinimalisticAssert(),r=requireInherits_browser();function o(f,t){return(64512&f.charCodeAt(t))==55296&&!(t<0||t+1>=f.length)&&(64512&f.charCodeAt(t+1))==56320}function i(f){return(f>>>24|f>>>8&65280|f<<8&16711680|(255&f)<<24)>>>0}function n(f){return f.length===1?"0"+f:f}function h(f){return f.length===7?"0"+f:f.length===6?"00"+f:f.length===5?"000"+f:f.length===4?"0000"+f:f.length===3?"00000"+f:f.length===2?"000000"+f:f.length===1?"0000000"+f:f}return utils.inherits=r,utils.toArray=function(f,t){if(Array.isArray(f))return f.slice();if(!f)return[];var a=[];if(typeof f=="string")if(t){if(t==="hex")for((f=f.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(f="0"+f),u=0;u<f.length;u+=2)a.push(parseInt(f[u]+f[u+1],16))}else for(var s=0,u=0;u<f.length;u++){var c=f.charCodeAt(u);c<128?a[s++]=c:c<2048?(a[s++]=c>>6|192,a[s++]=63&c|128):o(f,u)?(c=65536+((1023&c)<<10)+(1023&f.charCodeAt(++u)),a[s++]=c>>18|240,a[s++]=c>>12&63|128,a[s++]=c>>6&63|128,a[s++]=63&c|128):(a[s++]=c>>12|224,a[s++]=c>>6&63|128,a[s++]=63&c|128)}else for(u=0;u<f.length;u++)a[u]=0|f[u];return a},utils.toHex=function(f){for(var t="",a=0;a<f.length;a++)t+=n(f[a].toString(16));return t},utils.htonl=i,utils.toHex32=function(f,t){for(var a="",s=0;s<f.length;s++){var u=f[s];t==="little"&&(u=i(u)),a+=h(u.toString(16))}return a},utils.zero2=n,utils.zero8=h,utils.join32=function(f,t,a,s){var u=a-t;e(u%4==0);for(var c=new Array(u/4),l=0,d=t;l<c.length;l++,d+=4){var p;p=s==="big"?f[d]<<24|f[d+1]<<16|f[d+2]<<8|f[d+3]:f[d+3]<<24|f[d+2]<<16|f[d+1]<<8|f[d],c[l]=p>>>0}return c},utils.split32=function(f,t){for(var a=new Array(4*f.length),s=0,u=0;s<f.length;s++,u+=4){var c=f[s];t==="big"?(a[u]=c>>>24,a[u+1]=c>>>16&255,a[u+2]=c>>>8&255,a[u+3]=255&c):(a[u+3]=c>>>24,a[u+2]=c>>>16&255,a[u+1]=c>>>8&255,a[u]=255&c)}return a},utils.rotr32=function(f,t){return f>>>t|f<<32-t},utils.rotl32=function(f,t){return f<<t|f>>>32-t},utils.sum32=function(f,t){return f+t>>>0},utils.sum32_3=function(f,t,a){return f+t+a>>>0},utils.sum32_4=function(f,t,a,s){return f+t+a+s>>>0},utils.sum32_5=function(f,t,a,s,u){return f+t+a+s+u>>>0},utils.sum64=function(f,t,a,s){var u=f[t],c=s+f[t+1]>>>0,l=(c<s?1:0)+a+u;f[t]=l>>>0,f[t+1]=c},utils.sum64_hi=function(f,t,a,s){return(t+s>>>0<t?1:0)+f+a>>>0},utils.sum64_lo=function(f,t,a,s){return t+s>>>0},utils.sum64_4_hi=function(f,t,a,s,u,c,l,d){var p=0,y=t;return p+=(y=y+s>>>0)<t?1:0,p+=(y=y+c>>>0)<c?1:0,f+a+u+l+(p+=(y=y+d>>>0)<d?1:0)>>>0},utils.sum64_4_lo=function(f,t,a,s,u,c,l,d){return t+s+c+d>>>0},utils.sum64_5_hi=function(f,t,a,s,u,c,l,d,p,y){var m=0,_=t;return m+=(_=_+s>>>0)<t?1:0,m+=(_=_+c>>>0)<c?1:0,m+=(_=_+d>>>0)<d?1:0,f+a+u+l+p+(m+=(_=_+y>>>0)<y?1:0)>>>0},utils.sum64_5_lo=function(f,t,a,s,u,c,l,d,p,y){return t+s+c+d+y>>>0},utils.rotr64_hi=function(f,t,a){return(t<<32-a|f>>>a)>>>0},utils.rotr64_lo=function(f,t,a){return(f<<32-a|t>>>a)>>>0},utils.shr64_hi=function(f,t,a){return f>>>a},utils.shr64_lo=function(f,t,a){return(f<<32-a|t>>>a)>>>0},utils}var common$1={},hasRequiredCommon$1;function requireCommon$1(){if(hasRequiredCommon$1)return common$1;hasRequiredCommon$1=1;var e=requireUtils(),r=requireMinimalisticAssert();function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return common$1.BlockHash=o,o.prototype.update=function(i,n){if(i=e.toArray(i,n),this.pending?this.pending=this.pending.concat(i):this.pending=i,this.pendingTotal+=i.length,this.pending.length>=this._delta8){var h=(i=this.pending).length%this._delta8;this.pending=i.slice(i.length-h,i.length),this.pending.length===0&&(this.pending=null),i=e.join32(i,0,i.length-h,this.endian);for(var f=0;f<i.length;f+=this._delta32)this._update(i,f,f+this._delta32)}return this},o.prototype.digest=function(i){return this.update(this._pad()),r(this.pending===null),this._digest(i)},o.prototype._pad=function(){var i=this.pendingTotal,n=this._delta8,h=n-(i+this.padLength)%n,f=new Array(h+this.padLength);f[0]=128;for(var t=1;t<h;t++)f[t]=0;if(i<<=3,this.endian==="big"){for(var a=8;a<this.padLength;a++)f[t++]=0;f[t++]=0,f[t++]=0,f[t++]=0,f[t++]=0,f[t++]=i>>>24&255,f[t++]=i>>>16&255,f[t++]=i>>>8&255,f[t++]=255&i}else for(f[t++]=255&i,f[t++]=i>>>8&255,f[t++]=i>>>16&255,f[t++]=i>>>24&255,f[t++]=0,f[t++]=0,f[t++]=0,f[t++]=0,a=8;a<this.padLength;a++)f[t++]=0;return f},common$1}var sha={},common={},hasRequiredCommon,_1,hasRequired_1,_256,hasRequired_256,_224,hasRequired_224,_512,hasRequired_512,_384,hasRequired_384,hasRequiredSha;function requireCommon(){if(hasRequiredCommon)return common;hasRequiredCommon=1;var e=requireUtils().rotr32;function r(n,h,f){return n&h^~n&f}function o(n,h,f){return n&h^n&f^h&f}function i(n,h,f){return n^h^f}return common.ft_1=function(n,h,f,t){return n===0?r(h,f,t):n===1||n===3?i(h,f,t):n===2?o(h,f,t):void 0},common.ch32=r,common.maj32=o,common.p32=i,common.s0_256=function(n){return e(n,2)^e(n,13)^e(n,22)},common.s1_256=function(n){return e(n,6)^e(n,11)^e(n,25)},common.g0_256=function(n){return e(n,7)^e(n,18)^n>>>3},common.g1_256=function(n){return e(n,17)^e(n,19)^n>>>10},common}function require_1(){if(hasRequired_1)return _1;hasRequired_1=1;var e=requireUtils(),r=requireCommon$1(),o=requireCommon(),i=e.rotl32,n=e.sum32,h=e.sum32_5,f=o.ft_1,t=r.BlockHash,a=[1518500249,1859775393,2400959708,3395469782];function s(){if(!(this instanceof s))return new s;t.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return e.inherits(s,t),_1=s,s.blockSize=512,s.outSize=160,s.hmacStrength=80,s.padLength=64,s.prototype._update=function(u,c){for(var l=this.W,d=0;d<16;d++)l[d]=u[c+d];for(;d<l.length;d++)l[d]=i(l[d-3]^l[d-8]^l[d-14]^l[d-16],1);var p=this.h[0],y=this.h[1],m=this.h[2],_=this.h[3],A=this.h[4];for(d=0;d<l.length;d++){var E=~~(d/20),q=h(i(p,5),f(E,y,m,_),A,l[d],a[E]);A=_,_=m,m=i(y,30),y=p,p=q}this.h[0]=n(this.h[0],p),this.h[1]=n(this.h[1],y),this.h[2]=n(this.h[2],m),this.h[3]=n(this.h[3],_),this.h[4]=n(this.h[4],A)},s.prototype._digest=function(u){return u==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")},_1}function require_256(){if(hasRequired_256)return _256;hasRequired_256=1;var e=requireUtils(),r=requireCommon$1(),o=requireCommon(),i=requireMinimalisticAssert(),n=e.sum32,h=e.sum32_4,f=e.sum32_5,t=o.ch32,a=o.maj32,s=o.s0_256,u=o.s1_256,c=o.g0_256,l=o.g1_256,d=r.BlockHash,p=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;d.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=p,this.W=new Array(64)}return e.inherits(y,d),_256=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(m,_){for(var A=this.W,E=0;E<16;E++)A[E]=m[_+E];for(;E<A.length;E++)A[E]=h(l(A[E-2]),A[E-7],c(A[E-15]),A[E-16]);var q=this.h[0],w=this.h[1],x=this.h[2],P=this.h[3],O=this.h[4],N=this.h[5],v=this.h[6],B=this.h[7];for(i(this.k.length===A.length),E=0;E<A.length;E++){var $=f(B,u(O),t(O,N,v),this.k[E],A[E]),R=n(s(q),a(q,w,x));B=v,v=N,N=O,O=n(P,$),P=x,x=w,w=q,q=n($,R)}this.h[0]=n(this.h[0],q),this.h[1]=n(this.h[1],w),this.h[2]=n(this.h[2],x),this.h[3]=n(this.h[3],P),this.h[4]=n(this.h[4],O),this.h[5]=n(this.h[5],N),this.h[6]=n(this.h[6],v),this.h[7]=n(this.h[7],B)},y.prototype._digest=function(m){return m==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")},_256}function require_224(){if(hasRequired_224)return _224;hasRequired_224=1;var e=requireUtils(),r=require_256();function o(){if(!(this instanceof o))return new o;r.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return e.inherits(o,r),_224=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(i){return i==="hex"?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")},_224}function require_512(){if(hasRequired_512)return _512;hasRequired_512=1;var e=requireUtils(),r=requireCommon$1(),o=requireMinimalisticAssert(),i=e.rotr64_hi,n=e.rotr64_lo,h=e.shr64_hi,f=e.shr64_lo,t=e.sum64,a=e.sum64_hi,s=e.sum64_lo,u=e.sum64_4_hi,c=e.sum64_4_lo,l=e.sum64_5_hi,d=e.sum64_5_lo,p=r.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function m(){if(!(this instanceof m))return new m;p.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function _(R,g,b,k,L){var F=R&b^~R&L;return F<0&&(F+=4294967296),F}function A(R,g,b,k,L,F){var T=g&k^~g&F;return T<0&&(T+=4294967296),T}function E(R,g,b,k,L){var F=R&b^R&L^b&L;return F<0&&(F+=4294967296),F}function q(R,g,b,k,L,F){var T=g&k^g&F^k&F;return T<0&&(T+=4294967296),T}function w(R,g){var b=i(R,g,28)^i(g,R,2)^i(g,R,7);return b<0&&(b+=4294967296),b}function x(R,g){var b=n(R,g,28)^n(g,R,2)^n(g,R,7);return b<0&&(b+=4294967296),b}function P(R,g){var b=i(R,g,14)^i(R,g,18)^i(g,R,9);return b<0&&(b+=4294967296),b}function O(R,g){var b=n(R,g,14)^n(R,g,18)^n(g,R,9);return b<0&&(b+=4294967296),b}function N(R,g){var b=i(R,g,1)^i(R,g,8)^h(R,g,7);return b<0&&(b+=4294967296),b}function v(R,g){var b=n(R,g,1)^n(R,g,8)^f(R,g,7);return b<0&&(b+=4294967296),b}function B(R,g){var b=i(R,g,19)^i(g,R,29)^h(R,g,6);return b<0&&(b+=4294967296),b}function $(R,g){var b=n(R,g,19)^n(g,R,29)^f(R,g,6);return b<0&&(b+=4294967296),b}return e.inherits(m,p),_512=m,m.blockSize=1024,m.outSize=512,m.hmacStrength=192,m.padLength=128,m.prototype._prepareBlock=function(R,g){for(var b=this.W,k=0;k<32;k++)b[k]=R[g+k];for(;k<b.length;k+=2){var L=B(b[k-4],b[k-3]),F=$(b[k-4],b[k-3]),T=b[k-14],U=b[k-13],D=N(b[k-30],b[k-29]),I=v(b[k-30],b[k-29]),j=b[k-32],H=b[k-31];b[k]=u(L,F,T,U,D,I,j,H),b[k+1]=c(L,F,T,U,D,I,j,H)}},m.prototype._update=function(R,g){this._prepareBlock(R,g);var b=this.W,k=this.h[0],L=this.h[1],F=this.h[2],T=this.h[3],U=this.h[4],D=this.h[5],I=this.h[6],j=this.h[7],H=this.h[8],K=this.h[9],ee=this.h[10],Z=this.h[11],V=this.h[12],Q=this.h[13],X=this.h[14],J=this.h[15];o(this.k.length===b.length);for(var oe=0;oe<b.length;oe+=2){var se=X,ne=J,_e=P(H,K),te=O(H,K),ie=_(H,K,ee,Z,V),ye=A(H,K,ee,Z,V,Q),ue=this.k[oe],fe=this.k[oe+1],me=b[oe],le=b[oe+1],he=l(se,ne,_e,te,ie,ye,ue,fe,me,le),Ee=d(se,ne,_e,te,ie,ye,ue,fe,me,le);se=w(k,L),ne=x(k,L),_e=E(k,L,F,T,U),te=q(k,L,F,T,U,D);var ge=a(se,ne,_e,te),de=s(se,ne,_e,te);X=V,J=Q,V=ee,Q=Z,ee=H,Z=K,H=a(I,j,he,Ee),K=s(j,j,he,Ee),I=U,j=D,U=F,D=T,F=k,T=L,k=a(he,Ee,ge,de),L=s(he,Ee,ge,de)}t(this.h,0,k,L),t(this.h,2,F,T),t(this.h,4,U,D),t(this.h,6,I,j),t(this.h,8,H,K),t(this.h,10,ee,Z),t(this.h,12,V,Q),t(this.h,14,X,J)},m.prototype._digest=function(R){return R==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")},_512}function require_384(){if(hasRequired_384)return _384;hasRequired_384=1;var e=requireUtils(),r=require_512();function o(){if(!(this instanceof o))return new o;r.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return e.inherits(o,r),_384=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(i){return i==="hex"?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")},_384}function requireSha(){return hasRequiredSha||(hasRequiredSha=1,sha.sha1=require_1(),sha.sha224=require_224(),sha.sha256=require_256(),sha.sha384=require_384(),sha.sha512=require_512()),sha}var ripemd={},hasRequiredRipemd,hmac$2,hasRequiredHmac$1,hasRequiredHash,secp256k1,hasRequiredSecp256k1,hasRequiredCurves,hmacDrbg,hasRequiredHmacDrbg,key$1,hasRequiredKey$1,signature$1,hasRequiredSignature$1,ec,hasRequiredEc,key,hasRequiredKey,signature,hasRequiredSignature,eddsa,hasRequiredEddsa,hasRequiredElliptic;function requireRipemd(){if(hasRequiredRipemd)return ripemd;hasRequiredRipemd=1;var e=requireUtils(),r=requireCommon$1(),o=e.rotl32,i=e.sum32,n=e.sum32_3,h=e.sum32_4,f=r.BlockHash;function t(){if(!(this instanceof t))return new t;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function a(y,m,_,A){return y<=15?m^_^A:y<=31?m&_|~m&A:y<=47?(m|~_)^A:y<=63?m&A|_&~A:m^(_|~A)}function s(y){return y<=15?0:y<=31?1518500249:y<=47?1859775393:y<=63?2400959708:2840853838}function u(y){return y<=15?1352829926:y<=31?1548603684:y<=47?1836072691:y<=63?2053994217:0}e.inherits(t,f),ripemd.ripemd160=t,t.blockSize=512,t.outSize=160,t.hmacStrength=192,t.padLength=64,t.prototype._update=function(y,m){for(var _=this.h[0],A=this.h[1],E=this.h[2],q=this.h[3],w=this.h[4],x=_,P=A,O=E,N=q,v=w,B=0;B<80;B++){var $=i(o(h(_,a(B,A,E,q),y[c[B]+m],s(B)),d[B]),w);_=w,w=q,q=o(E,10),E=A,A=$,$=i(o(h(x,a(79-B,P,O,N),y[l[B]+m],u(B)),p[B]),v),x=v,v=N,N=o(O,10),O=P,P=$}$=n(this.h[1],E,N),this.h[1]=n(this.h[2],q,v),this.h[2]=n(this.h[3],w,x),this.h[3]=n(this.h[4],_,P),this.h[4]=n(this.h[0],A,O),this.h[0]=$},t.prototype._digest=function(y){return y==="hex"?e.toHex32(this.h,"little"):e.split32(this.h,"little")};var c=[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],l=[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],d=[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],p=[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];return ripemd}function requireHmac$1(){if(hasRequiredHmac$1)return hmac$2;hasRequiredHmac$1=1;var e=requireUtils(),r=requireMinimalisticAssert();function o(i,n,h){if(!(this instanceof o))return new o(i,n,h);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(n,h))}return hmac$2=o,o.prototype._init=function(i){i.length>this.blockSize&&(i=new this.Hash().update(i).digest()),r(i.length<=this.blockSize);for(var n=i.length;n<this.blockSize;n++)i.push(0);for(n=0;n<i.length;n++)i[n]^=54;for(this.inner=new this.Hash().update(i),n=0;n<i.length;n++)i[n]^=106;this.outer=new this.Hash().update(i)},o.prototype.update=function(i,n){return this.inner.update(i,n),this},o.prototype.digest=function(i){return this.outer.update(this.inner.digest()),this.outer.digest(i)},hmac$2}function requireHash(){return hasRequiredHash||(hasRequiredHash=1,(function(e){var r=e;r.utils=requireUtils(),r.common=requireCommon$1(),r.sha=requireSha(),r.ripemd=requireRipemd(),r.hmac=requireHmac$1(),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160})(hash)),hash}function requireSecp256k1(){return hasRequiredSecp256k1?secp256k1:(hasRequiredSecp256k1=1,secp256k1={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}})}function requireCurves(){return hasRequiredCurves||(hasRequiredCurves=1,(function(e){var r,o=e,i=requireHash(),n=requireCurve(),h=requireUtils$1().assert;function f(a){a.type==="short"?this.curve=new n.short(a):a.type==="edwards"?this.curve=new n.edwards(a):this.curve=new n.mont(a),this.g=this.curve.g,this.n=this.curve.n,this.hash=a.hash,h(this.g.validate(),"Invalid curve"),h(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function t(a,s){Object.defineProperty(o,a,{configurable:!0,enumerable:!0,get:function(){var u=new f(s);return Object.defineProperty(o,a,{configurable:!0,enumerable:!0,value:u}),u}})}o.PresetCurve=f,t("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),t("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),t("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),t("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),t("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),t("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),t("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=requireSecp256k1()}catch{r=void 0}t("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})})(curves)),curves}function requireHmacDrbg(){if(hasRequiredHmacDrbg)return hmacDrbg;hasRequiredHmacDrbg=1;var e=requireHash(),r=requireUtils$2(),o=requireMinimalisticAssert();function i(n){if(!(this instanceof i))return new i(n);this.hash=n.hash,this.predResist=!!n.predResist,this.outLen=this.hash.outSize,this.minEntropy=n.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var h=r.toArray(n.entropy,n.entropyEnc||"hex"),f=r.toArray(n.nonce,n.nonceEnc||"hex"),t=r.toArray(n.pers,n.persEnc||"hex");o(h.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(h,f,t)}return hmacDrbg=i,i.prototype._init=function(n,h,f){var t=n.concat(h).concat(f);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a<this.V.length;a++)this.K[a]=0,this.V[a]=1;this._update(t),this._reseed=1,this.reseedInterval=281474976710656},i.prototype._hmac=function(){return new e.hmac(this.hash,this.K)},i.prototype._update=function(n){var h=this._hmac().update(this.V).update([0]);n&&(h=h.update(n)),this.K=h.digest(),this.V=this._hmac().update(this.V).digest(),n&&(this.K=this._hmac().update(this.V).update([1]).update(n).digest(),this.V=this._hmac().update(this.V).digest())},i.prototype.reseed=function(n,h,f,t){typeof h!="string"&&(t=f,f=h,h=null),n=r.toArray(n,h),f=r.toArray(f,t),o(n.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(n.concat(f||[])),this._reseed=1},i.prototype.generate=function(n,h,f,t){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof h!="string"&&(t=f,f=h,h=null),f&&(f=r.toArray(f,t||"hex"),this._update(f));for(var a=[];a.length<n;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var s=a.slice(0,n);return this._update(f),this._reseed++,r.encode(s,h)},hmacDrbg}function requireKey$1(){if(hasRequiredKey$1)return key$1;hasRequiredKey$1=1;var e=requireBn(),r=requireUtils$1().assert;function o(i,n){this.ec=i,this.priv=null,this.pub=null,n.priv&&this._importPrivate(n.priv,n.privEnc),n.pub&&this._importPublic(n.pub,n.pubEnc)}return key$1=o,o.fromPublic=function(i,n,h){return n instanceof o?n:new o(i,{pub:n,pubEnc:h})},o.fromPrivate=function(i,n,h){return n instanceof o?n:new o(i,{priv:n,privEnc:h})},o.prototype.validate=function(){var i=this.getPublic();return i.isInfinity()?{result:!1,reason:"Invalid public key"}:i.validate()?i.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(i,n){return typeof i=="string"&&(n=i,i=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),n?this.pub.encode(n,i):this.pub},o.prototype.getPrivate=function(i){return i==="hex"?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(i,n){this.priv=new e(i,n||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(i,n){if(i.x||i.y)return this.ec.curve.type==="mont"?r(i.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||r(i.x&&i.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(i.x,i.y));this.pub=this.ec.curve.decodePoint(i,n)},o.prototype.derive=function(i){return i.validate()||r(i.validate(),"public point not validated"),i.mul(this.priv).getX()},o.prototype.sign=function(i,n,h){return this.ec.sign(i,this,n,h)},o.prototype.verify=function(i,n,h){return this.ec.verify(i,n,this,void 0,h)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},key$1}function requireSignature$1(){if(hasRequiredSignature$1)return signature$1;hasRequiredSignature$1=1;var e=requireBn(),r=requireUtils$1(),o=r.assert;function i(a,s){if(a instanceof i)return a;this._importDER(a,s)||(o(a.r&&a.s,"Signature without r or s"),this.r=new e(a.r,16),this.s=new e(a.s,16),a.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=a.recoveryParam)}function n(){this.place=0}function h(a,s){var u=a[s.place++];if(!(128&u))return u;var c=15&u;if(c===0||c>4||a[s.place]===0)return!1;for(var l=0,d=0,p=s.place;d<c;d++,p++)l<<=8,l|=a[p],l>>>=0;return!(l<=127)&&(s.place=p,l)}function f(a){for(var s=0,u=a.length-1;!a[s]&&!(128&a[s+1])&&s<u;)s++;return s===0?a:a.slice(s)}function t(a,s){if(s<128)a.push(s);else{var u=1+(Math.log(s)/Math.LN2>>>3);for(a.push(128|u);--u;)a.push(s>>>(u<<3)&255);a.push(s)}}return signature$1=i,i.prototype._importDER=function(a,s){a=r.toArray(a,s);var u=new n;if(a[u.place++]!==48)return!1;var c=h(a,u);if(c===!1||c+u.place!==a.length||a[u.place++]!==2)return!1;var l=h(a,u);if(l===!1||128&a[u.place])return!1;var d=a.slice(u.place,l+u.place);if(u.place+=l,a[u.place++]!==2)return!1;var p=h(a,u);if(p===!1||a.length!==p+u.place||128&a[u.place])return!1;var y=a.slice(u.place,p+u.place);if(d[0]===0){if(!(128&d[1]))return!1;d=d.slice(1)}if(y[0]===0){if(!(128&y[1]))return!1;y=y.slice(1)}return this.r=new e(d),this.s=new e(y),this.recoveryParam=null,!0},i.prototype.toDER=function(a){var s=this.r.toArray(),u=this.s.toArray();for(128&s[0]&&(s=[0].concat(s)),128&u[0]&&(u=[0].concat(u)),s=f(s),u=f(u);!(u[0]||128&u[1]);)u=u.slice(1);var c=[2];t(c,s.length),(c=c.concat(s)).push(2),t(c,u.length);var l=c.concat(u),d=[48];return t(d,l.length),d=d.concat(l),r.encode(d,a)},signature$1}function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var e=requireBn(),r=requireHmacDrbg(),o=requireUtils$1(),i=requireCurves(),n=requireBrorand(),h=o.assert,f=requireKey$1(),t=requireSignature$1();function a(s){if(!(this instanceof a))return new a(s);typeof s=="string"&&(h(Object.prototype.hasOwnProperty.call(i,s),"Unknown curve "+s),s=i[s]),s instanceof i.PresetCurve&&(s={curve:s}),this.curve=s.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=s.curve.g,this.g.precompute(s.curve.n.bitLength()+1),this.hash=s.hash||s.curve.hash}return ec=a,a.prototype.keyPair=function(s){return new f(this,s)},a.prototype.keyFromPrivate=function(s,u){return f.fromPrivate(this,s,u)},a.prototype.keyFromPublic=function(s,u){return f.fromPublic(this,s,u)},a.prototype.genKeyPair=function(s){s||(s={});for(var u=new r({hash:this.hash,pers:s.pers,persEnc:s.persEnc||"utf8",entropy:s.entropy||n(this.hash.hmacStrength),entropyEnc:s.entropy&&s.entropyEnc||"utf8",nonce:this.n.toArray()}),c=this.n.byteLength(),l=this.n.sub(new e(2));;){var d=new e(u.generate(c));if(!(d.cmp(l)>0))return d.iaddn(1),this.keyFromPrivate(d)}},a.prototype._truncateToN=function(s,u,c){var l;if(e.isBN(s)||typeof s=="number")l=(s=new e(s,16)).byteLength();else if(typeof s=="object")l=s.length,s=new e(s,16);else{var d=s.toString();l=d.length+1>>>1,s=new e(d,16)}typeof c!="number"&&(c=8*l);var p=c-this.n.bitLength();return p>0&&(s=s.ushrn(p)),!u&&s.cmp(this.n)>=0?s.sub(this.n):s},a.prototype.sign=function(s,u,c,l){if(typeof c=="object"&&(l=c,c=null),l||(l={}),typeof s!="string"&&typeof s!="number"&&!e.isBN(s)){h(typeof s=="object"&&s&&typeof s.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),h(s.length>>>0===s.length);for(var d=0;d<s.length;d++)h((255&s[d])===s[d])}u=this.keyFromPrivate(u,c),s=this._truncateToN(s,!1,l.msgBitLength),h(!s.isNeg(),"Can not sign a negative message");var p=this.n.byteLength(),y=u.getPrivate().toArray("be",p),m=s.toArray("be",p);h(new e(m).eq(s),"Can not sign message");for(var _=new r({hash:this.hash,entropy:y,nonce:m,pers:l.pers,persEnc:l.persEnc||"utf8"}),A=this.n.sub(new e(1)),E=0;;E++){var q=l.k?l.k(E):new e(_.generate(this.n.byteLength()));if(!((q=this._truncateToN(q,!0)).cmpn(1)<=0||q.cmp(A)>=0)){var w=this.g.mul(q);if(!w.isInfinity()){var x=w.getX(),P=x.umod(this.n);if(P.cmpn(0)!==0){var O=q.invm(this.n).mul(P.mul(u.getPrivate()).iadd(s));if((O=O.umod(this.n)).cmpn(0)!==0){var N=(w.getY().isOdd()?1:0)|(x.cmp(P)!==0?2:0);return l.canonical&&O.cmp(this.nh)>0&&(O=this.n.sub(O),N^=1),new t({r:P,s:O,recoveryParam:N})}}}}}},a.prototype.verify=function(s,u,c,l,d){d||(d={}),s=this._truncateToN(s,!1,d.msgBitLength),c=this.keyFromPublic(c,l);var p=(u=new t(u,"hex")).r,y=u.s;if(p.cmpn(1)<0||p.cmp(this.n)>=0||y.cmpn(1)<0||y.cmp(this.n)>=0)return!1;var m,_=y.invm(this.n),A=_.mul(s).umod(this.n),E=_.mul(p).umod(this.n);return this.curve._maxwellTrick?!(m=this.g.jmulAdd(A,c.getPublic(),E)).isInfinity()&&m.eqXToP(p):!(m=this.g.mulAdd(A,c.getPublic(),E)).isInfinity()&&m.getX().umod(this.n).cmp(p)===0},a.prototype.recoverPubKey=function(s,u,c,l){h((3&c)===c,"The recovery param is more than two bits"),u=new t(u,l);var d=this.n,p=new e(s),y=u.r,m=u.s,_=1&c,A=c>>1;if(y.cmp(this.curve.p.umod(this.curve.n))>=0&&A)throw new Error("Unable to find sencond key candinate");y=A?this.curve.pointFromX(y.add(this.curve.n),_):this.curve.pointFromX(y,_);var E=u.r.invm(d),q=d.sub(p).mul(E).umod(d),w=m.mul(E).umod(d);return this.g.mulAdd(q,y,w)},a.prototype.getKeyRecoveryParam=function(s,u,c,l){if((u=new t(u,l)).recoveryParam!==null)return u.recoveryParam;for(var d=0;d<4;d++){var p;try{p=this.recoverPubKey(s,u,d)}catch{continue}if(p.eq(c))return d}throw new Error("Unable to find valid recovery factor")},ec}function requireKey(){if(hasRequiredKey)return key;hasRequiredKey=1;var e=requireUtils$1(),r=e.assert,o=e.parseBytes,i=e.cachedProperty;function n(h,f){this.eddsa=h,this._secret=o(f.secret),h.isPoint(f.pub)?this._pub=f.pub:this._pubBytes=o(f.pub)}return n.fromPublic=function(h,f){return f instanceof n?f:new n(h,{pub:f})},n.fromSecret=function(h,f){return f instanceof n?f:new n(h,{secret:f})},n.prototype.secret=function(){return this._secret},i(n,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),i(n,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),i(n,"privBytes",(function(){var h=this.eddsa,f=this.hash(),t=h.encodingLength-1,a=f.slice(0,h.encodingLength);return a[0]&=248,a[t]&=127,a[t]|=64,a})),i(n,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),i(n,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),i(n,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),n.prototype.sign=function(h){return r(this._secret,"KeyPair can only verify"),this.eddsa.sign(h,this)},n.prototype.verify=function(h,f){return this.eddsa.verify(h,f,this)},n.prototype.getSecret=function(h){return r(this._secret,"KeyPair is public only"),e.encode(this.secret(),h)},n.prototype.getPublic=function(h){return e.encode(this.pubBytes(),h)},key=n}function requireSignature(){if(hasRequiredSignature)return signature;hasRequiredSignature=1;var e=requireBn(),r=requireUtils$1(),o=r.assert,i=r.cachedProperty,n=r.parseBytes;function h(f,t){this.eddsa=f,typeof t!="object"&&(t=n(t)),Array.isArray(t)&&(o(t.length===2*f.encodingLength,"Signature has invalid size"),t={R:t.slice(0,f.encodingLength),S:t.slice(f.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),f.isPoint(t.R)&&(this._R=t.R),t.S instanceof e&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}return i(h,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),i(h,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),i(h,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),i(h,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),h.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},h.prototype.toHex=function(){return r.encode(this.toBytes(),"hex").toUpperCase()},signature=h}function requireEddsa(){if(hasRequiredEddsa)return eddsa;hasRequiredEddsa=1;var e=requireHash(),r=requireCurves(),o=requireUtils$1(),i=o.assert,n=o.parseBytes,h=requireKey(),f=requireSignature();function t(a){if(i(a==="ed25519","only tested with ed25519 so far"),!(this instanceof t))return new t(a);a=r[a].curve,this.curve=a,this.g=a.g,this.g.precompute(a.n.bitLength()+1),this.pointClass=a.point().constructor,this.encodingLength=Math.ceil(a.n.bitLength()/8),this.hash=e.sha512}return eddsa=t,t.prototype.sign=function(a,s){a=n(a);var u=this.keyFromSecret(s),c=this.hashInt(u.messagePrefix(),a),l=this.g.mul(c),d=this.encodePoint(l),p=this.hashInt(d,u.pubBytes(),a).mul(u.priv()),y=c.add(p).umod(this.curve.n);return this.makeSignature({R:l,S:y,Rencoded:d})},t.prototype.verify=function(a,s,u){if(a=n(a),(s=this.makeSignature(s)).S().gte(s.eddsa.curve.n)||s.S().isNeg())return!1;var c=this.keyFromPublic(u),l=this.hashInt(s.Rencoded(),c.pubBytes(),a),d=this.g.mul(s.S());return s.R().add(c.pub().mul(l)).eq(d)},t.prototype.hashInt=function(){for(var a=this.hash(),s=0;s<arguments.length;s++)a.update(arguments[s]);return o.intFromLE(a.digest()).umod(this.curve.n)},t.prototype.keyFromPublic=function(a){return h.fromPublic(this,a)},t.prototype.keyFromSecret=function(a){return h.fromSecret(this,a)},t.prototype.makeSignature=function(a){return a instanceof f?a:new f(this,a)},t.prototype.encodePoint=function(a){var s=a.getY().toArray("le",this.encodingLength);return s[this.encodingLength-1]|=a.getX().isOdd()?128:0,s},t.prototype.decodePoint=function(a){var s=(a=o.parseBytes(a)).length-1,u=a.slice(0,s).concat(-129&a[s]),c=!!(128&a[s]),l=o.intFromLE(u);return this.curve.pointFromY(l,c)},t.prototype.encodeInt=function(a){return a.toArray("le",this.encodingLength)},t.prototype.decodeInt=function(a){return o.intFromLE(a)},t.prototype.isPoint=function(a){return a instanceof this.pointClass},eddsa}function requireElliptic(){return hasRequiredElliptic||(hasRequiredElliptic=1,(function(e){var r=e;r.version=require$$0.version,r.utils=requireUtils$1(),r.rand=requireBrorand(),r.curve=requireCurve(),r.curves=requireCurves(),r.ec=requireEc(),r.eddsa=requireEddsa()})(elliptic)),elliptic}var asn1$2={},asn1$1={},api={},vmBrowserify={},hasRequiredVmBrowserify,hasRequiredApi;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,(function(exports$1){var indexOf=function(e,r){if(e.indexOf)return e.indexOf(r);for(var o=0;o<e.length;o++)if(e[o]===r)return o;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var r=[];for(var o in e)r.push(o);return r},forEach=function(e,r){if(e.forEach)return e.forEach(r);for(var o=0;o<e.length;o++)r(e[o],o,e)},defineProp=(function(){try{return Object.defineProperty({},"_",{}),function(e,r,o){Object.defineProperty(e,r,{writable:!0,enumerable:!1,configurable:!0,value:o})}}catch{return function(r,o,i){r[o]=i}}})(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports$1.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var r=document.createElement("iframe");r.style||(r.style={}),r.style.display="none",document.body.appendChild(r);var o=r.contentWindow,i=o.eval,n=o.execScript;!i&&n&&(n.call(o,"null"),i=o.eval),forEach(Object_keys(e),(function(t){o[t]=e[t]})),forEach(globals,(function(t){e[t]&&(o[t]=e[t])}));var h=Object_keys(o),f=i.call(o,this.code);return forEach(Object_keys(o),(function(t){(t in e||indexOf(h,t)===-1)&&(e[t]=o[t])})),forEach(globals,(function(t){t in e||defineProp(e,t,o[t])})),document.body.removeChild(r),f},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var r=Script.createContext(e),o=this.runInContext(r);return e&&forEach(Object_keys(r),(function(i){e[i]=r[i]})),o},forEach(Object_keys(Script.prototype),(function(e){exports$1[e]=Script[e]=function(r){var o=Script(r);return o[e].apply(o,[].slice.call(arguments,1))}})),exports$1.isContext=function(e){return e instanceof Context},exports$1.createScript=function(e){return exports$1.Script(e)},exports$1.createContext=Script.createContext=function(e){var r=new Context;return typeof e=="object"&&forEach(Object_keys(e),(function(o){r[o]=e[o]})),r}})(vmBrowserify)),vmBrowserify}function requireApi(){return hasRequiredApi||(hasRequiredApi=1,(function(e){var r=requireAsn1$2(),o=requireInherits_browser();function i(n,h){this.name=n,this.body=h,this.decoders={},this.encoders={}}e.define=function(n,h){return new i(n,h)},i.prototype._createNamed=function(n){var h;try{h=requireVmBrowserify().runInThisContext("(function "+this.name+`(entity) {
|
|
31
|
-
this._initNamed(entity);
|
|
32
|
-
})`)}catch{h=function(t){this._initNamed(t)}}return o(h,n),h.prototype._initNamed=function(f){n.call(this,f)},new h(this)},i.prototype._getDecoder=function(n){return n=n||"der",this.decoders.hasOwnProperty(n)||(this.decoders[n]=this._createNamed(r.decoders[n])),this.decoders[n]},i.prototype.decode=function(n,h,f){return this._getDecoder(h).decode(n,f)},i.prototype._getEncoder=function(n){return n=n||"der",this.encoders.hasOwnProperty(n)||(this.encoders[n]=this._createNamed(r.encoders[n])),this.encoders[n]},i.prototype.encode=function(n,h,f){return this._getEncoder(h).encode(n,f)}})(api)),api}var base={},reporter={},hasRequiredReporter;function requireReporter(){if(hasRequiredReporter)return reporter;hasRequiredReporter=1;var e=requireInherits_browser();function r(i){this._reporterState={obj:null,path:[],options:i||{},errors:[]}}function o(i,n){this.path=i,this.rethrow(n)}return reporter.Reporter=r,r.prototype.isError=function(i){return i instanceof o},r.prototype.save=function(){var i=this._reporterState;return{obj:i.obj,pathLen:i.path.length}},r.prototype.restore=function(i){var n=this._reporterState;n.obj=i.obj,n.path=n.path.slice(0,i.pathLen)},r.prototype.enterKey=function(i){return this._reporterState.path.push(i)},r.prototype.exitKey=function(i){var n=this._reporterState;n.path=n.path.slice(0,i-1)},r.prototype.leaveKey=function(i,n,h){var f=this._reporterState;this.exitKey(i),f.obj!==null&&(f.obj[n]=h)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){var i=this._reporterState,n=i.obj;return i.obj={},n},r.prototype.leaveObject=function(i){var n=this._reporterState,h=n.obj;return n.obj=i,h},r.prototype.error=function(i){var n,h=this._reporterState,f=i instanceof o;if(n=f?i:new o(h.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),i.message||i,i.stack),!h.options.partial)throw n;return f||h.errors.push(n),n},r.prototype.wrapResult=function(i){var n=this._reporterState;return n.options.partial?{result:this.isError(i)?null:i,errors:n.errors}:i},e(o,Error),o.prototype.rethrow=function(i){if(this.message=i+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(n){this.stack=n.stack}return this},reporter}var buffer={},hasRequiredBuffer,node,hasRequiredNode,hasRequiredBase;function requireBuffer(){if(hasRequiredBuffer)return buffer;hasRequiredBuffer=1;var e=requireInherits_browser(),r=requireBase().Reporter,o=requireDist().Buffer;function i(h,f){r.call(this,f),o.isBuffer(h)?(this.base=h,this.offset=0,this.length=h.length):this.error("Input not Buffer")}function n(h,f){if(Array.isArray(h))this.length=0,this.value=h.map((function(t){return t instanceof n||(t=new n(t,f)),this.length+=t.length,t}),this);else if(typeof h=="number"){if(!(0<=h&&h<=255))return f.error("non-byte EncoderBuffer value");this.value=h,this.length=1}else if(typeof h=="string")this.value=h,this.length=o.byteLength(h);else{if(!o.isBuffer(h))return f.error("Unsupported type: "+typeof h);this.value=h,this.length=h.length}}return e(i,r),buffer.DecoderBuffer=i,i.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},i.prototype.restore=function(h){var f=new i(this.base);return f.offset=h.offset,f.length=this.offset,this.offset=h.offset,r.prototype.restore.call(this,h.reporter),f},i.prototype.isEmpty=function(){return this.offset===this.length},i.prototype.readUInt8=function(h){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(h||"DecoderBuffer overrun")},i.prototype.skip=function(h,f){if(!(this.offset+h<=this.length))return this.error(f||"DecoderBuffer overrun");var t=new i(this.base);return t._reporterState=this._reporterState,t.offset=this.offset,t.length=this.offset+h,this.offset+=h,t},i.prototype.raw=function(h){return this.base.slice(h?h.offset:this.offset,this.length)},buffer.EncoderBuffer=n,n.prototype.join=function(h,f){return h||(h=new o(this.length)),f||(f=0),this.length===0||(Array.isArray(this.value)?this.value.forEach((function(t){t.join(h,f),f+=t.length})):(typeof this.value=="number"?h[f]=this.value:typeof this.value=="string"?h.write(this.value,f):o.isBuffer(this.value)&&this.value.copy(h,f),f+=this.length)),h},buffer}function requireNode(){if(hasRequiredNode)return node;hasRequiredNode=1;var e=requireBase().Reporter,r=requireBase().EncoderBuffer,o=requireBase().DecoderBuffer,i=requireMinimalisticAssert(),n=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],h=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(n);function f(a,s){var u={};this._baseState=u,u.enc=a,u.parent=s||null,u.children=null,u.tag=null,u.args=null,u.reverseArgs=null,u.choice=null,u.optional=!1,u.any=!1,u.obj=!1,u.use=null,u.useDecoder=null,u.key=null,u.default=null,u.explicit=null,u.implicit=null,u.contains=null,u.parent||(u.children=[],this._wrap())}node=f;var t=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return f.prototype.clone=function(){var a=this._baseState,s={};t.forEach((function(c){s[c]=a[c]}));var u=new this.constructor(s.parent);return u._baseState=s,u},f.prototype._wrap=function(){var a=this._baseState;h.forEach((function(s){this[s]=function(){var u=new this.constructor(this);return a.children.push(u),u[s].apply(u,arguments)}}),this)},f.prototype._init=function(a){var s=this._baseState;i(s.parent===null),a.call(this),s.children=s.children.filter((function(u){return u._baseState.parent===this}),this),i.equal(s.children.length,1,"Root node can have only one child")},f.prototype._useArgs=function(a){var s=this._baseState,u=a.filter((function(c){return c instanceof this.constructor}),this);a=a.filter((function(c){return!(c instanceof this.constructor)}),this),u.length!==0&&(i(s.children===null),s.children=u,u.forEach((function(c){c._baseState.parent=this}),this)),a.length!==0&&(i(s.args===null),s.args=a,s.reverseArgs=a.map((function(c){if(typeof c!="object"||c.constructor!==Object)return c;var l={};return Object.keys(c).forEach((function(d){d==(0|d)&&(d|=0);var p=c[d];l[p]=d})),l})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(a){f.prototype[a]=function(){var s=this._baseState;throw new Error(a+" not implemented for encoding: "+s.enc)}})),n.forEach((function(a){f.prototype[a]=function(){var s=this._baseState,u=Array.prototype.slice.call(arguments);return i(s.tag===null),s.tag=a,this._useArgs(u),this}})),f.prototype.use=function(a){i(a);var s=this._baseState;return i(s.use===null),s.use=a,this},f.prototype.optional=function(){return this._baseState.optional=!0,this},f.prototype.def=function(a){var s=this._baseState;return i(s.default===null),s.default=a,s.optional=!0,this},f.prototype.explicit=function(a){var s=this._baseState;return i(s.explicit===null&&s.implicit===null),s.explicit=a,this},f.prototype.implicit=function(a){var s=this._baseState;return i(s.explicit===null&&s.implicit===null),s.implicit=a,this},f.prototype.obj=function(){var a=this._baseState,s=Array.prototype.slice.call(arguments);return a.obj=!0,s.length!==0&&this._useArgs(s),this},f.prototype.key=function(a){var s=this._baseState;return i(s.key===null),s.key=a,this},f.prototype.any=function(){return this._baseState.any=!0,this},f.prototype.choice=function(a){var s=this._baseState;return i(s.choice===null),s.choice=a,this._useArgs(Object.keys(a).map((function(u){return a[u]}))),this},f.prototype.contains=function(a){var s=this._baseState;return i(s.use===null),s.contains=a,this},f.prototype._decode=function(a,s){var u=this._baseState;if(u.parent===null)return a.wrapResult(u.children[0]._decode(a,s));var c,l=u.default,d=!0,p=null;if(u.key!==null&&(p=a.enterKey(u.key)),u.optional){var y=null;if(u.explicit!==null?y=u.explicit:u.implicit!==null?y=u.implicit:u.tag!==null&&(y=u.tag),y!==null||u.any){if(d=this._peekTag(a,y,u.any),a.isError(d))return d}else{var m=a.save();try{u.choice===null?this._decodeGeneric(u.tag,a,s):this._decodeChoice(a,s),d=!0}catch{d=!1}a.restore(m)}}if(u.obj&&d&&(c=a.enterObject()),d){if(u.explicit!==null){var _=this._decodeTag(a,u.explicit);if(a.isError(_))return _;a=_}var A=a.offset;if(u.use===null&&u.choice===null){u.any&&(m=a.save());var E=this._decodeTag(a,u.implicit!==null?u.implicit:u.tag,u.any);if(a.isError(E))return E;u.any?l=a.raw(m):a=E}if(s&&s.track&&u.tag!==null&&s.track(a.path(),A,a.length,"tagged"),s&&s.track&&u.tag!==null&&s.track(a.path(),a.offset,a.length,"content"),u.any||(l=u.choice===null?this._decodeGeneric(u.tag,a,s):this._decodeChoice(a,s)),a.isError(l))return l;if(u.any||u.choice!==null||u.children===null||u.children.forEach((function(w){w._decode(a,s)})),u.contains&&(u.tag==="octstr"||u.tag==="bitstr")){var q=new o(l);l=this._getUse(u.contains,a._reporterState.obj)._decode(q,s)}}return u.obj&&d&&(l=a.leaveObject(c)),u.key===null||l===null&&d!==!0?p!==null&&a.exitKey(p):a.leaveKey(p,u.key,l),l},f.prototype._decodeGeneric=function(a,s,u){var c=this._baseState;return a==="seq"||a==="set"?null:a==="seqof"||a==="setof"?this._decodeList(s,a,c.args[0],u):/str$/.test(a)?this._decodeStr(s,a,u):a==="objid"&&c.args?this._decodeObjid(s,c.args[0],c.args[1],u):a==="objid"?this._decodeObjid(s,null,null,u):a==="gentime"||a==="utctime"?this._decodeTime(s,a,u):a==="null_"?this._decodeNull(s,u):a==="bool"?this._decodeBool(s,u):a==="objDesc"?this._decodeStr(s,a,u):a==="int"||a==="enum"?this._decodeInt(s,c.args&&c.args[0],u):c.use!==null?this._getUse(c.use,s._reporterState.obj)._decode(s,u):s.error("unknown tag: "+a)},f.prototype._getUse=function(a,s){var u=this._baseState;return u.useDecoder=this._use(a,s),i(u.useDecoder._baseState.parent===null),u.useDecoder=u.useDecoder._baseState.children[0],u.implicit!==u.useDecoder._baseState.implicit&&(u.useDecoder=u.useDecoder.clone(),u.useDecoder._baseState.implicit=u.implicit),u.useDecoder},f.prototype._decodeChoice=function(a,s){var u=this._baseState,c=null,l=!1;return Object.keys(u.choice).some((function(d){var p=a.save(),y=u.choice[d];try{var m=y._decode(a,s);if(a.isError(m))return!1;c={type:d,value:m},l=!0}catch{return a.restore(p),!1}return!0}),this),l?c:a.error("Choice not matched")},f.prototype._createEncoderBuffer=function(a){return new r(a,this.reporter)},f.prototype._encode=function(a,s,u){var c=this._baseState;if(c.default===null||c.default!==a){var l=this._encodeValue(a,s,u);if(l!==void 0&&!this._skipDefault(l,s,u))return l}},f.prototype._encodeValue=function(a,s,u){var c=this._baseState;if(c.parent===null)return c.children[0]._encode(a,s||new e);var l=null;if(this.reporter=s,c.optional&&a===void 0){if(c.default===null)return;a=c.default}var d=null,p=!1;if(c.any)l=this._createEncoderBuffer(a);else if(c.choice)l=this._encodeChoice(a,s);else if(c.contains)d=this._getUse(c.contains,u)._encode(a,s),p=!0;else if(c.children)d=c.children.map((function(A){if(A._baseState.tag==="null_")return A._encode(null,s,a);if(A._baseState.key===null)return s.error("Child should have a key");var E=s.enterKey(A._baseState.key);if(typeof a!="object")return s.error("Child expected, but input is not object");var q=A._encode(a[A._baseState.key],s,a);return s.leaveKey(E),q}),this).filter((function(A){return A})),d=this._createEncoderBuffer(d);else if(c.tag==="seqof"||c.tag==="setof"){if(!c.args||c.args.length!==1)return s.error("Too many args for : "+c.tag);if(!Array.isArray(a))return s.error("seqof/setof, but data is not Array");var y=this.clone();y._baseState.implicit=null,d=this._createEncoderBuffer(a.map((function(A){var E=this._baseState;return this._getUse(E.args[0],a)._encode(A,s)}),y))}else c.use!==null?l=this._getUse(c.use,u)._encode(a,s):(d=this._encodePrimitive(c.tag,a),p=!0);if(!c.any&&c.choice===null){var m=c.implicit!==null?c.implicit:c.tag,_=c.implicit===null?"universal":"context";m===null?c.use===null&&s.error("Tag could be omitted only for .use()"):c.use===null&&(l=this._encodeComposite(m,p,_,d))}return c.explicit!==null&&(l=this._encodeComposite(c.explicit,!1,"context",l)),l},f.prototype._encodeChoice=function(a,s){var u=this._baseState,c=u.choice[a.type];return c||i(!1,a.type+" not found in "+JSON.stringify(Object.keys(u.choice))),c._encode(a.value,s)},f.prototype._encodePrimitive=function(a,s){var u=this._baseState;if(/str$/.test(a))return this._encodeStr(s,a);if(a==="objid"&&u.args)return this._encodeObjid(s,u.reverseArgs[0],u.args[1]);if(a==="objid")return this._encodeObjid(s,null,null);if(a==="gentime"||a==="utctime")return this._encodeTime(s,a);if(a==="null_")return this._encodeNull();if(a==="int"||a==="enum")return this._encodeInt(s,u.args&&u.reverseArgs[0]);if(a==="bool")return this._encodeBool(s);if(a==="objDesc")return this._encodeStr(s,a);throw new Error("Unsupported tag: "+a)},f.prototype._isNumstr=function(a){return/^[0-9 ]*$/.test(a)},f.prototype._isPrintstr=function(a){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(a)},node}function requireBase(){return hasRequiredBase||(hasRequiredBase=1,(function(e){var r=e;r.Reporter=requireReporter().Reporter,r.DecoderBuffer=requireBuffer().DecoderBuffer,r.EncoderBuffer=requireBuffer().EncoderBuffer,r.Node=requireNode()})(base)),base}var constants={},der={},hasRequiredDer$2,hasRequiredConstants;function requireDer$2(){return hasRequiredDer$2||(hasRequiredDer$2=1,(function(e){var r=requireConstants();e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=r._reverse(e.tag)})(der)),der}function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,(function(e){var r=e;r._reverse=function(o){var i={};return Object.keys(o).forEach((function(n){(0|n)==n&&(n|=0);var h=o[n];i[h]=n})),i},r.der=requireDer$2()})(constants)),constants}var decoders={},der_1$1,hasRequiredDer$1,pem$1,hasRequiredPem$1,hasRequiredDecoders;function requireDer$1(){if(hasRequiredDer$1)return der_1$1;hasRequiredDer$1=1;var e=requireInherits_browser(),r=requireAsn1$2(),o=r.base,i=r.bignum,n=r.constants.der;function h(s){this.enc="der",this.name=s.name,this.entity=s,this.tree=new f,this.tree._init(s.body)}function f(s){o.Node.call(this,"der",s)}function t(s,u){var c=s.readUInt8(u);if(s.isError(c))return c;var l=n.tagClass[c>>6],d=!(32&c);if(31&~c)c&=31;else{var p=c;for(c=0;!(128&~p);){if(p=s.readUInt8(u),s.isError(p))return p;c<<=7,c|=127&p}}return{cls:l,primitive:d,tag:c,tagStr:n.tag[c]}}function a(s,u,c){var l=s.readUInt8(c);if(s.isError(l))return l;if(!u&&l===128)return null;if(!(128&l))return l;var d=127&l;if(d>4)return s.error("length octect is too long");l=0;for(var p=0;p<d;p++){l<<=8;var y=s.readUInt8(c);if(s.isError(y))return y;l|=y}return l}return der_1$1=h,h.prototype.decode=function(s,u){return s instanceof o.DecoderBuffer||(s=new o.DecoderBuffer(s,u)),this.tree._decode(s,u)},e(f,o.Node),f.prototype._peekTag=function(s,u,c){if(s.isEmpty())return!1;var l=s.save(),d=t(s,'Failed to peek tag: "'+u+'"');return s.isError(d)?d:(s.restore(l),d.tag===u||d.tagStr===u||d.tagStr+"of"===u||c)},f.prototype._decodeTag=function(s,u,c){var l=t(s,'Failed to decode tag of "'+u+'"');if(s.isError(l))return l;var d=a(s,l.primitive,'Failed to get length of "'+u+'"');if(s.isError(d))return d;if(!c&&l.tag!==u&&l.tagStr!==u&&l.tagStr+"of"!==u)return s.error('Failed to match tag: "'+u+'"');if(l.primitive||d!==null)return s.skip(d,'Failed to match body of: "'+u+'"');var p=s.save(),y=this._skipUntilEnd(s,'Failed to skip indefinite length body: "'+this.tag+'"');return s.isError(y)?y:(d=s.offset-p.offset,s.restore(p),s.skip(d,'Failed to match body of: "'+u+'"'))},f.prototype._skipUntilEnd=function(s,u){for(;;){var c=t(s,u);if(s.isError(c))return c;var l,d=a(s,c.primitive,u);if(s.isError(d))return d;if(l=c.primitive||d!==null?s.skip(d):this._skipUntilEnd(s,u),s.isError(l))return l;if(c.tagStr==="end")break}},f.prototype._decodeList=function(s,u,c,l){for(var d=[];!s.isEmpty();){var p=this._peekTag(s,"end");if(s.isError(p))return p;var y=c.decode(s,"der",l);if(s.isError(y)&&p)break;d.push(y)}return d},f.prototype._decodeStr=function(s,u){if(u==="bitstr"){var c=s.readUInt8();return s.isError(c)?c:{unused:c,data:s.raw()}}if(u==="bmpstr"){var l=s.raw();if(l.length%2==1)return s.error("Decoding of string type: bmpstr length mismatch");for(var d="",p=0;p<l.length/2;p++)d+=String.fromCharCode(l.readUInt16BE(2*p));return d}if(u==="numstr"){var y=s.raw().toString("ascii");return this._isNumstr(y)?y:s.error("Decoding of string type: numstr unsupported characters")}if(u==="octstr"||u==="objDesc")return s.raw();if(u==="printstr"){var m=s.raw().toString("ascii");return this._isPrintstr(m)?m:s.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(u)?s.raw().toString():s.error("Decoding of string type: "+u+" unsupported")},f.prototype._decodeObjid=function(s,u,c){for(var l,d=[],p=0;!s.isEmpty();){var y=s.readUInt8();p<<=7,p|=127&y,128&y||(d.push(p),p=0)}128&y&&d.push(p);var m=d[0]/40|0,_=d[0]%40;if(l=c?d:[m,_].concat(d.slice(1)),u){var A=u[l.join(" ")];A===void 0&&(A=u[l.join(".")]),A!==void 0&&(l=A)}return l},f.prototype._decodeTime=function(s,u){var c=s.raw().toString();if(u==="gentime")var l=0|c.slice(0,4),d=0|c.slice(4,6),p=0|c.slice(6,8),y=0|c.slice(8,10),m=0|c.slice(10,12),_=0|c.slice(12,14);else{if(u!=="utctime")return s.error("Decoding "+u+" time is not supported yet");l=0|c.slice(0,2),d=0|c.slice(2,4),p=0|c.slice(4,6),y=0|c.slice(6,8),m=0|c.slice(8,10),_=0|c.slice(10,12),l=l<70?2e3+l:1900+l}return Date.UTC(l,d-1,p,y,m,_,0)},f.prototype._decodeNull=function(s){return null},f.prototype._decodeBool=function(s){var u=s.readUInt8();return s.isError(u)?u:u!==0},f.prototype._decodeInt=function(s,u){var c=s.raw(),l=new i(c);return u&&(l=u[l.toString(10)]||l),l},f.prototype._use=function(s,u){return typeof s=="function"&&(s=s(u)),s._getDecoder("der").tree},der_1$1}function requirePem$1(){if(hasRequiredPem$1)return pem$1;hasRequiredPem$1=1;var e=requireInherits_browser(),r=requireDist().Buffer,o=requireDer$1();function i(n){o.call(this,n),this.enc="pem"}return e(i,o),pem$1=i,i.prototype.decode=function(n,h){for(var f=n.toString().split(/[\r\n]+/g),t=h.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,u=-1,c=0;c<f.length;c++){var l=f[c].match(a);if(l!==null&&l[2]===t){if(s!==-1){if(l[1]!=="END")break;u=c;break}if(l[1]!=="BEGIN")break;s=c}}if(s===-1||u===-1)throw new Error("PEM section not found for: "+t);var d=f.slice(s+1,u).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var p=new r(d,"base64");return o.prototype.decode.call(this,p,h)},pem$1}function requireDecoders(){return hasRequiredDecoders||(hasRequiredDecoders=1,(function(e){var r=e;r.der=requireDer$1(),r.pem=requirePem$1()})(decoders)),decoders}var encoders={},der_1,hasRequiredDer,pem,hasRequiredPem,hasRequiredEncoders,hasRequiredAsn1$2,certificate$1,hasRequiredCertificate$1,hasRequiredAsn1$1;function requireDer(){if(hasRequiredDer)return der_1;hasRequiredDer=1;var e=requireInherits_browser(),r=requireDist().Buffer,o=requireAsn1$2(),i=o.base,n=o.constants.der;function h(a){this.enc="der",this.name=a.name,this.entity=a,this.tree=new f,this.tree._init(a.body)}function f(a){i.Node.call(this,"der",a)}function t(a){return a<10?"0"+a:a}return der_1=h,h.prototype.encode=function(a,s){return this.tree._encode(a,s).join()},e(f,i.Node),f.prototype._encodeComposite=function(a,s,u,c){var l,d=(function(_,A,E,q){var w;if(_==="seqof"?_="seq":_==="setof"&&(_="set"),n.tagByName.hasOwnProperty(_))w=n.tagByName[_];else{if(typeof _!="number"||(0|_)!==_)return q.error("Unknown tag: "+_);w=_}return w>=31?q.error("Multi-octet tag encoding unsupported"):(A||(w|=32),w|=n.tagClassByName[E||"universal"]<<6,w)})(a,s,u,this.reporter);if(c.length<128)return(l=new r(2))[0]=d,l[1]=c.length,this._createEncoderBuffer([l,c]);for(var p=1,y=c.length;y>=256;y>>=8)p++;(l=new r(2+p))[0]=d,l[1]=128|p,y=1+p;for(var m=c.length;m>0;y--,m>>=8)l[y]=255&m;return this._createEncoderBuffer([l,c])},f.prototype._encodeStr=function(a,s){if(s==="bitstr")return this._createEncoderBuffer([0|a.unused,a.data]);if(s==="bmpstr"){for(var u=new r(2*a.length),c=0;c<a.length;c++)u.writeUInt16BE(a.charCodeAt(c),2*c);return this._createEncoderBuffer(u)}return s==="numstr"?this._isNumstr(a)?this._createEncoderBuffer(a):this.reporter.error("Encoding of string type: numstr supports only digits and space"):s==="printstr"?this._isPrintstr(a)?this._createEncoderBuffer(a):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(s)||s==="objDesc"?this._createEncoderBuffer(a):this.reporter.error("Encoding of string type: "+s+" unsupported")},f.prototype._encodeObjid=function(a,s,u){if(typeof a=="string"){if(!s)return this.reporter.error("string objid given, but no values map found");if(!s.hasOwnProperty(a))return this.reporter.error("objid not found in values map");a=s[a].split(/[\s\.]+/g);for(var c=0;c<a.length;c++)a[c]|=0}else if(Array.isArray(a))for(a=a.slice(),c=0;c<a.length;c++)a[c]|=0;if(!Array.isArray(a))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(a));if(!u){if(a[1]>=40)return this.reporter.error("Second objid identifier OOB");a.splice(0,2,40*a[0]+a[1])}var l=0;for(c=0;c<a.length;c++){var d=a[c];for(l++;d>=128;d>>=7)l++}var p=new r(l),y=p.length-1;for(c=a.length-1;c>=0;c--)for(d=a[c],p[y--]=127&d;(d>>=7)>0;)p[y--]=128|127&d;return this._createEncoderBuffer(p)},f.prototype._encodeTime=function(a,s){var u,c=new Date(a);return s==="gentime"?u=[t(c.getFullYear()),t(c.getUTCMonth()+1),t(c.getUTCDate()),t(c.getUTCHours()),t(c.getUTCMinutes()),t(c.getUTCSeconds()),"Z"].join(""):s==="utctime"?u=[t(c.getFullYear()%100),t(c.getUTCMonth()+1),t(c.getUTCDate()),t(c.getUTCHours()),t(c.getUTCMinutes()),t(c.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+s+" time is not supported yet"),this._encodeStr(u,"octstr")},f.prototype._encodeNull=function(){return this._createEncoderBuffer("")},f.prototype._encodeInt=function(a,s){if(typeof a=="string"){if(!s)return this.reporter.error("String int or enum given, but no values map");if(!s.hasOwnProperty(a))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(a));a=s[a]}if(typeof a!="number"&&!r.isBuffer(a)){var u=a.toArray();!a.sign&&128&u[0]&&u.unshift(0),a=new r(u)}if(r.isBuffer(a)){var c=a.length;a.length===0&&c++;var l=new r(c);return a.copy(l),a.length===0&&(l[0]=0),this._createEncoderBuffer(l)}if(a<128)return this._createEncoderBuffer(a);if(a<256)return this._createEncoderBuffer([0,a]);c=1;for(var d=a;d>=256;d>>=8)c++;for(d=(l=new Array(c)).length-1;d>=0;d--)l[d]=255&a,a>>=8;return 128&l[0]&&l.unshift(0),this._createEncoderBuffer(new r(l))},f.prototype._encodeBool=function(a){return this._createEncoderBuffer(a?255:0)},f.prototype._use=function(a,s){return typeof a=="function"&&(a=a(s)),a._getEncoder("der").tree},f.prototype._skipDefault=function(a,s,u){var c,l=this._baseState;if(l.default===null)return!1;var d=a.join();if(l.defaultBuffer===void 0&&(l.defaultBuffer=this._encodeValue(l.default,s,u).join()),d.length!==l.defaultBuffer.length)return!1;for(c=0;c<d.length;c++)if(d[c]!==l.defaultBuffer[c])return!1;return!0},der_1}function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1;var e=requireInherits_browser(),r=requireDer();function o(i){r.call(this,i),this.enc="pem"}return e(o,r),pem=o,o.prototype.encode=function(i,n){for(var h=r.prototype.encode.call(this,i).toString("base64"),f=["-----BEGIN "+n.label+"-----"],t=0;t<h.length;t+=64)f.push(h.slice(t,t+64));return f.push("-----END "+n.label+"-----"),f.join(`
|
|
33
|
-
`)},pem}function requireEncoders(){return hasRequiredEncoders||(hasRequiredEncoders=1,(function(e){var r=e;r.der=requireDer(),r.pem=requirePem()})(encoders)),encoders}function requireAsn1$2(){return hasRequiredAsn1$2||(hasRequiredAsn1$2=1,(function(){var e=asn1$1;e.bignum=requireBn(),e.define=requireApi().define,e.base=requireBase(),e.constants=requireConstants(),e.decoders=requireDecoders(),e.encoders=requireEncoders()})()),asn1$1}function requireCertificate$1(){if(hasRequiredCertificate$1)return certificate$1;hasRequiredCertificate$1=1;var e=requireAsn1$2(),r=e.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=e.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),i=e.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),n=e.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())})),h=e.define("RelativeDistinguishedName",(function(){this.setof(o)})),f=e.define("RDNSequence",(function(){this.seqof(h)})),t=e.define("Name",(function(){this.choice({rdnSequence:this.use(f)})})),a=e.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r))})),s=e.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),u=e.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(i),this.key("issuer").use(t),this.key("validity").use(a),this.key("subject").use(t),this.key("subjectPublicKeyInfo").use(n),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(s).optional())})),c=e.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(u),this.key("signatureAlgorithm").use(i),this.key("signatureValue").bitstr())}));return certificate$1=c}function requireAsn1$1(){if(hasRequiredAsn1$1)return asn1$2;hasRequiredAsn1$1=1;var e=requireAsn1$2();asn1$2.certificate=requireCertificate$1();var r=e.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));asn1$2.RSAPrivateKey=r;var o=e.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));asn1$2.RSAPublicKey=o;var i=e.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),n=e.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())}));asn1$2.PublicKey=n;var h=e.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(i),this.key("subjectPrivateKey").octstr())}));asn1$2.PrivateKey=h;var f=e.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));asn1$2.EncryptedPrivateKey=f;var t=e.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));asn1$2.DSAPrivateKey=t,asn1$2.DSAparam=e.define("DSAparam",(function(){this.int()}));var a=e.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})})),s=e.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(a),this.key("publicKey").optional().explicit(1).bitstr())}));return asn1$2.ECPrivateKey=s,asn1$2.signature=e.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())})),asn1$2}const require$$1$1={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"};var fixProc$1,hasRequiredFixProc$1,parseAsn1$1,hasRequiredParseAsn1$1;function requireFixProc$1(){if(hasRequiredFixProc$1)return fixProc$1;hasRequiredFixProc$1=1;var e=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,i=requireEvp_bytestokey(),n=requireBrowser$6(),h=requireSafeBuffer$1().Buffer;return fixProc$1=function(f,t){var a,s=f.toString(),u=s.match(e);if(u){var c="aes"+u[1],l=h.from(u[2],"hex"),d=h.from(u[3].replace(/[\r\n]/g,""),"base64"),p=i(t,l.slice(0,8),parseInt(u[1],10)).key,y=[],m=n.createDecipheriv(c,p,l);y.push(m.update(d)),y.push(m.final()),a=h.concat(y)}else{var _=s.match(o);a=h.from(_[2].replace(/[\r\n]/g,""),"base64")}return{tag:s.match(r)[1],data:a}},fixProc$1}function requireParseAsn1$1(){if(hasRequiredParseAsn1$1)return parseAsn1$1;hasRequiredParseAsn1$1=1;var e=requireAsn1$1(),r=require$$1$1,o=requireFixProc$1(),i=requireBrowser$6(),n=requireBrowser$7().pbkdf2Sync,h=requireSafeBuffer$1().Buffer;function f(t){var a;typeof t!="object"||h.isBuffer(t)||(a=t.passphrase,t=t.key),typeof t=="string"&&(t=h.from(t));var s,u,c=o(t,a),l=c.tag,d=c.data;switch(l){case"CERTIFICATE":u=e.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=e.PublicKey.decode(d,"der")),s=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=e.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+s)}case"ENCRYPTED PRIVATE KEY":d=(function(p,y){var m=p.algorithm.decrypt.kde.kdeparams.salt,_=parseInt(p.algorithm.decrypt.kde.kdeparams.iters.toString(),10),A=r[p.algorithm.decrypt.cipher.algo.join(".")],E=p.algorithm.decrypt.cipher.iv,q=p.subjectPrivateKey,w=parseInt(A.split("-")[1],10)/8,x=n(y,m,_,w,"sha1"),P=i.createDecipheriv(A,x,E),O=[];return O.push(P.update(q)),O.push(P.final()),h.concat(O)})(d=e.EncryptedPrivateKey.decode(d,"der"),a);case"PRIVATE KEY":switch(s=(u=e.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:e.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=e.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+s)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=e.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+l)}}return f.signature=e.signature,parseAsn1$1=f}const require$$4={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"};var hasRequiredSign,verify_1,hasRequiredVerify,browser$3,hasRequiredBrowser$3,browser$2,hasRequiredBrowser$2;function requireSign(){if(hasRequiredSign)return sign.exports;hasRequiredSign=1;var e=requireSafeBuffer$1().Buffer,r=requireBrowser$8(),o=requireBrowserifyRsa(),i=requireElliptic().ec,n=requireBn(),h=requireParseAsn1$1(),f=require$$4;function t(c,l,d,p){if((c=e.from(c.toArray())).length<l.byteLength()){var y=e.alloc(l.byteLength()-c.length);c=e.concat([y,c])}var m=d.length,_=(function(q,w){q=a(q,w),q=q.mod(w);var x=e.from(q.toArray());if(x.length<w.byteLength()){var P=e.alloc(w.byteLength()-x.length);x=e.concat([P,x])}return x})(d,l),A=e.alloc(m);A.fill(1);var E=e.alloc(m);return E=r(p,E).update(A).update(e.from([0])).update(c).update(_).digest(),A=r(p,E).update(A).digest(),{k:E=r(p,E).update(A).update(e.from([1])).update(c).update(_).digest(),v:A=r(p,E).update(A).digest()}}function a(c,l){var d=new n(c),p=(c.length<<3)-l.bitLength();return p>0&&d.ishrn(p),d}function s(c,l,d){var p,y;do{for(p=e.alloc(0);8*p.length<c.bitLength();)l.v=r(d,l.k).update(l.v).digest(),p=e.concat([p,l.v]);y=a(p,c),l.k=r(d,l.k).update(l.v).update(e.from([0])).digest(),l.v=r(d,l.k).update(l.v).digest()}while(y.cmp(c)!==-1);return y}function u(c,l,d,p){return c.toRed(n.mont(d)).redPow(l).fromRed().mod(p)}return sign.exports=function(c,l,d,p,y){var m=h(l);if(m.curve){if(p!=="ecdsa"&&p!=="ecdsa/rsa")throw new Error("wrong private key type");return(function(q,w){var x=f[w.curve.join(".")];if(!x)throw new Error("unknown curve "+w.curve.join("."));var P=new i(x),O=P.keyFromPrivate(w.privateKey),N=O.sign(q);return e.from(N.toDER())})(c,m)}if(m.type==="dsa"){if(p!=="dsa")throw new Error("wrong private key type");return(function(q,w,x){for(var P,O=w.params.priv_key,N=w.params.p,v=w.params.q,B=w.params.g,$=new n(0),R=a(q,v).mod(v),g=!1,b=t(O,v,q,x);g===!1;)$=u(B,P=s(v,b,x),N,v),(g=P.invm(v).imul(R.add(O.mul($))).mod(v)).cmpn(0)===0&&(g=!1,$=new n(0));return(function(k,L){k=k.toArray(),L=L.toArray(),128&k[0]&&(k=[0].concat(k)),128&L[0]&&(L=[0].concat(L));var F=k.length+L.length+4,T=[48,F,2,k.length];return T=T.concat(k,[2,L.length],L),e.from(T)})($,g)})(c,m,d)}if(p!=="rsa"&&p!=="ecdsa/rsa")throw new Error("wrong private key type");if(l.padding!==void 0&&l.padding!==1)throw new Error("illegal or unsupported padding mode");c=e.concat([y,c]);for(var _=m.modulus.byteLength(),A=[0,1];c.length+A.length+1<_;)A.push(255);A.push(0);for(var E=-1;++E<c.length;)A.push(c[E]);return o(A,m)},sign.exports.getKey=t,sign.exports.makeKey=s,sign.exports}function requireVerify(){if(hasRequiredVerify)return verify_1;hasRequiredVerify=1;var e=requireSafeBuffer$1().Buffer,r=requireBn(),o=requireElliptic().ec,i=requireParseAsn1$1(),n=require$$4;function h(f,t){if(f.cmpn(0)<=0)throw new Error("invalid sig");if(f.cmp(t)>=0)throw new Error("invalid sig")}return verify_1=function(f,t,a,s,u){var c=i(a);if(c.type==="ec"){if(s!=="ecdsa"&&s!=="ecdsa/rsa")throw new Error("wrong public key type");return(function(A,E,q){var w=n[q.data.algorithm.curve.join(".")];if(!w)throw new Error("unknown curve "+q.data.algorithm.curve.join("."));var x=new o(w),P=q.data.subjectPrivateKey.data;return x.verify(E,A,P)})(f,t,c)}if(c.type==="dsa"){if(s!=="dsa")throw new Error("wrong public key type");return(function(A,E,q){var w=q.data.p,x=q.data.q,P=q.data.g,O=q.data.pub_key,N=i.signature.decode(A,"der"),v=N.s,B=N.r;h(v,x),h(B,x);var $=r.mont(w),R=v.invm(x),g=P.toRed($).redPow(new r(E).mul(R).mod(x)).fromRed().mul(O.toRed($).redPow(B.mul(R).mod(x)).fromRed()).mod(w).mod(x);return g.cmp(B)===0})(f,t,c)}if(s!=="rsa"&&s!=="ecdsa/rsa")throw new Error("wrong public key type");t=e.concat([u,t]);for(var l=c.modulus.byteLength(),d=[1],p=0;t.length+d.length+2<l;)d.push(255),p+=1;d.push(0);for(var y=-1;++y<t.length;)d.push(t[y]);d=e.from(d);var m=r.mont(c.modulus);f=(f=new r(f).toRed(m)).redPow(new r(c.publicExponent)),f=e.from(f.fromRed().toArray());var _=p<8?1:0;for(l=Math.min(f.length,d.length),f.length!==d.length&&(_=1),y=-1;++y<l;)_|=f[y]^d[y];return _===0},verify_1}function requireBrowser$3(){if(hasRequiredBrowser$3)return browser$3;hasRequiredBrowser$3=1;var e=requireSafeBuffer$1().Buffer,r=requireBrowser$9(),o=requireReadableBrowser(),i=requireInherits_browser(),n=requireSign(),h=requireVerify(),f=require$$6;function t(c){o.Writable.call(this);var l=f[c];if(!l)throw new Error("Unknown message digest");this._hashType=l.hash,this._hash=r(l.hash),this._tag=l.id,this._signType=l.sign}function a(c){o.Writable.call(this);var l=f[c];if(!l)throw new Error("Unknown message digest");this._hash=r(l.hash),this._tag=l.id,this._signType=l.sign}function s(c){return new t(c)}function u(c){return new a(c)}return Object.keys(f).forEach((function(c){f[c].id=e.from(f[c].id,"hex"),f[c.toLowerCase()]=f[c]})),i(t,o.Writable),t.prototype._write=function(c,l,d){this._hash.update(c),d()},t.prototype.update=function(c,l){return this._hash.update(typeof c=="string"?e.from(c,l):c),this},t.prototype.sign=function(c,l){this.end();var d=this._hash.digest(),p=n(d,c,this._hashType,this._signType,this._tag);return l?p.toString(l):p},i(a,o.Writable),a.prototype._write=function(c,l,d){this._hash.update(c),d()},a.prototype.update=function(c,l){return this._hash.update(typeof c=="string"?e.from(c,l):c),this},a.prototype.verify=function(c,l,d){var p=typeof l=="string"?e.from(l,d):l;this.end();var y=this._hash.digest();return h(p,y,c,this._signType,this._tag)},browser$3={Sign:s,Verify:u,createSign:s,createVerify:u}}function requireBrowser$2(){if(hasRequiredBrowser$2)return browser$2;hasRequiredBrowser$2=1;var e=requireElliptic(),r=requireBn();browser$2=function(h){return new i(h)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function i(h){this.curveType=o[h],this.curveType||(this.curveType={name:h}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function n(h,f,t){Array.isArray(h)||(h=h.toArray());var a=new Buffer(h);if(t&&a.length<t){var s=new Buffer(t-a.length);s.fill(0),a=Buffer.concat([s,a])}return f?a.toString(f):a}return o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,i.prototype.generateKeys=function(h,f){return this.keys=this.curve.genKeyPair(),this.getPublicKey(h,f)},i.prototype.computeSecret=function(h,f,t){return f=f||"utf8",Buffer.isBuffer(h)||(h=new Buffer(h,f)),n(this.curve.keyFromPublic(h).getPublic().mul(this.keys.getPrivate()).getX(),t,this.curveType.byteLength)},i.prototype.getPublicKey=function(h,f){var t=this.keys.getPublic(f==="compressed",!0);return f==="hybrid"&&(t[t.length-1]%2?t[0]=7:t[0]=6),n(t,h)},i.prototype.getPrivateKey=function(h){return n(this.keys.getPrivate(),h)},i.prototype.setPublicKey=function(h,f){return f=f||"utf8",Buffer.isBuffer(h)||(h=new Buffer(h,f)),this.keys._importPublic(h),this},i.prototype.setPrivateKey=function(h,f){f=f||"utf8",Buffer.isBuffer(h)||(h=new Buffer(h,f));var t=new r(h);return t=t.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(t),this},browser$2}var browser$1={},asn1={},certificate,hasRequiredCertificate,hasRequiredAsn1;function requireCertificate(){if(hasRequiredCertificate)return certificate;hasRequiredCertificate=1;var e=requireAsn1$2(),r=e.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=e.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),i=e.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),n=e.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())})),h=e.define("RelativeDistinguishedName",(function(){this.setof(o)})),f=e.define("RDNSequence",(function(){this.seqof(h)})),t=e.define("Name",(function(){this.choice({rdnSequence:this.use(f)})})),a=e.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r))})),s=e.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),u=e.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(i),this.key("issuer").use(t),this.key("validity").use(a),this.key("subject").use(t),this.key("subjectPublicKeyInfo").use(n),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(s).optional())})),c=e.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(u),this.key("signatureAlgorithm").use(i),this.key("signatureValue").bitstr())}));return certificate=c}function requireAsn1(){if(hasRequiredAsn1)return asn1;hasRequiredAsn1=1;var e=requireAsn1$2();asn1.certificate=requireCertificate();var r=e.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));asn1.RSAPrivateKey=r;var o=e.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));asn1.RSAPublicKey=o;var i=e.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),n=e.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())}));asn1.PublicKey=n;var h=e.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(i),this.key("subjectPrivateKey").octstr())}));asn1.PrivateKey=h;var f=e.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));asn1.EncryptedPrivateKey=f;var t=e.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));asn1.DSAPrivateKey=t,asn1.DSAparam=e.define("DSAparam",(function(){this.int()}));var a=e.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})})),s=e.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(a),this.key("publicKey").optional().explicit(1).bitstr())}));return asn1.ECPrivateKey=s,asn1.signature=e.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())})),asn1}const require$$1={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"};var fixProc,hasRequiredFixProc,parseAsn1,hasRequiredParseAsn1,mgf,hasRequiredMgf,xor,hasRequiredXor,withPublic_1,hasRequiredWithPublic,publicEncrypt,hasRequiredPublicEncrypt,privateDecrypt,hasRequiredPrivateDecrypt,hasRequiredBrowser$1;function requireFixProc(){if(hasRequiredFixProc)return fixProc;hasRequiredFixProc=1;var e=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,i=requireEvp_bytestokey(),n=requireBrowser$6(),h=requireSafeBuffer$1().Buffer;return fixProc=function(f,t){var a,s=f.toString(),u=s.match(e);if(u){var c="aes"+u[1],l=h.from(u[2],"hex"),d=h.from(u[3].replace(/[\r\n]/g,""),"base64"),p=i(t,l.slice(0,8),parseInt(u[1],10)).key,y=[],m=n.createDecipheriv(c,p,l);y.push(m.update(d)),y.push(m.final()),a=h.concat(y)}else{var _=s.match(o);a=h.from(_[2].replace(/[\r\n]/g,""),"base64")}return{tag:s.match(r)[1],data:a}},fixProc}function requireParseAsn1(){if(hasRequiredParseAsn1)return parseAsn1;hasRequiredParseAsn1=1;var e=requireAsn1(),r=require$$1,o=requireFixProc(),i=requireBrowser$6(),n=requireBrowser$7(),h=requireSafeBuffer$1().Buffer;function f(t){var a;typeof t!="object"||h.isBuffer(t)||(a=t.passphrase,t=t.key),typeof t=="string"&&(t=h.from(t));var s,u,c=o(t,a),l=c.tag,d=c.data;switch(l){case"CERTIFICATE":u=e.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=e.PublicKey.decode(d,"der")),s=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=e.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+s)}case"ENCRYPTED PRIVATE KEY":d=(function(p,y){var m=p.algorithm.decrypt.kde.kdeparams.salt,_=parseInt(p.algorithm.decrypt.kde.kdeparams.iters.toString(),10),A=r[p.algorithm.decrypt.cipher.algo.join(".")],E=p.algorithm.decrypt.cipher.iv,q=p.subjectPrivateKey,w=parseInt(A.split("-")[1],10)/8,x=n.pbkdf2Sync(y,m,_,w,"sha1"),P=i.createDecipheriv(A,x,E),O=[];return O.push(P.update(q)),O.push(P.final()),h.concat(O)})(d=e.EncryptedPrivateKey.decode(d,"der"),a);case"PRIVATE KEY":switch(s=(u=e.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:e.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=e.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+s)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=e.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+l)}}return f.signature=e.signature,parseAsn1=f}function requireMgf(){if(hasRequiredMgf)return mgf;hasRequiredMgf=1;var e=requireBrowser$9(),r=requireSafeBuffer$1().Buffer;function o(i){var n=r.allocUnsafe(4);return n.writeUInt32BE(i,0),n}return mgf=function(i,n){for(var h,f=r.alloc(0),t=0;f.length<n;)h=o(t++),f=r.concat([f,e("sha1").update(i).update(h).digest()]);return f.slice(0,n)}}function requireXor(){return hasRequiredXor?xor:(hasRequiredXor=1,xor=function(e,r){for(var o=e.length,i=-1;++i<o;)e[i]^=r[i];return e})}function requireWithPublic(){if(hasRequiredWithPublic)return withPublic_1;hasRequiredWithPublic=1;var e=requireBn(),r=requireSafeBuffer$1().Buffer;return withPublic_1=function(o,i){return r.from(o.toRed(e.mont(i.modulus)).redPow(new e(i.publicExponent)).fromRed().toArray())},withPublic_1}function requirePublicEncrypt(){if(hasRequiredPublicEncrypt)return publicEncrypt;hasRequiredPublicEncrypt=1;var e=requireParseAsn1(),r=requireBrowser$b(),o=requireBrowser$9(),i=requireMgf(),n=requireXor(),h=requireBn(),f=requireWithPublic(),t=requireBrowserifyRsa(),a=requireSafeBuffer$1().Buffer;return publicEncrypt=function(s,u,c){var l;l=s.padding?s.padding:c?1:4;var d,p=e(s);if(l===4)d=(function(y,m){var _=y.modulus.byteLength(),A=m.length,E=o("sha1").update(a.alloc(0)).digest(),q=E.length,w=2*q;if(A>_-w-2)throw new Error("message too long");var x=a.alloc(_-A-w-2),P=_-q-1,O=r(q),N=n(a.concat([E,x,a.alloc(1,1),m],P),i(O,P)),v=n(O,i(N,q));return new h(a.concat([a.alloc(1),v,N],_))})(p,u);else if(l===1)d=(function(y,m,_){var A,E=m.length,q=y.modulus.byteLength();if(E>q-11)throw new Error("message too long");return A=_?a.alloc(q-E-3,255):(function(w){for(var x,P=a.allocUnsafe(w),O=0,N=r(2*w),v=0;O<w;)v===N.length&&(N=r(2*w),v=0),(x=N[v++])&&(P[O++]=x);return P})(q-E-3),new h(a.concat([a.from([0,_?1:2]),A,a.alloc(1),m],q))})(p,u,c);else{if(l!==3)throw new Error("unknown padding");if((d=new h(u)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return c?t(d,p):f(d,p)},publicEncrypt}function requirePrivateDecrypt(){if(hasRequiredPrivateDecrypt)return privateDecrypt;hasRequiredPrivateDecrypt=1;var e=requireParseAsn1(),r=requireMgf(),o=requireXor(),i=requireBn(),n=requireBrowserifyRsa(),h=requireBrowser$9(),f=requireWithPublic(),t=requireSafeBuffer$1().Buffer;return privateDecrypt=function(a,s,u){var c;c=a.padding?a.padding:u?1:4;var l,d=e(a),p=d.modulus.byteLength();if(s.length>p||new i(s).cmp(d.modulus)>=0)throw new Error("decryption error");l=u?f(new i(s),d):n(s,d);var y=t.alloc(p-l.length);if(l=t.concat([y,l],p),c===4)return(function(m,_){var A=m.modulus.byteLength(),E=h("sha1").update(t.alloc(0)).digest(),q=E.length;if(_[0]!==0)throw new Error("decryption error");var w=_.slice(1,q+1),x=_.slice(q+1),P=o(w,r(x,q)),O=o(x,r(P,A-q-1));if((function(v,B){v=t.from(v),B=t.from(B);var $=0,R=v.length;v.length!==B.length&&($++,R=Math.min(v.length,B.length));for(var g=-1;++g<R;)$+=v[g]^B[g];return $})(E,O.slice(0,q)))throw new Error("decryption error");for(var N=q;O[N]===0;)N++;if(O[N++]!==1)throw new Error("decryption error");return O.slice(N)})(d,l);if(c===1)return(function(m,_,A){for(var E=_.slice(0,2),q=2,w=0;_[q++]!==0;)if(q>=_.length){w++;break}var x=_.slice(2,q-1);if((E.toString("hex")!=="0002"&&!A||E.toString("hex")!=="0001"&&A)&&w++,x.length<8&&w++,w)throw new Error("decryption error");return _.slice(q)})(0,l,u);if(c===3)return l;throw new Error("unknown padding")},privateDecrypt}function requireBrowser$1(){return hasRequiredBrowser$1||(hasRequiredBrowser$1=1,(e=browser$1).publicEncrypt=requirePublicEncrypt(),e.privateDecrypt=requirePrivateDecrypt(),e.privateEncrypt=function(r,o){return e.publicEncrypt(r,o,!0)},e.publicDecrypt=function(r,o){return e.privateDecrypt(r,o,!0)}),browser$1;var e}var browser={},hasRequiredBrowser,hasRequiredCryptoBrowserify;function requireBrowser(){if(hasRequiredBrowser)return browser;function e(){throw new Error(`secure random number generation not supported by this browser
|
|
34
|
-
use chrome, FireFox or Internet Explorer 11`)}hasRequiredBrowser=1;var r=requireSafeBuffer$1(),o=requireBrowser$b(),i=r.Buffer,n=r.kMaxLength,h=commonjsGlobal.crypto||commonjsGlobal.msCrypto,f=Math.pow(2,32)-1;function t(u,c){if(typeof u!="number"||u!=u)throw new TypeError("offset must be a number");if(u>f||u<0)throw new TypeError("offset must be a uint32");if(u>n||u>c)throw new RangeError("offset out of range")}function a(u,c,l){if(typeof u!="number"||u!=u)throw new TypeError("size must be a number");if(u>f||u<0)throw new TypeError("size must be a uint32");if(u+c>l||u>n)throw new RangeError("buffer too small")}function s(u,c,l,d){if(process$1.browser){var p=u.buffer,y=new Uint8Array(p,c,l);return h.getRandomValues(y),d?void process$1.nextTick((function(){d(null,u)})):u}if(!d)return o(l).copy(u,c),u;o(l,(function(m,_){if(m)return d(m);_.copy(u,c),d(null,u)}))}return h&&h.getRandomValues||!process$1.browser?(browser.randomFill=function(u,c,l,d){if(!(i.isBuffer(u)||u instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof c=="function")d=c,c=0,l=u.length;else if(typeof l=="function")d=l,l=u.length-c;else if(typeof d!="function")throw new TypeError('"cb" argument must be a function');return t(c,u.length),a(l,c,u.length),s(u,c,l,d)},browser.randomFillSync=function(u,c,l){if(c===void 0&&(c=0),!(i.isBuffer(u)||u instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return t(c,u.length),l===void 0&&(l=u.length-c),a(l,c,u.length),s(u,c,l)}):(browser.randomFill=e,browser.randomFillSync=e),browser}function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=requireBrowser$b(),cryptoBrowserify.createHash=cryptoBrowserify.Hash=requireBrowser$9(),cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=requireBrowser$8();var e=requireAlgos(),r=Object.keys(e),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r);cryptoBrowserify.getHashes=function(){return o};var i=requireBrowser$7();cryptoBrowserify.pbkdf2=i.pbkdf2,cryptoBrowserify.pbkdf2Sync=i.pbkdf2Sync;var n=requireBrowser$5();cryptoBrowserify.Cipher=n.Cipher,cryptoBrowserify.createCipher=n.createCipher,cryptoBrowserify.Cipheriv=n.Cipheriv,cryptoBrowserify.createCipheriv=n.createCipheriv,cryptoBrowserify.Decipher=n.Decipher,cryptoBrowserify.createDecipher=n.createDecipher,cryptoBrowserify.Decipheriv=n.Decipheriv,cryptoBrowserify.createDecipheriv=n.createDecipheriv,cryptoBrowserify.getCiphers=n.getCiphers,cryptoBrowserify.listCiphers=n.listCiphers;var h=requireBrowser$4();cryptoBrowserify.DiffieHellmanGroup=h.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=h.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=h.getDiffieHellman,cryptoBrowserify.createDiffieHellman=h.createDiffieHellman,cryptoBrowserify.DiffieHellman=h.DiffieHellman;var f=requireBrowser$3();cryptoBrowserify.createSign=f.createSign,cryptoBrowserify.Sign=f.Sign,cryptoBrowserify.createVerify=f.createVerify,cryptoBrowserify.Verify=f.Verify,cryptoBrowserify.createECDH=requireBrowser$2();var t=requireBrowser$1();cryptoBrowserify.publicEncrypt=t.publicEncrypt,cryptoBrowserify.privateEncrypt=t.privateEncrypt,cryptoBrowserify.publicDecrypt=t.publicDecrypt,cryptoBrowserify.privateDecrypt=t.privateDecrypt;var a=requireBrowser();return cryptoBrowserify.randomFill=a.randomFill,cryptoBrowserify.randomFillSync=a.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet
|
|
35
|
-
we accept pull requests
|
|
36
|
-
https://github.com/browserify/crypto-browserify`)},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}var core=core$1.exports,hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,core$1.exports=(e=e||(function(r,o){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&commonjsGlobal!==void 0&&commonjsGlobal.crypto&&(i=commonjsGlobal.crypto),!i&&typeof commonjsRequire=="function")try{i=requireCryptoBrowserify()}catch{}var n=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},h=Object.create||(function(){function m(){}return function(_){var A;return m.prototype=_,A=new m,m.prototype=null,A}})(),f={},t=f.lib={},a=t.Base={extend:function(m){var _=h(this);return m&&_.mixIn(m),_.hasOwnProperty("init")&&this.init!==_.init||(_.init=function(){_.$super.init.apply(this,arguments)}),_.init.prototype=_,_.$super=this,_},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var _ in m)m.hasOwnProperty(_)&&(this[_]=m[_]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}},s=t.WordArray=a.extend({init:function(m,_){m=this.words=m||[],this.sigBytes=_!=o?_:4*m.length},toString:function(m){return(m||c).stringify(this)},concat:function(m){var _=this.words,A=m.words,E=this.sigBytes,q=m.sigBytes;if(this.clamp(),E%4)for(var w=0;w<q;w++){var x=A[w>>>2]>>>24-w%4*8&255;_[E+w>>>2]|=x<<24-(E+w)%4*8}else for(var P=0;P<q;P+=4)_[E+P>>>2]=A[P>>>2];return this.sigBytes+=q,this},clamp:function(){var m=this.words,_=this.sigBytes;m[_>>>2]&=4294967295<<32-_%4*8,m.length=r.ceil(_/4)},clone:function(){var m=a.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var _=[],A=0;A<m;A+=4)_.push(n());return new s.init(_,m)}}),u=f.enc={},c=u.Hex={stringify:function(m){for(var _=m.words,A=m.sigBytes,E=[],q=0;q<A;q++){var w=_[q>>>2]>>>24-q%4*8&255;E.push((w>>>4).toString(16)),E.push((15&w).toString(16))}return E.join("")},parse:function(m){for(var _=m.length,A=[],E=0;E<_;E+=2)A[E>>>3]|=parseInt(m.substr(E,2),16)<<24-E%8*4;return new s.init(A,_/2)}},l=u.Latin1={stringify:function(m){for(var _=m.words,A=m.sigBytes,E=[],q=0;q<A;q++){var w=_[q>>>2]>>>24-q%4*8&255;E.push(String.fromCharCode(w))}return E.join("")},parse:function(m){for(var _=m.length,A=[],E=0;E<_;E++)A[E>>>2]|=(255&m.charCodeAt(E))<<24-E%4*8;return new s.init(A,_)}},d=u.Utf8={stringify:function(m){try{return decodeURIComponent(escape(l.stringify(m)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(m){return l.parse(unescape(encodeURIComponent(m)))}},p=t.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=d.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var _,A=this._data,E=A.words,q=A.sigBytes,w=this.blockSize,x=q/(4*w),P=(x=m?r.ceil(x):r.max((0|x)-this._minBufferSize,0))*w,O=r.min(4*P,q);if(P){for(var N=0;N<P;N+=w)this._doProcessBlock(E,N);_=E.splice(0,P),A.sigBytes-=O}return new s.init(_,O)},clone:function(){var m=a.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});t.Hasher=p.extend({cfg:a.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){return m&&this._append(m),this._doFinalize()},blockSize:16,_createHelper:function(m){return function(_,A){return new m.init(A).finalize(_)}},_createHmacHelper:function(m){return function(_,A){return new y.HMAC.init(m,A).finalize(_)}}});var y=f.algo={};return f})(Math),e)),core$1.exports;var e}var x64Core$1={exports:{}},x64Core=x64Core$1.exports,hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,x64Core$1.exports=(f=requireCore(),o=(r=f).lib,i=o.Base,n=o.WordArray,(h=r.x64={}).Word=i.extend({init:function(t,a){this.high=t,this.low=a}}),h.WordArray=i.extend({init:function(t,a){t=this.words=t||[],this.sigBytes=a!=e?a:8*t.length},toX32:function(){for(var t=this.words,a=t.length,s=[],u=0;u<a;u++){var c=t[u];s.push(c.high),s.push(c.low)}return n.create(s,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),a=t.words=this.words.slice(0),s=a.length,u=0;u<s;u++)a[u]=a[u].clone();return t}}),f)),x64Core$1.exports;var e,r,o,i,n,h,f}var libTypedarrays$1={exports:{}},libTypedarrays=libTypedarrays$1.exports,hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,libTypedarrays$1.exports=(e=requireCore(),(function(){if(typeof ArrayBuffer=="function"){var r=e.lib.WordArray,o=r.init,i=r.init=function(n){if(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),(n instanceof Int8Array||typeof Uint8ClampedArray<"u"&&n instanceof Uint8ClampedArray||n instanceof Int16Array||n instanceof Uint16Array||n instanceof Int32Array||n instanceof Uint32Array||n instanceof Float32Array||n instanceof Float64Array)&&(n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength)),n instanceof Uint8Array){for(var h=n.byteLength,f=[],t=0;t<h;t++)f[t>>>2]|=n[t]<<24-t%4*8;o.call(this,f,h)}else o.apply(this,arguments)};i.prototype=r}})(),e.lib.WordArray)),libTypedarrays$1.exports;var e}var encUtf16$1={exports:{}},encUtf16=encUtf16$1.exports,hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,encUtf16$1.exports=(e=requireCore(),(function(){var r=e,o=r.lib.WordArray,i=r.enc;function n(h){return h<<8&4278255360|h>>>8&16711935}i.Utf16=i.Utf16BE={stringify:function(h){for(var f=h.words,t=h.sigBytes,a=[],s=0;s<t;s+=2){var u=f[s>>>2]>>>16-s%4*8&65535;a.push(String.fromCharCode(u))}return a.join("")},parse:function(h){for(var f=h.length,t=[],a=0;a<f;a++)t[a>>>1]|=h.charCodeAt(a)<<16-a%2*16;return o.create(t,2*f)}},i.Utf16LE={stringify:function(h){for(var f=h.words,t=h.sigBytes,a=[],s=0;s<t;s+=2){var u=n(f[s>>>2]>>>16-s%4*8&65535);a.push(String.fromCharCode(u))}return a.join("")},parse:function(h){for(var f=h.length,t=[],a=0;a<f;a++)t[a>>>1]|=n(h.charCodeAt(a)<<16-a%2*16);return o.create(t,2*f)}}})(),e.enc.Utf16)),encUtf16$1.exports;var e}var encBase64$1={exports:{}},encBase64=encBase64$1.exports,hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,encBase64$1.exports=(e=requireCore(),(function(){var r=e,o=r.lib.WordArray;function i(n,h,f){for(var t=[],a=0,s=0;s<h;s++)if(s%4){var u=f[n.charCodeAt(s-1)]<<s%4*2|f[n.charCodeAt(s)]>>>6-s%4*2;t[a>>>2]|=u<<24-a%4*8,a++}return o.create(t,a)}r.enc.Base64={stringify:function(n){var h=n.words,f=n.sigBytes,t=this._map;n.clamp();for(var a=[],s=0;s<f;s+=3)for(var u=(h[s>>>2]>>>24-s%4*8&255)<<16|(h[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|h[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<f;c++)a.push(t.charAt(u>>>6*(3-c)&63));var l=t.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(n){var h=n.length,f=this._map,t=this._reverseMap;if(!t){t=this._reverseMap=[];for(var a=0;a<f.length;a++)t[f.charCodeAt(a)]=a}var s=f.charAt(64);if(s){var u=n.indexOf(s);u!==-1&&(h=u)}return i(n,h,t)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})(),e.enc.Base64)),encBase64$1.exports;var e}var encBase64url$1={exports:{}},encBase64url=encBase64url$1.exports,hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,encBase64url$1.exports=(e=requireCore(),(function(){var r=e,o=r.lib.WordArray;function i(n,h,f){for(var t=[],a=0,s=0;s<h;s++)if(s%4){var u=f[n.charCodeAt(s-1)]<<s%4*2|f[n.charCodeAt(s)]>>>6-s%4*2;t[a>>>2]|=u<<24-a%4*8,a++}return o.create(t,a)}r.enc.Base64url={stringify:function(n,h){h===void 0&&(h=!0);var f=n.words,t=n.sigBytes,a=h?this._safe_map:this._map;n.clamp();for(var s=[],u=0;u<t;u+=3)for(var c=(f[u>>>2]>>>24-u%4*8&255)<<16|(f[u+1>>>2]>>>24-(u+1)%4*8&255)<<8|f[u+2>>>2]>>>24-(u+2)%4*8&255,l=0;l<4&&u+.75*l<t;l++)s.push(a.charAt(c>>>6*(3-l)&63));var d=a.charAt(64);if(d)for(;s.length%4;)s.push(d);return s.join("")},parse:function(n,h){h===void 0&&(h=!0);var f=n.length,t=h?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var s=0;s<t.length;s++)a[t.charCodeAt(s)]=s}var u=t.charAt(64);if(u){var c=n.indexOf(u);c!==-1&&(f=c)}return i(n,f,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}})(),e.enc.Base64url)),encBase64url$1.exports;var e}var md5$1={exports:{}},md5=md5$1.exports,hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,md5$1.exports=(e=requireCore(),(function(r){var o=e,i=o.lib,n=i.WordArray,h=i.Hasher,f=o.algo,t=[];(function(){for(var d=0;d<64;d++)t[d]=4294967296*r.abs(r.sin(d+1))|0})();var a=f.MD5=h.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(d,p){for(var y=0;y<16;y++){var m=p+y,_=d[m];d[m]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8)}var A=this._hash.words,E=d[p+0],q=d[p+1],w=d[p+2],x=d[p+3],P=d[p+4],O=d[p+5],N=d[p+6],v=d[p+7],B=d[p+8],$=d[p+9],R=d[p+10],g=d[p+11],b=d[p+12],k=d[p+13],L=d[p+14],F=d[p+15],T=A[0],U=A[1],D=A[2],I=A[3];T=s(T,U,D,I,E,7,t[0]),I=s(I,T,U,D,q,12,t[1]),D=s(D,I,T,U,w,17,t[2]),U=s(U,D,I,T,x,22,t[3]),T=s(T,U,D,I,P,7,t[4]),I=s(I,T,U,D,O,12,t[5]),D=s(D,I,T,U,N,17,t[6]),U=s(U,D,I,T,v,22,t[7]),T=s(T,U,D,I,B,7,t[8]),I=s(I,T,U,D,$,12,t[9]),D=s(D,I,T,U,R,17,t[10]),U=s(U,D,I,T,g,22,t[11]),T=s(T,U,D,I,b,7,t[12]),I=s(I,T,U,D,k,12,t[13]),D=s(D,I,T,U,L,17,t[14]),T=u(T,U=s(U,D,I,T,F,22,t[15]),D,I,q,5,t[16]),I=u(I,T,U,D,N,9,t[17]),D=u(D,I,T,U,g,14,t[18]),U=u(U,D,I,T,E,20,t[19]),T=u(T,U,D,I,O,5,t[20]),I=u(I,T,U,D,R,9,t[21]),D=u(D,I,T,U,F,14,t[22]),U=u(U,D,I,T,P,20,t[23]),T=u(T,U,D,I,$,5,t[24]),I=u(I,T,U,D,L,9,t[25]),D=u(D,I,T,U,x,14,t[26]),U=u(U,D,I,T,B,20,t[27]),T=u(T,U,D,I,k,5,t[28]),I=u(I,T,U,D,w,9,t[29]),D=u(D,I,T,U,v,14,t[30]),T=c(T,U=u(U,D,I,T,b,20,t[31]),D,I,O,4,t[32]),I=c(I,T,U,D,B,11,t[33]),D=c(D,I,T,U,g,16,t[34]),U=c(U,D,I,T,L,23,t[35]),T=c(T,U,D,I,q,4,t[36]),I=c(I,T,U,D,P,11,t[37]),D=c(D,I,T,U,v,16,t[38]),U=c(U,D,I,T,R,23,t[39]),T=c(T,U,D,I,k,4,t[40]),I=c(I,T,U,D,E,11,t[41]),D=c(D,I,T,U,x,16,t[42]),U=c(U,D,I,T,N,23,t[43]),T=c(T,U,D,I,$,4,t[44]),I=c(I,T,U,D,b,11,t[45]),D=c(D,I,T,U,F,16,t[46]),T=l(T,U=c(U,D,I,T,w,23,t[47]),D,I,E,6,t[48]),I=l(I,T,U,D,v,10,t[49]),D=l(D,I,T,U,L,15,t[50]),U=l(U,D,I,T,O,21,t[51]),T=l(T,U,D,I,b,6,t[52]),I=l(I,T,U,D,x,10,t[53]),D=l(D,I,T,U,R,15,t[54]),U=l(U,D,I,T,q,21,t[55]),T=l(T,U,D,I,B,6,t[56]),I=l(I,T,U,D,F,10,t[57]),D=l(D,I,T,U,N,15,t[58]),U=l(U,D,I,T,k,21,t[59]),T=l(T,U,D,I,P,6,t[60]),I=l(I,T,U,D,g,10,t[61]),D=l(D,I,T,U,w,15,t[62]),U=l(U,D,I,T,$,21,t[63]),A[0]=A[0]+T|0,A[1]=A[1]+U|0,A[2]=A[2]+D|0,A[3]=A[3]+I|0},_doFinalize:function(){var d=this._data,p=d.words,y=8*this._nDataBytes,m=8*d.sigBytes;p[m>>>5]|=128<<24-m%32;var _=r.floor(y/4294967296),A=y;p[15+(m+64>>>9<<4)]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8),p[14+(m+64>>>9<<4)]=16711935&(A<<8|A>>>24)|4278255360&(A<<24|A>>>8),d.sigBytes=4*(p.length+1),this._process();for(var E=this._hash,q=E.words,w=0;w<4;w++){var x=q[w];q[w]=16711935&(x<<8|x>>>24)|4278255360&(x<<24|x>>>8)}return E},clone:function(){var d=h.clone.call(this);return d._hash=this._hash.clone(),d}});function s(d,p,y,m,_,A,E){var q=d+(p&y|~p&m)+_+E;return(q<<A|q>>>32-A)+p}function u(d,p,y,m,_,A,E){var q=d+(p&m|y&~m)+_+E;return(q<<A|q>>>32-A)+p}function c(d,p,y,m,_,A,E){var q=d+(p^y^m)+_+E;return(q<<A|q>>>32-A)+p}function l(d,p,y,m,_,A,E){var q=d+(y^(p|~m))+_+E;return(q<<A|q>>>32-A)+p}o.MD5=h._createHelper(a),o.HmacMD5=h._createHmacHelper(a)})(Math),e.MD5)),md5$1.exports;var e}var sha1$1={exports:{}},sha1=sha1$1.exports,hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,sha1$1.exports=(t=requireCore(),r=(e=t).lib,o=r.WordArray,i=r.Hasher,n=e.algo,h=[],f=n.SHA1=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(a,s){for(var u=this._hash.words,c=u[0],l=u[1],d=u[2],p=u[3],y=u[4],m=0;m<80;m++){if(m<16)h[m]=0|a[s+m];else{var _=h[m-3]^h[m-8]^h[m-14]^h[m-16];h[m]=_<<1|_>>>31}var A=(c<<5|c>>>27)+y+h[m];A+=m<20?1518500249+(l&d|~l&p):m<40?1859775393+(l^d^p):m<60?(l&d|l&p|d&p)-1894007588:(l^d^p)-899497514,y=p,p=d,d=l<<30|l>>>2,l=c,c=A}u[0]=u[0]+c|0,u[1]=u[1]+l|0,u[2]=u[2]+d|0,u[3]=u[3]+p|0,u[4]=u[4]+y|0},_doFinalize:function(){var a=this._data,s=a.words,u=8*this._nDataBytes,c=8*a.sigBytes;return s[c>>>5]|=128<<24-c%32,s[14+(c+64>>>9<<4)]=Math.floor(u/4294967296),s[15+(c+64>>>9<<4)]=u,a.sigBytes=4*s.length,this._process(),this._hash},clone:function(){var a=i.clone.call(this);return a._hash=this._hash.clone(),a}}),e.SHA1=i._createHelper(f),e.HmacSHA1=i._createHmacHelper(f),t.SHA1)),sha1$1.exports;var e,r,o,i,n,h,f,t}var sha256$1={exports:{}},sha256=sha256$1.exports,hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,sha256$1.exports=(e=requireCore(),(function(r){var o=e,i=o.lib,n=i.WordArray,h=i.Hasher,f=o.algo,t=[],a=[];(function(){function c(y){for(var m=r.sqrt(y),_=2;_<=m;_++)if(!(y%_))return!1;return!0}function l(y){return 4294967296*(y-(0|y))|0}for(var d=2,p=0;p<64;)c(d)&&(p<8&&(t[p]=l(r.pow(d,.5))),a[p]=l(r.pow(d,1/3)),p++),d++})();var s=[],u=f.SHA256=h.extend({_doReset:function(){this._hash=new n.init(t.slice(0))},_doProcessBlock:function(c,l){for(var d=this._hash.words,p=d[0],y=d[1],m=d[2],_=d[3],A=d[4],E=d[5],q=d[6],w=d[7],x=0;x<64;x++){if(x<16)s[x]=0|c[l+x];else{var P=s[x-15],O=(P<<25|P>>>7)^(P<<14|P>>>18)^P>>>3,N=s[x-2],v=(N<<15|N>>>17)^(N<<13|N>>>19)^N>>>10;s[x]=O+s[x-7]+v+s[x-16]}var B=p&y^p&m^y&m,$=(p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22),R=w+((A<<26|A>>>6)^(A<<21|A>>>11)^(A<<7|A>>>25))+(A&E^~A&q)+a[x]+s[x];w=q,q=E,E=A,A=_+R|0,_=m,m=y,y=p,p=R+($+B)|0}d[0]=d[0]+p|0,d[1]=d[1]+y|0,d[2]=d[2]+m|0,d[3]=d[3]+_|0,d[4]=d[4]+A|0,d[5]=d[5]+E|0,d[6]=d[6]+q|0,d[7]=d[7]+w|0},_doFinalize:function(){var c=this._data,l=c.words,d=8*this._nDataBytes,p=8*c.sigBytes;return l[p>>>5]|=128<<24-p%32,l[14+(p+64>>>9<<4)]=r.floor(d/4294967296),l[15+(p+64>>>9<<4)]=d,c.sigBytes=4*l.length,this._process(),this._hash},clone:function(){var c=h.clone.call(this);return c._hash=this._hash.clone(),c}});o.SHA256=h._createHelper(u),o.HmacSHA256=h._createHmacHelper(u)})(Math),e.SHA256)),sha256$1.exports;var e}var sha224$1={exports:{}},sha224=sha224$1.exports,hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,sha224$1.exports=(h=requireCore(),requireSha256(),r=(e=h).lib.WordArray,o=e.algo,i=o.SHA256,n=o.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var f=i._doFinalize.call(this);return f.sigBytes-=4,f}}),e.SHA224=i._createHelper(n),e.HmacSHA224=i._createHmacHelper(n),h.SHA224)),sha224$1.exports;var e,r,o,i,n,h}var sha512$1={exports:{}},sha512=sha512$1.exports,hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,sha512$1.exports=(e=requireCore(),requireX64Core(),(function(){var r=e,o=r.lib.Hasher,i=r.x64,n=i.Word,h=i.WordArray,f=r.algo;function t(){return n.create.apply(n,arguments)}var a=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],s=[];(function(){for(var c=0;c<80;c++)s[c]=t()})();var u=f.SHA512=o.extend({_doReset:function(){this._hash=new h.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(c,l){for(var d=this._hash.words,p=d[0],y=d[1],m=d[2],_=d[3],A=d[4],E=d[5],q=d[6],w=d[7],x=p.high,P=p.low,O=y.high,N=y.low,v=m.high,B=m.low,$=_.high,R=_.low,g=A.high,b=A.low,k=E.high,L=E.low,F=q.high,T=q.low,U=w.high,D=w.low,I=x,j=P,H=O,K=N,ee=v,Z=B,V=$,Q=R,X=g,J=b,oe=k,se=L,ne=F,_e=T,te=U,ie=D,ye=0;ye<80;ye++){var ue,fe,me=s[ye];if(ye<16)fe=me.high=0|c[l+2*ye],ue=me.low=0|c[l+2*ye+1];else{var le=s[ye-15],he=le.high,Ee=le.low,ge=(he>>>1|Ee<<31)^(he>>>8|Ee<<24)^he>>>7,de=(Ee>>>1|he<<31)^(Ee>>>8|he<<24)^(Ee>>>7|he<<25),Oe=s[ye-2],ve=Oe.high,be=Oe.low,je=(ve>>>19|be<<13)^(ve<<3|be>>>29)^ve>>>6,S=(be>>>19|ve<<13)^(be<<3|ve>>>29)^(be>>>6|ve<<26),M=s[ye-7],C=M.high,W=M.low,z=s[ye-16],G=z.high,Y=z.low;fe=(fe=(fe=ge+C+((ue=de+W)>>>0<de>>>0?1:0))+je+((ue+=S)>>>0<S>>>0?1:0))+G+((ue+=Y)>>>0<Y>>>0?1:0),me.high=fe,me.low=ue}var re,pe=X&oe^~X&ne,ce=J&se^~J&_e,ae=I&H^I&ee^H&ee,Re=j&K^j&Z^K&Z,$e=(I>>>28|j<<4)^(I<<30|j>>>2)^(I<<25|j>>>7),qe=(j>>>28|I<<4)^(j<<30|I>>>2)^(j<<25|I>>>7),Le=(X>>>14|J<<18)^(X>>>18|J<<14)^(X<<23|J>>>9),Be=(J>>>14|X<<18)^(J>>>18|X<<14)^(J<<23|X>>>9),Ae=a[ye],De=Ae.high,Se=Ae.low,we=te+Le+((re=ie+Be)>>>0<ie>>>0?1:0),Te=qe+Re;te=ne,ie=_e,ne=oe,_e=se,oe=X,se=J,X=V+(we=(we=(we=we+pe+((re+=ce)>>>0<ce>>>0?1:0))+De+((re+=Se)>>>0<Se>>>0?1:0))+fe+((re+=ue)>>>0<ue>>>0?1:0))+((J=Q+re|0)>>>0<Q>>>0?1:0)|0,V=ee,Q=Z,ee=H,Z=K,H=I,K=j,I=we+($e+ae+(Te>>>0<qe>>>0?1:0))+((j=re+Te|0)>>>0<re>>>0?1:0)|0}P=p.low=P+j,p.high=x+I+(P>>>0<j>>>0?1:0),N=y.low=N+K,y.high=O+H+(N>>>0<K>>>0?1:0),B=m.low=B+Z,m.high=v+ee+(B>>>0<Z>>>0?1:0),R=_.low=R+Q,_.high=$+V+(R>>>0<Q>>>0?1:0),b=A.low=b+J,A.high=g+X+(b>>>0<J>>>0?1:0),L=E.low=L+se,E.high=k+oe+(L>>>0<se>>>0?1:0),T=q.low=T+_e,q.high=F+ne+(T>>>0<_e>>>0?1:0),D=w.low=D+ie,w.high=U+te+(D>>>0<ie>>>0?1:0)},_doFinalize:function(){var c=this._data,l=c.words,d=8*this._nDataBytes,p=8*c.sigBytes;return l[p>>>5]|=128<<24-p%32,l[30+(p+128>>>10<<5)]=Math.floor(d/4294967296),l[31+(p+128>>>10<<5)]=d,c.sigBytes=4*l.length,this._process(),this._hash.toX32()},clone:function(){var c=o.clone.call(this);return c._hash=this._hash.clone(),c},blockSize:32});r.SHA512=o._createHelper(u),r.HmacSHA512=o._createHmacHelper(u)})(),e.SHA512)),sha512$1.exports;var e}var sha384$1={exports:{}},sha384=sha384$1.exports,hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,sha384$1.exports=(t=requireCore(),requireX64Core(),requireSha512(),r=(e=t).x64,o=r.Word,i=r.WordArray,n=e.algo,h=n.SHA512,f=n.SHA384=h.extend({_doReset:function(){this._hash=new i.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var a=h._doFinalize.call(this);return a.sigBytes-=16,a}}),e.SHA384=h._createHelper(f),e.HmacSHA384=h._createHmacHelper(f),t.SHA384)),sha384$1.exports;var e,r,o,i,n,h,f,t}var sha3$1={exports:{}},sha3=sha3$1.exports,hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,sha3$1.exports=(e=requireCore(),requireX64Core(),(function(r){var o=e,i=o.lib,n=i.WordArray,h=i.Hasher,f=o.x64.Word,t=o.algo,a=[],s=[],u=[];(function(){for(var d=1,p=0,y=0;y<24;y++){a[d+5*p]=(y+1)*(y+2)/2%64;var m=(2*d+3*p)%5;d=p%5,p=m}for(d=0;d<5;d++)for(p=0;p<5;p++)s[d+5*p]=p+(2*d+3*p)%5*5;for(var _=1,A=0;A<24;A++){for(var E=0,q=0,w=0;w<7;w++){if(1&_){var x=(1<<w)-1;x<32?q^=1<<x:E^=1<<x-32}128&_?_=_<<1^113:_<<=1}u[A]=f.create(E,q)}})();var c=[];(function(){for(var d=0;d<25;d++)c[d]=f.create()})();var l=t.SHA3=h.extend({cfg:h.cfg.extend({outputLength:512}),_doReset:function(){for(var d=this._state=[],p=0;p<25;p++)d[p]=new f.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(d,p){for(var y=this._state,m=this.blockSize/2,_=0;_<m;_++){var A=d[p+2*_],E=d[p+2*_+1];A=16711935&(A<<8|A>>>24)|4278255360&(A<<24|A>>>8),E=16711935&(E<<8|E>>>24)|4278255360&(E<<24|E>>>8),(D=y[_]).high^=E,D.low^=A}for(var q=0;q<24;q++){for(var w=0;w<5;w++){for(var x=0,P=0,O=0;O<5;O++)x^=(D=y[w+5*O]).high,P^=D.low;var N=c[w];N.high=x,N.low=P}for(w=0;w<5;w++){var v=c[(w+4)%5],B=c[(w+1)%5],$=B.high,R=B.low;for(x=v.high^($<<1|R>>>31),P=v.low^(R<<1|$>>>31),O=0;O<5;O++)(D=y[w+5*O]).high^=x,D.low^=P}for(var g=1;g<25;g++){var b=(D=y[g]).high,k=D.low,L=a[g];L<32?(x=b<<L|k>>>32-L,P=k<<L|b>>>32-L):(x=k<<L-32|b>>>64-L,P=b<<L-32|k>>>64-L);var F=c[s[g]];F.high=x,F.low=P}var T=c[0],U=y[0];for(T.high=U.high,T.low=U.low,w=0;w<5;w++)for(O=0;O<5;O++){var D=y[g=w+5*O],I=c[g],j=c[(w+1)%5+5*O],H=c[(w+2)%5+5*O];D.high=I.high^~j.high&H.high,D.low=I.low^~j.low&H.low}D=y[0];var K=u[q];D.high^=K.high,D.low^=K.low}},_doFinalize:function(){var d=this._data,p=d.words;this._nDataBytes;var y=8*d.sigBytes,m=32*this.blockSize;p[y>>>5]|=1<<24-y%32,p[(r.ceil((y+1)/m)*m>>>5)-1]|=128,d.sigBytes=4*p.length,this._process();for(var _=this._state,A=this.cfg.outputLength/8,E=A/8,q=[],w=0;w<E;w++){var x=_[w],P=x.high,O=x.low;P=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8),O=16711935&(O<<8|O>>>24)|4278255360&(O<<24|O>>>8),q.push(O),q.push(P)}return new n.init(q,A)},clone:function(){for(var d=h.clone.call(this),p=d._state=this._state.slice(0),y=0;y<25;y++)p[y]=p[y].clone();return d}});o.SHA3=h._createHelper(l),o.HmacSHA3=h._createHmacHelper(l)})(Math),e.SHA3)),sha3$1.exports;var e}var ripemd160$1={exports:{}},ripemd160=ripemd160$1.exports,hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,ripemd160$1.exports=(e=requireCore(),(function(){var r=e,o=r.lib,i=o.WordArray,n=o.Hasher,h=r.algo,f=i.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]),t=i.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]),a=i.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]),s=i.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]),u=i.create([0,1518500249,1859775393,2400959708,2840853838]),c=i.create([1352829926,1548603684,1836072691,2053994217,0]),l=h.RIPEMD160=n.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(E,q){for(var w=0;w<16;w++){var x=q+w,P=E[x];E[x]=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8)}var O,N,v,B,$,R,g,b,k,L,F,T=this._hash.words,U=u.words,D=c.words,I=f.words,j=t.words,H=a.words,K=s.words;for(R=O=T[0],g=N=T[1],b=v=T[2],k=B=T[3],L=$=T[4],w=0;w<80;w+=1)F=O+E[q+I[w]]|0,F+=w<16?d(N,v,B)+U[0]:w<32?p(N,v,B)+U[1]:w<48?y(N,v,B)+U[2]:w<64?m(N,v,B)+U[3]:_(N,v,B)+U[4],F=(F=A(F|=0,H[w]))+$|0,O=$,$=B,B=A(v,10),v=N,N=F,F=R+E[q+j[w]]|0,F+=w<16?_(g,b,k)+D[0]:w<32?m(g,b,k)+D[1]:w<48?y(g,b,k)+D[2]:w<64?p(g,b,k)+D[3]:d(g,b,k)+D[4],F=(F=A(F|=0,K[w]))+L|0,R=L,L=k,k=A(b,10),b=g,g=F;F=T[1]+v+k|0,T[1]=T[2]+B+L|0,T[2]=T[3]+$+R|0,T[3]=T[4]+O+g|0,T[4]=T[0]+N+b|0,T[0]=F},_doFinalize:function(){var E=this._data,q=E.words,w=8*this._nDataBytes,x=8*E.sigBytes;q[x>>>5]|=128<<24-x%32,q[14+(x+64>>>9<<4)]=16711935&(w<<8|w>>>24)|4278255360&(w<<24|w>>>8),E.sigBytes=4*(q.length+1),this._process();for(var P=this._hash,O=P.words,N=0;N<5;N++){var v=O[N];O[N]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8)}return P},clone:function(){var E=n.clone.call(this);return E._hash=this._hash.clone(),E}});function d(E,q,w){return E^q^w}function p(E,q,w){return E&q|~E&w}function y(E,q,w){return(E|~q)^w}function m(E,q,w){return E&w|q&~w}function _(E,q,w){return E^(q|~w)}function A(E,q){return E<<q|E>>>32-q}r.RIPEMD160=n._createHelper(l),r.HmacRIPEMD160=n._createHmacHelper(l)})(),e.RIPEMD160)),ripemd160$1.exports;var e}var hmac$1={exports:{}},hmac=hmac$1.exports,hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,hmac$1.exports=(e=requireCore(),o=(r=e).lib.Base,i=r.enc.Utf8,void(r.algo.HMAC=o.extend({init:function(n,h){n=this._hasher=new n.init,typeof h=="string"&&(h=i.parse(h));var f=n.blockSize,t=4*f;h.sigBytes>t&&(h=n.finalize(h)),h.clamp();for(var a=this._oKey=h.clone(),s=this._iKey=h.clone(),u=a.words,c=s.words,l=0;l<f;l++)u[l]^=1549556828,c[l]^=909522486;a.sigBytes=s.sigBytes=t,this.reset()},reset:function(){var n=this._hasher;n.reset(),n.update(this._iKey)},update:function(n){return this._hasher.update(n),this},finalize:function(n){var h=this._hasher,f=h.finalize(n);return h.reset(),h.finalize(this._oKey.clone().concat(f))}})))),hmac$1.exports;var e,r,o,i}var pbkdf2$1={exports:{}},pbkdf2=pbkdf2$1.exports,hasRequiredPbkdf2;function requirePbkdf2(){return hasRequiredPbkdf2||(hasRequiredPbkdf2=1,pbkdf2$1.exports=(a=requireCore(),requireSha256(),requireHmac(),r=(e=a).lib,o=r.Base,i=r.WordArray,n=e.algo,h=n.SHA256,f=n.HMAC,t=n.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:h,iterations:25e4}),init:function(s){this.cfg=this.cfg.extend(s)},compute:function(s,u){for(var c=this.cfg,l=f.create(c.hasher,s),d=i.create(),p=i.create([1]),y=d.words,m=p.words,_=c.keySize,A=c.iterations;y.length<_;){var E=l.update(u).finalize(p);l.reset();for(var q=E.words,w=q.length,x=E,P=1;P<A;P++){x=l.finalize(x),l.reset();for(var O=x.words,N=0;N<w;N++)q[N]^=O[N]}d.concat(E),m[0]++}return d.sigBytes=4*_,d}}),e.PBKDF2=function(s,u,c){return t.create(c).compute(s,u)},a.PBKDF2)),pbkdf2$1.exports;var e,r,o,i,n,h,f,t,a}var evpkdf$1={exports:{}},evpkdf=evpkdf$1.exports,hasRequiredEvpkdf;function requireEvpkdf(){return hasRequiredEvpkdf||(hasRequiredEvpkdf=1,evpkdf$1.exports=(t=requireCore(),requireSha1(),requireHmac(),r=(e=t).lib,o=r.Base,i=r.WordArray,n=e.algo,h=n.MD5,f=n.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:h,iterations:1}),init:function(a){this.cfg=this.cfg.extend(a)},compute:function(a,s){for(var u,c=this.cfg,l=c.hasher.create(),d=i.create(),p=d.words,y=c.keySize,m=c.iterations;p.length<y;){u&&l.update(u),u=l.update(a).finalize(s),l.reset();for(var _=1;_<m;_++)u=l.finalize(u),l.reset();d.concat(u)}return d.sigBytes=4*y,d}}),e.EvpKDF=function(a,s,u){return f.create(u).compute(a,s)},t.EvpKDF)),evpkdf$1.exports;var e,r,o,i,n,h,f,t}var cipherCore$1={exports:{}},cipherCore=cipherCore$1.exports,hasRequiredCipherCore;function requireCipherCore(){return hasRequiredCipherCore||(hasRequiredCipherCore=1,cipherCore$1.exports=(e=requireCore(),requireEvpkdf(),void(e.lib.Cipher||(function(r){var o=e,i=o.lib,n=i.Base,h=i.WordArray,f=i.BufferedBlockAlgorithm,t=o.enc;t.Utf8;var a=t.Base64,s=o.algo.EvpKDF,u=i.Cipher=f.extend({cfg:n.extend(),createEncryptor:function(q,w){return this.create(this._ENC_XFORM_MODE,q,w)},createDecryptor:function(q,w){return this.create(this._DEC_XFORM_MODE,q,w)},init:function(q,w,x){this.cfg=this.cfg.extend(x),this._xformMode=q,this._key=w,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(q){return this._append(q),this._process()},finalize:function(q){return q&&this._append(q),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function q(w){return typeof w=="string"?E:_}return function(w){return{encrypt:function(x,P,O){return q(P).encrypt(w,x,P,O)},decrypt:function(x,P,O){return q(P).decrypt(w,x,P,O)}}}})()});i.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var c=o.mode={},l=i.BlockCipherMode=n.extend({createEncryptor:function(q,w){return this.Encryptor.create(q,w)},createDecryptor:function(q,w){return this.Decryptor.create(q,w)},init:function(q,w){this._cipher=q,this._iv=w}}),d=c.CBC=(function(){var q=l.extend();function w(x,P,O){var N,v=this._iv;v?(N=v,this._iv=r):N=this._prevBlock;for(var B=0;B<O;B++)x[P+B]^=N[B]}return q.Encryptor=q.extend({processBlock:function(x,P){var O=this._cipher,N=O.blockSize;w.call(this,x,P,N),O.encryptBlock(x,P),this._prevBlock=x.slice(P,P+N)}}),q.Decryptor=q.extend({processBlock:function(x,P){var O=this._cipher,N=O.blockSize,v=x.slice(P,P+N);O.decryptBlock(x,P),w.call(this,x,P,N),this._prevBlock=v}}),q})(),p=(o.pad={}).Pkcs7={pad:function(q,w){for(var x=4*w,P=x-q.sigBytes%x,O=P<<24|P<<16|P<<8|P,N=[],v=0;v<P;v+=4)N.push(O);var B=h.create(N,P);q.concat(B)},unpad:function(q){var w=255&q.words[q.sigBytes-1>>>2];q.sigBytes-=w}};i.BlockCipher=u.extend({cfg:u.cfg.extend({mode:d,padding:p}),reset:function(){var q;u.reset.call(this);var w=this.cfg,x=w.iv,P=w.mode;this._xformMode==this._ENC_XFORM_MODE?q=P.createEncryptor:(q=P.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==q?this._mode.init(this,x&&x.words):(this._mode=q.call(P,this,x&&x.words),this._mode.__creator=q)},_doProcessBlock:function(q,w){this._mode.processBlock(q,w)},_doFinalize:function(){var q,w=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(w.pad(this._data,this.blockSize),q=this._process(!0)):(q=this._process(!0),w.unpad(q)),q},blockSize:4});var y=i.CipherParams=n.extend({init:function(q){this.mixIn(q)},toString:function(q){return(q||this.formatter).stringify(this)}}),m=(o.format={}).OpenSSL={stringify:function(q){var w=q.ciphertext,x=q.salt;return(x?h.create([1398893684,1701076831]).concat(x).concat(w):w).toString(a)},parse:function(q){var w,x=a.parse(q),P=x.words;return P[0]==1398893684&&P[1]==1701076831&&(w=h.create(P.slice(2,4)),P.splice(0,4),x.sigBytes-=16),y.create({ciphertext:x,salt:w})}},_=i.SerializableCipher=n.extend({cfg:n.extend({format:m}),encrypt:function(q,w,x,P){P=this.cfg.extend(P);var O=q.createEncryptor(x,P),N=O.finalize(w),v=O.cfg;return y.create({ciphertext:N,key:x,iv:v.iv,algorithm:q,mode:v.mode,padding:v.padding,blockSize:q.blockSize,formatter:P.format})},decrypt:function(q,w,x,P){return P=this.cfg.extend(P),w=this._parse(w,P.format),q.createDecryptor(x,P).finalize(w.ciphertext)},_parse:function(q,w){return typeof q=="string"?w.parse(q,this):q}}),A=(o.kdf={}).OpenSSL={execute:function(q,w,x,P,O){if(P||(P=h.random(8)),O)N=s.create({keySize:w+x,hasher:O}).compute(q,P);else var N=s.create({keySize:w+x}).compute(q,P);var v=h.create(N.words.slice(w),4*x);return N.sigBytes=4*w,y.create({key:N,iv:v,salt:P})}},E=i.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:A}),encrypt:function(q,w,x,P){var O=(P=this.cfg.extend(P)).kdf.execute(x,q.keySize,q.ivSize,P.salt,P.hasher);P.iv=O.iv;var N=_.encrypt.call(this,q,w,O.key,P);return N.mixIn(O),N},decrypt:function(q,w,x,P){P=this.cfg.extend(P),w=this._parse(w,P.format);var O=P.kdf.execute(x,q.keySize,q.ivSize,w.salt,P.hasher);return P.iv=O.iv,_.decrypt.call(this,q,w,O.key,P)}})})()))),cipherCore$1.exports;var e}var modeCfb$1={exports:{}},modeCfb=modeCfb$1.exports,hasRequiredModeCfb;function requireModeCfb(){return hasRequiredModeCfb||(hasRequiredModeCfb=1,modeCfb$1.exports=(e=requireCore(),requireCipherCore(),e.mode.CFB=(function(){var r=e.lib.BlockCipherMode.extend();function o(i,n,h,f){var t,a=this._iv;a?(t=a.slice(0),this._iv=void 0):t=this._prevBlock,f.encryptBlock(t,0);for(var s=0;s<h;s++)i[n+s]^=t[s]}return r.Encryptor=r.extend({processBlock:function(i,n){var h=this._cipher,f=h.blockSize;o.call(this,i,n,f,h),this._prevBlock=i.slice(n,n+f)}}),r.Decryptor=r.extend({processBlock:function(i,n){var h=this._cipher,f=h.blockSize,t=i.slice(n,n+f);o.call(this,i,n,f,h),this._prevBlock=t}}),r})(),e.mode.CFB)),modeCfb$1.exports;var e}var modeCtr$1={exports:{}},modeCtr=modeCtr$1.exports,hasRequiredModeCtr;function requireModeCtr(){return hasRequiredModeCtr||(hasRequiredModeCtr=1,modeCtr$1.exports=(o=requireCore(),requireCipherCore(),o.mode.CTR=(e=o.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(i,n){var h=this._cipher,f=h.blockSize,t=this._iv,a=this._counter;t&&(a=this._counter=t.slice(0),this._iv=void 0);var s=a.slice(0);h.encryptBlock(s,0),a[f-1]=a[f-1]+1|0;for(var u=0;u<f;u++)i[n+u]^=s[u]}}),e.Decryptor=r,e),o.mode.CTR)),modeCtr$1.exports;var e,r,o}var modeCtrGladman$1={exports:{}},modeCtrGladman=modeCtrGladman$1.exports,hasRequiredModeCtrGladman;function requireModeCtrGladman(){return hasRequiredModeCtrGladman||(hasRequiredModeCtrGladman=1,modeCtrGladman$1.exports=(e=requireCore(),requireCipherCore(),e.mode.CTRGladman=(function(){var r=e.lib.BlockCipherMode.extend();function o(h){if(255&~(h>>24))h+=1<<24;else{var f=h>>16&255,t=h>>8&255,a=255&h;f===255?(f=0,t===255?(t=0,a===255?a=0:++a):++t):++f,h=0,h+=f<<16,h+=t<<8,h+=a}return h}function i(h){return(h[0]=o(h[0]))===0&&(h[1]=o(h[1])),h}var n=r.Encryptor=r.extend({processBlock:function(h,f){var t=this._cipher,a=t.blockSize,s=this._iv,u=this._counter;s&&(u=this._counter=s.slice(0),this._iv=void 0),i(u);var c=u.slice(0);t.encryptBlock(c,0);for(var l=0;l<a;l++)h[f+l]^=c[l]}});return r.Decryptor=n,r})(),e.mode.CTRGladman)),modeCtrGladman$1.exports;var e}var modeOfb$1={exports:{}},modeOfb=modeOfb$1.exports,hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,modeOfb$1.exports=(o=requireCore(),requireCipherCore(),o.mode.OFB=(e=o.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(i,n){var h=this._cipher,f=h.blockSize,t=this._iv,a=this._keystream;t&&(a=this._keystream=t.slice(0),this._iv=void 0),h.encryptBlock(a,0);for(var s=0;s<f;s++)i[n+s]^=a[s]}}),e.Decryptor=r,e),o.mode.OFB)),modeOfb$1.exports;var e,r,o}var modeEcb$1={exports:{}},modeEcb=modeEcb$1.exports,hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,modeEcb$1.exports=(r=requireCore(),requireCipherCore(),r.mode.ECB=((e=r.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(o,i){this._cipher.encryptBlock(o,i)}}),e.Decryptor=e.extend({processBlock:function(o,i){this._cipher.decryptBlock(o,i)}}),e),r.mode.ECB)),modeEcb$1.exports;var e,r}var padAnsix923$1={exports:{}},padAnsix923=padAnsix923$1.exports,hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,padAnsix923$1.exports=(e=requireCore(),requireCipherCore(),e.pad.AnsiX923={pad:function(r,o){var i=r.sigBytes,n=4*o,h=n-i%n,f=i+h-1;r.clamp(),r.words[f>>>2]|=h<<24-f%4*8,r.sigBytes+=h},unpad:function(r){var o=255&r.words[r.sigBytes-1>>>2];r.sigBytes-=o}},e.pad.Ansix923)),padAnsix923$1.exports;var e}var padIso10126$1={exports:{}},padIso10126=padIso10126$1.exports,hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,padIso10126$1.exports=(e=requireCore(),requireCipherCore(),e.pad.Iso10126={pad:function(r,o){var i=4*o,n=i-r.sigBytes%i;r.concat(e.lib.WordArray.random(n-1)).concat(e.lib.WordArray.create([n<<24],1))},unpad:function(r){var o=255&r.words[r.sigBytes-1>>>2];r.sigBytes-=o}},e.pad.Iso10126)),padIso10126$1.exports;var e}var padIso97971$1={exports:{}},padIso97971=padIso97971$1.exports,hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,padIso97971$1.exports=(e=requireCore(),requireCipherCore(),e.pad.Iso97971={pad:function(r,o){r.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(r,o)},unpad:function(r){e.pad.ZeroPadding.unpad(r),r.sigBytes--}},e.pad.Iso97971)),padIso97971$1.exports;var e}var padZeropadding$1={exports:{}},padZeropadding=padZeropadding$1.exports,hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,padZeropadding$1.exports=(e=requireCore(),requireCipherCore(),e.pad.ZeroPadding={pad:function(r,o){var i=4*o;r.clamp(),r.sigBytes+=i-(r.sigBytes%i||i)},unpad:function(r){var o=r.words,i=r.sigBytes-1;for(i=r.sigBytes-1;i>=0;i--)if(o[i>>>2]>>>24-i%4*8&255){r.sigBytes=i+1;break}}},e.pad.ZeroPadding)),padZeropadding$1.exports;var e}var padNopadding$1={exports:{}},padNopadding=padNopadding$1.exports,hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,padNopadding$1.exports=(e=requireCore(),requireCipherCore(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding)),padNopadding$1.exports;var e}var formatHex$1={exports:{}},formatHex=formatHex$1.exports,hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,formatHex$1.exports=(i=requireCore(),requireCipherCore(),r=(e=i).lib.CipherParams,o=e.enc.Hex,e.format.Hex={stringify:function(n){return n.ciphertext.toString(o)},parse:function(n){var h=o.parse(n);return r.create({ciphertext:h})}},i.format.Hex)),formatHex$1.exports;var e,r,o,i}var aes$1={exports:{}},aes=aes$1.exports,hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,aes$1.exports=(e=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),(function(){var r=e,o=r.lib.BlockCipher,i=r.algo,n=[],h=[],f=[],t=[],a=[],s=[],u=[],c=[],l=[],d=[];(function(){for(var m=[],_=0;_<256;_++)m[_]=_<128?_<<1:_<<1^283;var A=0,E=0;for(_=0;_<256;_++){var q=E^E<<1^E<<2^E<<3^E<<4;q=q>>>8^255&q^99,n[A]=q,h[q]=A;var w=m[A],x=m[w],P=m[x],O=257*m[q]^16843008*q;f[A]=O<<24|O>>>8,t[A]=O<<16|O>>>16,a[A]=O<<8|O>>>24,s[A]=O,O=16843009*P^65537*x^257*w^16843008*A,u[q]=O<<24|O>>>8,c[q]=O<<16|O>>>16,l[q]=O<<8|O>>>24,d[q]=O,A?(A=w^m[m[m[P^w]]],E^=m[m[E]]):A=E=1}})();var p=[0,1,2,4,8,16,32,64,128,27,54],y=i.AES=o.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var m=this._keyPriorReset=this._key,_=m.words,A=m.sigBytes/4,E=4*((this._nRounds=A+6)+1),q=this._keySchedule=[],w=0;w<E;w++)w<A?q[w]=_[w]:(O=q[w-1],w%A?A>6&&w%A==4&&(O=n[O>>>24]<<24|n[O>>>16&255]<<16|n[O>>>8&255]<<8|n[255&O]):(O=n[(O=O<<8|O>>>24)>>>24]<<24|n[O>>>16&255]<<16|n[O>>>8&255]<<8|n[255&O],O^=p[w/A|0]<<24),q[w]=q[w-A]^O);for(var x=this._invKeySchedule=[],P=0;P<E;P++){if(w=E-P,P%4)var O=q[w];else O=q[w-4];x[P]=P<4||w<=4?O:u[n[O>>>24]]^c[n[O>>>16&255]]^l[n[O>>>8&255]]^d[n[255&O]]}}},encryptBlock:function(m,_){this._doCryptBlock(m,_,this._keySchedule,f,t,a,s,n)},decryptBlock:function(m,_){var A=m[_+1];m[_+1]=m[_+3],m[_+3]=A,this._doCryptBlock(m,_,this._invKeySchedule,u,c,l,d,h),A=m[_+1],m[_+1]=m[_+3],m[_+3]=A},_doCryptBlock:function(m,_,A,E,q,w,x,P){for(var O=this._nRounds,N=m[_]^A[0],v=m[_+1]^A[1],B=m[_+2]^A[2],$=m[_+3]^A[3],R=4,g=1;g<O;g++){var b=E[N>>>24]^q[v>>>16&255]^w[B>>>8&255]^x[255&$]^A[R++],k=E[v>>>24]^q[B>>>16&255]^w[$>>>8&255]^x[255&N]^A[R++],L=E[B>>>24]^q[$>>>16&255]^w[N>>>8&255]^x[255&v]^A[R++],F=E[$>>>24]^q[N>>>16&255]^w[v>>>8&255]^x[255&B]^A[R++];N=b,v=k,B=L,$=F}b=(P[N>>>24]<<24|P[v>>>16&255]<<16|P[B>>>8&255]<<8|P[255&$])^A[R++],k=(P[v>>>24]<<24|P[B>>>16&255]<<16|P[$>>>8&255]<<8|P[255&N])^A[R++],L=(P[B>>>24]<<24|P[$>>>16&255]<<16|P[N>>>8&255]<<8|P[255&v])^A[R++],F=(P[$>>>24]<<24|P[N>>>16&255]<<16|P[v>>>8&255]<<8|P[255&B])^A[R++],m[_]=b,m[_+1]=k,m[_+2]=L,m[_+3]=F},keySize:8});r.AES=o._createHelper(y)})(),e.AES)),aes$1.exports;var e}var tripledes$1={exports:{}},tripledes=tripledes$1.exports,hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,tripledes$1.exports=(e=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),(function(){var r=e,o=r.lib,i=o.WordArray,n=o.BlockCipher,h=r.algo,f=[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],t=[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],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],s=[{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}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],c=h.DES=n.extend({_doReset:function(){for(var y=this._key.words,m=[],_=0;_<56;_++){var A=f[_]-1;m[_]=y[A>>>5]>>>31-A%32&1}for(var E=this._subKeys=[],q=0;q<16;q++){var w=E[q]=[],x=a[q];for(_=0;_<24;_++)w[_/6|0]|=m[(t[_]-1+x)%28]<<31-_%6,w[4+(_/6|0)]|=m[28+(t[_+24]-1+x)%28]<<31-_%6;for(w[0]=w[0]<<1|w[0]>>>31,_=1;_<7;_++)w[_]=w[_]>>>4*(_-1)+3;w[7]=w[7]<<5|w[7]>>>27}var P=this._invSubKeys=[];for(_=0;_<16;_++)P[_]=E[15-_]},encryptBlock:function(y,m){this._doCryptBlock(y,m,this._subKeys)},decryptBlock:function(y,m){this._doCryptBlock(y,m,this._invSubKeys)},_doCryptBlock:function(y,m,_){this._lBlock=y[m],this._rBlock=y[m+1],l.call(this,4,252645135),l.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),l.call(this,1,1431655765);for(var A=0;A<16;A++){for(var E=_[A],q=this._lBlock,w=this._rBlock,x=0,P=0;P<8;P++)x|=s[P][((w^E[P])&u[P])>>>0];this._lBlock=w,this._rBlock=q^x}var O=this._lBlock;this._lBlock=this._rBlock,this._rBlock=O,l.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),l.call(this,16,65535),l.call(this,4,252645135),y[m]=this._lBlock,y[m+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function l(y,m){var _=(this._lBlock>>>y^this._rBlock)&m;this._rBlock^=_,this._lBlock^=_<<y}function d(y,m){var _=(this._rBlock>>>y^this._lBlock)&m;this._lBlock^=_,this._rBlock^=_<<y}r.DES=n._createHelper(c);var p=h.TripleDES=n.extend({_doReset:function(){var y=this._key.words;if(y.length!==2&&y.length!==4&&y.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var m=y.slice(0,2),_=y.length<4?y.slice(0,2):y.slice(2,4),A=y.length<6?y.slice(0,2):y.slice(4,6);this._des1=c.createEncryptor(i.create(m)),this._des2=c.createEncryptor(i.create(_)),this._des3=c.createEncryptor(i.create(A))},encryptBlock:function(y,m){this._des1.encryptBlock(y,m),this._des2.decryptBlock(y,m),this._des3.encryptBlock(y,m)},decryptBlock:function(y,m){this._des3.decryptBlock(y,m),this._des2.encryptBlock(y,m),this._des1.decryptBlock(y,m)},keySize:6,ivSize:2,blockSize:2});r.TripleDES=n._createHelper(p)})(),e.TripleDES)),tripledes$1.exports;var e}var rc4$1={exports:{}},rc4=rc4$1.exports,hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,rc4$1.exports=(e=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),(function(){var r=e,o=r.lib.StreamCipher,i=r.algo,n=i.RC4=o.extend({_doReset:function(){for(var t=this._key,a=t.words,s=t.sigBytes,u=this._S=[],c=0;c<256;c++)u[c]=c;c=0;for(var l=0;c<256;c++){var d=c%s,p=a[d>>>2]>>>24-d%4*8&255;l=(l+u[c]+p)%256;var y=u[c];u[c]=u[l],u[l]=y}this._i=this._j=0},_doProcessBlock:function(t,a){t[a]^=h.call(this)},keySize:8,ivSize:0});function h(){for(var t=this._S,a=this._i,s=this._j,u=0,c=0;c<4;c++){s=(s+t[a=(a+1)%256])%256;var l=t[a];t[a]=t[s],t[s]=l,u|=t[(t[a]+t[s])%256]<<24-8*c}return this._i=a,this._j=s,u}r.RC4=o._createHelper(n);var f=i.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)h.call(this)}});r.RC4Drop=o._createHelper(f)})(),e.RC4)),rc4$1.exports;var e}var rabbit$1={exports:{}},rabbit=rabbit$1.exports,hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,rabbit$1.exports=(e=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),(function(){var r=e,o=r.lib.StreamCipher,i=r.algo,n=[],h=[],f=[],t=i.Rabbit=o.extend({_doReset:function(){for(var s=this._key.words,u=this.cfg.iv,c=0;c<4;c++)s[c]=16711935&(s[c]<<8|s[c]>>>24)|4278255360&(s[c]<<24|s[c]>>>8);var l=this._X=[s[0],s[3]<<16|s[2]>>>16,s[1],s[0]<<16|s[3]>>>16,s[2],s[1]<<16|s[0]>>>16,s[3],s[2]<<16|s[1]>>>16],d=this._C=[s[2]<<16|s[2]>>>16,4294901760&s[0]|65535&s[1],s[3]<<16|s[3]>>>16,4294901760&s[1]|65535&s[2],s[0]<<16|s[0]>>>16,4294901760&s[2]|65535&s[3],s[1]<<16|s[1]>>>16,4294901760&s[3]|65535&s[0]];for(this._b=0,c=0;c<4;c++)a.call(this);for(c=0;c<8;c++)d[c]^=l[c+4&7];if(u){var p=u.words,y=p[0],m=p[1],_=16711935&(y<<8|y>>>24)|4278255360&(y<<24|y>>>8),A=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),E=_>>>16|4294901760&A,q=A<<16|65535&_;for(d[0]^=_,d[1]^=E,d[2]^=A,d[3]^=q,d[4]^=_,d[5]^=E,d[6]^=A,d[7]^=q,c=0;c<4;c++)a.call(this)}},_doProcessBlock:function(s,u){var c=this._X;a.call(this),n[0]=c[0]^c[5]>>>16^c[3]<<16,n[1]=c[2]^c[7]>>>16^c[5]<<16,n[2]=c[4]^c[1]>>>16^c[7]<<16,n[3]=c[6]^c[3]>>>16^c[1]<<16;for(var l=0;l<4;l++)n[l]=16711935&(n[l]<<8|n[l]>>>24)|4278255360&(n[l]<<24|n[l]>>>8),s[u+l]^=n[l]},blockSize:4,ivSize:2});function a(){for(var s=this._X,u=this._C,c=0;c<8;c++)h[c]=u[c];for(u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<h[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<h[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<h[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<h[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<h[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<h[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<h[6]>>>0?1:0)|0,this._b=u[7]>>>0<h[7]>>>0?1:0,c=0;c<8;c++){var l=s[c]+u[c],d=65535&l,p=l>>>16,y=((d*d>>>17)+d*p>>>15)+p*p,m=((4294901760&l)*l|0)+((65535&l)*l|0);f[c]=y^m}s[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,s[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,s[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,s[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,s[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,s[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,s[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,s[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}r.Rabbit=o._createHelper(t)})(),e.Rabbit)),rabbit$1.exports;var e}var rabbitLegacy$1={exports:{}},rabbitLegacy=rabbitLegacy$1.exports,hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,rabbitLegacy$1.exports=(e=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),(function(){var r=e,o=r.lib.StreamCipher,i=r.algo,n=[],h=[],f=[],t=i.RabbitLegacy=o.extend({_doReset:function(){var s=this._key.words,u=this.cfg.iv,c=this._X=[s[0],s[3]<<16|s[2]>>>16,s[1],s[0]<<16|s[3]>>>16,s[2],s[1]<<16|s[0]>>>16,s[3],s[2]<<16|s[1]>>>16],l=this._C=[s[2]<<16|s[2]>>>16,4294901760&s[0]|65535&s[1],s[3]<<16|s[3]>>>16,4294901760&s[1]|65535&s[2],s[0]<<16|s[0]>>>16,4294901760&s[2]|65535&s[3],s[1]<<16|s[1]>>>16,4294901760&s[3]|65535&s[0]];this._b=0;for(var d=0;d<4;d++)a.call(this);for(d=0;d<8;d++)l[d]^=c[d+4&7];if(u){var p=u.words,y=p[0],m=p[1],_=16711935&(y<<8|y>>>24)|4278255360&(y<<24|y>>>8),A=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),E=_>>>16|4294901760&A,q=A<<16|65535&_;for(l[0]^=_,l[1]^=E,l[2]^=A,l[3]^=q,l[4]^=_,l[5]^=E,l[6]^=A,l[7]^=q,d=0;d<4;d++)a.call(this)}},_doProcessBlock:function(s,u){var c=this._X;a.call(this),n[0]=c[0]^c[5]>>>16^c[3]<<16,n[1]=c[2]^c[7]>>>16^c[5]<<16,n[2]=c[4]^c[1]>>>16^c[7]<<16,n[3]=c[6]^c[3]>>>16^c[1]<<16;for(var l=0;l<4;l++)n[l]=16711935&(n[l]<<8|n[l]>>>24)|4278255360&(n[l]<<24|n[l]>>>8),s[u+l]^=n[l]},blockSize:4,ivSize:2});function a(){for(var s=this._X,u=this._C,c=0;c<8;c++)h[c]=u[c];for(u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<h[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<h[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<h[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<h[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<h[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<h[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<h[6]>>>0?1:0)|0,this._b=u[7]>>>0<h[7]>>>0?1:0,c=0;c<8;c++){var l=s[c]+u[c],d=65535&l,p=l>>>16,y=((d*d>>>17)+d*p>>>15)+p*p,m=((4294901760&l)*l|0)+((65535&l)*l|0);f[c]=y^m}s[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,s[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,s[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,s[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,s[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,s[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,s[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,s[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}r.RabbitLegacy=o._createHelper(t)})(),e.RabbitLegacy)),rabbitLegacy$1.exports;var e}var blowfish$1={exports:{}},blowfish=blowfish$1.exports,hasRequiredBlowfish;function requireBlowfish(){return hasRequiredBlowfish||(hasRequiredBlowfish=1,blowfish$1.exports=(e=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),(function(){var r=e,o=r.lib.BlockCipher,i=r.algo;const n=16,h=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],f=[[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 t={pbox:[],sbox:[]};function a(d,p){let y=p>>24&255,m=p>>16&255,_=p>>8&255,A=255&p,E=d.sbox[0][y]+d.sbox[1][m];return E^=d.sbox[2][_],E+=d.sbox[3][A],E}function s(d,p,y){let m,_=p,A=y;for(let E=0;E<n;++E)_^=d.pbox[E],A=a(d,_)^A,m=_,_=A,A=m;return m=_,_=A,A=m,A^=d.pbox[n],_^=d.pbox[n+1],{left:_,right:A}}function u(d,p,y){let m,_=p,A=y;for(let E=n+1;E>1;--E)_^=d.pbox[E],A=a(d,_)^A,m=_,_=A,A=m;return m=_,_=A,A=m,A^=d.pbox[1],_^=d.pbox[0],{left:_,right:A}}function c(d,p,y){for(let q=0;q<4;q++){d.sbox[q]=[];for(let w=0;w<256;w++)d.sbox[q][w]=f[q][w]}let m=0;for(let q=0;q<n+2;q++)d.pbox[q]=h[q]^p[m],m++,m>=y&&(m=0);let _=0,A=0,E=0;for(let q=0;q<n+2;q+=2)E=s(d,_,A),_=E.left,A=E.right,d.pbox[q]=_,d.pbox[q+1]=A;for(let q=0;q<4;q++)for(let w=0;w<256;w+=2)E=s(d,_,A),_=E.left,A=E.right,d.sbox[q][w]=_,d.sbox[q][w+1]=A;return!0}var l=i.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var d=this._keyPriorReset=this._key,p=d.words,y=d.sigBytes/4;c(t,p,y)}},encryptBlock:function(d,p){var y=s(t,d[p],d[p+1]);d[p]=y.left,d[p+1]=y.right},decryptBlock:function(d,p){var y=u(t,d[p],d[p+1]);d[p]=y.left,d[p+1]=y.right},blockSize:2,keySize:4,ivSize:2});r.Blowfish=o._createHelper(l)})(),e.Blowfish)),blowfish$1.exports;var e}var cryptoJs=cryptoJs$1.exports,hasRequiredCryptoJs;function requireCryptoJs(){return hasRequiredCryptoJs||(hasRequiredCryptoJs=1,cryptoJs$1.exports=(e=requireCore(),requireX64Core(),requireLibTypedarrays(),requireEncUtf16(),requireEncBase64(),requireEncBase64url(),requireMd5(),requireSha1(),requireSha256(),requireSha224(),requireSha512(),requireSha384(),requireSha3(),requireRipemd160(),requireHmac(),requirePbkdf2(),requireEvpkdf(),requireCipherCore(),requireModeCfb(),requireModeCtr(),requireModeCtrGladman(),requireModeOfb(),requireModeEcb(),requirePadAnsix923(),requirePadIso10126(),requirePadIso97971(),requirePadZeropadding(),requirePadNopadding(),requireFormatHex(),requireAes(),requireTripledes(),requireRc4(),requireRabbit(),requireRabbitLegacy(),requireBlowfish(),e)),cryptoJs$1.exports;var e}let nanoid=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((r,o)=>r+=(o&=63)<36?o.toString(36):o<62?(o-26).toString(36).toUpperCase():o>62?"-":"_"),"");export{trimStart as A,camelCase as B,requireUtil$1 as a,requireShams$2 as b,requireCallBound as c,requireEsObjectAtoms as d,requireCallBind as e,requireGetIntrinsic as f,requireHasPropertyDescriptors as g,requireDefineDataProperty as h,requireCryptoBrowserify as i,require_stream_writable$1 as j,requireDist as k,requireStreamBrowserify as l,requireString_decoder as m,nanoid as n,requireSafeBuffer$1 as o,lodash as p,require_stream_readable$1 as q,requireCryptoJs as r,require_stream_duplex$1 as s,require_stream_transform$1 as t,require_stream_passthrough$1 as u,requireEndOfStream as v,requirePipeline as w,requireInherits_browser as x,requireType as y,requireEsDefineProperty as z};
|