Files
to_session/web_process/MetaMask 12.16.1/common-6.js
Administrator a0720d80dc fefdwef
2025-11-12 12:54:37 +08:00

15 lines
943 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

LavaPack.loadBundle([[3246,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=-32700,o=-32603,s=-32602,a=-32601,c=-32600,u=-32016,l=-32015,p=-32014,d=-32013,h=-32012,f=-32011,y=-32010,m=-32009,T=-32008,g=-32007,b=-32006,_=-32005,O=-32004,E=-32003,S=-32002,v=-32001,x=28e5,w=2800001,A=2800002,R=2800003,I=2800004,P=2800005,N=2800006,C=2800007,j=2800008,k=2800009,M=2800010,L=323e4,D=32300001,B=3230002,z=3230003,U=3230004,F=361e4,$=3610001,G=3610002,H=3610003,K=3610004,V=3610005,q=3610006,W=3610007,Y=3611e3,Q=3704e3,X=3704001,J=3704002,Z=3704003,ee=3704004,te=4128e3,re=4128001,ne=4128002,ie=4615e3,oe=4615001,se=4615002,ae=4615003,ce=4615004,ue=4615005,le=4615006,pe=4615007,de=4615008,he=4615009,fe=4615010,ye=4615011,me=4615012,Te=4615013,ge=4615014,be=4615015,_e=4615016,Oe=4615017,Ee=4615018,Se=4615019,ve=4615020,xe=4615021,we=4615022,Ae=4615023,Re=4615024,Ie=4615025,Pe=4615026,Ne=4615027,Ce=4615028,je=4615029,ke=4615030,Me=4615031,Le=4615032,De=4615033,Be=4615034,ze=4615035,Ue=4615036,Fe=4615037,$e=4615038,Ge=4615039,He=4615040,Ke=4615041,Ve=4615042,qe=4615043,We=4615044,Ye=4615045,Qe=4615046,Xe=4615047,Je=4615048,Ze=4615049,et=4615050,tt=4615051,rt=4615052,nt=4615053,it=4615054,ot=5508e3,st=5508001,at=5508002,ct=5508003,ut=5508004,lt=5508005,pt=5508006,dt=5508007,ht=5508008,ft=5508009,yt=5508010,mt=5508011,Tt=5663e3,gt=5663001,bt=5663002,_t=5663003,Ot=5663004,Et=5663005,St=5663006,vt=5663007,xt=5663008,wt=5663009,At=5663010,Rt=5663011,It=5663012,Pt=5663013,Nt=5663014,Ct=5663015,jt=5663016,kt=5663017,Mt=5663018,Lt=5663019,Dt=705e4,Bt=7050001,zt=7050002,Ut=7050003,Ft=7050004,$t=7050005,Gt=7050006,Ht=7050007,Kt=7050008,Vt=7050009,qt=7050010,Wt=7050011,Yt=7050012,Qt=7050013,Xt=7050014,Jt=7050015,Zt=7050016,er=7050017,tr=7050018,rr=7050019,nr=7050020,ir=7050021,or=7050022,sr=7050023,ar=7050024,cr=7050025,ur=7050026,lr=7050027,pr=7050028,dr=7050029,hr=7050030,fr=7050031,yr=7050032,mr=7050033,Tr=7050034,gr=7050035,br=7050036,_r=8078e3,Or=8078001,Er=8078002,Sr=8078003,vr=8078004,xr=8078005,wr=8078006,Ar=8078007,Rr=8078008,Ir=8078009,Pr=8078010,Nr=8078011,Cr=8078012,jr=8078013,kr=8078014,Mr=8078015,Lr=8078016,Dr=8078017,Br=8078018,zr=8078019,Ur=8078020,Fr=8078021,$r=8078022,Gr=81e5,Hr=8100001,Kr=8100002,Vr=8100003,qr=819e4,Wr=8190001,Yr=8190002,Qr=8190003,Xr=8190004,Jr=99e5,Zr=9900001,en=9900002,tn=9900003,rn=9900004;function nn(e){if(Array.isArray(e)){return"%5B"+e.map(nn).join("%2C%20")+"%5D"}return"bigint"==typeof e?`${e}n`:encodeURIComponent(String(null!=e&&null===Object.getPrototypeOf(e)?{...e}:e))}function on([e,t]){return`${e}=${nn(t)}`}function sn(e,t={}){{let r=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(r+=` '${function(e){const t=Object.entries(e).map(on).join("&");return btoa(t)}(t)}'`),`${r}\``}}var an=class extends Error{constructor(...[e,t]){let r,i;if(t){const{cause:e,...n}=t;e&&(i={cause:e}),Object.keys(n).length>0&&(r=n)}super(sn(e,r),i),n(this,"cause",this.cause),n(this,"context",void 0),this.context={__code:e,...r},this.name="SolanaError"}};function cn(...e){"captureStackTrace"in Error&&"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(...e)}function un({errorCodeBaseOffset:e,getErrorContext:t,orderedErrorNames:r,rpcEnumError:n},i){let o,s;"string"==typeof n?o=n:(o=Object.keys(n)[0],s=n[o]);const a=e+r.indexOf(o),c=t(a,o,s),u=new an(a,c);return cn(u,i),u}var ln=["GenericError","InvalidArgument","InvalidInstructionData","InvalidAccountData","AccountDataTooSmall","InsufficientFunds","IncorrectProgramId","MissingRequiredSignature","AccountAlreadyInitialized","UninitializedAccount","UnbalancedInstruction","ModifiedProgramId","ExternalAccountLamportSpend","ExternalAccountDataModified","ReadonlyLamportChange","ReadonlyDataModified","DuplicateAccountIndex","ExecutableModified","RentEpochModified","NotEnoughAccountKeys","AccountDataSizeChanged","AccountNotExecutable","AccountBorrowFailed","AccountBorrowOutstanding","DuplicateAccountOutOfSync","Custom","InvalidError","ExecutableDataModified","ExecutableLamportChange","ExecutableAccountNotRentExempt","UnsupportedProgramId","CallDepth","MissingAccount","ReentrancyNotAllowed","MaxSeedLengthExceeded","InvalidSeeds","InvalidRealloc","ComputationalBudgetExceeded","PrivilegeEscalation","ProgramEnvironmentSetupFailure","ProgramFailedToComplete","ProgramFailedToCompile","Immutable","IncorrectAuthority","BorshIoError","AccountNotRentExempt","InvalidAccountOwner","ArithmeticOverflow","UnsupportedSysvar","IllegalOwner","MaxAccountsDataAllocationsExceeded","MaxAccountsExceeded","MaxInstructionTraceLengthExceeded","BuiltinProgramsMustConsumeComputeUnits"];function pn(e,t){const r=Number(e);return un({errorCodeBaseOffset:4615001,getErrorContext:(e,t,n)=>e===ie?{errorName:t,index:r,...void 0!==n?{instructionErrorContext:n}:null}:e===Pe?{code:Number(n),index:r}:e===Ye?{encodedData:n,index:r}:{index:r},orderedErrorNames:ln,rpcEnumError:t},pn)}var dn=["AccountInUse","AccountLoadedTwice","AccountNotFound","ProgramAccountNotFound","InsufficientFundsForFee","InvalidAccountForFee","AlreadyProcessed","BlockhashNotFound","CallChainTooDeep","MissingSignatureForFee","InvalidAccountIndex","SignatureFailure","InvalidProgramForExecution","SanitizeFailure","ClusterMaintenance","AccountBorrowOutstanding","WouldExceedMaxBlockCostLimit","UnsupportedVersion","InvalidWritableAccount","WouldExceedMaxAccountCostLimit","WouldExceedAccountDataBlockLimit","TooManyAccountLocks","AddressLookupTableNotFound","InvalidAddressLookupTableOwner","InvalidAddressLookupTableData","InvalidAddressLookupTableIndex","InvalidRentPayingAccount","WouldExceedMaxVoteCostLimit","WouldExceedAccountDataTotalLimit","DuplicateInstruction","InsufficientFundsForRent","MaxLoadedAccountsDataSizeExceeded","InvalidLoadedAccountsDataSizeLimit","ResanitizationNeeded","ProgramExecutionTemporarilyRestricted","UnbalancedTransaction"];function hn(e){return"object"==typeof e&&"InstructionError"in e?pn(...e.InstructionError):un({errorCodeBaseOffset:7050001,getErrorContext:(e,t,r)=>e===Dt?{errorName:t,...void 0!==r?{transactionErrorContext:r}:null}:e===hr?{index:Number(r)}:e===fr||e===gr?{accountIndex:Number(r.account_index)}:void 0,orderedErrorNames:dn,rpcEnumError:e},hn)}r.SOLANA_ERROR__ACCOUNTS__ACCOUNT_NOT_FOUND=L,r.SOLANA_ERROR__ACCOUNTS__EXPECTED_ALL_ACCOUNTS_TO_BE_DECODED=U,r.SOLANA_ERROR__ACCOUNTS__EXPECTED_DECODED_ACCOUNT=z,r.SOLANA_ERROR__ACCOUNTS__FAILED_TO_DECODE_ACCOUNT=B,r.SOLANA_ERROR__ACCOUNTS__ONE_OR_MORE_ACCOUNTS_NOT_FOUND=D,r.SOLANA_ERROR__ADDRESSES__FAILED_TO_FIND_VIABLE_PDA_BUMP_SEED=k,r.SOLANA_ERROR__ADDRESSES__INVALID_BASE58_ENCODED_ADDRESS=A,r.SOLANA_ERROR__ADDRESSES__INVALID_BYTE_LENGTH=x,r.SOLANA_ERROR__ADDRESSES__INVALID_ED25519_PUBLIC_KEY=R,r.SOLANA_ERROR__ADDRESSES__INVALID_SEEDS_POINT_ON_CURVE=j,r.SOLANA_ERROR__ADDRESSES__MALFORMED_PDA=I,r.SOLANA_ERROR__ADDRESSES__MAX_NUMBER_OF_PDA_SEEDS_EXCEEDED=N,r.SOLANA_ERROR__ADDRESSES__MAX_PDA_SEED_LENGTH_EXCEEDED=C,r.SOLANA_ERROR__ADDRESSES__PDA_BUMP_SEED_OUT_OF_RANGE=P,r.SOLANA_ERROR__ADDRESSES__PDA_ENDS_WITH_PDA_MARKER=M,r.SOLANA_ERROR__ADDRESSES__STRING_LENGTH_OUT_OF_RANGE=w,r.SOLANA_ERROR__BLOCKHASH_STRING_LENGTH_OUT_OF_RANGE=4,r.SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED=1,r.SOLANA_ERROR__CODECS__CANNOT_DECODE_EMPTY_BYTE_ARRAY=_r,r.SOLANA_ERROR__CODECS__CANNOT_USE_LEXICAL_VALUES_AS_ENUM_DISCRIMINATORS=$r,r.SOLANA_ERROR__CODECS__ENCODED_BYTES_MUST_NOT_INCLUDE_SENTINEL=Ur,r.SOLANA_ERROR__CODECS__ENCODER_DECODER_FIXED_SIZE_MISMATCH=xr,r.SOLANA_ERROR__CODECS__ENCODER_DECODER_MAX_SIZE_MISMATCH=wr,r.SOLANA_ERROR__CODECS__ENCODER_DECODER_SIZE_COMPATIBILITY_MISMATCH=vr,r.SOLANA_ERROR__CODECS__ENUM_DISCRIMINATOR_OUT_OF_RANGE=Rr,r.SOLANA_ERROR__CODECS__EXPECTED_FIXED_LENGTH=Er,r.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH=jr,r.SOLANA_ERROR__CODECS__EXPECTED_VARIABLE_LENGTH=Sr,r.SOLANA_ERROR__CODECS__EXPECTED_ZERO_VALUE_TO_MATCH_ITEM_FIXED_SIZE=zr,r.SOLANA_ERROR__CODECS__INVALID_BYTE_LENGTH=Or,r.SOLANA_ERROR__CODECS__INVALID_CONSTANT=Br,r.SOLANA_ERROR__CODECS__INVALID_DISCRIMINATED_UNION_VARIANT=Ir,r.SOLANA_ERROR__CODECS__INVALID_ENUM_VARIANT=Pr,r.SOLANA_ERROR__CODECS__INVALID_LITERAL_UNION_VARIANT=Mr,r.SOLANA_ERROR__CODECS__INVALID_NUMBER_OF_ITEMS=Ar,r.SOLANA_ERROR__CODECS__INVALID_STRING_FOR_BASE=Cr,r.SOLANA_ERROR__CODECS__LITERAL_UNION_DISCRIMINATOR_OUT_OF_RANGE=Lr,r.SOLANA_ERROR__CODECS__NUMBER_OUT_OF_RANGE=Nr,r.SOLANA_ERROR__CODECS__OFFSET_OUT_OF_RANGE=kr,r.SOLANA_ERROR__CODECS__SENTINEL_MISSING_IN_DECODED_BYTES=Fr,r.SOLANA_ERROR__CODECS__UNION_VARIANT_OUT_OF_RANGE=Dr,r.SOLANA_ERROR__CRYPTO__RANDOM_VALUES_FUNCTION_UNIMPLEMENTED=Y,r.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_ALREADY_INITIALIZED=he,r.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_BORROW_FAILED=Ae,r.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_BORROW_OUTSTANDING=Re,r.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_DATA_SIZE_CHANGED=xe,r.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_DATA_TOO_SMALL=ue,r.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_NOT_EXECUTABLE=we,r.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_NOT_RENT_EXEMPT=Qe,r.SOLANA_ERROR__INSTRUCTION_ERROR__ARITHMETIC_OVERFLOW=Je,r.SOLANA_ERROR__INSTRUCTION_ERROR__BORSH_IO_ERROR=Ye,r.SOLANA_ERROR__INSTRUCTION_ERROR__BUILTIN_PROGRAMS_MUST_CONSUME_COMPUTE_UNITS=it,r.SOLANA_ERROR__INSTRUCTION_ERROR__CALL_DEPTH=Le,r.SOLANA_ERROR__INSTRUCTION_ERROR__COMPUTATIONAL_BUDGET_EXCEEDED=$e,r.SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM=Pe,r.SOLANA_ERROR__INSTRUCTION_ERROR__DUPLICATE_ACCOUNT_INDEX=Oe,r.SOLANA_ERROR__INSTRUCTION_ERROR__DUPLICATE_ACCOUNT_OUT_OF_SYNC=Ie,r.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_ACCOUNT_NOT_RENT_EXEMPT=ke,r.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_DATA_MODIFIED=Ce,r.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_LAMPORT_CHANGE=je,r.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_MODIFIED=Ee,r.SOLANA_ERROR__INSTRUCTION_ERROR__EXTERNAL_ACCOUNT_DATA_MODIFIED=ge,r.SOLANA_ERROR__INSTRUCTION_ERROR__EXTERNAL_ACCOUNT_LAMPORT_SPEND=Te,r.SOLANA_ERROR__INSTRUCTION_ERROR__GENERIC_ERROR=oe,r.SOLANA_ERROR__INSTRUCTION_ERROR__ILLEGAL_OWNER=et,r.SOLANA_ERROR__INSTRUCTION_ERROR__IMMUTABLE=qe,r.SOLANA_ERROR__INSTRUCTION_ERROR__INCORRECT_AUTHORITY=We,r.SOLANA_ERROR__INSTRUCTION_ERROR__INCORRECT_PROGRAM_ID=pe,r.SOLANA_ERROR__INSTRUCTION_ERROR__INSUFFICIENT_FUNDS=le,r.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ACCOUNT_DATA=ce,r.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ACCOUNT_OWNER=Xe,r.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ARGUMENT=se,r.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ERROR=Ne,r.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_INSTRUCTION_DATA=ae,r.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_REALLOC=Fe,r.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_SEEDS=Ue,r.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_ACCOUNTS_DATA_ALLOCATIONS_EXCEEDED=tt,r.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_ACCOUNTS_EXCEEDED=rt,r.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_INSTRUCTION_TRACE_LENGTH_EXCEEDED=nt,r.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_SEED_LENGTH_EXCEEDED=ze,r.SOLANA_ERROR__INSTRUCTION_ERROR__MISSING_ACCOUNT=De,r.SOLANA_ERROR__INSTRUCTION_ERROR__MISSING_REQUIRED_SIGNATURE=de,r.SOLANA_ERROR__INSTRUCTION_ERROR__MODIFIED_PROGRAM_ID=me,r.SOLANA_ERROR__INSTRUCTION_ERROR__NOT_ENOUGH_ACCOUNT_KEYS=ve,r.SOLANA_ERROR__INSTRUCTION_ERROR__PRIVILEGE_ESCALATION=Ge,r.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_ENVIRONMENT_SETUP_FAILURE=He,r.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_FAILED_TO_COMPILE=Ve,r.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_FAILED_TO_COMPLETE=Ke,r.SOLANA_ERROR__INSTRUCTION_ERROR__READONLY_DATA_MODIFIED=_e,r.SOLANA_ERROR__INSTRUCTION_ERROR__READONLY_LAMPORT_CHANGE=be,r.SOLANA_ERROR__INSTRUCTION_ERROR__REENTRANCY_NOT_ALLOWED=Be,r.SOLANA_ERROR__INSTRUCTION_ERROR__RENT_EPOCH_MODIFIED=Se,r.SOLANA_ERROR__INSTRUCTION_ERROR__UNBALANCED_INSTRUCTION=ye,r.SOLANA_ERROR__INSTRUCTION_ERROR__UNINITIALIZED_ACCOUNT=fe,r.SOLANA_ERROR__INSTRUCTION_ERROR__UNKNOWN=ie,r.SOLANA_ERROR__INSTRUCTION_ERROR__UNSUPPORTED_PROGRAM_ID=Me,r.SOLANA_ERROR__INSTRUCTION_ERROR__UNSUPPORTED_SYSVAR=Ze,r.SOLANA_ERROR__INSTRUCTION__EXPECTED_TO_HAVE_ACCOUNTS=te,r.SOLANA_ERROR__INSTRUCTION__EXPECTED_TO_HAVE_DATA=re,r.SOLANA_ERROR__INSTRUCTION__PROGRAM_ID_MISMATCH=ne,r.SOLANA_ERROR__INVALID_BLOCKHASH_BYTE_LENGTH=5,r.SOLANA_ERROR__INVALID_NONCE=2,r.SOLANA_ERROR__INVARIANT_VIOLATION__CACHED_ABORTABLE_ITERABLE_CACHE_ENTRY_MISSING=en,r.SOLANA_ERROR__INVARIANT_VIOLATION__DATA_PUBLISHER_CHANNEL_UNIMPLEMENTED=rn,r.SOLANA_ERROR__INVARIANT_VIOLATION__SUBSCRIPTION_ITERATOR_MUST_NOT_POLL_BEFORE_RESOLVING_EXISTING_MESSAGE_PROMISE=Zr,r.SOLANA_ERROR__INVARIANT_VIOLATION__SUBSCRIPTION_ITERATOR_STATE_MISSING=Jr,r.SOLANA_ERROR__INVARIANT_VIOLATION__SWITCH_MUST_BE_EXHAUSTIVE=tn,r.SOLANA_ERROR__JSON_RPC__INTERNAL_ERROR=o,r.SOLANA_ERROR__JSON_RPC__INVALID_PARAMS=s,r.SOLANA_ERROR__JSON_RPC__INVALID_REQUEST=c,r.SOLANA_ERROR__JSON_RPC__METHOD_NOT_FOUND=a,r.SOLANA_ERROR__JSON_RPC__PARSE_ERROR=i,r.SOLANA_ERROR__JSON_RPC__SCAN_ERROR=h,r.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_CLEANED_UP=v,r.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_NOT_AVAILABLE=O,r.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET=p,r.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX=y,r.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED=m,r.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED=u,r.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_NODE_UNHEALTHY=_,r.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_NO_SNAPSHOT=T,r.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE=S,r.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SLOT_SKIPPED=g,r.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE=f,r.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE=b,r.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH=d,r.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE=E,r.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION=l,r.SOLANA_ERROR__KEYS__INVALID_KEY_PAIR_BYTE_LENGTH=Q,r.SOLANA_ERROR__KEYS__INVALID_PRIVATE_KEY_BYTE_LENGTH=X,r.SOLANA_ERROR__KEYS__INVALID_SIGNATURE_BYTE_LENGTH=J,r.SOLANA_ERROR__KEYS__PUBLIC_KEY_MUST_MATCH_PRIVATE_KEY=ee,r.SOLANA_ERROR__KEYS__SIGNATURE_STRING_LENGTH_OUT_OF_RANGE=Z,r.SOLANA_ERROR__LAMPORTS_OUT_OF_RANGE=6,r.SOLANA_ERROR__MALFORMED_BIGINT_STRING=7,r.SOLANA_ERROR__MALFORMED_NUMBER_STRING=8,r.SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND=3,r.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CANNOT_CREATE_SUBSCRIPTION_PLAN=qr,r.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CHANNEL_CLOSED_BEFORE_MESSAGE_BUFFERED=Yr,r.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CHANNEL_CONNECTION_CLOSED=Qr,r.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CHANNEL_FAILED_TO_CONNECT=Xr,r.SOLANA_ERROR__RPC_SUBSCRIPTIONS__EXPECTED_SERVER_SUBSCRIPTION_ID=Wr,r.SOLANA_ERROR__RPC__API_PLAN_MISSING_FOR_RPC_METHOD=Vr,r.SOLANA_ERROR__RPC__INTEGER_OVERFLOW=Gr,r.SOLANA_ERROR__RPC__TRANSPORT_HTTP_ERROR=Kr,r.SOLANA_ERROR__RPC__TRANSPORT_HTTP_HEADER_FORBIDDEN=Hr,r.SOLANA_ERROR__SIGNER__ADDRESS_CANNOT_HAVE_MULTIPLE_SIGNERS=ot,r.SOLANA_ERROR__SIGNER__EXPECTED_KEY_PAIR_SIGNER=st,r.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_MODIFYING_SIGNER=ct,r.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_PARTIAL_SIGNER=ut,r.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_SIGNER=at,r.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_MODIFYING_SIGNER=pt,r.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_PARTIAL_SIGNER=dt,r.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_SENDING_SIGNER=ht,r.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_SIGNER=lt,r.SOLANA_ERROR__SIGNER__TRANSACTION_CANNOT_HAVE_MULTIPLE_SENDING_SIGNERS=ft,r.SOLANA_ERROR__SIGNER__TRANSACTION_SENDING_SIGNER_MISSING=yt,r.SOLANA_ERROR__SIGNER__WALLET_MULTISIGN_UNIMPLEMENTED=mt,r.SOLANA_ERROR__SUBTLE_CRYPTO__CANNOT_EXPORT_NON_EXTRACTABLE_KEY=W,r.SOLANA_ERROR__SUBTLE_CRYPTO__DIGEST_UNIMPLEMENTED=$,r.SOLANA_ERROR__SUBTLE_CRYPTO__DISALLOWED_IN_INSECURE_CONTEXT=F,r.SOLANA_ERROR__SUBTLE_CRYPTO__ED25519_ALGORITHM_UNIMPLEMENTED=G,r.SOLANA_ERROR__SUBTLE_CRYPTO__EXPORT_FUNCTION_UNIMPLEMENTED=H,r.SOLANA_ERROR__SUBTLE_CRYPTO__GENERATE_FUNCTION_UNIMPLEMENTED=K,r.SOLANA_ERROR__SUBTLE_CRYPTO__SIGN_FUNCTION_UNIMPLEMENTED=V,r.SOLANA_ERROR__SUBTLE_CRYPTO__VERIFY_FUNCTION_UNIMPLEMENTED=q,r.SOLANA_ERROR__TIMESTAMP_OUT_OF_RANGE=9,r.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_BORROW_OUTSTANDING=Zt,r.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_IN_USE=Bt,r.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_LOADED_TWICE=zt,r.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_NOT_FOUND=Ut,r.SOLANA_ERROR__TRANSACTION_ERROR__ADDRESS_LOOKUP_TABLE_NOT_FOUND=sr,r.SOLANA_ERROR__TRANSACTION_ERROR__ALREADY_PROCESSED=Ht,r.SOLANA_ERROR__TRANSACTION_ERROR__BLOCKHASH_NOT_FOUND=Kt,r.SOLANA_ERROR__TRANSACTION_ERROR__CALL_CHAIN_TOO_DEEP=Vt,r.SOLANA_ERROR__TRANSACTION_ERROR__CLUSTER_MAINTENANCE=Jt,r.SOLANA_ERROR__TRANSACTION_ERROR__DUPLICATE_INSTRUCTION=hr,r.SOLANA_ERROR__TRANSACTION_ERROR__INSUFFICIENT_FUNDS_FOR_FEE=$t,r.SOLANA_ERROR__TRANSACTION_ERROR__INSUFFICIENT_FUNDS_FOR_RENT=fr,r.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ACCOUNT_FOR_FEE=Gt,r.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ACCOUNT_INDEX=Wt,r.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_DATA=cr,r.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_INDEX=ur,r.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_OWNER=ar,r.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_LOADED_ACCOUNTS_DATA_SIZE_LIMIT=mr,r.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_PROGRAM_FOR_EXECUTION=Qt,r.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_RENT_PAYING_ACCOUNT=lr,r.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_WRITABLE_ACCOUNT=rr,r.SOLANA_ERROR__TRANSACTION_ERROR__MAX_LOADED_ACCOUNTS_DATA_SIZE_EXCEEDED=yr,r.SOLANA_ERROR__TRANSACTION_ERROR__MISSING_SIGNATURE_FOR_FEE=qt,r.SOLANA_ERROR__TRANSACTION_ERROR__PROGRAM_ACCOUNT_NOT_FOUND=Ft,r.SOLANA_ERROR__TRANSACTION_ERROR__PROGRAM_EXECUTION_TEMPORARILY_RESTRICTED=gr,r.SOLANA_ERROR__TRANSACTION_ERROR__RESANITIZATION_NEEDED=Tr,r.SOLANA_ERROR__TRANSACTION_ERROR__SANITIZE_FAILURE=Xt,r.SOLANA_ERROR__TRANSACTION_ERROR__SIGNATURE_FAILURE=Yt,r.SOLANA_ERROR__TRANSACTION_ERROR__TOO_MANY_ACCOUNT_LOCKS=or,r.SOLANA_ERROR__TRANSACTION_ERROR__UNBALANCED_TRANSACTION=br,r.SOLANA_ERROR__TRANSACTION_ERROR__UNKNOWN=Dt,r.SOLANA_ERROR__TRANSACTION_ERROR__UNSUPPORTED_VERSION=tr,r.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_ACCOUNT_DATA_BLOCK_LIMIT=ir,r.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_ACCOUNT_DATA_TOTAL_LIMIT=dr,r.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_MAX_ACCOUNT_COST_LIMIT=nr,r.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_MAX_BLOCK_COST_LIMIT=er,r.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_MAX_VOTE_COST_LIMIT=pr,r.SOLANA_ERROR__TRANSACTION__ADDRESSES_CANNOT_SIGN_TRANSACTION=Ct,r.SOLANA_ERROR__TRANSACTION__ADDRESS_MISSING=At,r.SOLANA_ERROR__TRANSACTION__CANNOT_ENCODE_WITH_EMPTY_SIGNATURES=jt,r.SOLANA_ERROR__TRANSACTION__EXPECTED_BLOCKHASH_LIFETIME=bt,r.SOLANA_ERROR__TRANSACTION__EXPECTED_NONCE_LIFETIME=_t,r.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_ADDRESS_LOOKUP_TABLE_CONTENTS_MISSING=Et,r.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_ADDRESS_LOOKUP_TABLE_INDEX_OUT_OF_RANGE=St,r.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_FEE_PAYER_MISSING=xt,r.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_INSTRUCTION_PROGRAM_ADDRESS_NOT_FOUND=vt,r.SOLANA_ERROR__TRANSACTION__FAILED_TO_ESTIMATE_COMPUTE_LIMIT=Mt,r.SOLANA_ERROR__TRANSACTION__FAILED_WHEN_SIMULATING_TO_ESTIMATE_COMPUTE_LIMIT=Lt,r.SOLANA_ERROR__TRANSACTION__FEE_PAYER_MISSING=Rt,r.SOLANA_ERROR__TRANSACTION__FEE_PAYER_SIGNATURE_MISSING=It,r.SOLANA_ERROR__TRANSACTION__INVALID_NONCE_TRANSACTION_FIRST_INSTRUCTION_MUST_BE_ADVANCE_NONCE=Nt,r.SOLANA_ERROR__TRANSACTION__INVALID_NONCE_TRANSACTION_INSTRUCTIONS_MISSING=Pt,r.SOLANA_ERROR__TRANSACTION__INVOKED_PROGRAMS_CANNOT_PAY_FEES=Tt,r.SOLANA_ERROR__TRANSACTION__INVOKED_PROGRAMS_MUST_NOT_BE_WRITABLE=gt,r.SOLANA_ERROR__TRANSACTION__MESSAGE_SIGNATURES_MISMATCH=kt,r.SOLANA_ERROR__TRANSACTION__SIGNATURES_MISSING=wt,r.SOLANA_ERROR__TRANSACTION__VERSION_NUMBER_OUT_OF_RANGE=Ot,r.SolanaError=an,r.getSolanaErrorFromInstructionError=pn,r.getSolanaErrorFromJsonRpcError=function e({code:t,data:r,message:n}){let u;const d=Number(t);if(d===S){const{err:e,...t}=r,n=e?{cause:hn(e)}:null;u=new an(S,{...t,...n})}else{let e;switch(d){case o:case s:case c:case a:case i:case h:case v:case O:case p:case y:case m:case g:case b:case l:e={__serverMessage:n};break;default:"object"!=typeof r||Array.isArray(r)||(e=r)}u=new an(d,e)}return cn(u,e),u},r.getSolanaErrorFromTransactionError=hn,r.isSolanaError=function(e,t){return!!(e instanceof Error&&"SolanaError"===e.name)&&(void 0===t||e.context.__code===t)},r.safeCaptureStackTrace=cn}}},{package:"@metamask/multichain-network-controller>@solana/addresses>@solana/errors",file:"node_modules/@solana/errors/dist/index.browser.cjs"}],[3247,{"./utils":3249,"apg-js/src/apg-api/api":3871,"apg-js/src/apg-lib/node-exports":3889},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.ParsedMessage=void 0;const o=i(e("apg-js/src/apg-api/api")),s=i(e("apg-js/src/apg-lib/node-exports")),a=e("./utils");class c{static generateApi(){const e=new o.default('\nsign-in-with-ethereum =\n [ scheme "://" ] domain %s" wants you to sign in with your Ethereum account:" LF\n address LF\n LF\n [ statement LF ]\n LF\n %s"URI: " URI LF\n %s"Version: " version LF\n %s"Chain ID: " chain-id LF\n %s"Nonce: " nonce LF\n %s"Issued At: " issued-at\n [ LF %s"Expiration Time: " expiration-time ]\n [ LF %s"Not Before: " not-before ]\n [ LF %s"Request ID: " request-id ]\n [ LF %s"Resources:"\n resources ]\n\ndomain = authority\n\naddress = "0x" 40*40HEXDIG\n ; Must also conform to captilization\n ; checksum encoding specified in EIP-55\n ; where applicable (EOAs).\n\nstatement = 1*( reserved / unreserved / " " )\n ; The purpose is to exclude LF (line breaks).\n\nversion = "1"\n\nnonce = 8*( ALPHA / DIGIT )\n\nissued-at = date-time\nexpiration-time = date-time\nnot-before = date-time\n\nrequest-id = *pchar\n\nchain-id = 1*DIGIT\n ; See EIP-155 for valid CHAIN_IDs.\n\nresources = *( LF resource )\n\nresource = "- " URI\n\n; ------------------------------------------------------------------------------\n; RFC 3986\n\nURI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]\n\nhier-part = "//" authority path-abempty\n / path-absolute\n / path-rootless\n / path-empty\n\nscheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )\n\nauthority = [ userinfo "@" ] host [ ":" port ]\nuserinfo = *( unreserved / pct-encoded / sub-delims / ":" )\nhost = IP-literal / IPv4address / reg-name\nport = *DIGIT\n\nIP-literal = "[" ( IPv6address / IPvFuture ) "]"\n\nIPvFuture = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )\n\nIPv6address = 6( h16 ":" ) ls32\n / "::" 5( h16 ":" ) ls32\n / [ h16 ] "::" 4( h16 ":" ) ls32\n / [ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32\n / [ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32\n / [ *3( h16 ":" ) h16 ] "::" h16 ":" ls32\n / [ *4( h16 ":" ) h16 ] "::" ls32\n / [ *5( h16 ":" ) h16 ] "::" h16\n / [ *6( h16 ":" ) h16 ] "::"\n\nh16 = 1*4HEXDIG\nls32 = ( h16 ":" h16 ) / IPv4address\nIPv4address = dec-octet "." dec-octet "." dec-octet "." dec-octet\ndec-octet = DIGIT ; 0-9\n / %x31-39 DIGIT ; 10-99\n / "1" 2DIGIT ; 100-199\n / "2" %x30-34 DIGIT ; 200-249\n / "25" %x30-35 ; 250-255\n\nreg-name = *( unreserved / pct-encoded / sub-delims )\n\npath-abempty = *( "/" segment )\npath-absolute = "/" [ segment-nz *( "/" segment ) ]\npath-rootless = segment-nz *( "/" segment )\npath-empty = 0pchar\n\nsegment = *pchar\nsegment-nz = 1*pchar\n\npchar = unreserved / pct-encoded / sub-delims / ":" / "@"\n\nquery = *( pchar / "/" / "?" )\n\nfragment = *( pchar / "/" / "?" )\n\npct-encoded = "%" HEXDIG HEXDIG\n\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\nreserved = gen-delims / sub-delims\ngen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\n\n; ------------------------------------------------------------------------------\n; RFC 3339\n\ndate-fullyear = 4DIGIT\ndate-month = 2DIGIT ; 01-12\ndate-mday = 2DIGIT ; 01-28, 01-29, 01-30, 01-31 based on\n ; month/year\ntime-hour = 2DIGIT ; 00-23\ntime-minute = 2DIGIT ; 00-59\ntime-second = 2DIGIT ; 00-58, 00-59, 00-60 based on leap second\n ; rules\ntime-secfrac = "." 1*DIGIT\ntime-numoffset = ("+" / "-") time-hour ":" time-minute\ntime-offset = "Z" / time-numoffset\n\npartial-time = time-hour ":" time-minute ":" time-second\n [time-secfrac]\nfull-date = date-fullyear "-" date-month "-" date-mday\nfull-time = partial-time time-offset\n\ndate-time = full-date "T" full-time\n\n; ------------------------------------------------------------------------------\n; RFC 5234\n\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nLF = %x0A\n ; linefeed\nDIGIT = %x30-39\n ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n');if(e.generate(),e.errors.length)throw console.error(e.errorsToAscii()),console.error(e.linesToAscii()),console.log(e.displayAttributeErrors()),new Error("ABNF grammar has errors");return e.toObject()}}n=c,c.grammarObj=n.generateApi();r.ParsedMessage=class{constructor(e){const t=new s.default.parser;t.ast=new s.default.ast;const r=s.default.ids;t.ast.callbacks.scheme=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&0===n&&(o.scheme=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks.domain=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.domain=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks.address=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.address=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks.statement=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.statement=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks.uri=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.uri||(o.uri=s.default.utils.charsToString(t,n,i))),a};t.ast.callbacks.version=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.version=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks["chain-id"]=function(e,t,n,i,o){const c=r.SEM_OK;return e===r.SEM_PRE&&(o.chainId=(0,a.parseIntegerNumber)(s.default.utils.charsToString(t,n,i))),c};t.ast.callbacks.nonce=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.nonce=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks["issued-at"]=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.issuedAt=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks["expiration-time"]=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.expirationTime=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks["not-before"]=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.notBefore=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks["request-id"]=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.requestId=s.default.utils.charsToString(t,n,i)),a};t.ast.callbacks.resources=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.resources=s.default.utils.charsToString(t,n,i).slice(3).split("\n- ")),a};const n=t.parse(c.grammarObj,"sign-in-with-ethereum",e);if(!n.success)throw new Error(`Invalid message: ${JSON.stringify(n)}`);const i={};t.ast.translate(i);for(const[e,t]of Object.entries(i))this[e]=t;if(0===this.domain.length)throw new Error("Domain cannot be empty.")}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser",file:"node_modules/@spruceid/siwe-parser/dist/abnf.js"}],[3248,{"./abnf":3247,"./utils":3249},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.ParsedMessage=void 0;const o=e("./abnf");Object.defineProperty(r,"ParsedMessage",{enumerable:!0,get:function(){return o.ParsedMessage}}),i(e("./utils"),r)}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser",file:"node_modules/@spruceid/siwe-parser/dist/parsers.js"}],[3249,{"@noble/hashes/sha3":3001,"@noble/hashes/utils":3003},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseIntegerNumber=r.isEIP55Address=void 0;const n=e("@noble/hashes/sha3"),i=e("@noble/hashes/utils");r.isEIP55Address=e=>{if(42!=e.length)return!1;const t=`${e}`.toLowerCase().replace("0x",""),r=(0,i.bytesToHex)((0,n.keccak_256)(t));let o="0x";for(let e=0;e<t.length;e++)parseInt(r[e],16)>=8?o+=t[e].toUpperCase():o+=t[e];return e===o};r.parseIntegerNumber=e=>{const t=parseInt(e);if(isNaN(t))throw new Error("Invalid number.");if(t===Infinity)throw new Error("Invalid number.");return t}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser",file:"node_modules/@spruceid/siwe-parser/dist/utils.js"}],[3250,{"@stablelib/int":3251},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("@stablelib/int");function i(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function o(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}function s(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function a(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function u(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function l(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function p(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function d(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),l(e/4294967296>>>0,t,r),l(e>>>0,t,r+4),t}function h(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),p(e>>>0,t,r),p(e/4294967296>>>0,t,r+4),t}r.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},r.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},r.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},r.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},r.writeUint16BE=i,r.writeInt16BE=i,r.writeUint16LE=o,r.writeInt16LE=o,r.readInt32BE=s,r.readUint32BE=a,r.readInt32LE=c,r.readUint32LE=u,r.writeUint32BE=l,r.writeInt32BE=l,r.writeUint32LE=p,r.writeInt32LE=p,r.readInt64BE=function(e,t){void 0===t&&(t=0);var r=s(e,t),n=s(e,t+4);return 4294967296*r+n-4294967296*(n>>31)},r.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*a(e,t)+a(e,t+4)},r.readInt64LE=function(e,t){void 0===t&&(t=0);var r=c(e,t);return 4294967296*c(e,t+4)+r-4294967296*(r>>31)},r.readUint64LE=function(e,t){void 0===t&&(t=0);var r=u(e,t);return 4294967296*u(e,t+4)+r},r.writeUint64BE=d,r.writeInt64BE=d,r.writeUint64LE=h,r.writeInt64LE=h,r.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,o=e/8+r-1;o>=r;o--)n+=t[o]*i,i*=256;return n},r.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,o=r;o<r+e/8;o++)n+=t[o]*i,i*=256;return n},r.writeUintBE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw new Error("writeUintBE value must be an integer");for(var o=1,s=e/8+i-1;s>=i;s--)r[s]=t/o&255,o*=256;return r},r.writeUintLE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var o=1,s=i;s<i+e/8;s++)r[s]=t/o&255,o*=256;return r},r.readFloat32BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t)},r.readFloat32LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},r.readFloat64BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t)},r.readFloat64LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},r.writeFloat32BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e),t},r.writeFloat32LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e,!0),t},r.writeFloat64BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e),t},r.writeFloat64LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e,!0),t}}}},{package:"@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary",file:"node_modules/@stablelib/binary/lib/binary.js"}],[3251,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mul=Math.imul||function(e,t){var r=65535&e,n=65535&t;return r*n+((e>>>16&65535)*n+r*(t>>>16&65535)<<16>>>0)|0},r.add=function(e,t){return e+t|0},r.sub=function(e,t){return e-t|0},r.rotl=function(e,t){return e<<t|e>>>32-t},r.rotr=function(e,t){return e<<32-t|e>>>t},r.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},r.MAX_SAFE_INTEGER=9007199254740991,r.isSafeInteger=function(e){return r.isInteger(e)&&e>=-r.MAX_SAFE_INTEGER&&e<=r.MAX_SAFE_INTEGER}}}},{package:"@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary>@stablelib/int",file:"node_modules/@stablelib/int/lib/int.js"}],[3252,{"./source/system":3255,"@stablelib/binary":3250,"@stablelib/wipe":3256},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.randomStringForEntropy=r.randomString=r.randomUint32=r.randomBytes=r.defaultRandomSource=void 0;const n=e("./source/system"),i=e("@stablelib/binary"),o=e("@stablelib/wipe");function s(e,t=r.defaultRandomSource){return t.randomBytes(e)}r.defaultRandomSource=new n.SystemRandomSource,r.randomBytes=s,r.randomUint32=function(e=r.defaultRandomSource){const t=s(4,e),n=(0,i.readUint32LE)(t);return(0,o.wipe)(t),n};const a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(e,t=a,n=r.defaultRandomSource){if(t.length<2)throw new Error("randomString charset is too short");if(t.length>256)throw new Error("randomString charset is too long");let i="";const c=t.length,u=256-256%c;for(;e>0;){const r=s(Math.ceil(256*e/u),n);for(let n=0;n<r.length&&e>0;n++){const o=r[n];o<u&&(i+=t.charAt(o%c),e--)}(0,o.wipe)(r)}return i}r.randomString=c,r.randomStringForEntropy=function(e,t=a,n=r.defaultRandomSource){return c(Math.ceil(e/(Math.log(t.length)/Math.LN2)),t,n)}}}},{package:"@metamask/profile-sync-controller>siwe>@stablelib/random",file:"node_modules/@stablelib/random/lib/random.js"}],[3253,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BrowserRandomSource=void 0;r.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const e="undefined"!=typeof self?self.crypto||self.msCrypto:null;e&&e.getRandomValues!==undefined&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const t=new Uint8Array(e);for(let e=0;e<t.length;e+=65536)this._crypto.getRandomValues(t.subarray(e,e+Math.min(t.length-e,65536)));return t}}}}},{package:"@metamask/profile-sync-controller>siwe>@stablelib/random",file:"node_modules/@stablelib/random/lib/source/browser.js"}],[3254,{"@stablelib/wipe":3256,crypto:4039},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.NodeRandomSource=void 0;const n=e("@stablelib/wipe");r.NodeRandomSource=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,void 0!==e){const t=e("crypto");t&&t.randomBytes&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");const r=new Uint8Array(e);for(let e=0;e<r.length;e++)r[e]=t[e];return(0,n.wipe)(t),r}}}}},{package:"@metamask/profile-sync-controller>siwe>@stablelib/random",file:"node_modules/@stablelib/random/lib/source/node.js"}],[3255,{"./browser":3253,"./node":3254},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SystemRandomSource=void 0;const n=e("./browser"),i=e("./node");r.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new n.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new i.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}}}}},{package:"@metamask/profile-sync-controller>siwe>@stablelib/random",file:"node_modules/@stablelib/random/lib/source/system.js"}],[3256,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.wipe=function(e){for(var t=0;t<e.length;t++)e[t]=0;return e}}}},{package:"@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/wipe",file:"node_modules/@stablelib/wipe/lib/wipe.js"}],[3257,{"./messageChannel/abstract":3258,"./storage":3259,"./systemInfo":3260,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e("tslib");n.__exportStar(e("./storage"),r),n.__exportStar(e("./messageChannel/abstract"),r),n.__exportStar(e("./systemInfo"),r)}}},{package:"@trezor/connect-web>@trezor/connect-common",file:"node_modules/@trezor/connect-common/lib/index.js"}],[3258,{"@trezor/utils":3572,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AbstractMessageChannel=void 0;const n=e("tslib"),i=e("@trezor/utils");class o extends i.TypedEmitter{constructor({sendFn:e,channel:t,logger:r,lazyHandshake:n=!1,legacyMode:i=!1}){super(),this.messagePromises={},this.messagesQueue=[],this.messageID=0,this.isConnected=!1,this.handshakeMaxRetries=5,this.handshakeRetryInterval=2e3,this.channel=t,this.sendFn=e,this.lazyHandshake=n,this.legacyMode=i,this.logger=r}init(){return this.handshakeFinished||(this.handshakeFinished=(0,i.createDeferred)(),this.legacyMode&&setTimeout((()=>{var e;null===(e=this.handshakeFinished)||void 0===e||e.resolve()}),500),this.lazyHandshake||this.handshakeWithPeer()),this.handshakeFinished.promise}handshakeWithPeer(){var e;return null===(e=this.logger)||void 0===e||e.log(this.channel.here,"handshake"),(0,i.scheduleAction)((()=>n.__awaiter(this,void 0,void 0,(function*(){var e;this.postMessage({type:"channel-handshake-request",data:{success:!0,payload:undefined}},{usePromise:!1,useQueue:!1}),yield null===(e=this.handshakeFinished)||void 0===e?void 0:e.promise}))),{attempts:this.handshakeMaxRetries,timeout:this.handshakeRetryInterval}).then((()=>{var e;null===(e=this.logger)||void 0===e||e.log(this.channel.here,"handshake confirmed"),this.messagesQueue.forEach((e=>{e.channel=this.channel,this.sendFn(e)})),this.messagesQueue=[]})).catch((()=>{var e;null===(e=this.handshakeFinished)||void 0===e||e.reject(new Error("handshake failed")),this.handshakeFinished=undefined}))}onMessage(e){var t,r;let i=e;this.legacyMode&&i.type===undefined&&"data"in i&&"object"==typeof i.data&&null!==i.data&&"type"in i.data&&"string"==typeof i.data.type&&(i=i.data);const{channel:o,id:s,type:a}=i,c=n.__rest(i,["channel","id","type"]);if(!this.legacyMode){if(!(null==o?void 0:o.peer)||o.peer!==this.channel.here)return;if(!(null==o?void 0:o.here)||this.channel.peer!==o.here)return}if("channel-handshake-request"===a)return this.postMessage({type:"channel-handshake-confirm",data:{success:!0,payload:undefined}},{usePromise:!1,useQueue:!1}),void(this.lazyHandshake&&this.handshakeWithPeer());if("channel-handshake-confirm"===a)return void(null===(t=this.handshakeFinished)||void 0===t||t.resolve(undefined));this.messagePromises[s]&&(this.messagePromises[s].resolve(Object.assign({id:s},c)),delete this.messagePromises[s]);const u=Object.keys(this.messagePromises).length;u>5&&(null===(r=this.logger)||void 0===r||r.warn(`too many message promises (${u}). this feels unexpected!`)),this.emit("message",i)}postMessage(e,{usePromise:t=!0,useQueue:r=!0}={}){if(e.channel=this.channel,t){this.messageID++,e.id=this.messageID,this.messagePromises[e.id]=(0,i.createDeferred)();try{this.sendFn(e)}catch(t){r&&this.messagesQueue.push(e)}return this.messagePromises[e.id].promise}try{this.sendFn(e)}catch(t){r&&this.messagesQueue.push(e)}}resolveMessagePromises(e){Object.keys(this.messagePromises).forEach((t=>this.messagePromises[t].resolve({id:t,payload:e})))}clear(){this.handshakeFinished=undefined}}r.AbstractMessageChannel=o}}},{package:"@trezor/connect-web>@trezor/connect-common",file:"node_modules/@trezor/connect-common/lib/messageChannel/abstract.js"}],[3259,{"@trezor/utils":3572},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.storage=void 0;const n=e("@trezor/utils"),i="storage_v2";let o={origin:{}};const s=()=>{const e=localStorage.getItem(i);return e?JSON.parse(e):{origin:{}}};class a extends n.TypedEmitter{save(e,t=!1){if(!t&&global.window)try{const t=e(s());localStorage.setItem(i,JSON.stringify(t)),this.emit("changed",t)}catch(t){console.warn("long term storage not available"),o=e(o)}else o=e(o)}saveForOrigin(e,t,r=!1){this.save((r=>{var n;return Object.assign(Object.assign({},r),{origin:Object.assign(Object.assign({},r.origin),{[t]:e((null===(n=r.origin)||void 0===n?void 0:n[t])||{})})})}),r)}load(e=!1){var t;if(e||!(null===(t=null===global||void 0===global?void 0:global.window)||void 0===t?void 0:t.localStorage))return o;try{return s()}catch(e){return console.warn("long term storage not available"),o}}loadForOrigin(e,t=!1){var r;return(null===(r=this.load(t).origin)||void 0===r?void 0:r[e])||{}}}const c=new a;r.storage=c}}},{package:"@trezor/connect-web>@trezor/connect-common",file:"node_modules/@trezor/connect-common/lib/storage.js"}],[3260,{"@trezor/env-utils":3320},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getSystemInfo=r.getInstallerPackage=void 0;const n=e("@trezor/env-utils");r.getInstallerPackage=()=>{const e=(0,n.getUserAgent)();switch((0,n.getOsFamily)()){case"MacOS":return"mac";case"Windows":return`win${e.match(/(Win64|WOW64)/)?"64":"32"}`;case"Linux":return`${e.match(/CentOS|Fedora|Mandriva|Mageia|Red Hat|Scientific|SUSE/)?"rpm":"deb"}${e.match(/Linux i[3456]86/)?"32":"64"}`}};r.getSystemInfo=e=>{const t=(0,n.getBrowserName)(),r=(0,n.getBrowserVersion)(),i=t?e[t.toLowerCase()]:undefined,o=!!i&&i.version>parseInt(r,10),s="mobile"===(0,n.getDeviceType)(),a=!s||"usb"in navigator,c=!(!i||o||!a);return{os:{family:(0,n.getOsFamily)(),mobile:s},browser:{supported:c,outdated:o}}}}}},{package:"@trezor/connect-web>@trezor/connect-common",file:"node_modules/@trezor/connect-common/lib/systemInfo.js"}],[3261,{"@trezor/connect-common":3257},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ServiceWorkerWindowChannel=void 0;const n=e("@trezor/connect-common");class i extends n.AbstractMessageChannel{constructor({name:e,channel:t,logger:r,lazyHandshake:n,legacyMode:i,allowSelfOrigin:o=!1,currentId:s}){super({channel:t,sendFn:e=>{if(!this.port)throw new Error("port not assigned");this.port.postMessage(e)},logger:r,lazyHandshake:n,legacyMode:i}),this.name=e,this.allowSelfOrigin=o,this.currentId=s,this.connect()}connect(){chrome.runtime.onConnect.addListener((e=>{var t,r,n,i;e.name===this.name&&((null===(t=this.currentId)||void 0===t?void 0:t.call(this))&&(null===(r=this.currentId)||void 0===r?void 0:r.call(this))!==(null===(i=null===(n=e.sender)||void 0===n?void 0:n.tab)||void 0===i?void 0:i.id)||(this.port=e,this.port.onMessage.addListener(((e,{sender:t})=>{var r,n,i,o,s;if(!t)return void(null===(r=this.logger)||void 0===r||r.error("service-worker-window","no sender"));const{origin:a}=t,c=["https://connect.trezor.io","https://staging-connect.trezor.io","https://suite.corp.sldev.cz","https://dev.suite.sldev.cz","http://localhost:8088"],u=null===(n=null===chrome||void 0===chrome?void 0:chrome.runtime)||void 0===n?void 0:n.id;u&&c.push(`chrome-extension://${u}`);const l=null===(i=null===chrome||void 0===chrome?void 0:chrome.runtime)||void 0===i?void 0:i.getURL("");l&&c.push(l.slice(0,-1)),a?c.includes(a)?(a!==self.origin||this.allowSelfOrigin)&&this.onMessage(e):null===(s=this.logger)||void 0===s||s.error("connect-webextension/messageChannel/extensionPort/onMessage","origin not whitelisted",a):null===(o=this.logger)||void 0===o||o.error("connect-webextension/messageChannel/extensionPort/onMessage","no origin")}))))})),this.isConnected=!0}disconnect(){var e;this.isConnected&&(null===(e=this.port)||void 0===e||e.disconnect(),this.clear(),this.isConnected=!1)}}r.ServiceWorkerWindowChannel=i}}},{package:"@trezor/connect-web",file:"node_modules/@trezor/connect-web/lib/channels/serviceworker-window.js"}],[3262,{"@trezor/connect-common":3257},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WindowWindowChannel=void 0;const n=e("@trezor/connect-common");class i extends n.AbstractMessageChannel{constructor({windowHere:e,windowPeer:t,channel:r,logger:n,origin:i,legacyMode:o}){super({channel:r,sendFn:e=>{var r;null===(r=t())||void 0===r||r.postMessage(e,i)},logger:n,legacyMode:o}),this._listener=this.listener.bind(this),this._windowHere=e,this.connect()}listener(e){const t=Object.assign(Object.assign({},e.data),{success:!0,origin:e.origin,payload:e.data.payload||{},channel:e.data.channel||{peer:this.channel.here,here:this.channel.peer}});this.onMessage(t)}connect(){this._windowHere.addEventListener("message",this._listener),this.isConnected=!0}disconnect(){this.isConnected&&(this._windowHere.removeEventListener("message",this._listener),this.isConnected=!1)}}r.WindowWindowChannel=i}}},{package:"@trezor/connect-web",file:"node_modules/@trezor/connect-web/lib/channels/window-window.js"}],[3263,{"@trezor/connect/lib/data/connectSettings":3281},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseConnectSettings=r.getEnv=void 0;const n=e("@trezor/connect/lib/data/connectSettings");r.getEnv=()=>{var e;if("undefined"!=typeof chrome&&void 0!==(null===(e=chrome.runtime)||void 0===e?void 0:e.onConnect))return"webextension";if("undefined"!=typeof navigator){if("string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase())return"react-native";if(navigator.userAgent.toLowerCase().indexOf(" electron/")>-1)return"electron"}return"web"};r.parseConnectSettings=(e={})=>{var t;const i=Object.assign({popup:!0},e);let o;if("undefined"!=typeof window?o=window.__TREZOR_CONNECT_SRC:"undefined"!=typeof global&&(o=global.__TREZOR_CONNECT_SRC),"string"==typeof o&&(i.connectSrc=o,i.debug=!0),"undefined"!=typeof window&&"string"==typeof(null===(t=window.location)||void 0===t?void 0:t.search)){const e=((e,t)=>{const r=new URLSearchParams(e),n={};return Array.from(r.entries()).forEach((([e,r])=>{t.includes(e)&&(n[e]=decodeURIComponent(r))})),n})(window.location.search,["trezor-connect-src"]);e["trezor-connect-src"]&&(i.debug=!0,i.connectSrc=e["trezor-connect-src"])}return"string"!=typeof e.env&&(i.env=(0,r.getEnv)()),(0,n.parseConnectSettings)(i)}}}},{package:"@trezor/connect-web",file:"node_modules/@trezor/connect-web/lib/connectSettings.js"}],[3264,{"./inlineStyles":3265,"@trezor/connect/lib/constants/errors":3274,"@trezor/connect/lib/events":3288,"@trezor/connect/lib/utils/debug":3316,"@trezor/connect/lib/utils/urlUtils":3318,"@trezor/utils":3572,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.initIframeLogger=r.clearTimeout=r.postMessage=r.init=r.dispose=r.error=r.timeout=r.initPromise=r.origin=r.instance=void 0;const n=e("tslib"),i=e("@trezor/utils"),o=n.__importStar(e("@trezor/connect/lib/constants/errors")),s=e("@trezor/connect/lib/events"),a=e("@trezor/connect/lib/utils/urlUtils"),c=e("@trezor/connect/lib/utils/debug"),u=n.__importDefault(e("./inlineStyles"));r.initPromise=(0,i.createDeferred)(),r.timeout=0;r.dispose=()=>{if(r.instance&&r.instance.parentNode)try{r.instance.parentNode.removeChild(r.instance)}catch(e){}r.instance=null,r.timeout=0};r.init=async e=>{r.initPromise=(0,i.createDeferred)();const t=document.getElementById("trezorconnect");let n;if(t?r.instance=t:(r.instance=document.createElement("iframe"),r.instance.frameBorder="0",r.instance.width="0px",r.instance.height="0px",r.instance.style.position="absolute",r.instance.style.display="none",r.instance.style.border="0px",r.instance.style.width="0px",r.instance.style.height="0px",r.instance.id="trezorconnect"),"web"===e.env){const t=e.manifest?JSON.stringify(e.manifest):"undefined",r=`version=${e.version}&manifest=${encodeURIComponent(btoa(JSON.stringify(t)))}`;n=`${e.iframeSrc}?${r}`}else n=e.iframeSrc;r.instance.setAttribute("src",n),navigator.usb&&r.instance.setAttribute("allow","usb"),r.origin=(0,a.getOrigin)(r.instance.src),r.timeout=window.setTimeout((()=>{r.initPromise.reject(o.TypedError("Init_IframeTimeout"))}),1e4);const c=()=>{var t,n;if(!r.instance)return void r.initPromise.reject(o.TypedError("Init_IframeBlocked"));try{const e=null===(t=r.instance.contentWindow)||void 0===t?void 0:t.location.origin;if(!e||"null"===e)return window.clearTimeout(r.timeout),r.error=o.TypedError("Init_IframeBlocked"),(0,r.dispose)(),void r.initPromise.reject(r.error)}catch(e){}let i;"undefined"!=typeof chrome&&chrome.runtime&&void 0!==chrome.runtime.onConnect&&(chrome.runtime.onConnect.addListener((()=>{})),i=chrome.runtime.id),null===(n=r.instance.contentWindow)||void 0===n||n.postMessage({type:s.IFRAME.INIT,payload:{settings:e,extension:i}},r.origin),r.instance.onload=null};r.instance.attachEvent?r.instance.attachEvent("onload",c):r.instance.onload=c,document.body&&(document.body.appendChild(r.instance),(()=>{if(!r.instance)throw o.TypedError("Init_IframeBlocked");const e=r.instance.ownerDocument,t=e.head||e.getElementsByTagName("head")[0],n=document.createElement("style");n.setAttribute("type","text/css"),n.setAttribute("id","TrezorConnectStylesheet"),n.styleSheet?(n.styleSheet.cssText=u.default,t.appendChild(n)):(n.appendChild(document.createTextNode(u.default)),t.append(n))})());try{await r.initPromise.promise}catch(e){throw r.instance&&(r.instance.parentNode&&r.instance.parentNode.removeChild(r.instance),r.instance=null),e}finally{window.clearTimeout(r.timeout),r.timeout=0}};r.postMessage=e=>{var t;if(!r.instance)throw o.TypedError("Init_IframeBlocked");null===(t=r.instance.contentWindow)||void 0===t||t.postMessage(e,r.origin)};r.clearTimeout=()=>{window.clearTimeout(r.timeout)};r.initIframeLogger=()=>{(0,c.setLogWriter)((()=>({add:e=>{(0,r.postMessage)({type:s.IFRAME.LOG,payload:e})}})))}}}},{package:"@trezor/connect-web",file:"node_modules/@trezor/connect-web/lib/iframe/index.js"}],[3265,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});r.default='.trezorconnect-container{position:fixed!important;display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-webkit-flex-direction:column!important;-ms-flex-direction:column!important;flex-direction:column!important;-webkit-box-align:center!important;-webkit-align-items:center!important;-ms-flex-align:center!important;align-items:center!important;z-index:10000!important;width:100%!important;height:100%!important;top:0!important;left:0!important;background:rgba(0,0,0,.35)!important;overflow:auto!important;padding:20px!important;margin:0!important}.trezorconnect-container .trezorconnect-window{position:relative!important;display:block!important;width:370px!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;margin:auto!important;border-radius:3px!important;background-color:#fff!important;text-align:center!important;overflow:hidden!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head{text-align:left;padding:12px 24px!important;display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center!important;-webkit-align-items:center!important;-ms-flex-align:center!important;align-items:center!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-logo{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close{cursor:pointer!important;height:24px!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close svg{fill:#757575;-webkit-transition:fill .3s ease-in-out!important;transition:fill .3s ease-in-out!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close:hover svg{fill:#494949}.trezorconnect-container .trezorconnect-window .trezorconnect-body{padding:24px 24px 32px!important;background:#FBFBFB!important;border-top:1px solid #EBEBEB}.trezorconnect-container .trezorconnect-window .trezorconnect-body h3{color:#505050!important;font-size:16px!important;font-weight:500!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body p{margin:8px 0 24px!important;font-weight:400!important;color:#A9A9A9!important;font-size:12px!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button{width:100%!important;padding:12px 24px!important;margin:0!important;border-radius:3px!important;font-size:14px!important;font-weight:300!important;cursor:pointer!important;background:#01B757!important;color:#fff!important;border:0!important;-webkit-transition:background-color .3s ease-in-out!important;transition:background-color .3s ease-in-out!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button:hover{background-color:#00AB51!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button:active{background-color:#009546!important}/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0IiwiJHN0ZGluIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNBLHlCQUNJLFNBQUEsZ0JBQ0EsUUFBQSxzQkFDQSxRQUFBLHVCQUNBLFFBQUEsc0JBRUEsUUFBQSxlQUNBLG1CQUFBLG1CQUNBLHNCQUFBLGlCQUNBLHVCQUFBLGlCQUNBLG1CQUFBLGlCQUNBLGVBQUEsaUJBRUEsa0JBQUEsaUJBQ0Esb0JBQUEsaUJBQ0EsZUFBQSxpQkNmTSxZQUFhLGlCREFyQixRQUFTLGdCQWtCSCxNQUFBLGVBQ0EsT0FBQSxlQUNBLElBQUEsWUFDQSxLQUFBLFlBQ0EsV0FBQSwwQkFDQSxTQUFBLGVBQ0EsUUFBQSxlQUNBLE9BQUEsWUNkUiwrQ0RYRSxTQUFVLG1CQTZCQSxRQUFBLGdCQUNBLE1BQUEsZ0JBQ0EsWUFBQSxjQUFBLG1CQUFBLFdBQUEsT0FBQSxpQkFBQSxNQUFBLHFCQUNBLE9BQUEsZUNmVixjQUFlLGNEakJmLGlCQWlCRSxlQWtCWSxXQUFBLGlCQ2ZkLFNBQVUsaUJEbUJJLG1FQUNBLFdBQUEsS0NoQmQsUUFBUyxLQUFLLGVEeEJkLFFBQVMsc0JBMENTLFFBQUEsdUJBQ0EsUUFBQSxzQkNmbEIsUUFBUyxlRGlCSyxrQkE1QlosaUJBOEJvQixvQkFBQSxpQkNoQmxCLGVBQWdCLGlCRC9CWixZQWlCTixpQkFzQ1EsdUZBQ0EsaUJBQUEsRUNwQlYsYUFBYyxFRHBDVixTQUFVLEVBMkRBLEtBQUEsRUFFQSx3RkNwQmQsT0FBUSxrQkR6Q1IsT0FBUSxlQWlFTSw0RkFDQSxLQUFBLFFBQ0EsbUJBQUEsS0FBQSxJQUFBLHNCQ3BCZCxXQUFZLEtBQUssSUFBSyxzQkR3QlIsa0dBQ0EsS0FBQSxRQUVBLG1FQUNBLFFBQUEsS0FBQSxLQUFBLGVBQ0EsV0FBQSxrQkFDQSxXQUFBLElBQUEsTUFBQSxRQUVBLHNFQUNBLE1BQUEsa0JBQ0EsVUFBQSxlQ3JCZCxZQUFhLGNEd0JLLHFFQ3JCbEIsT0FBUSxJQUFJLEVBQUksZUR3QkYsWUFBQSxjQUNJLE1BQUEsa0JDdEJsQixVQUFXLGVBRWIsMEVBQ0UsTUFBTyxlQUNQLFFBQVMsS0FBSyxlQUNkLE9BQVEsWUFDUixjQUFlLGNBQ2YsVUFBVyxlQUNYLFlBQWEsY0FDYixPQUFRLGtCQUNSLFdBQVksa0JBQ1osTUFBTyxlQUNQLE9BQVEsWUFDUixtQkFBb0IsaUJBQWlCLElBQUssc0JBQzFDLFdBQVksaUJBQWlCLElBQUssc0JBRXBDLGdGQUNFLGlCQUFrQixrQkFFcEIsaUZBQ0UsaUJBQWtCIn0= */'}}},{package:"@trezor/connect-web",file:"node_modules/@trezor/connect-web/lib/iframe/inlineStyles.js"}],[3266,{"../connectSettings":3263,"../iframe":3264,"../popup":3270,"../webusb/button":3272,"@trezor/connect/lib/constants/errors":3274,"@trezor/connect/lib/data/config":3280,"@trezor/connect/lib/events":3288,"@trezor/connect/lib/factory":3296,"@trezor/connect/lib/utils/debug":3316,"@trezor/utils/lib/createDeferredManager":3558,events:4399,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TrezorConnect=r.CoreInIframe=void 0;const n=e("tslib"),i=n.__importDefault(e("events")),o=n.__importStar(e("@trezor/connect/lib/constants/errors")),s=e("@trezor/connect/lib/events"),a=e("@trezor/connect/lib/factory"),c=e("@trezor/connect/lib/utils/debug"),u=e("@trezor/connect/lib/data/config"),l=e("@trezor/utils/lib/createDeferredManager"),p=n.__importStar(e("../iframe")),d=n.__importStar(e("../popup")),h=n.__importDefault(e("../webusb/button")),f=e("../connectSettings");class y{constructor(){this.eventEmitter=new i.default,this.boundHandleMessage=this.handleMessage.bind(this),this.boundDispose=this.dispose.bind(this),this._settings=(0,f.parseConnectSettings)(),this._log=(0,c.initLog)("@trezor/connect-web"),this._messagePromises=(0,l.createDeferredManager)({initialId:1})}initPopupManager(){const e=new d.PopupManager(this._settings,{logger:this._log});return e.on(s.POPUP.CLOSED,(e=>{p.postMessage({type:s.POPUP.CLOSED,payload:e?{error:e}:null})})),e}manifest(e){this._settings=(0,f.parseConnectSettings)(Object.assign(Object.assign({},this._settings),{manifest:e}))}dispose(){return this.eventEmitter.removeAllListeners(),p.dispose(),this._settings=(0,f.parseConnectSettings)(),this._popupManager&&this._popupManager.close(),window.removeEventListener("message",this.boundHandleMessage),window.removeEventListener("unload",this.boundDispose),Promise.resolve(undefined)}cancel(e){this._popupManager&&this._popupManager.emit(s.POPUP.CLOSED,e)}handleMessage(e){if(e.origin!==p.origin)return;const t=(0,s.parseMessage)(e.data);switch(this._log.log("handleMessage",t),t.event){case s.RESPONSE_EVENT:{const{id:e=0,success:r,payload:n,device:i}=t;this._messagePromises.resolve(e,{id:e,success:r,payload:n,device:i})||this._log.warn(`Unknown message id ${e}`);break}case s.DEVICE_EVENT:case s.TRANSPORT_EVENT:case s.BLOCKCHAIN_EVENT:this.eventEmitter.emit(t.event,t),this.eventEmitter.emit(t.type,t.payload);break;case s.UI_EVENT:if(t.type===s.IFRAME.BOOTSTRAP){p.clearTimeout();break}t.type===s.IFRAME.LOADED&&p.initPromise.resolve(),t.type===s.IFRAME.ERROR&&p.initPromise.reject(t.payload.error),this.eventEmitter.emit(t.event,t),this.eventEmitter.emit(t.type,t.payload);break;default:this._log.log("Undefined message",e.data)}}async init(e){var t,r;if(p.instance)throw o.TypedError("Init_AlreadyInitialized");if(this._settings=(0,f.parseConnectSettings)(Object.assign(Object.assign({},this._settings),e)),!this._settings.manifest)throw o.TypedError("Init_ManifestMissing");if((null===(t=this._settings.transports)||void 0===t?void 0:t.length)||(this._settings.transports=["BridgeTransport","WebUsbTransport"]),this._settings.lazyLoad)this._settings.lazyLoad=!1;else{if(this._popupManager||(this._popupManager=this.initPopupManager()),this._log.enabled=!!this._settings.debug,window.addEventListener("message",this.boundHandleMessage),window.addEventListener("unload",this.boundDispose),await p.init(this._settings),"auto"===this._settings.coreMode){const{promiseId:e,promise:t}=this._messagePromises.create();this._log.debug("coreMode = auto, Checking bridge availability"),p.postMessage({id:e,type:s.TRANSPORT.GET_INFO});const n=await t;if(this._log.debug("Bridge availability response",n),n.payload===undefined&&navigator.usb&&(null===(r=this._settings.transports)||void 0===r?void 0:r.includes("WebUsbTransport")))throw o.TypedError("Transport_Missing")}!1!==this._settings.sharedLogger&&p.initIframeLogger()}}async call(e){if(!p.instance&&!p.timeout){if(this._settings=(0,f.parseConnectSettings)(this._settings),!this._settings.manifest)return(0,s.createErrorMessage)(o.TypedError("Init_ManifestMissing"));this._popupManager||(this._popupManager=this.initPopupManager());try{await this.init(this._settings)}catch(e){return this._popupManager&&this._popupManager.clear(),(0,s.createErrorMessage)(e)}}if(p.timeout&&await p.initPromise.promise,p.error)return(0,s.createErrorMessage)(p.error);this._settings.popup&&this._popupManager&&this._popupManager.request();try{const{promiseId:t,promise:r}=this._messagePromises.create();p.postMessage({id:t,type:s.IFRAME.CALL,payload:e});const n=await r;return n?(!n.success&&"Device_CallInProgress"!==n.payload.code&&this._popupManager&&this._popupManager.unlock(),n):(this._popupManager&&this._popupManager.unlock(),(0,s.createErrorMessage)(o.TypedError("Method_NoResponse")))}catch(e){return this._log.error("__call error",e),this._popupManager&&this._popupManager.clear(!1),(0,s.createErrorMessage)(e)}}uiResponse(e){if(!p.instance)throw o.TypedError("Init_NotInitialized");p.postMessage(e)}renderWebUSBButton(e){(0,h.default)(e,this._settings.webusbSrc)}async requestLogin(e){if("function"==typeof e.callback){const{callback:t}=e,r=async e=>{const{data:r}=e;if(r&&r.type===s.UI.LOGIN_CHALLENGE_REQUEST)try{const e=await t();p.postMessage({type:s.UI.LOGIN_CHALLENGE_RESPONSE,payload:e})}catch(e){p.postMessage({type:s.UI.LOGIN_CHALLENGE_RESPONSE,payload:e.message})}};window.addEventListener("message",r,!1);const n=await this.call(Object.assign(Object.assign({method:"requestLogin"},e),{asyncChallenge:!0,callback:null}));return window.removeEventListener("message",r),n}return this.call(Object.assign({method:"requestLogin"},e))}disableWebUSB(){if(!p.instance)throw o.TypedError("Init_NotInitialized");p.postMessage({type:s.TRANSPORT.DISABLE_WEBUSB})}async requestWebUSBDevice(){try{await window.navigator.usb.requestDevice({filters:u.config.webusb}),p.postMessage({type:s.TRANSPORT.REQUEST_DEVICE})}catch(e){}}}r.CoreInIframe=y;const m=new y;r.TrezorConnect=(0,a.factory)({eventEmitter:m.eventEmitter,init:m.init.bind(m),call:m.call.bind(m),manifest:m.manifest.bind(m),requestLogin:m.requestLogin.bind(m),uiResponse:m.uiResponse.bind(m),cancel:m.cancel.bind(m),dispose:m.dispose.bind(m)},{renderWebUSBButton:m.renderWebUSBButton.bind(m),disableWebUSB:m.disableWebUSB.bind(m),requestWebUSBDevice:m.requestWebUSBDevice.bind(m)})}}},{package:"@trezor/connect-web",file:"node_modules/@trezor/connect-web/lib/impl/core-in-iframe.js"}],[3267,{"../connectSettings":3263,"../popup":3270,"@trezor/connect/lib/constants/errors":3274,"@trezor/connect/lib/events":3288,"@trezor/connect/lib/factory":3296,"@trezor/connect/lib/utils/debug":3316,"@trezor/utils":3572,events:4399,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TrezorConnect=r.CoreInPopup=void 0;const n=e("tslib"),i=n.__importDefault(e("events")),o=e("@trezor/connect/lib/events"),s=n.__importStar(e("@trezor/connect/lib/constants/errors")),a=e("@trezor/connect/lib/factory"),c=e("@trezor/connect/lib/utils/debug"),u=e("@trezor/utils"),l=e("../connectSettings"),p=n.__importStar(e("../popup"));class d{constructor(){this.eventEmitter=new i.default,this._settings=(0,l.parseConnectSettings)(),this.logger=(0,c.initLog)("@trezor/connect-web"),this.popupManagerLogger=(0,c.initLog)("@trezor/connect-web/popupManager")}logWriterFactory(e){return{add:t=>{e.channel.postMessage({event:o.UI_EVENT,type:o.IFRAME.LOG,payload:t},{usePromise:!1,useQueue:!0})}}}manifest(e){this._settings=(0,l.parseConnectSettings)(Object.assign(Object.assign({},this._settings),{manifest:e}))}dispose(){return this.eventEmitter.removeAllListeners(),this._settings=(0,l.parseConnectSettings)(),this._popupManager&&this._popupManager.close(),Promise.resolve(undefined)}cancel(e){this._popupManager&&this._popupManager.emit(o.POPUP.CLOSED,e)}init(e){var t,r;const n=(0,l.parseConnectSettings)(Object.assign({},this._settings)),i=(0,l.parseConnectSettings)(Object.assign(Object.assign({},this._settings),e));(null===(t=i.transports)||void 0===t?void 0:t.length)||(i.transports=["BridgeTransport","WebUsbTransport"]),i.useCoreInPopup=!0,"undefined"!=typeof window&&(null===(r=null===window||void 0===window?void 0:window.location)||void 0===r?void 0:r.origin)&&(i.origin=window.location.origin);const o=JSON.stringify(n)===JSON.stringify(i);if(this._settings=i,this._popupManager&&o||(this._popupManager&&this._popupManager.close(),this._popupManager=new p.PopupManager(this._settings,{logger:this.popupManagerLogger}),(0,c.setLogWriter)((()=>this.logWriterFactory(this._popupManager)))),this.logger.enabled=!!e.debug,!this._settings.manifest)throw s.TypedError("Init_ManifestMissing");return this.logger.debug("initiated"),Promise.resolve()}async call(e){if(this.logger.debug("call",e),!this._popupManager)return(0,o.createErrorMessage)(s.TypedError("Init_NotInitialized"));this._settings.popup&&await this._popupManager.request();const t=(0,u.createDeferred)(),r=()=>{this.logger.log("Popup closed during initialization"),t.reject(s.TypedError("Method_Interrupted"))};this._popupManager.once(o.POPUP.CLOSED,r);try{this.logger.debug("call: popup initialing"),await Promise.race([t.promise,this.callInit()]),this.logger.debug("call: popup initialized");const r=await this._popupManager.channel.postMessage({type:o.IFRAME.CALL,payload:e});if(this.logger.debug("call: response: ",r),r)return this._popupManager&&r.success&&this._popupManager.clear(),{success:r.success,payload:r.payload,device:r.device};throw s.TypedError("Method_NoResponse")}catch(e){return this.logger.error("call: error",e),this._popupManager.clear(!1),(0,o.createErrorMessage)(e)}finally{this._popupManager.removeListener(o.POPUP.CLOSED,r)}}async callInit(){var e,t;if(!this._popupManager)throw s.TypedError("Init_NotInitialized");await this._popupManager.channel.init(),"webextension"===this._settings.env&&(await(null===(e=this._popupManager.popupPromise)||void 0===e?void 0:e.promise),this._popupManager.channel.postMessage({type:o.POPUP.INIT,payload:{settings:this._settings,useCore:!0}})),await(null===(t=this._popupManager.handshakePromise)||void 0===t?void 0:t.promise)}uiResponse(e){var t,r;const{type:n,payload:i}=e;null===(r=null===(t=this._popupManager)||void 0===t?void 0:t.channel)||void 0===r||r.postMessage({event:o.UI_EVENT,type:n,payload:i})}renderWebUSBButton(){}requestLogin(){throw s.TypedError("Method_InvalidPackage")}disableWebUSB(){throw s.TypedError("Method_InvalidPackage")}requestWebUSBDevice(){throw s.TypedError("Method_InvalidPackage")}}r.CoreInPopup=d;const h=new d;r.TrezorConnect=(0,a.factory)({eventEmitter:h.eventEmitter,init:h.init.bind(h),call:h.call.bind(h),manifest:h.manifest.bind(h),requestLogin:h.requestLogin.bind(h),uiResponse:h.uiResponse.bind(h),cancel:h.cancel.bind(h),dispose:h.dispose.bind(h)})}}},{package:"@trezor/connect-web",file:"node_modules/@trezor/connect-web/lib/impl/core-in-popup.js"}],[3268,{"../connectSettings":3263,"@trezor/connect/lib/constants/errors":3274,"@trezor/connect/lib/events":3288,"@trezor/connect/lib/factory":3296,"@trezor/utils":3572,events:4399,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TrezorConnect=r.CoreInSuiteDesktop=void 0;const n=e("tslib"),i=n.__importDefault(e("events")),o=e("@trezor/connect/lib/events"),s=n.__importStar(e("@trezor/connect/lib/constants/errors")),a=e("@trezor/connect/lib/factory"),c=e("@trezor/utils"),u=e("../connectSettings");class l{constructor(){this.eventEmitter=new i.default,this._settings=(0,u.parseConnectSettings)(),this.messages=(0,c.createDeferredManager)()}manifest(e){this._settings=(0,u.parseConnectSettings)(Object.assign(Object.assign({},this._settings),{manifest:e}))}dispose(){var e;return this.eventEmitter.removeAllListeners(),this._settings=(0,u.parseConnectSettings)(),null===(e=this.ws)||void 0===e||e.close(),Promise.resolve(undefined)}cancel(e){}async handshake(){var e;const{promise:t,promiseId:r}=this.messages.create(1e3);null===(e=this.ws)||void 0===e||e.send(JSON.stringify({id:r,type:o.POPUP.HANDSHAKE}));try{await t}catch(e){throw console.error(e),new Error("Handshake timed out")}}async init(e={}){var t,r;const n=(0,u.parseConnectSettings)(Object.assign(Object.assign({},this._settings),e));(null===(t=n.transports)||void 0===t?void 0:t.length)||(n.transports=["BridgeTransport","WebUsbTransport"]),this._settings=n,null===(r=this.ws)||void 0===r||r.close();const i=(0,c.createDeferred)(1e3);return this.ws=new WebSocket("ws://localhost:21335/connect-ws"),this.ws.addEventListener("opened",(()=>{i.resolve()})),this.ws.addEventListener("error",(()=>{i.reject(new Error("WebSocket error")),this.messages.rejectAll(new Error("WebSocket error"))})),this.ws.addEventListener("message",(e=>{try{const t=JSON.parse(e.data);this.messages.resolve(t.id,t)}catch(e){}})),this.ws.addEventListener("close",(()=>{i.reject(new Error("WebSocket closed")),this.messages.rejectAll(new Error("WebSocket closed"))})),this.ws.readyState!==WebSocket.OPEN&&(setTimeout((()=>{var e;(null===(e=this.ws)||void 0===e?void 0:e.readyState)===WebSocket.OPEN&&i.resolve()}),500),await i.promise),await this.handshake()}async call(e){var t;try{this.ws&&this.ws.readyState===WebSocket.OPEN||await this.init(),await this.handshake();const{promise:r,promiseId:n}=this.messages.create();return null===(t=this.ws)||void 0===t||t.send(JSON.stringify({id:n,type:o.IFRAME.CALL,payload:e})),r}catch(e){return{success:!1,payload:{error:e.message}}}}uiResponse(e){throw s.TypedError("Method_InvalidPackage")}requestLogin(){throw s.TypedError("Method_InvalidPackage")}disableWebUSB(){throw s.TypedError("Method_InvalidPackage")}requestWebUSBDevice(){throw s.TypedError("Method_InvalidPackage")}renderWebUSBButton(){}}r.CoreInSuiteDesktop=l;const p=new l;r.TrezorConnect=(0,a.factory)({eventEmitter:p.eventEmitter,init:p.init.bind(p),call:p.call.bind(p),manifest:p.manifest.bind(p),requestLogin:p.requestLogin.bind(p),uiResponse:p.uiResponse.bind(p),cancel:p.cancel.bind(p),dispose:p.dispose.bind(p)})}}},{package:"@trezor/connect-web",file:"node_modules/@trezor/connect-web/lib/impl/core-in-suite-desktop.js"}],[3269,{"./connectSettings":3263,"./impl/core-in-iframe":3266,"./impl/core-in-popup":3267,"./impl/core-in-suite-desktop":3268,"@trezor/connect/lib/exports":3295,"@trezor/connect/lib/factory":3296,"@trezor/connect/lib/impl/dynamic":3297,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e("tslib"),i=e("@trezor/connect/lib/factory"),o=e("@trezor/connect/lib/impl/dynamic"),s=e("./impl/core-in-iframe"),a=e("./impl/core-in-popup"),c=e("./impl/core-in-suite-desktop"),u=e("./connectSettings"),l=["Init_IframeBlocked","Init_IframeTimeout","Transport_Missing"],p=new o.TrezorConnectDynamic({implementations:[{type:"iframe",impl:new s.CoreInIframe},{type:"core-in-popup",impl:new a.CoreInPopup},{type:"core-in-suite-desktop",impl:new c.CoreInSuiteDesktop}],getInitTarget:e=>"iframe"===e.coreMode?"iframe":"popup"===e.coreMode?"core-in-popup":"suite-desktop"===e.coreMode?"core-in-suite-desktop":(e.coreMode&&"auto"!==e.coreMode&&console.warn(`Invalid coreMode: ${e.coreMode}`),"iframe"),handleErrorFallback:async e=>{var t,r,n,i,o;const s=(0,u.getEnv)(),a=!1===(null===(t=p.lastSettings)||void 0===t?void 0:t.popup)||"webextension"===s,c="auto"===(null===(r=p.lastSettings)||void 0===r?void 0:r.coreMode)||(null===(n=p.lastSettings)||void 0===n?void 0:n.coreMode)===undefined;if(!a&&c&&l.includes(e)){const t=!(null===navigator||void 0===navigator?void 0:navigator.usb),r=!1===(null===(o=null===(i=p.lastSettings)||void 0===i?void 0:i.transports)||void 0===o?void 0:o.includes("WebUsbTransport"));return("Transport_Missing"!==e||!t&&!r)&&(await p.switchTarget("core-in-popup"),!0)}return!1}}),d=(0,i.factory)({eventEmitter:p.eventEmitter,init:p.init.bind(p),call:p.call.bind(p),manifest:p.manifest.bind(p),requestLogin:p.requestLogin.bind(p),uiResponse:p.uiResponse.bind(p),cancel:p.cancel.bind(p),dispose:p.dispose.bind(p)},{renderWebUSBButton:p.getTarget().renderWebUSBButton.bind(p),disableWebUSB:p.getTarget().disableWebUSB.bind(p),requestWebUSBDevice:p.getTarget().requestWebUSBDevice.bind(p)});r.default=d,n.__exportStar(e("@trezor/connect/lib/exports"),r)}}},{package:"@trezor/connect-web",file:"node_modules/@trezor/connect-web/lib/index.js"}],[3270,{"../channels/serviceworker-window":3261,"../channels/window-window":3262,"./showPopupRequest":3271,"@trezor/connect/lib/data/version":3282,"@trezor/connect/lib/events":3288,"@trezor/connect/lib/utils/urlUtils":3318,"@trezor/utils":3572,events:4399,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PopupManager=void 0;const n=e("tslib").__importDefault(e("events")),i=e("@trezor/utils"),o=e("@trezor/connect/lib/events"),s=e("@trezor/connect/lib/utils/urlUtils"),a=e("@trezor/connect/lib/data/version"),c=e("./showPopupRequest"),u=e("../channels/serviceworker-window"),l=e("../channels/window-window");class p extends n.default{constructor(e,{logger:t}){var r;if(super(),this.locked=!1,this.extensionTabId=0,this.injectContentScript=e=>{chrome.permissions.getAll((t=>{var r;(null===(r=t.permissions)||void 0===r?void 0:r.includes("scripting"))&&(0,i.scheduleAction)((()=>chrome.scripting.executeScript({target:{tabId:e},func:()=>{}}).then((()=>{this.logger.debug("content script injected")})).catch((e=>{throw this.logger.error("content script injection error",e),e}))),{attempts:new Array(3).fill({timeout:100})})}))},this.settings=e,this.origin=(0,s.getOrigin)(e.popupSrc),this.logger=t,this.isWebExtensionWithTab()?this.channel=new u.ServiceWorkerWindowChannel({name:"trezor-connect",channel:{here:"@trezor/connect-webextension",peer:"@trezor/connect-content-script"},logger:t,currentId:()=>{var e,t;if("tab"===(null===(e=this.popupWindow)||void 0===e?void 0:e.mode))return null===(t=this.popupWindow)||void 0===t?void 0:t.tab.id},legacyMode:!this.settings.useCoreInPopup}):this.channel=new l.WindowWindowChannel({windowHere:window,windowPeer:()=>{var e,t;if("window"===(null===(e=this.popupWindow)||void 0===e?void 0:e.mode))return null===(t=this.popupWindow)||void 0===t?void 0:t.window},channel:{here:"@trezor/connect-web",peer:"@trezor/connect-popup"},logger:t,origin:this.origin,legacyMode:!this.settings.useCoreInPopup}),this.settings.useCoreInPopup||(this.iframeHandshakePromise=(0,i.createDeferred)(o.IFRAME.LOADED),this.channelIframe=new l.WindowWindowChannel({windowHere:window,windowPeer:()=>window,channel:{here:"@trezor/connect-web",peer:"@trezor/connect-iframe"},logger:t,origin:this.origin}),null===(r=this.channelIframe)||void 0===r||r.on("message",this.handleMessage.bind(this))),this.settings.useCoreInPopup)return this.handshakePromise=(0,i.createDeferred)(),void this.channel.on("message",this.handleCoreMessage.bind(this));this.isWebExtensionWithTab()?this.channel.on("message",this.handleExtensionMessage.bind(this)):this.channel.on("message",this.handleMessage.bind(this)),this.channel.init()}async request(){var e,t,r,n,i,o;if(this.settings.useCoreInPopup&&"tab"===(null===(e=this.popupWindow)||void 0===e?void 0:e.mode)){await(o=null===(r=null===(t=this.popupWindow)||void 0===t?void 0:t.tab)||void 0===r?void 0:r.id,new Promise((e=>{if(!o)return e(!1);chrome.tabs.get(o,(function(){chrome.runtime.lastError?e(!1):e(!0)}))})))||this.clear()}if(this.locked)return void("tab"===(null===(n=this.popupWindow)||void 0===n?void 0:n.mode)&&this.popupWindow.tab.id?chrome.tabs.update(this.popupWindow.tab.id,{active:!0}):"window"===(null===(i=this.popupWindow)||void 0===i?void 0:i.mode)&&this.popupWindow.window.focus());this.popupWindow&&!this.locked&&this.close();const s=this.open.bind(this);this.locked=!0;const a="webextension"===this.settings.env?1:850;this.requestTimeout=setTimeout((()=>{this.requestTimeout=undefined,s()}),a)}unlock(){this.locked=!1}open(){const e=this.settings.popupSrc;this.popupPromise=(0,i.createDeferred)(o.POPUP.LOADED);const t=this.buildPopupUrl(e);this.openWrapper(t),this.closeInterval=setInterval((()=>{this.popupWindow&&("tab"===this.popupWindow.mode&&this.popupWindow.tab.id?chrome.tabs.get(this.popupWindow.tab.id,(e=>{e||(this.emitClosed(),this.clear())})):"window"===this.popupWindow.mode&&this.popupWindow.window.closed&&(this.clear(),this.emitClosed()))}),500),this.settings.useCoreInPopup||(this.openTimeout=setTimeout((()=>{this.clear(),(0,c.showPopupRequest)(this.open.bind(this),(()=>{this.emitClosed()}))}),5e3))}buildPopupUrl(e){var t;const r=new URLSearchParams;return r.set("version",a.VERSION),r.set("env",this.settings.env),"webextension"===this.settings.env&&(null===(t=null===chrome||void 0===chrome?void 0:chrome.runtime)||void 0===t?void 0:t.id)&&(r.set("extension-id",chrome.runtime.id),r.set("cs-ver",a.CONTENT_SCRIPT_VERSION.toString())),e+"?"+r.toString()}openWrapper(e){if(this.isWebExtensionWithTab())chrome.windows.getCurrent((t=>{this.logger.debug("opening popup. currentWindow: ",t),"normal"!==t.type?chrome.windows.create({url:e},(e=>{chrome.tabs.query({windowId:null==e?void 0:e.id,active:!0},(e=>{this.popupWindow={mode:"tab",tab:e[0]},this.injectContentScript(e[0].id)}))})):chrome.tabs.query({currentWindow:!0,active:!0},(t=>{this.extensionTabId=t[0].id,chrome.tabs.create({url:e,index:t[0].index+1},(e=>{this.popupWindow={mode:"tab",tab:e},this.injectContentScript(e.id)}))}))}));else{const t=window.open(e,"modal");if(!t)return;this.popupWindow={mode:"window",window:t}}this.channel.isConnected||this.channel.connect()}handleCoreMessage(e){var t;if(e.type===o.POPUP.BOOTSTRAP)this.channel.init();else if(e.type===o.POPUP.LOADED)this.handleMessage(e),this.channel.postMessage({type:o.POPUP.INIT,payload:{settings:this.settings,useCore:!0}});else if(e.type===o.POPUP.CORE_LOADED)this.channel.postMessage({type:o.POPUP.HANDSHAKE,payload:{settings:this.settings}}),null===(t=this.handshakePromise)||void 0===t||t.resolve();else if(e.type===o.POPUP.CLOSED)this.emitClosed();else if(e.type===o.POPUP.CONTENT_SCRIPT_LOADED){const{contentScriptVersion:t}=e.payload;t!==a.CONTENT_SCRIPT_VERSION&&console.warn(`Content script version mismatch. Expected ${a.CONTENT_SCRIPT_VERSION}, got ${t}`)}}handleExtensionMessage(e){e.type===o.POPUP.ERROR||e.type===o.POPUP.LOADED||e.type===o.POPUP.BOOTSTRAP?this.handleMessage(e):e.type===o.POPUP.EXTENSION_USB_PERMISSIONS?chrome.tabs.query({currentWindow:!0,active:!0},(e=>{chrome.tabs.create({url:"trezor-usb-permissions.html",index:e[0].index+1},(e=>{}))})):e.type===o.POPUP.CLOSE_WINDOW&&this.clear()}handleMessage(e){var t,r;if(e.type===o.IFRAME.LOADED)null===(t=this.iframeHandshakePromise)||void 0===t||t.resolve(e.payload);else if(e.type===o.POPUP.BOOTSTRAP)this.openTimeout&&clearTimeout(this.openTimeout);else if(e.type===o.POPUP.ERROR&&this.popupWindow){const t=e.payload&&"string"==typeof e.payload.error?e.payload.error:null;this.emit(o.POPUP.CLOSED,t?`Popup error: ${t}`:null),this.clear()}else e.type===o.POPUP.LOADED?(this.openTimeout&&clearTimeout(this.openTimeout),this.popupPromise&&(this.popupPromise.resolve(),this.popupPromise=undefined),null===(r=this.iframeHandshakePromise)||void 0===r||r.promise.then((e=>{this.channel.postMessage({type:o.POPUP.INIT,payload:Object.assign(Object.assign({},e),{settings:this.settings})})}))):e.type===o.POPUP.CANCEL_POPUP_REQUEST?(clearTimeout(this.requestTimeout),this.popupPromise&&this.close(),this.unlock()):e.type===o.UI.CLOSE_UI_WINDOW&&this.clear(!1)}clear(e=!0){this.locked=!1,this.popupPromise=undefined,this.handshakePromise=(0,i.createDeferred)(),this.channel&&this.channel.disconnect(),this.requestTimeout&&(clearTimeout(this.requestTimeout),this.requestTimeout=undefined),this.openTimeout&&(clearTimeout(this.openTimeout),this.openTimeout=undefined),this.closeInterval&&(clearInterval(this.closeInterval),this.closeInterval=undefined),e&&this.extensionTabId&&(chrome.tabs.update(this.extensionTabId,{active:!0}),this.extensionTabId=0)}close(){var e;if(this.popupWindow){if(this.logger.debug("closing popup"),"tab"===this.popupWindow.mode){let e=chrome.runtime.lastError;this.popupWindow.tab.id&&chrome.tabs.remove(this.popupWindow.tab.id,(()=>{e=chrome.runtime.lastError,e&&this.logger.error("closed with error",e)}))}else"window"===this.popupWindow.mode&&this.popupWindow.window.close();this.popupWindow=undefined,(null===(e=this.settings)||void 0===e?void 0:e.useCoreInPopup)&&this.channel.clear()}}async postMessage(e){var t,r;if(!this.popupWindow&&e.type!==o.UI.REQUEST_UI_WINDOW&&this.openTimeout)return this.clear(),void(0,c.showPopupRequest)(this.open.bind(this),(()=>{this.emitClosed()}));this.popupPromise&&await this.popupPromise.promise,"window"===(null===(t=this.popupWindow)||void 0===t?void 0:t.mode)?this.popupWindow.window.postMessage(e,this.origin):"tab"===(null===(r=this.popupWindow)||void 0===r?void 0:r.mode)&&this.channel.postMessage(e)}isWebExtensionWithTab(){var e;return"webextension"===(null===(e=this.settings)||void 0===e?void 0:e.env)&&"undefined"!=typeof chrome&&void 0!==(null===chrome||void 0===chrome?void 0:chrome.tabs)}emitClosed(){var e;(null===(e=this.settings)||void 0===e?void 0:e.useCoreInPopup)&&this.channel.resolveMessagePromises({code:"Method_Interrupted",error:o.POPUP.CLOSED}),this.emit(o.POPUP.CLOSED)}}r.PopupManager=p}}},{package:"@trezor/connect-web",file:"node_modules/@trezor/connect-web/lib/popup/index.js"}],[3271,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.showPopupRequest=void 0;const n="TrezorConnectInteractionLayer",i=`\n <div class="trezorconnect-container" id="${n}">\n <div class="trezorconnect-window">\n <div class="trezorconnect-head">\n <svg class="trezorconnect-logo" x="0px" y="0px" viewBox="0 0 163.7 41.9" width="78px" height="20px" preserveAspectRatio="xMinYMin meet">\n <polygon points="101.1,12.8 118.2,12.8 118.2,17.3 108.9,29.9 118.2,29.9 118.2,35.2 101.1,35.2 101.1,30.7 110.4,18.1 101.1,18.1"/>\n <path d="M158.8,26.9c2.1-0.8,4.3-2.9,4.3-6.6c0-4.5-3.1-7.4-7.7-7.4h-10.5v22.3h5.8v-7.5h2.2l4.1,7.5h6.7L158.8,26.9z M154.7,22.5 h-4V18h4c1.5,0,2.5,0.9,2.5,2.2C157.2,21.6,156.2,22.5,154.7,22.5z"/>\n <path d="M130.8,12.5c-6.8,0-11.6,4.9-11.6,11.5s4.9,11.5,11.6,11.5s11.7-4.9,11.7-11.5S137.6,12.5,130.8,12.5z M130.8,30.3 c-3.4,0-5.7-2.6-5.7-6.3c0-3.8,2.3-6.3,5.7-6.3c3.4,0,5.8,2.6,5.8,6.3C136.6,27.7,134.2,30.3,130.8,30.3z"/>\n <polygon points="82.1,12.8 98.3,12.8 98.3,18 87.9,18 87.9,21.3 98,21.3 98,26.4 87.9,26.4 87.9,30 98.3,30 98.3,35.2 82.1,35.2 "/>\n <path d="M24.6,9.7C24.6,4.4,20,0,14.4,0S4.2,4.4,4.2,9.7v3.1H0v22.3h0l14.4,6.7l14.4-6.7h0V12.9h-4.2V9.7z M9.4,9.7 c0-2.5,2.2-4.5,5-4.5s5,2,5,4.5v3.1H9.4V9.7z M23,31.5l-8.6,4l-8.6-4V18.1H23V31.5z"/>\n <path d="M79.4,20.3c0-4.5-3.1-7.4-7.7-7.4H61.2v22.3H67v-7.5h2.2l4.1,7.5H80l-4.9-8.3C77.2,26.1,79.4,24,79.4,20.3z M71,22.5h-4V18 h4c1.5,0,2.5,0.9,2.5,2.2C73.5,21.6,72.5,22.5,71,22.5z"/>\n <polygon points="40.5,12.8 58.6,12.8 58.6,18.1 52.4,18.1 52.4,35.2 46.6,35.2 46.6,18.1 40.5,18.1 "/>\n </svg>\n <div class="trezorconnect-close">\n <svg x="0px" y="0px" viewBox="24 24 60 60" width="24px" height="24px" preserveAspectRatio="xMinYMin meet">\n <polygon class="st0" points="40,67.9 42.1,70 55,57.1 67.9,70 70,67.9 57.1,55 70,42.1 67.9,40 55,52.9 42.1,40 40,42.1 52.9,55 "/>\n </svg>\n </div>\n </div>\n <div class="trezorconnect-body">\n <h3>Popup was blocked</h3>\n <p>Please click to "Continue" to open popup manually</p>\n <button class="trezorconnect-open">Continue</button>\n </div>\n </div>\n </div>\n`;r.showPopupRequest=(e,t)=>{if(document.getElementById(n))return;const r=document.createElement("div");r.id=n,r.className="trezorconnect-container",r.innerHTML=i,document.body&&document.body.appendChild(r);r.getElementsByClassName("trezorconnect-open")[0].onclick=()=>{e(),document.body&&document.body.removeChild(r)};r.getElementsByClassName("trezorconnect-close")[0].onclick=()=>{t(),document.body&&document.body.removeChild(r)}}}}},{package:"@trezor/connect-web",file:"node_modules/@trezor/connect-web/lib/popup/showPopupRequest.js"}],[3272,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});r.default=(e="",t)=>{const r=e||".trezor-webusb-button",n=document.querySelectorAll(r),i=`${t}?${Date.now()}`;n.forEach((e=>{if(e.getElementsByTagName("iframe").length<1){const t=e.getBoundingClientRect(),r=document.createElement("iframe");r.frameBorder="0",r.width=`${Math.round(t.width)}px`,r.height=`${Math.round(t.height)}px`,r.style.position="absolute",r.style.top="0px",r.style.left="0px",r.style.zIndex="1",r.setAttribute("allow","usb"),r.setAttribute("scrolling","no"),r.src=i,e.append(r)}}))}}}},{package:"@trezor/connect-web",file:"node_modules/@trezor/connect-web/lib/webusb/button.js"}],[3273,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i;Object.defineProperty(r,"__esModule",{value:!0}),r.NETWORK_IDS=r.PROTOCOL_MAGICS=void 0,function(e){e[e.mainnet=764824073]="mainnet",e[e.testnet_preprod=1]="testnet_preprod",e[e.testnet_preview=2]="testnet_preview",e[e.testnet_legacy=1097911063]="testnet_legacy"}(n||(r.PROTOCOL_MAGICS=n={})),function(e){e[e.mainnet=1]="mainnet",e[e.testnet=0]="testnet"}(i||(r.NETWORK_IDS=i={}))}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/constants/cardano.js"}],[3274,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.LIBUSB_ERROR_MESSAGE=r.serializeError=r.TypedError=r.TrezorError=r.ERROR_CODES=void 0,r.ERROR_CODES={Init_NotInitialized:"TrezorConnect not initialized",Init_AlreadyInitialized:"TrezorConnect has been already initialized",Init_IframeBlocked:"Iframe blocked",Init_IframeTimeout:"Iframe timeout",Init_ManifestMissing:"Manifest not set. Read more at https://github.com/trezor/trezor-suite/blob/develop/docs/packages/connect/index.md",Popup_ConnectionMissing:"Unable to establish connection with iframe",Transport_Missing:"Transport is missing",Transport_InvalidProtobuf:"",Method_InvalidPackage:"This package is not suitable to work with browser. Use @trezor/connect-web package instead",Method_InvalidParameter:"",Method_NotAllowed:"Method not allowed for this configuration",Method_PermissionsNotGranted:"Permissions not granted",Method_Cancel:"Cancelled",Method_Interrupted:"Popup closed",Method_UnknownCoin:"Coin not found",Method_AddressNotMatch:"Addresses do not match",Method_FirmwareUpdate_DownloadFailed:"Failed to download firmware binary",Method_Discovery_BundleException:"",Method_Override:"override",Method_NoResponse:"Call resolved without response",Backend_NotSupported:"BlockchainLink settings not found in coins.json",Backend_WorkerMissing:"",Backend_Disconnected:"Backend disconnected",Backend_Invalid:"Invalid backend",Backend_Error:"",Runtime:"",Device_NotFound:"Device not found",Device_InitializeFailed:"",Device_FwException:"",Device_ModeException:"",Device_Disconnected:"Device disconnected",Device_UsedElsewhere:"Device is used in another window",Device_InvalidState:"Passphrase is incorrect",Device_CallInProgress:"Device call in progress",Device_MultipleNotSupported:"Multiple devices are not supported",Device_MissingCapability:"Device is missing capability",Device_MissingCapabilityBtcOnly:"Device is missing capability (BTC only)",Failure_ActionCancelled:"Action cancelled by user",Failure_FirmwareError:"Firmware installation failed",Failure_UnknownCode:"Unknown error",Failure_PinCancelled:"PIN cancelled",Failure_PinInvalid:"PIN invalid",Failure_PinMismatch:"PIN mismatch",Failure_WipeCodeMismatch:"Wipe code mismatch",Deeplink_VersionMismatch:"Not compatible with current version of the app"};class n extends Error{constructor(e,t){super(t),this.code=e,this.message=t}}r.TrezorError=n;r.TypedError=(e,t)=>new n(e,t||r.ERROR_CODES[e]);r.serializeError=e=>e&&e.error instanceof Error?{error:e.error.message,code:e.error.code}:e instanceof n?{error:e.message,code:e.code}:e,r.LIBUSB_ERROR_MESSAGE="LIBUSB_ERROR"}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/constants/errors.js"}],[3275,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.REVISION_CHECK_RETRIABLE_ERRORS=r.HASH_CHECK_RETRIABLE_ERRORS=r.HASH_CHECK_MAX_ATTEMPTS=r.FW_HASH_SUPPORTED_VERSIONS=void 0,r.FW_HASH_SUPPORTED_VERSIONS=["1.11.1","2.5.1"],r.HASH_CHECK_MAX_ATTEMPTS=3,r.HASH_CHECK_RETRIABLE_ERRORS=["other-error"],r.REVISION_CHECK_RETRIABLE_ERRORS=["cannot-perform-check-offline","other-error"]}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/constants/firmware.js"}],[3276,{"./cardano":3273,"./errors":3274,"./firmware":3275,"./nem":3277,"./network":3278,"./utxo":3279,"@trezor/protobuf":3324,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PROTO=r.DEFAULT_SORTING_STRATEGY=r.FIRMWARE=r.NEM=r.CARDANO=r.NETWORK=r.ERRORS=void 0;const n=e("tslib");r.ERRORS=n.__importStar(e("./errors")),r.NETWORK=n.__importStar(e("./network")),r.CARDANO=n.__importStar(e("./cardano")),r.NEM=n.__importStar(e("./nem")),r.FIRMWARE=n.__importStar(e("./firmware"));var i=e("./utxo");Object.defineProperty(r,"DEFAULT_SORTING_STRATEGY",{enumerable:!0,get:function(){return i.DEFAULT_SORTING_STRATEGY}});var o=e("@trezor/protobuf");Object.defineProperty(r,"PROTO",{enumerable:!0,get:function(){return o.MessagesSchema}})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/constants/index.js"}],[3277,{"@trezor/schema-utils":3335},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EnumTxVersion=r.TxVersion=r.EnumTxType=r.TxType=r.EnumNetworks=r.Networks=void 0;const n=e("@trezor/schema-utils");var i,o,s;!function(e){e[e.mainnet=104]="mainnet",e[e.testnet=152]="testnet",e[e.mijin=96]="mijin"}(i||(r.Networks=i={})),r.EnumNetworks=n.Type.Enum(i),function(e){e[e.TRANSFER=257]="TRANSFER",e[e.COSIGNING=258]="COSIGNING",e[e.IMPORTANCE_TRANSFER=2049]="IMPORTANCE_TRANSFER",e[e.AGGREGATE_MODIFICATION=4097]="AGGREGATE_MODIFICATION",e[e.MULTISIG_SIGNATURE=4098]="MULTISIG_SIGNATURE",e[e.MULTISIG=4100]="MULTISIG",e[e.PROVISION_NAMESPACE=8193]="PROVISION_NAMESPACE",e[e.MOSAIC_CREATION=16385]="MOSAIC_CREATION",e[e.SUPPLY_CHANGE=16386]="SUPPLY_CHANGE"}(o||(r.TxType=o={})),r.EnumTxType=n.Type.Enum(o),function(e){e[e.mainnet=1744830464]="mainnet",e[e.testnet=-1744830464]="testnet",e[e.mijin=1610612736]="mijin"}(s||(r.TxVersion=s={})),r.EnumTxVersion=n.Type.Enum(s)}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/constants/nem.js"}],[3278,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MODULES=r.TYPES=void 0,r.TYPES={bitcoin:"Bitcoin",ethereum:"Ethereum",eos:"Eos",nem:"NEM",stellar:"Stellar",cardano:"Cardano",ripple:"Ripple",tezos:"Tezos",binance:"Binance",solana:"Solana"},r.MODULES=["binance","cardano","eos","ethereum","nem","ripple","solana","stellar","tezos"]}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/constants/network.js"}],[3279,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_SORTING_STRATEGY=void 0,r.DEFAULT_SORTING_STRATEGY="random"}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/constants/utxo.js"}],[3280,{"@trezor/transport/lib/constants":3543},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.config=void 0;const n=e("@trezor/transport/lib/constants");r.config={webusb:n.TREZOR_USB_DESCRIPTORS,whitelist:[{origin:"chrome-extension://imloifkgjagghnncjkhggdhalmcnfklk",priority:1},{origin:"chrome-extension://niebkpllfhmpfbffbfifagfgoamhpflf",priority:1},{origin:"file://",priority:2},{origin:"trezor.io",priority:0},{origin:"sldev.cz",priority:0},{origin:"localhost",priority:0},{origin:"trezoriovpjcahpzkrewelclulmszwbqpzmzgub37gbcjlvluxtruqad.onion",priority:0}],management:[{origin:"trezor.io"},{origin:"sldev.cz"},{origin:"localhost"}],knownHosts:[{origin:"imloifkgjagghnncjkhggdhalmcnfklk",label:"Trezor Password Manager (Develop)",icon:""},{origin:"niebkpllfhmpfbffbfifagfgoamhpflf",label:"Trezor Password Manager",icon:""},{origin:"mnpfhpndmjholfdlhpkjfmjkgppmodaf",label:"MetaMask",icon:""},{origin:"webextension@metamask.io",label:"MetaMask",icon:""},{origin:"nkbihfbeogaeaoehlefnkodbefgpgknn",label:"MetaMask",icon:""},{origin:"bpcdaglidgnlggelgbjfagekoapjmccp",label:"Rainbow DEV",icon:""},{origin:"opfgelmcmbiajamepnmloijbpoleiama",label:"Rainbow",icon:""},{origin:"acmacodkjbdgmoleebolmdjonilkdbch",label:"Rabby",icon:""},{origin:"ehnpnhnhcickeknioaiodjmielfaoajd",label:"Ambire DEV",icon:""},{origin:"ehgjhhccekdedpbkifaojjaefeohnoea",label:"Ambire",icon:""},{origin:"file://",label:" ",icon:""}],onionDomains:{"trezor.io":"trezoriovpjcahpzkrewelclulmszwbqpzmzgub37gbcjlvluxtruqad.onion"},supportedBrowsers:{chrome:{version:59,download:"https://www.google.com/chrome/",update:"https://support.google.com/chrome/answer/95414"},chromium:{version:59,download:"https://www.chromium.org/",update:"https://www.chromium.org/"},electron:{version:0,download:"https://www.electronjs.org/",update:"https://www.electronjs.org/"},firefox:{version:54,download:"https://www.mozilla.org/en-US/firefox/new/",update:"https://support.mozilla.org/en-US/kb/update-firefox-latest-version"},brave:{version:59,download:"https://brave.com/download/",update:"https://brave.com/download/"},edge:{version:79,download:"https://www.microsoft.com/en-us/edge",update:"https://www.microsoft.com/en-us/edge"},opera:{version:95,download:"https://www.opera.com/download",update:"https://www.opera.com/download"}},supportedFirmware:[{coin:["xrp","txrp"],methods:["getAccountInfo"],min:{T1B1:"0",T2T1:"2.1.0"},max:undefined,comment:["Since firmware 2.1.0 there is a new protobuf field 'destination_tag' in RippleSignTx"]},{coin:["bnb"],min:{T1B1:"1.9.0",T2T1:"2.3.0"},comment:["There were protobuf backwards incompatible changes with introduction of 1.9.0/2.3.0 firmwares"]},{coin:["eth","tsep","thol"],min:{T1B1:"1.8.0",T2T1:"2.1.0"},comment:["There were protobuf backwards incompatible changes."]},{coin:["ada","tada"],min:{T1B1:"0",T2T1:"2.4.3"},comment:["Since 2.4.3 there is initialize.derive_cardano message"]},{methods:["rippleGetAddress","rippleSignTransaction"],min:{T1B1:"0",T2T1:"2.1.0"},comment:["Since firmware 2.1.0 there is a new protobuf field 'destination_tag' in RippleSignTx"]},{methods:["cardanoGetAddress","cardanoGetPublicKey"],min:{T1B1:"0",T2T1:"2.4.3"},comment:["Since 2.4.3 Cardano derivation behavior has changed"]},{methods:["cardanoSignTransaction"],min:{T1B1:"0",T2T1:"2.6.0"},comment:["Before 2.6.0 not all Cardano transactions were supported"]},{methods:["cardanoGetNativeScriptHash"],min:{T1B1:"0",T2T1:"2.4.3"},comment:["Since 2.4.3 Cardano derivation behavior has changed"]},{methods:["tezosSignTransaction"],min:{T1B1:"0",T2T1:"2.1.8"},comment:["Since 2.1.8 there are new protobuf fields in tezos transaction (Babylon fork)"]},{methods:["stellarSignTransaction"],min:{T1B1:"1.9.0",T2T1:"2.3.0"},comment:["There were protobuf backwards incompatible changes with introduction of 1.9.0/2.3.0 firmwares"]},{capabilities:["replaceTransaction","amountUnit"],min:{T1B1:"1.9.4",T2T1:"2.3.5"},comment:["new sign tx process since 1.9.4/2.3.5"]},{capabilities:["decreaseOutput"],min:{T1B1:"1.10.0",T2T1:"2.4.0"},comment:["allow reduce output in RBF transaction since 1.10.0/2.4.0"]},{capabilities:["eip1559"],min:{T1B1:"1.10.4",T2T1:"2.4.2"},comment:["new eth transaction pricing mechanism (EIP1559) since 1.10.4/2.4.2"]},{capabilities:["taproot","signMessageNoScriptType"],min:{T1B1:"1.10.4",T2T1:"2.4.3"},comment:["new btc accounts taproot since 1.10.4/2.4.3 (BTC + TEST only)","SignMessage with no_script_type support"]},{coin:["dcr","tdcr"],methods:["signTransaction"],min:{T1B1:"1.10.1",T2T1:"2.4.0"},comment:[""]},{methods:["ethereumSignTypedData"],min:{T1B1:"1.10.5",T2T1:"2.4.3"},comment:["EIP-712 typed signing support added in 1.10.5/2.4.3"]},{capabilities:["eip712-domain-only"],min:{T1B1:"1.10.6",T2T1:"2.4.4"},comment:["EIP-712 domain-only signing, when primaryType=EIP712Domain"]},{capabilities:["coinjoin"],methods:["authorizeCoinjoin","cancelCoinjoinAuthorization","getOwnershipId","getOwnershipProof","setBusy","unlockPath"],min:{T1B1:"1.12.1",T2T1:"2.5.3"}},{methods:["showDeviceTutorial","authenticateDevice"],min:{T1B1:"0",T2T1:"0",T3T1:"2.8.0"}},{methods:["getFirmwareHash"],min:{T1B1:"1.11.1",T2T1:"2.5.1"}},{methods:["solanaGetPublicKey","solanaGetAddress","solanaSignTransaction"],min:{T1B1:"0",T2T1:"2.6.4",T2B1:"2.6.4"}},{capabilities:["chunkify"],min:{T1B1:"0",T2T1:"2.6.3",T2B1:"2.6.3"},comment:["Since firmware 2.6.3 there is a new protobuf field 'chunkify' in almost all getAddress and signTx methods"]},{methods:["changeLanguage"],min:{T1B1:"0",T2T1:"2.7.0",T2B1:"2.7.0"}}]}}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/data/config.js"}],[3281,{"./version":3282},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseConnectSettings=r.corsValidator=r.DEFAULT_PRIORITY=void 0;const n=e("./version");r.DEFAULT_PRIORITY=2;const i={configSrc:"./data/config.json",version:n.VERSION,debug:!1,priority:r.DEFAULT_PRIORITY,trustedHost:!0,connectSrc:n.DEFAULT_DOMAIN,iframeSrc:`${n.DEFAULT_DOMAIN}iframe.html`,popup:!1,popupSrc:`${n.DEFAULT_DOMAIN}popup.html`,webusbSrc:`${n.DEFAULT_DOMAIN}webusb.html`,transports:undefined,pendingTransportEvent:!0,env:"node",lazyLoad:!1,timestamp:(new Date).getTime(),interactionTimeout:600,sharedLogger:!0,deeplinkUrl:`${n.DEFAULT_DOMAIN}deeplink/${n.DEEPLINK_VERSION}/`,transportReconnect:!0};r.corsValidator=e=>{if("string"==typeof e)return e.match(/^https:\/\/([A-Za-z0-9\-_]+\.)*trezor\.io\//)||e.match(/^https?:\/\/localhost:[58][0-9]{3}\//)||e.match(/^https:\/\/([A-Za-z0-9\-_]+\.)*sldev\.cz\//)||e.match(/^https?:\/\/([A-Za-z0-9\-_]+\.)*trezoriovpjcahpzkrewelclulmszwbqpzmzgub37gbcjlvluxtruqad\.onion\//)?e:void 0};r.parseConnectSettings=(e={})=>{var t;const o={...i};"debug"in e&&("boolean"==typeof e.debug?o.debug=e.debug:"string"==typeof e.debug&&(o.debug="true"===e.debug)),!1===e.trustedHost&&(o.trustedHost=e.trustedHost),"string"==typeof e.connectSrc&&(null===(t=e.connectSrc)||void 0===t?void 0:t.startsWith("http"))?o.connectSrc=(0,r.corsValidator)(e.connectSrc):o.trustedHost&&(o.connectSrc=e.connectSrc);const s=o.connectSrc||n.DEFAULT_DOMAIN;return o.iframeSrc=`${s}iframe.html`,o.popupSrc=`${s}popup.html`,o.webusbSrc=`${s}webusb.html`,o.deeplinkUrl=`${s}deeplink/${n.DEEPLINK_VERSION}/`,"boolean"==typeof e.transportReconnect&&(o.transportReconnect=e.transportReconnect),Array.isArray(e.transports)&&(o.transports=e.transports),"boolean"==typeof e.popup&&(o.popup=e.popup),"boolean"==typeof e.lazyLoad&&(o.lazyLoad=e.lazyLoad),"boolean"==typeof e.pendingTransportEvent&&(o.pendingTransportEvent=e.pendingTransportEvent),"string"==typeof e.extension&&(o.extension=e.extension),"string"==typeof e.env&&(o.env=e.env),"number"==typeof e.timestamp&&(o.timestamp=e.timestamp),"number"==typeof e.interactionTimeout&&(o.interactionTimeout=e.interactionTimeout),"object"==typeof e.manifest&&(o.manifest=(e=>{if(e&&"string"==typeof e.email&&"string"==typeof e.appUrl)return{email:e.email,appUrl:e.appUrl}})(e.manifest)),"boolean"==typeof e.sharedLogger&&(o.sharedLogger=e.sharedLogger),"string"==typeof e.coreMode&&["auto","popup","iframe"].includes(e.coreMode)&&(o.coreMode=e.coreMode),"boolean"==typeof e._extendWebextensionLifetime&&(o._extendWebextensionLifetime=e._extendWebextensionLifetime),"string"!=typeof e._sessionsBackgroundUrl&&null!==e._sessionsBackgroundUrl||(o._sessionsBackgroundUrl=e._sessionsBackgroundUrl),"string"==typeof e.binFilesBaseUrl&&(o.binFilesBaseUrl=e.binFilesBaseUrl),"boolean"==typeof e.enableFirmwareHashCheck&&(o.enableFirmwareHashCheck=Boolean(e.enableFirmwareHashCheck)),o}}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/data/connectSettings.js"}],[3282,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.DEEPLINK_VERSION=r.CONTENT_SCRIPT_VERSION=r.DEFAULT_DOMAIN=r.VERSION=void 0,r.VERSION="9.4.7";const n=r.VERSION.split(".").map((e=>parseInt(e,10))),i=r.VERSION.includes("beta");r.DEFAULT_DOMAIN=i?`https://connect.trezor.io/${r.VERSION}/`:`https://connect.trezor.io/${n[0]}/`,r.CONTENT_SCRIPT_VERSION=1,r.DEEPLINK_VERSION=1}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/data/version.js"}],[3283,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createBlockchainMessage=r.BLOCKCHAIN=r.BLOCKCHAIN_EVENT=void 0,r.BLOCKCHAIN_EVENT="BLOCKCHAIN_EVENT",r.BLOCKCHAIN={CONNECT:"blockchain-connect",RECONNECTING:"blockchain-reconnecting",ERROR:"blockchain-error",BLOCK:"blockchain-block",NOTIFICATION:"blockchain-notification",FIAT_RATES_UPDATE:"fiat-rates-update"};r.createBlockchainMessage=(e,t)=>({event:r.BLOCKCHAIN_EVENT,type:e,payload:t})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/events/blockchain.js"}],[3284,{"../constants/errors":3274},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createResponseMessage=r.RESPONSE_EVENT=void 0;const n=e("../constants/errors");r.RESPONSE_EVENT="RESPONSE_EVENT";r.createResponseMessage=(e,t,i,o)=>({event:r.RESPONSE_EVENT,type:r.RESPONSE_EVENT,id:e,success:t,payload:t?i:(0,n.serializeError)(i),device:o?{path:null==o?void 0:o.getUniquePath(),state:null==o?void 0:o.getState(),instance:null==o?void 0:o.getInstance()}:undefined})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/events/call.js"}],[3285,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createErrorMessage=r.parseMessage=r.CORE_EVENT=void 0,r.CORE_EVENT="CORE_EVENT";r.parseMessage=e=>{const t={event:e.event,type:e.type,payload:e.payload,device:e.device};return"number"==typeof e.id&&(t.id=e.id),"boolean"==typeof e.success&&(t.success=e.success),t};r.createErrorMessage=e=>({success:!1,payload:{error:e.message,code:e.code}})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/events/core.js"}],[3286,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createDeviceMessage=r.DEVICE=r.DEVICE_EVENT=void 0,r.DEVICE_EVENT="DEVICE_EVENT",r.DEVICE={CONNECT:"device-connect",CONNECT_UNACQUIRED:"device-connect_unacquired",DISCONNECT:"device-disconnect",CHANGED:"device-changed",BUTTON:"button",PIN:"pin",PASSPHRASE:"passphrase",PASSPHRASE_ON_DEVICE:"passphrase_on_device",WORD:"word"};r.createDeviceMessage=(e,t)=>({event:r.DEVICE_EVENT,type:e,payload:t})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/events/device.js"}],[3287,{"./ui-request":3292},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createIFrameMessage=r.IFRAME=void 0;const n=e("./ui-request");r.IFRAME={BOOTSTRAP:"iframe-bootstrap",LOADED:"iframe-loaded",INIT:"iframe-init",ERROR:"iframe-error",CALL:"iframe-call",LOG:"iframe-log"};r.createIFrameMessage=(e,t)=>({event:n.UI_EVENT,type:e,payload:t})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/events/iframe.js"}],[3288,{"./blockchain":3283,"./call":3284,"./core":3285,"./device":3286,"./iframe":3287,"./popup":3289,"./transport":3290,"./ui-promise":3291,"./ui-request":3292,"./ui-response":3293,"./webextension":3294,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UI=void 0;const n=e("tslib"),i=e("./ui-request"),o=e("./ui-response");n.__exportStar(e("./blockchain"),r),n.__exportStar(e("./call"),r),n.__exportStar(e("./core"),r),n.__exportStar(e("./device"),r),n.__exportStar(e("./iframe"),r),n.__exportStar(e("./popup"),r),n.__exportStar(e("./transport"),r),n.__exportStar(e("./ui-promise"),r),n.__exportStar(e("./ui-request"),r),n.__exportStar(e("./ui-response"),r),n.__exportStar(e("./webextension"),r),r.UI={...i.UI_REQUEST,...o.UI_RESPONSE}}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/events/index.js"}],[3289,{"./ui-request":3292},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createPopupMessage=r.POPUP=void 0;const n=e("./ui-request");r.POPUP={BOOTSTRAP:"popup-bootstrap",LOADED:"popup-loaded",CORE_LOADED:"popup-core-loaded",INIT:"popup-init",ERROR:"popup-error",EXTENSION_USB_PERMISSIONS:"open-usb-permissions",HANDSHAKE:"popup-handshake",CLOSED:"popup-closed",CANCEL_POPUP_REQUEST:"ui-cancel-popup-request",CLOSE_WINDOW:"window.close",ANALYTICS_RESPONSE:"popup-analytics-response",CONTENT_SCRIPT_LOADED:"popup-content-script-loaded",METHOD_INFO:"popup-method-info"};r.createPopupMessage=(e,t)=>({event:n.UI_EVENT,type:e,payload:t})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/events/popup.js"}],[3290,{"../constants/errors":3274,"@trezor/transport/lib/constants":3543},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createTransportMessage=r.TRANSPORT_EVENT=r.TRANSPORT=void 0;const n=e("../constants/errors");var i=e("@trezor/transport/lib/constants");Object.defineProperty(r,"TRANSPORT",{enumerable:!0,get:function(){return i.TRANSPORT}}),r.TRANSPORT_EVENT="TRANSPORT_EVENT";r.createTransportMessage=(e,t)=>({event:r.TRANSPORT_EVENT,type:e,payload:"error"in t?(0,n.serializeError)(t):t})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/events/transport.js"}],[3291,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/events/ui-promise.js"}],[3292,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createUiMessage=r.UI_REQUEST=r.UI_EVENT=void 0,r.UI_EVENT="UI_EVENT",r.UI_REQUEST={TRANSPORT:"ui-no_transport",BOOTLOADER:"ui-device_bootloader_mode",NOT_IN_BOOTLOADER:"ui-device_not_in_bootloader_mode",REQUIRE_MODE:"ui-device_require_mode",INITIALIZE:"ui-device_not_initialized",SEEDLESS:"ui-device_seedless",FIRMWARE_OLD:"ui-device_firmware_old",FIRMWARE_OUTDATED:"ui-device_firmware_outdated",FIRMWARE_NOT_SUPPORTED:"ui-device_firmware_unsupported",FIRMWARE_NOT_COMPATIBLE:"ui-device_firmware_not_compatible",FIRMWARE_NOT_INSTALLED:"ui-device_firmware_not_installed",FIRMWARE_PROGRESS:"ui-firmware-progress",FIRMWARE_RECONNECT:"ui-firmware_reconnect",DEVICE_NEEDS_BACKUP:"ui-device_needs_backup",REQUEST_UI_WINDOW:"ui-request_window",CLOSE_UI_WINDOW:"ui-close_window",REQUEST_PERMISSION:"ui-request_permission",REQUEST_CONFIRMATION:"ui-request_confirmation",REQUEST_PIN:"ui-request_pin",INVALID_PIN:"ui-invalid_pin",REQUEST_PASSPHRASE:"ui-request_passphrase",REQUEST_PASSPHRASE_ON_DEVICE:"ui-request_passphrase_on_device",INVALID_PASSPHRASE:"ui-invalid_passphrase",CONNECT:"ui-connect",LOADING:"ui-loading",SET_OPERATION:"ui-set_operation",SELECT_DEVICE:"ui-select_device",SELECT_ACCOUNT:"ui-select_account",SELECT_FEE:"ui-select_fee",UPDATE_CUSTOM_FEE:"ui-update_custom_fee",INSUFFICIENT_FUNDS:"ui-insufficient_funds",REQUEST_BUTTON:"ui-button",REQUEST_WORD:"ui-request_word",LOGIN_CHALLENGE_REQUEST:"ui-login_challenge_request",BUNDLE_PROGRESS:"ui-bundle_progress",ADDRESS_VALIDATION:"ui-address_validation",IFRAME_FAILURE:"ui-iframe_failure"};r.createUiMessage=(e,t)=>({event:r.UI_EVENT,type:e,payload:t})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/events/ui-request.js"}],[3293,{"./ui-request":3292},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createUiResponse=r.UI_RESPONSE=void 0;const n=e("./ui-request");r.UI_RESPONSE={RECEIVE_PERMISSION:"ui-receive_permission",RECEIVE_CONFIRMATION:"ui-receive_confirmation",RECEIVE_PIN:"ui-receive_pin",RECEIVE_PASSPHRASE:"ui-receive_passphrase",RECEIVE_DEVICE:"ui-receive_device",RECEIVE_ACCOUNT:"ui-receive_account",RECEIVE_FEE:"ui-receive_fee",RECEIVE_WORD:"ui-receive_word",INVALID_PASSPHRASE_ACTION:"ui-invalid_passphrase_action",CHANGE_SETTINGS:"ui-change_settings",LOGIN_CHALLENGE_RESPONSE:"ui-login_challenge_response"};r.createUiResponse=(e,t)=>({event:n.UI_EVENT,type:e,payload:t})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/events/ui-response.js"}],[3294,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WEBEXTENSION=void 0,r.WEBEXTENSION={USB_PERMISSIONS_BROADCAST:"usb-permissions",USB_PERMISSIONS_INIT:"usb-permissions-init",USB_PERMISSIONS_CLOSE:"usb-permissions-close",USB_PERMISSIONS_FINISHED:"usb-permissions-finished",CHANNEL_HANDSHAKE_CONFIRM:"channel-handshake-confirm"}}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/events/webextension.js"}],[3295,{"./constants":3276,"./data/connectSettings":3281,"./events":3288,"./types":3313,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseConnectSettings=void 0;const n=e("tslib");n.__exportStar(e("./constants"),r),n.__exportStar(e("./events"),r),n.__exportStar(e("./types"),r);var i=e("./data/connectSettings");Object.defineProperty(r,"parseConnectSettings",{enumerable:!0,get:function(){return i.parseConnectSettings}})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/exports.js"}],[3296,{"./events":3288},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.factory=void 0;const n=e("./events");r.factory=({eventEmitter:e,manifest:t,init:r,call:i,requestLogin:o,uiResponse:s,cancel:a,dispose:c},u={})=>({manifest:t,init:r,on:(t,r)=>{e.on(t,r)},off:(t,r)=>{e.removeListener(t,r)},removeAllListeners:t=>{"string"==typeof t?e.removeAllListeners(t):e.removeAllListeners()},uiResponse:s,blockchainGetAccountBalanceHistory:e=>i({...e,method:"blockchainGetAccountBalanceHistory"}),blockchainGetCurrentFiatRates:e=>i({...e,method:"blockchainGetCurrentFiatRates"}),blockchainGetFiatRatesForTimestamps:e=>i({...e,method:"blockchainGetFiatRatesForTimestamps"}),blockchainGetInfo:e=>i({...e,method:"blockchainGetInfo"}),blockchainEvmRpcCall:e=>i({...e,method:"blockchainEvmRpcCall"}),blockchainDisconnect:e=>i({...e,method:"blockchainDisconnect"}),blockchainEstimateFee:e=>i({...e,method:"blockchainEstimateFee"}),blockchainGetTransactions:e=>i({...e,method:"blockchainGetTransactions"}),blockchainSetCustomBackend:e=>i({...e,method:"blockchainSetCustomBackend"}),blockchainSubscribe:e=>i({...e,method:"blockchainSubscribe"}),blockchainSubscribeFiatRates:e=>i({...e,method:"blockchainSubscribeFiatRates"}),blockchainUnsubscribe:e=>i({...e,method:"blockchainUnsubscribe"}),blockchainUnsubscribeFiatRates:e=>i({...e,method:"blockchainUnsubscribeFiatRates"}),requestLogin:e=>o(e),cardanoGetAddress:t=>i({...t,method:"cardanoGetAddress",useEventListener:e.listenerCount(n.UI.ADDRESS_VALIDATION)>0}),cardanoGetNativeScriptHash:e=>i({...e,method:"cardanoGetNativeScriptHash"}),cardanoGetPublicKey:e=>i({...e,method:"cardanoGetPublicKey"}),cardanoSignTransaction:e=>i({...e,method:"cardanoSignTransaction"}),cardanoComposeTransaction:e=>i({...e,method:"cardanoComposeTransaction"}),cipherKeyValue:e=>i({...e,method:"cipherKeyValue"}),composeTransaction:e=>i({...e,method:"composeTransaction"}),ethereumGetAddress:t=>i({...t,method:"ethereumGetAddress",useEventListener:e.listenerCount(n.UI.ADDRESS_VALIDATION)>0}),ethereumGetPublicKey:e=>i({...e,method:"ethereumGetPublicKey"}),ethereumSignMessage:e=>i({...e,method:"ethereumSignMessage"}),ethereumSignTransaction:e=>i({...e,method:"ethereumSignTransaction"}),ethereumSignTypedData:e=>i({...e,method:"ethereumSignTypedData"}),ethereumVerifyMessage:e=>i({...e,method:"ethereumVerifyMessage"}),getAccountDescriptor:e=>i({...e,method:"getAccountDescriptor"}),getAccountInfo:e=>i({...e,method:"getAccountInfo"}),getAddress:t=>i({...t,method:"getAddress",useEventListener:e.listenerCount(n.UI.ADDRESS_VALIDATION)>0}),getDeviceState:e=>i({...e,method:"getDeviceState"}),getFeatures:e=>i({...e,method:"getFeatures"}),getFirmwareHash:e=>i({...e,method:"getFirmwareHash"}),getOwnershipId:e=>i({...e,method:"getOwnershipId"}),getOwnershipProof:e=>i({...e,method:"getOwnershipProof"}),getPublicKey:e=>i({...e,method:"getPublicKey"}),nemGetAddress:t=>i({...t,method:"nemGetAddress",useEventListener:e.listenerCount(n.UI.ADDRESS_VALIDATION)>0}),nemSignTransaction:e=>i({...e,method:"nemSignTransaction"}),pushTransaction:e=>i({...e,method:"pushTransaction"}),rippleGetAddress:t=>i({...t,method:"rippleGetAddress",useEventListener:e.listenerCount(n.UI.ADDRESS_VALIDATION)>0}),rippleSignTransaction:e=>i({...e,method:"rippleSignTransaction"}),signMessage:e=>i({...e,method:"signMessage"}),signTransaction:e=>i({...e,method:"signTransaction"}),solanaGetPublicKey:e=>i({...e,method:"solanaGetPublicKey"}),solanaGetAddress:e=>i({...e,method:"solanaGetAddress"}),solanaSignTransaction:e=>i({...e,method:"solanaSignTransaction"}),stellarGetAddress:t=>i({...t,method:"stellarGetAddress",useEventListener:e.listenerCount(n.UI.ADDRESS_VALIDATION)>0}),stellarSignTransaction:e=>i({...e,method:"stellarSignTransaction"}),tezosGetAddress:t=>i({...t,method:"tezosGetAddress",useEventListener:e.listenerCount(n.UI.ADDRESS_VALIDATION)>0}),tezosGetPublicKey:e=>i({...e,method:"tezosGetPublicKey"}),tezosSignTransaction:e=>i({...e,method:"tezosSignTransaction"}),unlockPath:e=>i({...e,method:"unlockPath"}),eosGetPublicKey:e=>i({...e,method:"eosGetPublicKey"}),eosSignTransaction:e=>i({...e,method:"eosSignTransaction"}),binanceGetAddress:t=>i({...t,method:"binanceGetAddress",useEventListener:e.listenerCount(n.UI.ADDRESS_VALIDATION)>0}),binanceGetPublicKey:e=>i({...e,method:"binanceGetPublicKey"}),binanceSignTransaction:e=>i({...e,method:"binanceSignTransaction"}),verifyMessage:e=>i({...e,method:"verifyMessage"}),resetDevice:e=>i({...e,method:"resetDevice"}),loadDevice:e=>i({...e,method:"loadDevice"}),wipeDevice:e=>i({...e,method:"wipeDevice"}),applyFlags:e=>i({...e,method:"applyFlags"}),applySettings:e=>i({...e,method:"applySettings"}),getSettings:()=>i({method:"getSettings"}),authenticateDevice:e=>i({...e,method:"authenticateDevice"}),authorizeCoinjoin:e=>i({...e,method:"authorizeCoinjoin"}),cancelCoinjoinAuthorization:e=>i({...e,method:"cancelCoinjoinAuthorization"}),showDeviceTutorial:e=>i({...e,method:"showDeviceTutorial"}),backupDevice:e=>i({...e,method:"backupDevice"}),changeLanguage:e=>i({...e,method:"changeLanguage"}),changePin:e=>i({...e,method:"changePin"}),changeWipeCode:e=>i({...e,method:"changeWipeCode"}),firmwareUpdate:e=>i({...e,method:"firmwareUpdate"}),recoveryDevice:e=>i({...e,method:"recoveryDevice"}),getCoinInfo:e=>i({...e,method:"getCoinInfo"}),setBrightness:e=>i({...e,method:"setBrightness"}),setBusy:e=>i({...e,method:"setBusy"}),setProxy:e=>i({...e,method:"setProxy"}),dispose:c,cancel:a,...u})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/factory.js"}],[3297,{"../constants":3276,"../utils/proxy-event-emitter":3317},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TrezorConnectDynamic=void 0;const n=e("../constants"),i=e("../utils/proxy-event-emitter");r.TrezorConnectDynamic=class{constructor({implementations:e,getInitTarget:t,handleErrorFallback:r}){this.implementations=e,this.currentTarget=this.implementations[0].type,this.getInitTarget=t,this.handleErrorFallback=r,this.eventEmitter=new i.ProxyEventEmitter(this.implementations.map((e=>e.impl.eventEmitter)))}getTarget(){return this.implementations.find((e=>e.type===this.currentTarget)).impl}async switchTarget(e){if(this.currentTarget!==e){if(!this.lastSettings)throw n.ERRORS.TypedError("Init_NotInitialized");await this.getTarget().dispose(),this.currentTarget=e,await this.getTarget().init(this.lastSettings)}}manifest(e){this.lastSettings={...this.lastSettings,manifest:e},this.getTarget().manifest(e)}async init(e){if(!(null==e?void 0:e.manifest))throw n.ERRORS.TypedError("Init_ManifestMissing");this.lastSettings=e,this.currentTarget=this.getInitTarget(e);try{return await this.getTarget().init(this.lastSettings)}catch(t){if(await this.handleErrorFallback(t.code))return await this.getTarget().init(e);throw t}}async call(e){const t=await this.getTarget().call(e);return!t.success&&await this.handleErrorFallback(t.payload.code)?await this.getTarget().call(e):t}requestLogin(e){return this.getTarget().requestLogin(e)}uiResponse(e){return this.getTarget().uiResponse(e)}cancel(e){return this.getTarget().cancel(e)}dispose(){return this.eventEmitter.removeAllListeners(),this.getTarget().dispose()}}}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/impl/dynamic.js"}],[3298,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/account.js"}],[3299,{"../../../constants":3276,"../../params":3314,"@trezor/schema-utils":3335},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BinanceSignTransaction=r.BinancePreparedTransaction=r.BinancePreparedMessage=r.BinanceSDKTransaction=void 0;const n=e("@trezor/schema-utils"),i=e("../../../constants"),o=e("../../params");r.BinanceSDKTransaction=n.Type.Object({chain_id:n.Type.String(),account_number:n.Type.Optional(n.Type.Number()),memo:n.Type.Optional(n.Type.String()),sequence:n.Type.Optional(n.Type.Number()),source:n.Type.Optional(n.Type.Number()),transfer:n.Type.Optional(i.PROTO.BinanceTransferMsg),placeOrder:n.Type.Optional(i.PROTO.BinanceOrderMsg),cancelOrder:n.Type.Optional(i.PROTO.BinanceCancelMsg)}),r.BinancePreparedMessage=n.Type.Union([n.Type.Intersect([i.PROTO.BinanceTransferMsg,n.Type.Object({type:n.Type.Literal("BinanceTransferMsg")})]),n.Type.Intersect([i.PROTO.BinanceOrderMsg,n.Type.Object({type:n.Type.Literal("BinanceOrderMsg")})]),n.Type.Intersect([i.PROTO.BinanceCancelMsg,n.Type.Object({type:n.Type.Literal("BinanceCancelMsg")})])]),r.BinancePreparedTransaction=n.Type.Intersect([r.BinanceSDKTransaction,n.Type.Object({messages:n.Type.Array(r.BinancePreparedMessage),account_number:n.Type.Number(),sequence:n.Type.Number(),source:n.Type.Number()})]),r.BinanceSignTransaction=n.Type.Object({path:o.DerivationPath,transaction:r.BinanceSDKTransaction,chunkify:n.Type.Optional(n.Type.Boolean())})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/api/binance/index.js"}],[3300,{"../../params":3314,"@trezor/schema-utils":3335},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.VerifyMessage=r.SignMessage=void 0;const n=e("@trezor/schema-utils"),i=e("../../params");r.SignMessage=n.Type.Object({path:i.DerivationPath,coin:n.Type.Optional(n.Type.String()),message:n.Type.String(),hex:n.Type.Optional(n.Type.Boolean()),no_script_type:n.Type.Optional(n.Type.Boolean())}),r.VerifyMessage=n.Type.Object({address:n.Type.String(),signature:n.Type.String(),message:n.Type.String(),coin:n.Type.String(),hex:n.Type.Optional(n.Type.Boolean())})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/api/bitcoin/index.js"}],[3301,{"../../../constants":3276,"../../params":3314,"@trezor/schema-utils":3335},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CardanoSignedTxData=r.CardanoAuxiliaryDataSupplement=r.CardanoSignedTxWitness=r.CardanoSignTransactionExtended=r.CardanoSignTransaction=r.CardanoAuxiliaryData=r.CardanoCVoteRegistrationParameters=r.CardanoCVoteRegistrationDelegation=r.CardanoReferenceInput=r.CardanoRequiredSigner=r.CardanoCollateralInput=r.CardanoMint=r.CardanoWithdrawal=r.CardanoCertificate=r.CardanoDRep=r.CardanoPoolParameters=r.CardanoPoolMargin=r.CardanoPoolMetadata=r.CardanoPoolRelay=r.CardanoPoolOwner=r.CardanoOutput=r.CardanoAssetGroup=r.CardanoToken=r.CardanoInput=r.CardanoGetPublicKey=r.CardanoNativeScriptHash=r.CardanoGetNativeScriptHash=r.CardanoNativeScript=r.CardanoGetAddress=r.CardanoAddressParameters=r.CardanoCertificatePointer=void 0;const n=e("@trezor/schema-utils"),i=e("../../../constants"),o=e("../../params");r.CardanoCertificatePointer=n.Type.Object({blockIndex:n.Type.Number(),txIndex:n.Type.Number(),certificateIndex:n.Type.Number()}),r.CardanoAddressParameters=n.Type.Object({addressType:i.PROTO.EnumCardanoAddressType,path:n.Type.Optional(o.DerivationPath),stakingPath:n.Type.Optional(o.DerivationPath),stakingKeyHash:n.Type.Optional(n.Type.String()),certificatePointer:n.Type.Optional(r.CardanoCertificatePointer),paymentScriptHash:n.Type.Optional(n.Type.String()),stakingScriptHash:n.Type.Optional(n.Type.String())}),r.CardanoGetAddress=n.Type.Object({addressParameters:r.CardanoAddressParameters,protocolMagic:n.Type.Number(),networkId:n.Type.Number(),address:n.Type.Optional(n.Type.String()),showOnTrezor:n.Type.Optional(n.Type.Boolean()),derivationType:n.Type.Optional(i.PROTO.EnumCardanoDerivationType),chunkify:n.Type.Optional(n.Type.Boolean())}),r.CardanoNativeScript=n.Type.Recursive((e=>n.Type.Object({type:i.PROTO.EnumCardanoNativeScriptType,scripts:n.Type.Optional(n.Type.Array(e)),keyHash:n.Type.Optional(n.Type.String()),keyPath:n.Type.Optional(o.DerivationPath),requiredSignaturesCount:n.Type.Optional(n.Type.Number()),invalidBefore:n.Type.Optional(n.Type.String()),invalidHereafter:n.Type.Optional(n.Type.String())}))),r.CardanoGetNativeScriptHash=n.Type.Object({script:r.CardanoNativeScript,displayFormat:i.PROTO.EnumCardanoNativeScriptHashDisplayFormat,derivationType:n.Type.Optional(i.PROTO.EnumCardanoDerivationType)}),r.CardanoNativeScriptHash=n.Type.Object({scriptHash:n.Type.String()}),r.CardanoGetPublicKey=n.Type.Intersect([o.GetPublicKey,n.Type.Object({derivationType:n.Type.Optional(i.PROTO.EnumCardanoDerivationType)})]),r.CardanoInput=n.Type.Object({path:n.Type.Optional(o.DerivationPath),prev_hash:n.Type.String(),prev_index:n.Type.Number()}),r.CardanoToken=n.Type.Object({assetNameBytes:n.Type.String(),amount:n.Type.Optional(n.Type.String()),mintAmount:n.Type.Optional(n.Type.String())}),r.CardanoAssetGroup=n.Type.Object({policyId:n.Type.String(),tokenAmounts:n.Type.Array(r.CardanoToken)}),r.CardanoOutput=n.Type.Intersect([n.Type.Union([n.Type.Object({addressParameters:r.CardanoAddressParameters}),n.Type.Object({address:n.Type.String()})]),n.Type.Object({amount:n.Type.String(),tokenBundle:n.Type.Optional(n.Type.Array(r.CardanoAssetGroup)),datumHash:n.Type.Optional(n.Type.String()),format:n.Type.Optional(i.PROTO.EnumCardanoTxOutputSerializationFormat),inlineDatum:n.Type.Optional(n.Type.String()),referenceScript:n.Type.Optional(n.Type.String())})]),r.CardanoPoolOwner=n.Type.Object({stakingKeyPath:n.Type.Optional(o.DerivationPath),stakingKeyHash:n.Type.Optional(n.Type.String())}),r.CardanoPoolRelay=n.Type.Object({type:i.PROTO.EnumCardanoPoolRelayType,ipv4Address:n.Type.Optional(n.Type.String()),ipv6Address:n.Type.Optional(n.Type.String()),port:n.Type.Optional(n.Type.Number()),hostName:n.Type.Optional(n.Type.String())}),r.CardanoPoolMetadata=n.Type.Object({url:n.Type.String(),hash:n.Type.String()}),r.CardanoPoolMargin=n.Type.Object({numerator:n.Type.String(),denominator:n.Type.String()}),r.CardanoPoolParameters=n.Type.Object({poolId:n.Type.String(),vrfKeyHash:n.Type.String(),pledge:n.Type.String(),cost:n.Type.String(),margin:r.CardanoPoolMargin,rewardAccount:n.Type.String(),owners:n.Type.Array(r.CardanoPoolOwner,{minItems:1}),relays:n.Type.Array(r.CardanoPoolRelay),metadata:n.Type.Optional(r.CardanoPoolMetadata)}),r.CardanoDRep=n.Type.Object({type:i.PROTO.EnumCardanoDRepType,keyHash:n.Type.Optional(n.Type.String()),scriptHash:n.Type.Optional(n.Type.String())}),r.CardanoCertificate=n.Type.Object({type:i.PROTO.EnumCardanoCertificateType,path:n.Type.Optional(o.DerivationPath),pool:n.Type.Optional(n.Type.String()),poolParameters:n.Type.Optional(r.CardanoPoolParameters),scriptHash:n.Type.Optional(n.Type.String()),keyHash:n.Type.Optional(n.Type.String()),deposit:n.Type.Optional(n.Type.String()),dRep:n.Type.Optional(r.CardanoDRep)}),r.CardanoWithdrawal=n.Type.Object({path:n.Type.Optional(o.DerivationPath),amount:n.Type.String(),scriptHash:n.Type.Optional(n.Type.String()),keyHash:n.Type.Optional(n.Type.String())}),r.CardanoMint=n.Type.Array(r.CardanoAssetGroup),r.CardanoCollateralInput=n.Type.Object({path:n.Type.Optional(o.DerivationPath),prev_hash:n.Type.String(),prev_index:n.Type.Number()}),r.CardanoRequiredSigner=n.Type.Object({keyPath:n.Type.Optional(o.DerivationPath),keyHash:n.Type.Optional(n.Type.String())}),r.CardanoReferenceInput=n.Type.Object({prev_hash:n.Type.String(),prev_index:n.Type.Number()}),r.CardanoCVoteRegistrationDelegation=n.Type.Object({votePublicKey:n.Type.String(),weight:n.Type.Number()}),r.CardanoCVoteRegistrationParameters=n.Type.Object({votePublicKey:n.Type.Optional(n.Type.String()),stakingPath:o.DerivationPath,paymentAddressParameters:n.Type.Optional(r.CardanoAddressParameters),nonce:n.Type.String(),format:n.Type.Optional(i.PROTO.EnumCardanoCVoteRegistrationFormat),delegations:n.Type.Optional(n.Type.Array(r.CardanoCVoteRegistrationDelegation)),votingPurpose:n.Type.Optional(n.Type.Number()),paymentAddress:n.Type.Optional(n.Type.String())}),r.CardanoAuxiliaryData=n.Type.Object({hash:n.Type.Optional(n.Type.String()),cVoteRegistrationParameters:n.Type.Optional(r.CardanoCVoteRegistrationParameters)}),r.CardanoSignTransaction=n.Type.Object({inputs:n.Type.Array(r.CardanoInput),outputs:n.Type.Array(r.CardanoOutput),fee:n.Type.Uint(),ttl:n.Type.Optional(n.Type.Uint()),certificates:n.Type.Optional(n.Type.Array(r.CardanoCertificate)),withdrawals:n.Type.Optional(n.Type.Array(r.CardanoWithdrawal)),validityIntervalStart:n.Type.Optional(n.Type.String()),auxiliaryData:n.Type.Optional(r.CardanoAuxiliaryData),mint:n.Type.Optional(r.CardanoMint),scriptDataHash:n.Type.Optional(n.Type.String()),collateralInputs:n.Type.Optional(n.Type.Array(r.CardanoCollateralInput)),requiredSigners:n.Type.Optional(n.Type.Array(r.CardanoRequiredSigner)),collateralReturn:n.Type.Optional(r.CardanoOutput),totalCollateral:n.Type.Optional(n.Type.String()),referenceInputs:n.Type.Optional(n.Type.Array(r.CardanoReferenceInput)),additionalWitnessRequests:n.Type.Optional(n.Type.Array(o.DerivationPath)),protocolMagic:n.Type.Number(),networkId:n.Type.Number(),signingMode:i.PROTO.EnumCardanoTxSigningMode,derivationType:n.Type.Optional(i.PROTO.EnumCardanoDerivationType),includeNetworkId:n.Type.Optional(n.Type.Boolean()),chunkify:n.Type.Optional(n.Type.Boolean()),tagCborSets:n.Type.Optional(n.Type.Boolean())}),r.CardanoSignTransactionExtended=n.Type.Intersect([r.CardanoSignTransaction,n.Type.Object({unsignedTx:n.Type.Object({body:n.Type.String(),hash:n.Type.String()}),testnet:n.Type.Boolean()})]),r.CardanoSignedTxWitness=n.Type.Object({type:i.PROTO.EnumCardanoTxWitnessType,pubKey:n.Type.String(),signature:n.Type.String(),chainCode:n.Type.Optional(n.Type.String())}),r.CardanoAuxiliaryDataSupplement=n.Type.Object({type:i.PROTO.EnumCardanoTxAuxiliaryDataSupplementType,auxiliaryDataHash:n.Type.String(),cVoteRegistrationSignature:n.Type.Optional(n.Type.String())}),r.CardanoSignedTxData=n.Type.Object({hash:n.Type.String(),witnesses:n.Type.Array(r.CardanoSignedTxWitness),auxiliaryDataSupplement:n.Type.Optional(r.CardanoAuxiliaryDataSupplement)})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/api/cardano/index.js"}],[3302,{"../../../constants":3276,"../../params":3314,"@trezor/schema-utils":3335},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EosSignTransaction=r.EosSDKTransaction=r.EosTxAction=r.EosTxActionCommon=r.EosAuthorization=r.EosTxHeader=r.EosPublicKey=void 0;const n=e("@trezor/schema-utils"),i=e("../../../constants"),o=e("../../params");r.EosPublicKey=n.Type.Object({wifPublicKey:n.Type.String(),rawPublicKey:n.Type.String(),path:n.Type.Array(n.Type.Number()),serializedPath:n.Type.String()}),r.EosTxHeader=n.Type.Object({expiration:n.Type.Union([n.Type.Uint(),n.Type.String()]),refBlockNum:n.Type.Number(),refBlockPrefix:n.Type.Number(),maxNetUsageWords:n.Type.Number(),maxCpuUsageMs:n.Type.Number(),delaySec:n.Type.Number()}),r.EosAuthorization=n.Type.Object({threshold:n.Type.Number(),keys:n.Type.Array(i.PROTO.EosAuthorizationKey),accounts:n.Type.Array(n.Type.Object({permission:i.PROTO.EosPermissionLevel,weight:n.Type.Number()})),waits:n.Type.Array(i.PROTO.EosAuthorizationWait)}),r.EosTxActionCommon=n.Type.Object({account:n.Type.String(),authorization:n.Type.Array(i.PROTO.EosPermissionLevel)}),r.EosTxAction=n.Type.Union([n.Type.Intersect([r.EosTxActionCommon,n.Type.Object({name:n.Type.Literal("transfer"),data:n.Type.Object({from:n.Type.String(),to:n.Type.String(),quantity:n.Type.String(),memo:n.Type.String()})})]),n.Type.Intersect([r.EosTxActionCommon,n.Type.Object({name:n.Type.Literal("delegatebw"),data:n.Type.Object({from:n.Type.String(),receiver:n.Type.String(),stake_net_quantity:n.Type.String(),stake_cpu_quantity:n.Type.String(),transfer:n.Type.Boolean()})})]),n.Type.Intersect([r.EosTxActionCommon,n.Type.Object({name:n.Type.Literal("undelegatebw"),data:n.Type.Object({from:n.Type.String(),receiver:n.Type.String(),unstake_net_quantity:n.Type.String(),unstake_cpu_quantity:n.Type.String()})})]),n.Type.Intersect([r.EosTxActionCommon,n.Type.Object({name:n.Type.Literal("buyram"),data:n.Type.Object({payer:n.Type.String(),receiver:n.Type.String(),quant:n.Type.String()})})]),n.Type.Intersect([r.EosTxActionCommon,n.Type.Object({name:n.Type.Literal("buyrambytes"),data:i.PROTO.EosActionBuyRamBytes})]),n.Type.Intersect([r.EosTxActionCommon,n.Type.Object({name:n.Type.Literal("sellram"),data:i.PROTO.EosActionSellRam})]),n.Type.Intersect([r.EosTxActionCommon,n.Type.Object({name:n.Type.Literal("voteproducer"),data:n.Type.Object({voter:n.Type.String(),proxy:n.Type.String(),producers:n.Type.Array(n.Type.String())})})]),n.Type.Intersect([r.EosTxActionCommon,n.Type.Object({name:n.Type.Literal("refund"),data:i.PROTO.EosActionRefund})]),n.Type.Intersect([r.EosTxActionCommon,n.Type.Object({name:n.Type.Literal("updateauth"),data:n.Type.Object({account:n.Type.String(),permission:n.Type.String(),parent:n.Type.String(),auth:r.EosAuthorization})})]),n.Type.Intersect([r.EosTxActionCommon,n.Type.Object({name:n.Type.Literal("deleteauth"),data:i.PROTO.EosActionDeleteAuth})]),n.Type.Intersect([r.EosTxActionCommon,n.Type.Object({name:n.Type.Literal("linkauth"),data:i.PROTO.EosActionLinkAuth})]),n.Type.Intersect([r.EosTxActionCommon,n.Type.Object({name:n.Type.Literal("unlinkauth"),data:i.PROTO.EosActionUnlinkAuth})]),n.Type.Intersect([r.EosTxActionCommon,n.Type.Object({name:n.Type.Literal("newaccount"),data:n.Type.Object({creator:n.Type.String(),name:n.Type.String(),owner:r.EosAuthorization,active:r.EosAuthorization})})])]),r.EosSDKTransaction=n.Type.Object({chainId:n.Type.String(),header:r.EosTxHeader,actions:n.Type.Array(n.Type.Union([r.EosTxAction,n.Type.Intersect([r.EosTxActionCommon,n.Type.Object({name:n.Type.String(),data:n.Type.String()})])]))}),r.EosSignTransaction=n.Type.Object({path:o.DerivationPath,transaction:r.EosSDKTransaction,chunkify:n.Type.Optional(n.Type.Boolean())})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/api/eos/index.js"}],[3303,{"../../params":3314,"@trezor/schema-utils":3335},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EthereumVerifyMessage=r.EthereumSignTypedHash=r.EthereumSignTypedData=r.EthereumSignTypedDataMessage=r.EthereumSignTypedDataTypes=r.EthereumSignedTx=r.EthereumSignTransaction=r.EthereumTransactionEIP1559=r.EthereumAccessList=r.EthereumTransaction=r.EthereumSignMessage=void 0;const n=e("@trezor/schema-utils"),i=e("../../params");r.EthereumSignMessage=n.Type.Object({path:i.DerivationPath,message:n.Type.String(),hex:n.Type.Optional(n.Type.Boolean())}),r.EthereumTransaction=n.Type.Object({to:n.Type.String(),value:n.Type.String(),gasPrice:n.Type.String(),gasLimit:n.Type.String(),maxFeePerGas:n.Type.Optional(n.Type.Undefined()),maxPriorityFeePerGas:n.Type.Optional(n.Type.Undefined()),nonce:n.Type.String(),data:n.Type.Optional(n.Type.String()),chainId:n.Type.Number(),txType:n.Type.Optional(n.Type.Number())}),r.EthereumAccessList=n.Type.Object({address:n.Type.String(),storageKeys:n.Type.Array(n.Type.String())}),r.EthereumTransactionEIP1559=n.Type.Object({to:n.Type.String(),value:n.Type.String(),gasLimit:n.Type.String(),gasPrice:n.Type.Optional(n.Type.Undefined()),nonce:n.Type.String(),data:n.Type.Optional(n.Type.String()),chainId:n.Type.Number(),maxFeePerGas:n.Type.String(),maxPriorityFeePerGas:n.Type.String(),accessList:n.Type.Optional(n.Type.Array(r.EthereumAccessList))}),r.EthereumSignTransaction=n.Type.Object({path:i.DerivationPath,transaction:n.Type.Union([r.EthereumTransaction,r.EthereumTransactionEIP1559]),chunkify:n.Type.Optional(n.Type.Boolean())}),r.EthereumSignedTx=n.Type.Object({v:n.Type.String(),r:n.Type.String(),s:n.Type.String(),serializedTx:n.Type.String()});const o=n.Type.Object({name:n.Type.String(),type:n.Type.String()});r.EthereumSignTypedDataTypes=n.Type.Object({EIP712Domain:n.Type.Array(o)},{additionalProperties:n.Type.Array(o)}),r.EthereumSignTypedDataMessage=n.Type.Object({types:r.EthereumSignTypedDataTypes,primaryType:n.Type.String(),domain:n.Type.Object({name:n.Type.Optional(n.Type.String()),version:n.Type.Optional(n.Type.String()),chainId:n.Type.Optional(n.Type.Union([n.Type.Number(),n.Type.BigInt(),n.Type.String()])),verifyingContract:n.Type.Optional(n.Type.String()),salt:n.Type.Optional(n.Type.Union([n.Type.ArrayBuffer(),n.Type.String()]))}),message:n.Type.Object({},{additionalProperties:n.Type.Any()})}),r.EthereumSignTypedData=n.Type.Object({path:i.DerivationPath,data:r.EthereumSignTypedDataMessage,metamask_v4_compat:n.Type.Boolean(),domain_separator_hash:n.Type.Optional(n.Type.Undefined()),message_hash:n.Type.Optional(n.Type.Undefined())}),r.EthereumSignTypedHash=n.Type.Object({path:i.DerivationPath,data:r.EthereumSignTypedDataMessage,metamask_v4_compat:n.Type.Boolean(),domain_separator_hash:n.Type.String(),message_hash:n.Type.Optional(n.Type.String())}),r.EthereumVerifyMessage=n.Type.Object({address:n.Type.String(),message:n.Type.String(),hex:n.Type.Optional(n.Type.Boolean()),signature:n.Type.String()})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/api/ethereum/index.js"}],[3304,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/api/index.js"}],[3305,{"../../params":3314,"@trezor/schema-utils":3335},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RippleSignedTx=r.RippleSignTransaction=r.RippleTransaction=r.RipplePayment=void 0;const n=e("@trezor/schema-utils"),i=e("../../params");r.RipplePayment=n.Type.Object({amount:n.Type.String(),destination:n.Type.String(),destinationTag:n.Type.Optional(n.Type.Number())}),r.RippleTransaction=n.Type.Object({fee:n.Type.String(),flags:n.Type.Optional(n.Type.Number()),sequence:n.Type.Number(),maxLedgerVersion:n.Type.Optional(n.Type.Number()),payment:r.RipplePayment}),r.RippleSignTransaction=n.Type.Object({path:i.DerivationPath,transaction:r.RippleTransaction,chunkify:n.Type.Optional(n.Type.Boolean())}),r.RippleSignedTx=n.Type.Object({serializedTx:n.Type.String(),signature:n.Type.String()})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/api/ripple/index.js"}],[3306,{"../../params":3314,"@trezor/schema-utils":3335},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SolanaSignedTransaction=r.SolanaSignTransaction=r.SolanaTxAdditionalInfo=r.SolanaTxTokenAccountInfo=r.SolanaPublicKey=void 0;const n=e("@trezor/schema-utils"),i=e("../../params");r.SolanaPublicKey=n.Type.Intersect([i.PublicKey,n.Type.Object({publicKey:n.Type.String()})]),r.SolanaTxTokenAccountInfo=n.Type.Object({baseAddress:n.Type.String(),tokenProgram:n.Type.String(),tokenMint:n.Type.String(),tokenAccount:n.Type.String()}),r.SolanaTxAdditionalInfo=n.Type.Object({tokenAccountsInfos:n.Type.Optional(n.Type.Array(r.SolanaTxTokenAccountInfo,{minItems:1}))}),r.SolanaSignTransaction=n.Type.Object({path:n.Type.Union([n.Type.String(),n.Type.Array(n.Type.Number())]),serializedTx:n.Type.String(),additionalInfo:n.Type.Optional(r.SolanaTxAdditionalInfo)}),r.SolanaSignedTransaction=n.Type.Object({signature:n.Type.String()})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/api/solana/index.js"}],[3307,{"../../../constants":3276,"../../params":3314,"@trezor/schema-utils":3335},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StellarOperationMessage=r.StellarSignedTx=r.StellarSignTransaction=r.StellarTransaction=r.StellarOperation=r.StellarClaimClaimableBalanceOperation=r.StellarInflationOperation=r.StellarBumpSequenceOperation=r.StellarManageDataOperation=r.StellarAccountMergeOperation=r.StellarAllowTrustOperation=r.StellarChangeTrustOperation=r.StellarSetOptionsOperation=r.StellarManageBuyOfferOperation=r.StellarManageSellOfferOperation=r.StellarPassiveSellOfferOperation=r.StellarPathPaymentStrictSendOperation=r.StellarPathPaymentStrictReceiveOperation=r.StellarPaymentOperation=r.StellarCreateAccountOperation=r.StellarAsset=void 0;const n=e("@trezor/schema-utils"),i=e("../../../constants"),o=e("../../params");r.StellarAsset=n.Type.Object({type:n.Type.Union([i.PROTO.EnumStellarAssetType,n.Type.KeyOfEnum(i.PROTO.StellarAssetType)]),code:n.Type.Optional(n.Type.String()),issuer:n.Type.Optional(n.Type.String())}),r.StellarCreateAccountOperation=n.Type.Object({type:n.Type.Literal("createAccount"),source:n.Type.Optional(n.Type.String()),destination:n.Type.String(),startingBalance:n.Type.String()}),r.StellarPaymentOperation=n.Type.Object({type:n.Type.Literal("payment"),source:n.Type.Optional(n.Type.String()),destination:n.Type.String(),asset:r.StellarAsset,amount:n.Type.String()}),r.StellarPathPaymentStrictReceiveOperation=n.Type.Object({type:n.Type.Literal("pathPaymentStrictReceive"),source:n.Type.Optional(n.Type.String()),sendAsset:r.StellarAsset,sendMax:n.Type.Uint(),destination:n.Type.String(),destAsset:r.StellarAsset,destAmount:n.Type.Uint(),path:n.Type.Optional(n.Type.Array(r.StellarAsset))}),r.StellarPathPaymentStrictSendOperation=n.Type.Object({type:n.Type.Literal("pathPaymentStrictSend"),source:n.Type.Optional(n.Type.String()),sendAsset:r.StellarAsset,sendAmount:n.Type.Uint(),destination:n.Type.String(),destAsset:r.StellarAsset,destMin:n.Type.Uint(),path:n.Type.Optional(n.Type.Array(r.StellarAsset))}),r.StellarPassiveSellOfferOperation=n.Type.Object({type:n.Type.Literal("createPassiveSellOffer"),source:n.Type.Optional(n.Type.String()),buying:r.StellarAsset,selling:r.StellarAsset,amount:n.Type.Uint(),price:n.Type.Object({n:n.Type.Number(),d:n.Type.Number()})}),r.StellarManageSellOfferOperation=n.Type.Object({type:n.Type.Literal("manageSellOffer"),source:n.Type.Optional(n.Type.String()),buying:r.StellarAsset,selling:r.StellarAsset,amount:n.Type.Uint(),offerId:n.Type.Optional(n.Type.Uint()),price:n.Type.Object({n:n.Type.Number(),d:n.Type.Number()})}),r.StellarManageBuyOfferOperation=n.Type.Object({type:n.Type.Literal("manageBuyOffer"),source:n.Type.Optional(n.Type.String()),buying:r.StellarAsset,selling:r.StellarAsset,amount:n.Type.Uint(),offerId:n.Type.Optional(n.Type.Uint()),price:n.Type.Object({n:n.Type.Number(),d:n.Type.Number()})}),r.StellarSetOptionsOperation=n.Type.Object({type:n.Type.Literal("setOptions"),source:n.Type.Optional(n.Type.String()),signer:n.Type.Optional(n.Type.Object({type:i.PROTO.EnumStellarSignerType,key:n.Type.Union([n.Type.String(),n.Type.Buffer()]),weight:n.Type.Optional(n.Type.Number())})),inflationDest:n.Type.Optional(n.Type.String()),clearFlags:n.Type.Optional(n.Type.Number()),setFlags:n.Type.Optional(n.Type.Number()),masterWeight:n.Type.Optional(n.Type.Uint()),lowThreshold:n.Type.Optional(n.Type.Uint()),medThreshold:n.Type.Optional(n.Type.Uint()),highThreshold:n.Type.Optional(n.Type.Uint()),homeDomain:n.Type.Optional(n.Type.String())}),r.StellarChangeTrustOperation=n.Type.Object({type:n.Type.Literal("changeTrust"),source:n.Type.Optional(n.Type.String()),line:r.StellarAsset,limit:n.Type.String()}),r.StellarAllowTrustOperation=n.Type.Object({type:n.Type.Literal("allowTrust"),source:n.Type.Optional(n.Type.String()),trustor:n.Type.String(),assetCode:n.Type.String(),assetType:i.PROTO.EnumStellarAssetType,authorize:n.Type.Optional(n.Type.Union([n.Type.Boolean(),n.Type.Undefined()]))}),r.StellarAccountMergeOperation=n.Type.Object({type:n.Type.Literal("accountMerge"),source:n.Type.Optional(n.Type.String()),destination:n.Type.String()}),r.StellarManageDataOperation=n.Type.Object({type:n.Type.Literal("manageData"),source:n.Type.Optional(n.Type.String()),name:n.Type.String(),value:n.Type.Optional(n.Type.Union([n.Type.String(),n.Type.Buffer()]))}),r.StellarBumpSequenceOperation=n.Type.Object({type:n.Type.Literal("bumpSequence"),source:n.Type.Optional(n.Type.String()),bumpTo:n.Type.Uint()}),r.StellarInflationOperation=n.Type.Object({type:n.Type.Literal("inflation"),source:n.Type.Optional(n.Type.String())}),r.StellarClaimClaimableBalanceOperation=n.Type.Object({type:n.Type.Literal("claimClaimableBalance"),source:n.Type.Optional(n.Type.String()),balanceId:n.Type.String()}),r.StellarOperation=n.Type.Union([r.StellarCreateAccountOperation,r.StellarPaymentOperation,r.StellarPathPaymentStrictReceiveOperation,r.StellarPathPaymentStrictSendOperation,r.StellarPassiveSellOfferOperation,r.StellarManageSellOfferOperation,r.StellarManageBuyOfferOperation,r.StellarSetOptionsOperation,r.StellarChangeTrustOperation,r.StellarAllowTrustOperation,r.StellarAccountMergeOperation,r.StellarInflationOperation,r.StellarManageDataOperation,r.StellarBumpSequenceOperation,r.StellarClaimClaimableBalanceOperation]),r.StellarTransaction=n.Type.Object({source:n.Type.String(),fee:n.Type.Number(),sequence:n.Type.Uint(),timebounds:n.Type.Optional(n.Type.Object({minTime:n.Type.Number(),maxTime:n.Type.Number()})),memo:n.Type.Optional(n.Type.Object({type:i.PROTO.EnumStellarMemoType,id:n.Type.Optional(n.Type.Uint()),text:n.Type.Optional(n.Type.String()),hash:n.Type.Optional(n.Type.Union([n.Type.String(),n.Type.Buffer()]))})),operations:n.Type.Array(r.StellarOperation)}),r.StellarSignTransaction=n.Type.Object({path:o.DerivationPath,networkPassphrase:n.Type.String(),transaction:r.StellarTransaction}),r.StellarSignedTx=n.Type.Object({publicKey:n.Type.String(),signature:n.Type.String()}),r.StellarOperationMessage=n.Type.Union([n.Type.Intersect([n.Type.Object({type:n.Type.Literal("StellarCreateAccountOp")}),i.PROTO.StellarCreateAccountOp]),n.Type.Intersect([n.Type.Object({type:n.Type.Literal("StellarPaymentOp")}),i.PROTO.StellarPaymentOp]),n.Type.Intersect([n.Type.Object({type:n.Type.Literal("StellarPathPaymentStrictReceiveOp")}),i.PROTO.StellarPathPaymentStrictReceiveOp]),n.Type.Intersect([n.Type.Object({type:n.Type.Literal("StellarPathPaymentStrictSendOp")}),i.PROTO.StellarPathPaymentStrictSendOp]),n.Type.Intersect([n.Type.Object({type:n.Type.Literal("StellarManageSellOfferOp")}),i.PROTO.StellarManageSellOfferOp]),n.Type.Intersect([n.Type.Object({type:n.Type.Literal("StellarManageBuyOfferOp")}),i.PROTO.StellarManageBuyOfferOp]),n.Type.Intersect([n.Type.Object({type:n.Type.Literal("StellarCreatePassiveSellOfferOp")}),i.PROTO.StellarCreatePassiveSellOfferOp]),n.Type.Intersect([n.Type.Object({type:n.Type.Literal("StellarSetOptionsOp")}),i.PROTO.StellarSetOptionsOp]),n.Type.Intersect([n.Type.Object({type:n.Type.Literal("StellarChangeTrustOp")}),i.PROTO.StellarChangeTrustOp]),n.Type.Intersect([n.Type.Object({type:n.Type.Literal("StellarAllowTrustOp")}),i.PROTO.StellarAllowTrustOp]),n.Type.Intersect([n.Type.Object({type:n.Type.Literal("StellarAccountMergeOp")}),i.PROTO.StellarAccountMergeOp]),n.Type.Intersect([n.Type.Object({type:n.Type.Literal("StellarManageDataOp")}),i.PROTO.StellarManageDataOp]),n.Type.Intersect([n.Type.Object({type:n.Type.Literal("StellarBumpSequenceOp")}),i.PROTO.StellarBumpSequenceOp]),n.Type.Intersect([n.Type.Object({type:n.Type.Literal("StellarClaimClaimableBalanceOp")}),i.PROTO.StellarClaimClaimableBalanceOp])])}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/api/stellar/index.js"}],[3308,{"../../params":3314,"@trezor/schema-utils":3335},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TezosSignTransaction=r.TezosOperation=r.TezosDelegationOperation=r.TezosOriginationOperation=r.TezosTransactionOperation=r.TezosParametersManager=r.TezosManagerTransfer=r.TezosRevealOperation=void 0;const n=e("@trezor/schema-utils"),i=e("../../params");r.TezosRevealOperation=n.Type.Object({source:n.Type.String(),fee:n.Type.Number(),counter:n.Type.Number(),gas_limit:n.Type.Number(),storage_limit:n.Type.Number(),public_key:n.Type.String()}),r.TezosManagerTransfer=n.Type.Object({destination:n.Type.String(),amount:n.Type.Number()}),r.TezosParametersManager=n.Type.Object({set_delegate:n.Type.Optional(n.Type.String()),cancel_delegate:n.Type.Optional(n.Type.Boolean()),transfer:n.Type.Optional(r.TezosManagerTransfer)}),r.TezosTransactionOperation=n.Type.Object({source:n.Type.String(),destination:n.Type.String(),amount:n.Type.Number(),counter:n.Type.Number(),fee:n.Type.Number(),gas_limit:n.Type.Number(),storage_limit:n.Type.Number(),parameters:n.Type.Optional(n.Type.Array(n.Type.Number())),parameters_manager:n.Type.Optional(r.TezosParametersManager)}),r.TezosOriginationOperation=n.Type.Object({source:n.Type.String(),balance:n.Type.Number(),delegate:n.Type.Optional(n.Type.String()),script:i.DerivationPath,fee:n.Type.Number(),counter:n.Type.Number(),gas_limit:n.Type.Number(),storage_limit:n.Type.Number()}),r.TezosDelegationOperation=n.Type.Object({source:n.Type.String(),delegate:n.Type.String(),fee:n.Type.Number(),counter:n.Type.Number(),gas_limit:n.Type.Number(),storage_limit:n.Type.Number()}),r.TezosOperation=n.Type.Object({reveal:n.Type.Optional(r.TezosRevealOperation),transaction:n.Type.Optional(r.TezosTransactionOperation),origination:n.Type.Optional(r.TezosOriginationOperation),delegation:n.Type.Optional(r.TezosDelegationOperation)}),r.TezosSignTransaction=n.Type.Object({path:i.DerivationPath,branch:n.Type.String(),operation:r.TezosOperation,chunkify:n.Type.Optional(n.Type.Boolean())})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/api/tezos/index.js"}],[3309,{"./device":3310,"./fees":3311,"@trezor/schema-utils":3335},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CoinInfo=r.MiscNetworkInfo=r.EthereumNetworkInfo=r.BitcoinNetworkInfo=r.BlockchainLink=r.CoinSupport=r.CoinObj=r.Network=r.Bip32=void 0;const n=e("@trezor/schema-utils"),i=e("./fees"),o=e("./device");r.Bip32=n.Type.Object({public:n.Type.Number(),private:n.Type.Number()}),r.Network=n.Type.Object({messagePrefix:n.Type.String(),bech32:n.Type.String(),bip32:r.Bip32,pubKeyHash:n.Type.Number(),scriptHash:n.Type.Number(),wif:n.Type.Number(),forkId:n.Type.Optional(n.Type.Number())}),r.CoinObj=n.Type.Object({coin:n.Type.String(),identity:n.Type.Optional(n.Type.String())}),r.CoinSupport=n.Type.Composite([n.Type.Object({connect:n.Type.Boolean()}),n.Type.Record(n.Type.KeyOfEnum(o.DeviceModelInternal),n.Type.Union([n.Type.String(),n.Type.Literal(!1)]))]),r.BlockchainLink=n.Type.Object({type:n.Type.String(),url:n.Type.Array(n.Type.String())});const s=n.Type.Object({label:n.Type.String(),name:n.Type.String(),shortcut:n.Type.String(),slip44:n.Type.Number(),support:r.CoinSupport,decimals:n.Type.Number(),blockchainLink:n.Type.Optional(r.BlockchainLink),blockTime:n.Type.Number(),minFee:n.Type.Number(),maxFee:n.Type.Number(),defaultFees:n.Type.Array(i.FeeLevel)});r.BitcoinNetworkInfo=n.Type.Intersect([s,n.Type.Object({type:n.Type.Literal("bitcoin"),cashAddrPrefix:n.Type.Optional(n.Type.String()),curveName:n.Type.String(),dustLimit:n.Type.Number(),forceBip143:n.Type.Boolean(),hashGenesisBlock:n.Type.String(),maxAddressLength:n.Type.Number(),maxFeeSatoshiKb:n.Type.Number(),minAddressLength:n.Type.Number(),minFeeSatoshiKb:n.Type.Number(),segwit:n.Type.Boolean(),xPubMagic:n.Type.Number(),xPubMagicSegwitNative:n.Type.Optional(n.Type.Number()),xPubMagicSegwit:n.Type.Optional(n.Type.Number()),taproot:n.Type.Optional(n.Type.Boolean()),network:r.Network,isBitcoin:n.Type.Boolean()})]),r.EthereumNetworkInfo=n.Type.Intersect([s,n.Type.Object({type:n.Type.Literal("ethereum"),chainId:n.Type.Number(),network:n.Type.Optional(n.Type.Undefined())})]),r.MiscNetworkInfo=n.Type.Intersect([s,n.Type.Object({type:n.Type.Union([n.Type.Literal("misc"),n.Type.Literal("nem")]),curve:n.Type.String(),network:n.Type.Optional(n.Type.Undefined())})]),r.CoinInfo=n.Type.Union([r.BitcoinNetworkInfo,r.EthereumNetworkInfo,r.MiscNetworkInfo])}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/coinInfo.js"}],[3310,{"@trezor/protobuf":3324},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n;Object.defineProperty(r,"__esModule",{value:!0}),r.DeviceModelInternal=r.DeviceUniquePath=r.FirmwareType=void 0,function(e){e.BitcoinOnly="bitcoin-only",e.Regular="regular"}(n||(r.FirmwareType=n={}));r.DeviceUniquePath=e=>e;var i=e("@trezor/protobuf");Object.defineProperty(r,"DeviceModelInternal",{enumerable:!0,get:function(){return i.DeviceModelInternal}})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/device.js"}],[3311,{"@trezor/schema-utils":3335},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SelectFeeLevel=r.FeeLevel=r.FeeInfo=void 0;const n=e("@trezor/schema-utils");r.FeeInfo=n.Type.Object({blockTime:n.Type.Number(),minFee:n.Type.Number(),maxFee:n.Type.Number(),dustLimit:n.Type.Number()}),r.FeeLevel=n.Type.Object({label:n.Type.Union([n.Type.Literal("high"),n.Type.Literal("normal"),n.Type.Literal("economy"),n.Type.Literal("low"),n.Type.Literal("custom")]),feePerUnit:n.Type.String(),blocks:n.Type.Number(),feeLimit:n.Type.Optional(n.Type.String()),feePerTx:n.Type.Optional(n.Type.String())}),r.SelectFeeLevel=n.Type.Union([n.Type.Object({name:n.Type.String(),fee:n.Type.Literal("0"),feePerByte:n.Type.Optional(n.Type.Undefined()),disabled:n.Type.Literal(!0)}),n.Type.Object({name:n.Type.String(),fee:n.Type.String(),feePerByte:n.Type.String(),minutes:n.Type.Number(),total:n.Type.String()})])}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/fees.js"}],[3312,{"@trezor/schema-utils":3335},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IntermediaryVersion=void 0;const n=e("@trezor/schema-utils");r.IntermediaryVersion=n.Type.Union([n.Type.Literal(1),n.Type.Literal(2),n.Type.Literal(3)])}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/firmware.js"}],[3313,{"./account":3298,"./api":3304,"./api/binance":3299,"./api/bitcoin":3300,"./api/cardano":3301,"./api/eos":3302,"./api/ethereum":3303,"./api/ripple":3305,"./api/solana":3306,"./api/stellar":3307,"./api/tezos":3308,"./coinInfo":3309,"./device":3310,"./fees":3311,"./firmware":3312,"./params":3314,"./settings":3315,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e("tslib");n.__exportStar(e("./api"),r),n.__exportStar(e("./account"),r),n.__exportStar(e("./coinInfo"),r),n.__exportStar(e("./device"),r),n.__exportStar(e("./fees"),r),n.__exportStar(e("./firmware"),r),n.__exportStar(e("./params"),r),n.__exportStar(e("./settings"),r),n.__exportStar(e("./api/cardano"),r),n.__exportStar(e("./api/binance"),r),n.__exportStar(e("./api/bitcoin"),r),n.__exportStar(e("./api/eos"),r),n.__exportStar(e("./api/ripple"),r),n.__exportStar(e("./api/ethereum"),r),n.__exportStar(e("./api/solana"),r),n.__exportStar(e("./api/stellar"),r),n.__exportStar(e("./api/tezos"),r)}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/index.js"}],[3314,{"@trezor/schema-utils":3335},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PublicKey=r.GetPublicKey=r.GetAddress=r.DerivationPath=r.Bundle=void 0;const n=e("@trezor/schema-utils");r.Bundle=e=>n.Type.Object({bundle:n.Type.Array(e,{minItems:1})}),r.DerivationPath=n.Type.Union([n.Type.String(),n.Type.Array(n.Type.Number())],{description:"Derivation Path (BIP32).",$id:"DerivationPath"}),r.GetAddress=n.Type.Object({path:r.DerivationPath,address:n.Type.Optional(n.Type.String()),showOnTrezor:n.Type.Optional(n.Type.Boolean({default:!0})),chunkify:n.Type.Optional(n.Type.Boolean()),useEventListener:n.Type.Optional(n.Type.Boolean())}),r.GetPublicKey=n.Type.Object({path:r.DerivationPath,showOnTrezor:n.Type.Optional(n.Type.Boolean()),suppressBackupWarning:n.Type.Optional(n.Type.Boolean()),chunkify:n.Type.Optional(n.Type.Boolean())}),r.PublicKey=n.Type.Object({publicKey:n.Type.String(),path:n.Type.Array(n.Type.Number()),serializedPath:n.Type.String()})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/params.js"}],[3315,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/types/settings.js"}],[3316,{"@trezor/utils":3572},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getLog=r.enableLogByPrefix=r.enableLog=r.setLogWriter=r.initLog=void 0;const n="#bada55",i="#20abd8",o="#f4a744",s={"@trezor/connect":`color: ${i}; background: #000;`,"@trezor/connect-web":`color: ${i}; background: #000;`,"@trezor/connect-webextension":`color: ${i}; background: #000;`,IFrame:`color: ${o}; background: #000;`,Core:`color: ${o}; background: #000;`,DeviceList:`color: ${n}; background: #000;`,Device:`color: ${n}; background: #000;`,DeviceCommands:`color: ${n}; background: #000;`,"@trezor/transport":`color: ${n}; background: #000;`,InteractionTimeout:`color: ${n}; background: #000;`,"@trezor/connect-popup":"color: #fbd948; background: #000;"},a=new(e("@trezor/utils").LogsManager)({colors:s});r.initLog=a.initLog.bind(a),r.setLogWriter=a.setLogWriter.bind(a),r.enableLog=a.enableLog.bind(a),r.enableLogByPrefix=a.enableLogByPrefix.bind(a),r.getLog=a.getLog.bind(a)}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/utils/debug.js"}],[3317,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ProxyEventEmitter=void 0;r.ProxyEventEmitter=class{constructor(e){this.eventEmitters=e}emit(e,...t){return this.eventEmitters.forEach((r=>r.emit(e,...t))),!0}on(e,t){return this.eventEmitters.forEach((r=>r.on(e,t))),this}off(e,t){return this.eventEmitters.forEach((r=>r.off(e,t))),this}once(e,t){return this.eventEmitters.forEach((r=>r.once(e,t))),this}addListener(e,t){return this.eventEmitters.forEach((r=>r.addListener(e,t))),this}prependListener(e,t){return this.eventEmitters.forEach((r=>r.prependListener(e,t))),this}prependOnceListener(e,t){return this.eventEmitters.forEach((r=>r.prependOnceListener(e,t))),this}removeAllListeners(e){return this.eventEmitters.forEach((t=>t.removeAllListeners(e))),this}removeListener(e,t){return this.eventEmitters.forEach((r=>r.removeListener(e,t))),this}setMaxListeners(e){return this.eventEmitters.forEach((t=>t.setMaxListeners(e))),this}eventNames(){return this.eventEmitters[0].eventNames()}getMaxListeners(){return this.eventEmitters[0].getMaxListeners()}listenerCount(e,t){return this.eventEmitters[0].listenerCount(e,t)}rawListeners(e){return this.eventEmitters[0].rawListeners(e)}listeners(e){return this.eventEmitters[0].listeners(e)}}}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/utils/proxy-event-emitter.js"}],[3318,{"@trezor/utils":3572},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getOnionDomain=r.getHost=r.getOrigin=void 0;const n=e("@trezor/utils");r.getOrigin=e=>{var t;if("string"!=typeof e)return"unknown";if(0===e.indexOf("file://"))return"file://";const[r]=null!==(t=e.match(/^https?:\/\/[^/]+/))&&void 0!==t?t:[];return null!=r?r:"unknown"};r.getHost=e=>{var t;if("string"!=typeof e)return;const[,,r]=null!==(t=e.match(/^(https?):\/\/([^:/]+)?/i))&&void 0!==t?t:[];if(r){const e=r.split(".");return e.length>2?e.slice(e.length-2,e.length).join("."):r}};r.getOnionDomain=(e,t)=>{var r;return Array.isArray(e)?e.map((e=>{var r;return null!==(r=(0,n.urlToOnion)(e,t))&&void 0!==r?r:e})):"string"==typeof e&&null!==(r=(0,n.urlToOnion)(e,t))&&void 0!==r?r:e}}}},{package:"@trezor/connect-web>@trezor/connect",file:"node_modules/@trezor/connect/lib/utils/urlUtils.js"}],[3319,{"./jws":3321,_process:5008,tslib:5615,"ua-parser-js":5618},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.envUtils=r.getJWSPublicKey=r.getEnvironment=r.isNative=r.isDesktop=r.isWeb=void 0;const n=e("tslib").__importDefault(e("ua-parser-js")),i=e("./jws");r.isWeb=()=>!1;r.isDesktop=()=>!1;r.isNative=()=>!1;let o;r.getEnvironment=()=>(0,r.isWeb)()?"web":"desktop";const s=()=>window.navigator.userAgent,a=()=>{if(!o){const e=s();o=new n.default(e)}return o},c=()=>/Android/.test(s()),u=()=>/CrOS/.test(s()),l=()=>{const e=a().getBrowser().name;return(null==e?void 0:e.toLowerCase())||""},p=()=>window.navigator.platform,d=()=>void 0!==t?t.platform:"",h=()=>"darwin"===d()||("undefined"!=typeof window?p().startsWith("Mac"):void 0),f=()=>"win32"===d()||("undefined"!=typeof window?p().startsWith("Win"):void 0),y=()=>["iPhone","iPad","iPod"].includes(p()),m=()=>"linux"===d()||("undefined"!=typeof window?!c()&&!u()&&p().startsWith("Linux"):void 0),T=()=>!1;r.getJWSPublicKey=()=>i.publicKey.dev,r.envUtils={isWeb:r.isWeb,isDesktop:r.isDesktop,isNative:r.isNative,getEnvironment:r.getEnvironment,getUserAgent:s,isAndroid:c,isChromeOs:u,getOsVersion:()=>a().getOS().version||"",getBrowserName:l,getBrowserVersion:()=>a().getBrowser().version||"",getCommitHash:()=>"",getDeviceType:()=>a().getDevice().type,getSuiteVersion:()=>"",isFirefox:()=>"firefox"===l(),getPlatform:p,getPlatformLanguages:()=>window.navigator.languages,getScreenWidth:()=>window.screen.width,getScreenHeight:()=>window.screen.height,getWindowWidth:()=>window.innerWidth,getWindowHeight:()=>window.innerHeight,getLocationOrigin:()=>window.location.origin,getLocationHostname:()=>window.location.hostname,getProcessPlatform:d,isMacOs:h,isWindows:f,isIOs:y,isLinux:m,isCodesignBuild:T,getOsName:()=>f()?"windows":h()?"macos":c()?"android":u()?"chromeos":m()?"linux":y()?"ios":"",getOsNameWeb:()=>a().getOS().name,getOsFamily:()=>{const e=a().getOS().name;return"Windows"===e?"Windows":"Mac OS"===e?"MacOS":"Linux"},getJWSPublicKey:r.getJWSPublicKey}}).call(this)}).call(this,e("_process"))}}},{package:"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils",file:"node_modules/@trezor/env-utils/lib/envUtils.js"}],[3320,{"./envUtils":3319},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getJWSPublicKey=r.getOsFamily=r.getOsNameWeb=r.getOsName=r.isCodesignBuild=r.isLinux=r.isIOs=r.isWindows=r.isMacOs=r.getProcessPlatform=r.getLocationHostname=r.getLocationOrigin=r.getWindowHeight=r.getWindowWidth=r.getScreenHeight=r.getScreenWidth=r.getPlatformLanguages=r.getPlatform=r.isFirefox=r.getSuiteVersion=r.getOsVersion=r.getDeviceType=r.getCommitHash=r.getBrowserName=r.getBrowserVersion=r.isChromeOs=r.isAndroid=r.getUserAgent=r.getEnvironment=r.isNative=r.isDesktop=r.isWeb=void 0;const n=e("./envUtils");r.isWeb=n.envUtils.isWeb,r.isDesktop=n.envUtils.isDesktop,r.isNative=n.envUtils.isNative,r.getEnvironment=n.envUtils.getEnvironment,r.getUserAgent=n.envUtils.getUserAgent,r.isAndroid=n.envUtils.isAndroid,r.isChromeOs=n.envUtils.isChromeOs,r.getBrowserVersion=n.envUtils.getBrowserVersion,r.getBrowserName=n.envUtils.getBrowserName,r.getCommitHash=n.envUtils.getCommitHash,r.getDeviceType=n.envUtils.getDeviceType,r.getOsVersion=n.envUtils.getOsVersion,r.getSuiteVersion=n.envUtils.getSuiteVersion,r.isFirefox=n.envUtils.isFirefox,r.getPlatform=n.envUtils.getPlatform,r.getPlatformLanguages=n.envUtils.getPlatformLanguages,r.getScreenWidth=n.envUtils.getScreenWidth,r.getScreenHeight=n.envUtils.getScreenHeight,r.getWindowWidth=n.envUtils.getWindowWidth,r.getWindowHeight=n.envUtils.getWindowHeight,r.getLocationOrigin=n.envUtils.getLocationOrigin,r.getLocationHostname=n.envUtils.getLocationHostname,r.getProcessPlatform=n.envUtils.getProcessPlatform,r.isMacOs=n.envUtils.isMacOs,r.isWindows=n.envUtils.isWindows,r.isIOs=n.envUtils.isIOs,r.isLinux=n.envUtils.isLinux,r.isCodesignBuild=n.envUtils.isCodesignBuild,r.getOsName=n.envUtils.getOsName,r.getOsNameWeb=n.envUtils.getOsNameWeb,r.getOsFamily=n.envUtils.getOsFamily,r.getJWSPublicKey=n.envUtils.getJWSPublicKey}}},{package:"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils",file:"node_modules/@trezor/env-utils/lib/index.js"}],[3321,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.publicKey=void 0,r.publicKey={dev:"-----BEGIN PUBLIC KEY-----\nMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEbSUHJlr17+NywPS/w+xMkp3dSD8eWXSuAfFKwonZPe5fL63kISipJC+eJP7Mad0WxgyJoiMsZCV6BZPK2jIFdg==\n-----END PUBLIC KEY-----",codesign:"-----BEGIN PUBLIC KEY-----\nMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAES7MbBzU/v5BsljkTM8Mz0Jsk+Nn5n2wH\no2/+MUI3TgCVdTbEHhn3HXaY7GJ6TLyWqxn+pIDY9wUUAyUqOStTUQ==\n-----END PUBLIC KEY-----"}}}},{package:"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils",file:"node_modules/@trezor/env-utils/lib/jws.js"}],[3322,{"./utils":3328,buffer:4074,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.decode=void 0,r.messageToJSON=s;const n=e("tslib"),i=e("./utils"),o=(e,r)=>{if((0,i.isPrimitiveField)(e.type))return e.optional&&void 0===r?null:"bytes"===e.type?t.from(r).toString("hex"):e.long?Number.isSafeInteger(r.toNumber())?r.toNumber():r.toString():r;if("valuesById"in e.resolvedType)return e.resolvedType.valuesById[r];if(e.resolvedType.fields)return s(r,e.resolvedType.fields);throw new Error(`transport: decode: case not handled: ${e}`)};function s(e,t){if(!e)return{};const r=n.__rest(e,[]),i={};return Object.keys(t).forEach((e=>{const n=t[e],s=r[e];n.repeated?i[e]=s.map((e=>o(n,e))):i[e]=o(n,s)})),i}r.decode=(e,t)=>{const r=e.decode(new Uint8Array(t));return s(r,r.$type.fields)}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf",file:"node_modules/@trezor/protobuf/lib/decode.js"}],[3323,{"./utils":3328,buffer:4074,"protobufjs/light":5035},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.encode=void 0,r.patch=s;const n=e("protobufjs/light"),i=e("./utils"),o=(e,r)=>{if("bytes"===e)return"string"!=typeof r||r?t.from(r,"hex"):r;if("number"==typeof r&&!Number.isSafeInteger(r))throw new RangeError("field value is not within safe integer range");return r};function s(e,t){const r={};return e.fields?(Object.keys(e.fields).forEach((a=>{const c=e.fields[a],u=t[a];if(void 0!==u)if((0,i.isPrimitiveField)(c.type))c.repeated?r[a]=u.map((e=>o(c.type,e))):r[a]=o(c.type,u);else if(c.repeated){const t=e.lookupTypeOrEnum(c.type);t instanceof n.Enum?r[a]=u:r[a]=u.map((e=>s(t,e)))}else if("object"==typeof u&&null!==u){const t=e.lookupType(c.type);r[a]=s(t,u)}else if("number"==typeof u){const t=e.lookupEnum(c.type);r[a]=t.values[u]}else r[a]=u})),r):r}r.encode=(e,r)=>{const n=s(e,r),i=e.fromObject(n),o=e.encode(i).finish();return t.from(o)}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf",file:"node_modules/@trezor/protobuf/lib/encode.js"}],[3324,{"./decode":3322,"./encode":3323,"./messages":3326,"./messages-schema":3325,"./types":3327,"./utils":3328,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.DeviceModelInternal=r.MessagesSchema=r.createMessageFromType=r.createMessageFromName=r.parseConfigure=r.Messages=void 0;const n=e("tslib");n.__exportStar(e("./decode"),r),n.__exportStar(e("./encode"),r),r.Messages=n.__importStar(e("./messages")),n.__exportStar(e("./types"),r);var i=e("./utils");Object.defineProperty(r,"parseConfigure",{enumerable:!0,get:function(){return i.parseConfigure}}),Object.defineProperty(r,"createMessageFromName",{enumerable:!0,get:function(){return i.createMessageFromName}}),Object.defineProperty(r,"createMessageFromType",{enumerable:!0,get:function(){return i.createMessageFromType}}),r.MessagesSchema=n.__importStar(e("./messages-schema"));var o=e("./messages-schema");Object.defineProperty(r,"DeviceModelInternal",{enumerable:!0,get:function(){return o.DeviceModelInternal}})}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf",file:"node_modules/@trezor/protobuf/lib/index.js"}],[3325,{"@trezor/schema-utils":3335},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TxRequest=r.TxRequestSerializedType=r.TxRequestDetailsType=r.RequestType=r.EnumEnum_RequestType=r.Enum_RequestType=r.SignTx=r.CoinJoinRequest=r.VerifyMessage=r.MessageSignature=r.SignMessage=r.OwnershipId=r.GetOwnershipId=r.Address=r.GetAddress=r.PublicKey=r.GetPublicKey=r.MultisigRedeemScriptType=r.HDNodePathType=r.HDNodeType=r.EnumAmountUnit=r.AmountUnit=r.EnumDecredStakingSpendType=r.DecredStakingSpendType=r.OutputScriptType=r.EnumEnum_OutputScriptType=r.Enum_OutputScriptType=r.InputScriptType=r.EnumEnum_InputScriptType=r.Enum_InputScriptType=r.BinanceSignedTx=r.BinanceCancelMsg=r.BinanceOrderMsg=r.EnumBinanceTimeInForce=r.BinanceTimeInForce=r.EnumBinanceOrderSide=r.BinanceOrderSide=r.EnumBinanceOrderType=r.BinanceOrderType=r.BinanceTransferMsg=r.BinanceInputOutput=r.BinanceCoin=r.BinanceTxRequest=r.BinanceSignTx=r.BinancePublicKey=r.BinanceGetPublicKey=r.BinanceAddress=r.BinanceGetAddress=r.EnumDeviceModelInternal=r.DeviceModelInternal=void 0,r.CardanoPoolRelayType=r.EnumCardanoDRepType=r.CardanoDRepType=r.EnumCardanoCertificateType=r.CardanoCertificateType=r.EnumCardanoTxOutputSerializationFormat=r.CardanoTxOutputSerializationFormat=r.EnumCardanoNativeScriptHashDisplayFormat=r.CardanoNativeScriptHashDisplayFormat=r.EnumCardanoNativeScriptType=r.CardanoNativeScriptType=r.EnumCardanoAddressType=r.CardanoAddressType=r.EnumCardanoDerivationType=r.CardanoDerivationType=r.ProdTestT1=r.FirmwareUpload=r.FirmwareRequest=r.FirmwareErase=r.AuthorizeCoinJoin=r.OwnershipProof=r.GetOwnershipProof=r.TxAckPrevExtraData=r.TxAckPrevExtraDataWrapper=r.TxAckPrevOutput=r.TxAckPrevOutputWrapper=r.TxAckPrevInput=r.TxAckPrevInputWrapper=r.TxAckPrevMeta=r.TxAckOutput=r.TxAckOutputWrapper=r.TxAckInput=r.TxAckInputWrapper=r.TxAck=r.TxAckResponse=r.TxAckPaymentRequest=r.PaymentRequestMemo=r.CoinPurchaseMemo=r.RefundMemo=r.TextMemo=r.PrevOutput=r.PrevInput=r.PrevTx=r.TxOutput=r.TxOutputType=r.ChangeOutputScriptType=r.TxOutputBinType=r.TxInput=r.TxInputType=r.InternalInputScriptType=void 0,r.Failure=r.EnumFailureType=r.FailureType=r.Success=r.CardanoSignTxFinished=r.CardanoTxBodyHash=r.CardanoTxHostAck=r.CardanoTxWitnessResponse=r.CardanoTxWitnessRequest=r.CardanoTxAuxiliaryDataSupplement=r.CardanoTxItemAck=r.CardanoTxReferenceInput=r.CardanoTxRequiredSigner=r.CardanoTxCollateralInput=r.CardanoTxMint=r.CardanoTxAuxiliaryData=r.CardanoCVoteRegistrationParametersType=r.CardanoCVoteRegistrationDelegation=r.CardanoTxWithdrawal=r.CardanoTxCertificate=r.CardanoDRep=r.CardanoPoolParametersType=r.CardanoPoolMetadataType=r.CardanoPoolRelayParameters=r.CardanoPoolOwner=r.CardanoTxReferenceScriptChunk=r.CardanoTxInlineDatumChunk=r.CardanoToken=r.CardanoAssetGroup=r.CardanoTxOutput=r.CardanoTxInput=r.CardanoSignTxInit=r.CardanoPublicKey=r.CardanoGetPublicKey=r.CardanoAddress=r.CardanoGetAddress=r.CardanoAddressParametersType=r.CardanoNativeScriptHash=r.CardanoGetNativeScriptHash=r.CardanoNativeScript=r.CardanoBlockchainPointerType=r.EnumCardanoTxWitnessType=r.CardanoTxWitnessType=r.EnumCardanoTxSigningMode=r.CardanoTxSigningMode=r.EnumCardanoCVoteRegistrationFormat=r.CardanoCVoteRegistrationFormat=r.EnumCardanoTxAuxiliaryDataSupplementType=r.CardanoTxAuxiliaryDataSupplementType=r.EnumCardanoPoolRelayType=void 0,r.EosActionUpdateAuth=r.EosActionVoteProducer=r.EosActionSellRam=r.EosActionBuyRamBytes=r.EosActionBuyRam=r.EosActionRefund=r.EosActionUndelegate=r.EosActionDelegate=r.EosActionTransfer=r.EosActionCommon=r.EosAuthorization=r.EosAuthorizationWait=r.EosAuthorizationAccount=r.EosAuthorizationKey=r.EosPermissionLevel=r.EosAsset=r.EosTxActionRequest=r.EosSignTx=r.EosTxHeader=r.EosPublicKey=r.EosGetPublicKey=r.DebugLinkOptigaSetSecMax=r.DebugLinkResetDebugEvents=r.EnumDebugWaitType=r.DebugWaitType=r.EnumDebugPhysicalButton=r.DebugPhysicalButton=r.EnumDebugButton=r.DebugButton=r.ECDHSessionKey=r.GetECDHSessionKey=r.SignedIdentity=r.SignIdentity=r.IdentityType=r.CipheredKeyValue=r.CipherKeyValue=r.Deprecated_PassphraseStateAck=r.Deprecated_PassphraseStateRequest=r.PassphraseAck=r.PassphraseRequest=r.PinMatrixAck=r.PinMatrixRequest=r.PinMatrixRequestType=r.EnumEnum_PinMatrixRequestType=r.Enum_PinMatrixRequestType=r.ButtonAck=r.ButtonRequest=r.ButtonRequestType=r.EnumEnum_ButtonRequestType=r.Enum_ButtonRequestType=void 0,r.Enum_BackupAvailability=r.GetFeatures=r.Initialize=r.HomescreenFormat=r.EnumEnum_HomescreenFormat=r.Enum_HomescreenFormat=r.DisplayRotation=r.EnumEnum_DisplayRotation=r.Enum_DisplayRotation=r.SafetyCheckLevel=r.EnumEnum_SafetyCheckLevel=r.Enum_SafetyCheckLevel=r.BackupType=r.EnumEnum_BackupType=r.Enum_BackupType=r.EthereumTypedDataSignature=r.EthereumSignTypedHash=r.EthereumVerifyMessage=r.EthereumMessageSignature=r.EthereumSignMessage=r.EthereumTxAck=r.EthereumTxRequest=r.EthereumSignTxEIP1559=r.EthereumAccessList=r.EthereumSignTx=r.EthereumAddress=r.EthereumGetAddress=r.EthereumPublicKey=r.EthereumGetPublicKey=r.EthereumTypedDataValueAck=r.EthereumTypedDataValueRequest=r.EthereumTypedDataStructAck=r.EthereumStructMember=r.EthereumFieldType=r.EnumEthereumDataType=r.EthereumDataType=r.EthereumTypedDataStructRequest=r.EthereumSignTypedData=r.EthereumDefinitions=r.EthereumTokenInfo=r.EthereumNetworkInfo=r.EnumEthereumDefinitionType=r.EthereumDefinitionType=r.EosSignedTx=r.EosTxActionAck=r.EosActionUnknown=r.EosActionNewAccount=r.EosActionUnlinkAuth=r.EosActionLinkAuth=r.EosActionDeleteAuth=void 0,r.GetNextU2FCounter=r.SetU2FCounter=r.WordAck=r.WordRequest=r.WordRequestType=r.EnumEnum_WordRequestType=r.Enum_WordRequestType=r.EntropyAck=r.EntropyRequest=r.BackupDevice=r.Slip39Group=r.ResetDevice=r.LoadDevice=r.WipeDevice=r.AuthenticityProof=r.AuthenticateDevice=r.FirmwareHash=r.GetFirmwareHash=r.Entropy=r.GetEntropy=r.Cancel=r.Ping=r.SdProtect=r.EnumSdProtectOperationType=r.SdProtectOperationType=r.ChangeWipeCode=r.ChangePin=r.ApplyFlags=r.TranslationDataAck=r.TranslationDataRequest=r.ChangeLanguage=r.ApplySettings=r.EndSession=r.SetBusy=r.LockDevice=r.Features=r.RecoveryDevice=r.RecoveryType=r.EnumEnum_RecoveryType=r.Enum_RecoveryType=r.EnumRecoveryDeviceInputMethod=r.RecoveryDeviceInputMethod=r.Capability=r.EnumEnum_Capability=r.Enum_Capability=r.RecoveryStatus=r.EnumEnum_RecoveryStatus=r.Enum_RecoveryStatus=r.BackupAvailability=r.EnumEnum_BackupAvailability=void 0,r.SolanaSignTx=r.SolanaTxAdditionalInfo=r.SolanaTxTokenAccountInfo=r.SolanaAddress=r.SolanaGetAddress=r.SolanaPublicKey=r.SolanaGetPublicKey=r.RippleSignedTx=r.RippleSignTx=r.RipplePayment=r.RippleAddress=r.RippleGetAddress=r.NEMDecryptedMessage=r.NEMDecryptMessage=r.NEMSignedTx=r.NEMSignTx=r.NEMImportanceTransfer=r.EnumNEMImportanceTransferMode=r.NEMImportanceTransferMode=r.NEMAggregateModification=r.NEMCosignatoryModification=r.EnumNEMModificationType=r.NEMModificationType=r.NEMMosaicSupplyChange=r.EnumNEMSupplyChangeType=r.NEMSupplyChangeType=r.NEMMosaicCreation=r.NEMMosaicDefinition=r.EnumNEMMosaicLevy=r.NEMMosaicLevy=r.NEMProvisionNamespace=r.NEMTransfer=r.NEMMosaic=r.NEMTransactionCommon=r.NEMAddress=r.NEMGetAddress=r.SetBrightness=r.UnlockBootloader=r.ShowDeviceTutorial=r.UnlockedPathRequest=r.UnlockPath=r.Nonce=r.GetNonce=r.RebootToBootloader=r.EnumBootCommand=r.BootCommand=r.CancelAuthorization=r.PreauthorizedRequest=r.DoPreauthorized=r.NextU2FCounter=void 0,r.MessageType=r.TezosSignedTx=r.TezosSignTx=r.TezosBallotOp=r.EnumTezosBallotType=r.TezosBallotType=r.TezosProposalOp=r.TezosDelegationOp=r.TezosOriginationOp=r.TezosTransactionOp=r.TezosParametersManager=r.TezosManagerTransfer=r.TezosRevealOp=r.TezosContractID=r.EnumTezosContractType=r.TezosContractType=r.TezosPublicKey=r.TezosGetPublicKey=r.TezosAddress=r.TezosGetAddress=r.StellarSignedTx=r.StellarClaimClaimableBalanceOp=r.StellarBumpSequenceOp=r.StellarManageDataOp=r.StellarAccountMergeOp=r.StellarAllowTrustOp=r.StellarChangeTrustOp=r.StellarSetOptionsOp=r.EnumStellarSignerType=r.StellarSignerType=r.StellarCreatePassiveSellOfferOp=r.StellarManageBuyOfferOp=r.StellarManageSellOfferOp=r.StellarPathPaymentStrictSendOp=r.StellarPathPaymentStrictReceiveOp=r.StellarCreateAccountOp=r.StellarPaymentOp=r.StellarTxOpRequest=r.StellarSignTx=r.EnumStellarMemoType=r.StellarMemoType=r.StellarAddress=r.StellarGetAddress=r.StellarAsset=r.EnumStellarAssetType=r.StellarAssetType=r.SolanaTxSignature=void 0;const n=e("@trezor/schema-utils");var i,o,s,a,c,u,l,p,d;!function(e){e.T1B1="T1B1",e.T2T1="T2T1",e.T2B1="T2B1",e.T3B1="T3B1",e.T3T1="T3T1",e.T3W1="T3W1"}(i||(r.DeviceModelInternal=i={})),r.EnumDeviceModelInternal=n.Type.Enum(i),r.BinanceGetAddress=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),show_display:n.Type.Optional(n.Type.Boolean()),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"BinanceGetAddress"}),r.BinanceAddress=n.Type.Object({address:n.Type.String()},{$id:"BinanceAddress"}),r.BinanceGetPublicKey=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),show_display:n.Type.Optional(n.Type.Boolean())},{$id:"BinanceGetPublicKey"}),r.BinancePublicKey=n.Type.Object({public_key:n.Type.String()},{$id:"BinancePublicKey"}),r.BinanceSignTx=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),msg_count:n.Type.Number(),account_number:n.Type.Number(),chain_id:n.Type.Optional(n.Type.String()),memo:n.Type.Optional(n.Type.String()),sequence:n.Type.Number(),source:n.Type.Number(),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"BinanceSignTx"}),r.BinanceTxRequest=n.Type.Object({},{$id:"BinanceTxRequest"}),r.BinanceCoin=n.Type.Object({amount:n.Type.Uint(),denom:n.Type.String()},{$id:"BinanceCoin"}),r.BinanceInputOutput=n.Type.Object({address:n.Type.String(),coins:n.Type.Array(r.BinanceCoin)},{$id:"BinanceInputOutput"}),r.BinanceTransferMsg=n.Type.Object({inputs:n.Type.Array(r.BinanceInputOutput),outputs:n.Type.Array(r.BinanceInputOutput),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"BinanceTransferMsg"}),function(e){e[e.OT_UNKNOWN=0]="OT_UNKNOWN",e[e.MARKET=1]="MARKET",e[e.LIMIT=2]="LIMIT",e[e.OT_RESERVED=3]="OT_RESERVED"}(o||(r.BinanceOrderType=o={})),r.EnumBinanceOrderType=n.Type.Enum(o),function(e){e[e.SIDE_UNKNOWN=0]="SIDE_UNKNOWN",e[e.BUY=1]="BUY",e[e.SELL=2]="SELL"}(s||(r.BinanceOrderSide=s={})),r.EnumBinanceOrderSide=n.Type.Enum(s),function(e){e[e.TIF_UNKNOWN=0]="TIF_UNKNOWN",e[e.GTE=1]="GTE",e[e.TIF_RESERVED=2]="TIF_RESERVED",e[e.IOC=3]="IOC"}(a||(r.BinanceTimeInForce=a={})),r.EnumBinanceTimeInForce=n.Type.Enum(a),r.BinanceOrderMsg=n.Type.Object({id:n.Type.Optional(n.Type.String()),ordertype:r.EnumBinanceOrderType,price:n.Type.Number(),quantity:n.Type.Number(),sender:n.Type.Optional(n.Type.String()),side:r.EnumBinanceOrderSide,symbol:n.Type.Optional(n.Type.String()),timeinforce:r.EnumBinanceTimeInForce},{$id:"BinanceOrderMsg"}),r.BinanceCancelMsg=n.Type.Object({refid:n.Type.Optional(n.Type.String()),sender:n.Type.Optional(n.Type.String()),symbol:n.Type.Optional(n.Type.String())},{$id:"BinanceCancelMsg"}),r.BinanceSignedTx=n.Type.Object({signature:n.Type.String(),public_key:n.Type.String()},{$id:"BinanceSignedTx"}),function(e){e[e.SPENDADDRESS=0]="SPENDADDRESS",e[e.SPENDMULTISIG=1]="SPENDMULTISIG",e[e.EXTERNAL=2]="EXTERNAL",e[e.SPENDWITNESS=3]="SPENDWITNESS",e[e.SPENDP2SHWITNESS=4]="SPENDP2SHWITNESS",e[e.SPENDTAPROOT=5]="SPENDTAPROOT"}(c||(r.Enum_InputScriptType=c={})),r.EnumEnum_InputScriptType=n.Type.Enum(c),r.InputScriptType=n.Type.KeyOfEnum(c,{$id:"InputScriptType"}),function(e){e[e.PAYTOADDRESS=0]="PAYTOADDRESS",e[e.PAYTOSCRIPTHASH=1]="PAYTOSCRIPTHASH",e[e.PAYTOMULTISIG=2]="PAYTOMULTISIG",e[e.PAYTOOPRETURN=3]="PAYTOOPRETURN",e[e.PAYTOWITNESS=4]="PAYTOWITNESS",e[e.PAYTOP2SHWITNESS=5]="PAYTOP2SHWITNESS",e[e.PAYTOTAPROOT=6]="PAYTOTAPROOT"}(u||(r.Enum_OutputScriptType=u={})),r.EnumEnum_OutputScriptType=n.Type.Enum(u),r.OutputScriptType=n.Type.KeyOfEnum(u,{$id:"OutputScriptType"}),function(e){e[e.SSGen=0]="SSGen",e[e.SSRTX=1]="SSRTX"}(l||(r.DecredStakingSpendType=l={})),r.EnumDecredStakingSpendType=n.Type.Enum(l),function(e){e[e.BITCOIN=0]="BITCOIN",e[e.MILLIBITCOIN=1]="MILLIBITCOIN",e[e.MICROBITCOIN=2]="MICROBITCOIN",e[e.SATOSHI=3]="SATOSHI"}(p||(r.AmountUnit=p={})),r.EnumAmountUnit=n.Type.Enum(p),r.HDNodeType=n.Type.Object({depth:n.Type.Number(),fingerprint:n.Type.Number(),child_num:n.Type.Number(),chain_code:n.Type.String(),private_key:n.Type.Optional(n.Type.String()),public_key:n.Type.String()},{$id:"HDNodeType"}),r.HDNodePathType=n.Type.Object({node:n.Type.Union([r.HDNodeType,n.Type.String()]),address_n:n.Type.Array(n.Type.Number())},{$id:"HDNodePathType"}),r.MultisigRedeemScriptType=n.Type.Object({pubkeys:n.Type.Array(r.HDNodePathType),signatures:n.Type.Array(n.Type.String()),m:n.Type.Number(),nodes:n.Type.Optional(n.Type.Array(r.HDNodeType)),address_n:n.Type.Optional(n.Type.Array(n.Type.Number()))},{$id:"MultisigRedeemScriptType"}),r.GetPublicKey=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),ecdsa_curve_name:n.Type.Optional(n.Type.String()),show_display:n.Type.Optional(n.Type.Boolean()),coin_name:n.Type.Optional(n.Type.String()),script_type:n.Type.Optional(r.InputScriptType),ignore_xpub_magic:n.Type.Optional(n.Type.Boolean())},{$id:"GetPublicKey"}),r.PublicKey=n.Type.Object({node:r.HDNodeType,xpub:n.Type.String(),root_fingerprint:n.Type.Optional(n.Type.Number()),descriptor:n.Type.Optional(n.Type.String())},{$id:"PublicKey"}),r.GetAddress=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),coin_name:n.Type.Optional(n.Type.String()),show_display:n.Type.Optional(n.Type.Boolean()),multisig:n.Type.Optional(r.MultisigRedeemScriptType),script_type:n.Type.Optional(r.InputScriptType),ignore_xpub_magic:n.Type.Optional(n.Type.Boolean()),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"GetAddress"}),r.Address=n.Type.Object({address:n.Type.String(),mac:n.Type.Optional(n.Type.String())},{$id:"Address"}),r.GetOwnershipId=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),coin_name:n.Type.Optional(n.Type.String()),multisig:n.Type.Optional(r.MultisigRedeemScriptType),script_type:n.Type.Optional(r.InputScriptType)},{$id:"GetOwnershipId"}),r.OwnershipId=n.Type.Object({ownership_id:n.Type.String()},{$id:"OwnershipId"}),r.SignMessage=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),message:n.Type.String(),coin_name:n.Type.Optional(n.Type.String()),script_type:n.Type.Optional(r.InputScriptType),no_script_type:n.Type.Optional(n.Type.Boolean()),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"SignMessage"}),r.MessageSignature=n.Type.Object({address:n.Type.String(),signature:n.Type.String()},{$id:"MessageSignature"}),r.VerifyMessage=n.Type.Object({address:n.Type.String(),signature:n.Type.String(),message:n.Type.String(),coin_name:n.Type.Optional(n.Type.String()),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"VerifyMessage"}),r.CoinJoinRequest=n.Type.Object({fee_rate:n.Type.Number(),no_fee_threshold:n.Type.Number(),min_registrable_amount:n.Type.Number(),mask_public_key:n.Type.Optional(n.Type.String()),signature:n.Type.Optional(n.Type.String())},{$id:"CoinJoinRequest"}),r.SignTx=n.Type.Object({outputs_count:n.Type.Number(),inputs_count:n.Type.Number(),coin_name:n.Type.Optional(n.Type.String()),version:n.Type.Optional(n.Type.Number()),lock_time:n.Type.Optional(n.Type.Number()),expiry:n.Type.Optional(n.Type.Number()),overwintered:n.Type.Optional(n.Type.Boolean()),version_group_id:n.Type.Optional(n.Type.Number()),timestamp:n.Type.Optional(n.Type.Number()),branch_id:n.Type.Optional(n.Type.Number()),amount_unit:n.Type.Optional(r.EnumAmountUnit),decred_staking_ticket:n.Type.Optional(n.Type.Boolean()),serialize:n.Type.Optional(n.Type.Boolean()),coinjoin_request:n.Type.Optional(r.CoinJoinRequest),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"SignTx"}),function(e){e[e.TXINPUT=0]="TXINPUT",e[e.TXOUTPUT=1]="TXOUTPUT",e[e.TXMETA=2]="TXMETA",e[e.TXFINISHED=3]="TXFINISHED",e[e.TXEXTRADATA=4]="TXEXTRADATA",e[e.TXORIGINPUT=5]="TXORIGINPUT",e[e.TXORIGOUTPUT=6]="TXORIGOUTPUT",e[e.TXPAYMENTREQ=7]="TXPAYMENTREQ"}(d||(r.Enum_RequestType=d={})),r.EnumEnum_RequestType=n.Type.Enum(d),r.RequestType=n.Type.KeyOfEnum(d,{$id:"RequestType"}),r.TxRequestDetailsType=n.Type.Object({request_index:n.Type.Number(),tx_hash:n.Type.Optional(n.Type.String()),extra_data_len:n.Type.Optional(n.Type.Number()),extra_data_offset:n.Type.Optional(n.Type.Number())},{$id:"TxRequestDetailsType"}),r.TxRequestSerializedType=n.Type.Object({signature_index:n.Type.Optional(n.Type.Number()),signature:n.Type.Optional(n.Type.String()),serialized_tx:n.Type.Optional(n.Type.String())},{$id:"TxRequestSerializedType"}),r.TxRequest=n.Type.Object({request_type:r.RequestType,details:r.TxRequestDetailsType,serialized:n.Type.Optional(r.TxRequestSerializedType)},{$id:"TxRequest"}),r.InternalInputScriptType=n.Type.Exclude(r.InputScriptType,n.Type.Literal("EXTERNAL"),{$id:"InternalInputScriptType"});const h=n.Type.Object({prev_hash:n.Type.String(),prev_index:n.Type.Number(),amount:n.Type.Uint(),sequence:n.Type.Optional(n.Type.Number()),multisig:n.Type.Optional(r.MultisigRedeemScriptType),decred_tree:n.Type.Optional(n.Type.Number()),orig_hash:n.Type.Optional(n.Type.String()),orig_index:n.Type.Optional(n.Type.Number()),decred_staking_spend:n.Type.Optional(r.EnumDecredStakingSpendType),script_pubkey:n.Type.Optional(n.Type.String()),coinjoin_flags:n.Type.Optional(n.Type.Number()),script_sig:n.Type.Optional(n.Type.String()),witness:n.Type.Optional(n.Type.String()),ownership_proof:n.Type.Optional(n.Type.String()),commitment_data:n.Type.Optional(n.Type.String())},{$id:"CommonTxInputType"});var f,y,m,T,g,b,_,O,E,S,v,x,w,A,R,I,P,N,C,j,k,M,L,D,B,z,U,F,$,G,H,K,V,q,W,Y,Q,X,J,Z,ee;r.TxInputType=n.Type.Union([n.Type.Intersect([h,n.Type.Object({address_n:n.Type.Array(n.Type.Number()),script_type:n.Type.Optional(r.InternalInputScriptType)})]),n.Type.Intersect([h,n.Type.Object({address_n:n.Type.Optional(n.Type.Undefined()),script_type:n.Type.Literal("EXTERNAL"),script_pubkey:n.Type.String()})])],{$id:"TxInputType"}),r.TxInput=(0,n.CloneType)(r.TxInputType,{$id:"TxInput"}),r.TxOutputBinType=n.Type.Object({amount:n.Type.Uint(),script_pubkey:n.Type.String(),decred_script_version:n.Type.Optional(n.Type.Number())},{$id:"TxOutputBinType"}),r.ChangeOutputScriptType=n.Type.Exclude(r.OutputScriptType,n.Type.Literal("PAYTOOPRETURN"),{$id:"ChangeOutputScriptType"}),r.TxOutputType=n.Type.Union([n.Type.Object({address:n.Type.String(),address_n:n.Type.Optional(n.Type.Undefined()),script_type:n.Type.Literal("PAYTOADDRESS"),amount:n.Type.Uint(),multisig:n.Type.Optional(r.MultisigRedeemScriptType),orig_hash:n.Type.Optional(n.Type.String()),orig_index:n.Type.Optional(n.Type.Number()),payment_req_index:n.Type.Optional(n.Type.Number())}),n.Type.Object({address:n.Type.Optional(n.Type.Undefined()),address_n:n.Type.Array(n.Type.Number()),script_type:n.Type.Optional(r.ChangeOutputScriptType),amount:n.Type.Uint(),multisig:n.Type.Optional(r.MultisigRedeemScriptType),orig_hash:n.Type.Optional(n.Type.String()),orig_index:n.Type.Optional(n.Type.Number()),payment_req_index:n.Type.Optional(n.Type.Number())}),n.Type.Object({address:n.Type.String(),address_n:n.Type.Optional(n.Type.Undefined()),script_type:n.Type.Optional(r.ChangeOutputScriptType),amount:n.Type.Uint(),multisig:n.Type.Optional(r.MultisigRedeemScriptType),orig_hash:n.Type.Optional(n.Type.String()),orig_index:n.Type.Optional(n.Type.Number()),payment_req_index:n.Type.Optional(n.Type.Number())}),n.Type.Object({address:n.Type.Optional(n.Type.Undefined()),address_n:n.Type.Optional(n.Type.Undefined()),amount:n.Type.Union([n.Type.Literal("0"),n.Type.Literal(0)]),op_return_data:n.Type.String(),script_type:n.Type.Literal("PAYTOOPRETURN"),orig_hash:n.Type.Optional(n.Type.String()),orig_index:n.Type.Optional(n.Type.Number()),payment_req_index:n.Type.Optional(n.Type.Number())})],{$id:"TxOutputType"}),r.TxOutput=(0,n.CloneType)(r.TxOutputType,{$id:"TxOutput"}),r.PrevTx=n.Type.Object({version:n.Type.Number(),lock_time:n.Type.Number(),inputs_count:n.Type.Number(),outputs_count:n.Type.Number(),extra_data_len:n.Type.Optional(n.Type.Number()),expiry:n.Type.Optional(n.Type.Number()),version_group_id:n.Type.Optional(n.Type.Number()),timestamp:n.Type.Optional(n.Type.Number()),branch_id:n.Type.Optional(n.Type.Number())},{$id:"PrevTx"}),r.PrevInput=n.Type.Object({prev_hash:n.Type.String(),prev_index:n.Type.Number(),script_sig:n.Type.String(),sequence:n.Type.Number(),decred_tree:n.Type.Optional(n.Type.Number())},{$id:"PrevInput"}),r.PrevOutput=n.Type.Object({amount:n.Type.Uint(),script_pubkey:n.Type.String(),decred_script_version:n.Type.Optional(n.Type.Number())},{$id:"PrevOutput"}),r.TextMemo=n.Type.Object({text:n.Type.String()},{$id:"TextMemo"}),r.RefundMemo=n.Type.Object({address:n.Type.String(),mac:n.Type.String()},{$id:"RefundMemo"}),r.CoinPurchaseMemo=n.Type.Object({coin_type:n.Type.Number(),amount:n.Type.Uint(),address:n.Type.String(),mac:n.Type.String()},{$id:"CoinPurchaseMemo"}),r.PaymentRequestMemo=n.Type.Object({text_memo:n.Type.Optional(r.TextMemo),refund_memo:n.Type.Optional(r.RefundMemo),coin_purchase_memo:n.Type.Optional(r.CoinPurchaseMemo)},{$id:"PaymentRequestMemo"}),r.TxAckPaymentRequest=n.Type.Object({nonce:n.Type.Optional(n.Type.String()),recipient_name:n.Type.String(),memos:n.Type.Optional(n.Type.Array(r.PaymentRequestMemo)),amount:n.Type.Optional(n.Type.Uint()),signature:n.Type.String()},{$id:"TxAckPaymentRequest"}),r.TxAckResponse=n.Type.Union([n.Type.Object({inputs:n.Type.Array(n.Type.Union([r.TxInputType,r.PrevInput]))}),n.Type.Object({bin_outputs:n.Type.Array(r.TxOutputBinType)}),n.Type.Object({outputs:n.Type.Array(r.TxOutputType)}),n.Type.Object({extra_data:n.Type.String()}),n.Type.Object({version:n.Type.Optional(n.Type.Number()),lock_time:n.Type.Optional(n.Type.Number()),inputs_cnt:n.Type.Number(),outputs_cnt:n.Type.Number(),extra_data:n.Type.Optional(n.Type.String()),extra_data_len:n.Type.Optional(n.Type.Number()),timestamp:n.Type.Optional(n.Type.Number()),version_group_id:n.Type.Optional(n.Type.Number()),expiry:n.Type.Optional(n.Type.Number()),branch_id:n.Type.Optional(n.Type.Number())})],{$id:"TxAckResponse"}),r.TxAck=n.Type.Object({tx:r.TxAckResponse},{$id:"TxAck"}),r.TxAckInputWrapper=n.Type.Object({input:r.TxInput},{$id:"TxAckInputWrapper"}),r.TxAckInput=n.Type.Object({tx:r.TxAckInputWrapper},{$id:"TxAckInput"}),r.TxAckOutputWrapper=n.Type.Object({output:r.TxOutput},{$id:"TxAckOutputWrapper"}),r.TxAckOutput=n.Type.Object({tx:r.TxAckOutputWrapper},{$id:"TxAckOutput"}),r.TxAckPrevMeta=n.Type.Object({tx:r.PrevTx},{$id:"TxAckPrevMeta"}),r.TxAckPrevInputWrapper=n.Type.Object({input:r.PrevInput},{$id:"TxAckPrevInputWrapper"}),r.TxAckPrevInput=n.Type.Object({tx:r.TxAckPrevInputWrapper},{$id:"TxAckPrevInput"}),r.TxAckPrevOutputWrapper=n.Type.Object({output:r.PrevOutput},{$id:"TxAckPrevOutputWrapper"}),r.TxAckPrevOutput=n.Type.Object({tx:r.TxAckPrevOutputWrapper},{$id:"TxAckPrevOutput"}),r.TxAckPrevExtraDataWrapper=n.Type.Object({extra_data_chunk:n.Type.String()},{$id:"TxAckPrevExtraDataWrapper"}),r.TxAckPrevExtraData=n.Type.Object({tx:r.TxAckPrevExtraDataWrapper},{$id:"TxAckPrevExtraData"}),r.GetOwnershipProof=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),coin_name:n.Type.Optional(n.Type.String()),script_type:n.Type.Optional(r.InputScriptType),multisig:n.Type.Optional(r.MultisigRedeemScriptType),user_confirmation:n.Type.Optional(n.Type.Boolean()),ownership_ids:n.Type.Optional(n.Type.Array(n.Type.String())),commitment_data:n.Type.Optional(n.Type.String())},{$id:"GetOwnershipProof"}),r.OwnershipProof=n.Type.Object({ownership_proof:n.Type.String(),signature:n.Type.String()},{$id:"OwnershipProof"}),r.AuthorizeCoinJoin=n.Type.Object({coordinator:n.Type.String(),max_rounds:n.Type.Number(),max_coordinator_fee_rate:n.Type.Number(),max_fee_per_kvbyte:n.Type.Number(),address_n:n.Type.Array(n.Type.Number()),coin_name:n.Type.Optional(n.Type.String()),script_type:n.Type.Optional(r.InputScriptType),amount_unit:n.Type.Optional(r.EnumAmountUnit)},{$id:"AuthorizeCoinJoin"}),r.FirmwareErase=n.Type.Object({length:n.Type.Optional(n.Type.Number())},{$id:"FirmwareErase"}),r.FirmwareRequest=n.Type.Object({offset:n.Type.Number(),length:n.Type.Number()},{$id:"FirmwareRequest"}),r.FirmwareUpload=n.Type.Object({payload:n.Type.Union([n.Type.Buffer(),n.Type.ArrayBuffer()]),hash:n.Type.Optional(n.Type.String())},{$id:"FirmwareUpload"}),r.ProdTestT1=n.Type.Object({payload:n.Type.Optional(n.Type.String())},{$id:"ProdTestT1"}),function(e){e[e.LEDGER=0]="LEDGER",e[e.ICARUS=1]="ICARUS",e[e.ICARUS_TREZOR=2]="ICARUS_TREZOR"}(f||(r.CardanoDerivationType=f={})),r.EnumCardanoDerivationType=n.Type.Enum(f),function(e){e[e.BASE=0]="BASE",e[e.BASE_SCRIPT_KEY=1]="BASE_SCRIPT_KEY",e[e.BASE_KEY_SCRIPT=2]="BASE_KEY_SCRIPT",e[e.BASE_SCRIPT_SCRIPT=3]="BASE_SCRIPT_SCRIPT",e[e.POINTER=4]="POINTER",e[e.POINTER_SCRIPT=5]="POINTER_SCRIPT",e[e.ENTERPRISE=6]="ENTERPRISE",e[e.ENTERPRISE_SCRIPT=7]="ENTERPRISE_SCRIPT",e[e.BYRON=8]="BYRON",e[e.REWARD=14]="REWARD",e[e.REWARD_SCRIPT=15]="REWARD_SCRIPT"}(y||(r.CardanoAddressType=y={})),r.EnumCardanoAddressType=n.Type.Enum(y),function(e){e[e.PUB_KEY=0]="PUB_KEY",e[e.ALL=1]="ALL",e[e.ANY=2]="ANY",e[e.N_OF_K=3]="N_OF_K",e[e.INVALID_BEFORE=4]="INVALID_BEFORE",e[e.INVALID_HEREAFTER=5]="INVALID_HEREAFTER"}(m||(r.CardanoNativeScriptType=m={})),r.EnumCardanoNativeScriptType=n.Type.Enum(m),function(e){e[e.HIDE=0]="HIDE",e[e.BECH32=1]="BECH32",e[e.POLICY_ID=2]="POLICY_ID"}(T||(r.CardanoNativeScriptHashDisplayFormat=T={})),r.EnumCardanoNativeScriptHashDisplayFormat=n.Type.Enum(T),function(e){e[e.ARRAY_LEGACY=0]="ARRAY_LEGACY",e[e.MAP_BABBAGE=1]="MAP_BABBAGE"}(g||(r.CardanoTxOutputSerializationFormat=g={})),r.EnumCardanoTxOutputSerializationFormat=n.Type.Enum(g),function(e){e[e.STAKE_REGISTRATION=0]="STAKE_REGISTRATION",e[e.STAKE_DEREGISTRATION=1]="STAKE_DEREGISTRATION",e[e.STAKE_DELEGATION=2]="STAKE_DELEGATION",e[e.STAKE_POOL_REGISTRATION=3]="STAKE_POOL_REGISTRATION",e[e.STAKE_REGISTRATION_CONWAY=7]="STAKE_REGISTRATION_CONWAY",e[e.STAKE_DEREGISTRATION_CONWAY=8]="STAKE_DEREGISTRATION_CONWAY",e[e.VOTE_DELEGATION=9]="VOTE_DELEGATION"}(b||(r.CardanoCertificateType=b={})),r.EnumCardanoCertificateType=n.Type.Enum(b),function(e){e[e.KEY_HASH=0]="KEY_HASH",e[e.SCRIPT_HASH=1]="SCRIPT_HASH",e[e.ABSTAIN=2]="ABSTAIN",e[e.NO_CONFIDENCE=3]="NO_CONFIDENCE"}(_||(r.CardanoDRepType=_={})),r.EnumCardanoDRepType=n.Type.Enum(_),function(e){e[e.SINGLE_HOST_IP=0]="SINGLE_HOST_IP",e[e.SINGLE_HOST_NAME=1]="SINGLE_HOST_NAME",e[e.MULTIPLE_HOST_NAME=2]="MULTIPLE_HOST_NAME"}(O||(r.CardanoPoolRelayType=O={})),r.EnumCardanoPoolRelayType=n.Type.Enum(O),function(e){e[e.NONE=0]="NONE",e[e.CVOTE_REGISTRATION_SIGNATURE=1]="CVOTE_REGISTRATION_SIGNATURE"}(E||(r.CardanoTxAuxiliaryDataSupplementType=E={})),r.EnumCardanoTxAuxiliaryDataSupplementType=n.Type.Enum(E),function(e){e[e.CIP15=0]="CIP15",e[e.CIP36=1]="CIP36"}(S||(r.CardanoCVoteRegistrationFormat=S={})),r.EnumCardanoCVoteRegistrationFormat=n.Type.Enum(S),function(e){e[e.ORDINARY_TRANSACTION=0]="ORDINARY_TRANSACTION",e[e.POOL_REGISTRATION_AS_OWNER=1]="POOL_REGISTRATION_AS_OWNER",e[e.MULTISIG_TRANSACTION=2]="MULTISIG_TRANSACTION",e[e.PLUTUS_TRANSACTION=3]="PLUTUS_TRANSACTION"}(v||(r.CardanoTxSigningMode=v={})),r.EnumCardanoTxSigningMode=n.Type.Enum(v),function(e){e[e.BYRON_WITNESS=0]="BYRON_WITNESS",e[e.SHELLEY_WITNESS=1]="SHELLEY_WITNESS"}(x||(r.CardanoTxWitnessType=x={})),r.EnumCardanoTxWitnessType=n.Type.Enum(x),r.CardanoBlockchainPointerType=n.Type.Object({block_index:n.Type.Number(),tx_index:n.Type.Number(),certificate_index:n.Type.Number()},{$id:"CardanoBlockchainPointerType"}),r.CardanoNativeScript=n.Type.Recursive((e=>n.Type.Object({type:r.EnumCardanoNativeScriptType,scripts:n.Type.Optional(n.Type.Array(e)),key_hash:n.Type.Optional(n.Type.String()),key_path:n.Type.Optional(n.Type.Array(n.Type.Number())),required_signatures_count:n.Type.Optional(n.Type.Number()),invalid_before:n.Type.Optional(n.Type.Uint()),invalid_hereafter:n.Type.Optional(n.Type.Uint())})),{$id:"CardanoNativeScript"}),r.CardanoGetNativeScriptHash=n.Type.Object({script:r.CardanoNativeScript,display_format:r.EnumCardanoNativeScriptHashDisplayFormat,derivation_type:r.EnumCardanoDerivationType},{$id:"CardanoGetNativeScriptHash"}),r.CardanoNativeScriptHash=n.Type.Object({script_hash:n.Type.String()},{$id:"CardanoNativeScriptHash"}),r.CardanoAddressParametersType=n.Type.Object({address_type:r.EnumCardanoAddressType,address_n:n.Type.Array(n.Type.Number()),address_n_staking:n.Type.Array(n.Type.Number()),staking_key_hash:n.Type.Optional(n.Type.String()),certificate_pointer:n.Type.Optional(r.CardanoBlockchainPointerType),script_payment_hash:n.Type.Optional(n.Type.String()),script_staking_hash:n.Type.Optional(n.Type.String())},{$id:"CardanoAddressParametersType"}),r.CardanoGetAddress=n.Type.Object({show_display:n.Type.Optional(n.Type.Boolean()),protocol_magic:n.Type.Number(),network_id:n.Type.Number(),address_parameters:r.CardanoAddressParametersType,derivation_type:r.EnumCardanoDerivationType,chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"CardanoGetAddress"}),r.CardanoAddress=n.Type.Object({address:n.Type.String()},{$id:"CardanoAddress"}),r.CardanoGetPublicKey=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),show_display:n.Type.Optional(n.Type.Boolean()),derivation_type:r.EnumCardanoDerivationType},{$id:"CardanoGetPublicKey"}),r.CardanoPublicKey=n.Type.Object({xpub:n.Type.String(),node:r.HDNodeType},{$id:"CardanoPublicKey"}),r.CardanoSignTxInit=n.Type.Object({signing_mode:r.EnumCardanoTxSigningMode,protocol_magic:n.Type.Number(),network_id:n.Type.Number(),inputs_count:n.Type.Number(),outputs_count:n.Type.Number(),fee:n.Type.Uint(),ttl:n.Type.Optional(n.Type.Uint()),certificates_count:n.Type.Number(),withdrawals_count:n.Type.Number(),has_auxiliary_data:n.Type.Boolean(),validity_interval_start:n.Type.Optional(n.Type.Uint()),witness_requests_count:n.Type.Number(),minting_asset_groups_count:n.Type.Number(),derivation_type:r.EnumCardanoDerivationType,include_network_id:n.Type.Optional(n.Type.Boolean()),script_data_hash:n.Type.Optional(n.Type.String()),collateral_inputs_count:n.Type.Number(),required_signers_count:n.Type.Number(),has_collateral_return:n.Type.Optional(n.Type.Boolean()),total_collateral:n.Type.Optional(n.Type.Uint()),reference_inputs_count:n.Type.Optional(n.Type.Number()),chunkify:n.Type.Optional(n.Type.Boolean()),tag_cbor_sets:n.Type.Optional(n.Type.Boolean())},{$id:"CardanoSignTxInit"}),r.CardanoTxInput=n.Type.Object({prev_hash:n.Type.String(),prev_index:n.Type.Number()},{$id:"CardanoTxInput"}),r.CardanoTxOutput=n.Type.Object({address:n.Type.Optional(n.Type.String()),address_parameters:n.Type.Optional(r.CardanoAddressParametersType),amount:n.Type.Uint(),asset_groups_count:n.Type.Number(),datum_hash:n.Type.Optional(n.Type.String()),format:n.Type.Optional(r.EnumCardanoTxOutputSerializationFormat),inline_datum_size:n.Type.Optional(n.Type.Number()),reference_script_size:n.Type.Optional(n.Type.Number())},{$id:"CardanoTxOutput"}),r.CardanoAssetGroup=n.Type.Object({policy_id:n.Type.String(),tokens_count:n.Type.Number()},{$id:"CardanoAssetGroup"}),r.CardanoToken=n.Type.Object({asset_name_bytes:n.Type.String(),amount:n.Type.Optional(n.Type.Uint()),mint_amount:n.Type.Optional(n.Type.Uint({allowNegative:!0}))},{$id:"CardanoToken"}),r.CardanoTxInlineDatumChunk=n.Type.Object({data:n.Type.String()},{$id:"CardanoTxInlineDatumChunk"}),r.CardanoTxReferenceScriptChunk=n.Type.Object({data:n.Type.String()},{$id:"CardanoTxReferenceScriptChunk"}),r.CardanoPoolOwner=n.Type.Object({staking_key_path:n.Type.Optional(n.Type.Array(n.Type.Number())),staking_key_hash:n.Type.Optional(n.Type.String())},{$id:"CardanoPoolOwner"}),r.CardanoPoolRelayParameters=n.Type.Object({type:r.EnumCardanoPoolRelayType,ipv4_address:n.Type.Optional(n.Type.String()),ipv6_address:n.Type.Optional(n.Type.String()),host_name:n.Type.Optional(n.Type.String()),port:n.Type.Optional(n.Type.Number())},{$id:"CardanoPoolRelayParameters"}),r.CardanoPoolMetadataType=n.Type.Object({url:n.Type.String(),hash:n.Type.String()},{$id:"CardanoPoolMetadataType"}),r.CardanoPoolParametersType=n.Type.Object({pool_id:n.Type.String(),vrf_key_hash:n.Type.String(),pledge:n.Type.Uint(),cost:n.Type.Uint(),margin_numerator:n.Type.Uint(),margin_denominator:n.Type.Uint(),reward_account:n.Type.String(),metadata:n.Type.Optional(r.CardanoPoolMetadataType),owners_count:n.Type.Number(),relays_count:n.Type.Number()},{$id:"CardanoPoolParametersType"}),r.CardanoDRep=n.Type.Object({type:r.EnumCardanoDRepType,key_hash:n.Type.Optional(n.Type.String()),script_hash:n.Type.Optional(n.Type.String())},{$id:"CardanoDRep"}),r.CardanoTxCertificate=n.Type.Object({type:r.EnumCardanoCertificateType,path:n.Type.Optional(n.Type.Array(n.Type.Number())),pool:n.Type.Optional(n.Type.String()),pool_parameters:n.Type.Optional(r.CardanoPoolParametersType),script_hash:n.Type.Optional(n.Type.String()),key_hash:n.Type.Optional(n.Type.String()),deposit:n.Type.Optional(n.Type.Uint()),drep:n.Type.Optional(r.CardanoDRep)},{$id:"CardanoTxCertificate"}),r.CardanoTxWithdrawal=n.Type.Object({path:n.Type.Optional(n.Type.Array(n.Type.Number())),amount:n.Type.Uint(),script_hash:n.Type.Optional(n.Type.String()),key_hash:n.Type.Optional(n.Type.String())},{$id:"CardanoTxWithdrawal"}),r.CardanoCVoteRegistrationDelegation=n.Type.Object({vote_public_key:n.Type.String(),weight:n.Type.Uint()},{$id:"CardanoCVoteRegistrationDelegation"}),r.CardanoCVoteRegistrationParametersType=n.Type.Object({vote_public_key:n.Type.Optional(n.Type.String()),staking_path:n.Type.Array(n.Type.Number()),payment_address_parameters:n.Type.Optional(r.CardanoAddressParametersType),nonce:n.Type.Uint(),format:n.Type.Optional(r.EnumCardanoCVoteRegistrationFormat),delegations:n.Type.Optional(n.Type.Array(r.CardanoCVoteRegistrationDelegation)),voting_purpose:n.Type.Optional(n.Type.Uint()),payment_address:n.Type.Optional(n.Type.String())},{$id:"CardanoCVoteRegistrationParametersType"}),r.CardanoTxAuxiliaryData=n.Type.Object({cvote_registration_parameters:n.Type.Optional(r.CardanoCVoteRegistrationParametersType),hash:n.Type.Optional(n.Type.String())},{$id:"CardanoTxAuxiliaryData"}),r.CardanoTxMint=n.Type.Object({asset_groups_count:n.Type.Number()},{$id:"CardanoTxMint"}),r.CardanoTxCollateralInput=n.Type.Object({prev_hash:n.Type.String(),prev_index:n.Type.Number()},{$id:"CardanoTxCollateralInput"}),r.CardanoTxRequiredSigner=n.Type.Object({key_hash:n.Type.Optional(n.Type.String()),key_path:n.Type.Optional(n.Type.Array(n.Type.Number()))},{$id:"CardanoTxRequiredSigner"}),r.CardanoTxReferenceInput=n.Type.Object({prev_hash:n.Type.String(),prev_index:n.Type.Number()},{$id:"CardanoTxReferenceInput"}),r.CardanoTxItemAck=n.Type.Object({},{$id:"CardanoTxItemAck"}),r.CardanoTxAuxiliaryDataSupplement=n.Type.Object({type:r.EnumCardanoTxAuxiliaryDataSupplementType,auxiliary_data_hash:n.Type.Optional(n.Type.String()),cvote_registration_signature:n.Type.Optional(n.Type.String())},{$id:"CardanoTxAuxiliaryDataSupplement"}),r.CardanoTxWitnessRequest=n.Type.Object({path:n.Type.Array(n.Type.Number())},{$id:"CardanoTxWitnessRequest"}),r.CardanoTxWitnessResponse=n.Type.Object({type:r.EnumCardanoTxWitnessType,pub_key:n.Type.String(),signature:n.Type.String(),chain_code:n.Type.Optional(n.Type.String())},{$id:"CardanoTxWitnessResponse"}),r.CardanoTxHostAck=n.Type.Object({},{$id:"CardanoTxHostAck"}),r.CardanoTxBodyHash=n.Type.Object({tx_hash:n.Type.String()},{$id:"CardanoTxBodyHash"}),r.CardanoSignTxFinished=n.Type.Object({},{$id:"CardanoSignTxFinished"}),r.Success=n.Type.Object({message:n.Type.String()},{$id:"Success"}),function(e){e[e.Failure_UnexpectedMessage=1]="Failure_UnexpectedMessage",e[e.Failure_ButtonExpected=2]="Failure_ButtonExpected",e[e.Failure_DataError=3]="Failure_DataError",e[e.Failure_ActionCancelled=4]="Failure_ActionCancelled",e[e.Failure_PinExpected=5]="Failure_PinExpected",e[e.Failure_PinCancelled=6]="Failure_PinCancelled",e[e.Failure_PinInvalid=7]="Failure_PinInvalid",e[e.Failure_InvalidSignature=8]="Failure_InvalidSignature",e[e.Failure_ProcessError=9]="Failure_ProcessError",e[e.Failure_NotEnoughFunds=10]="Failure_NotEnoughFunds",e[e.Failure_NotInitialized=11]="Failure_NotInitialized",e[e.Failure_PinMismatch=12]="Failure_PinMismatch",e[e.Failure_WipeCodeMismatch=13]="Failure_WipeCodeMismatch",e[e.Failure_InvalidSession=14]="Failure_InvalidSession",e[e.Failure_FirmwareError=99]="Failure_FirmwareError"}(w||(r.FailureType=w={})),r.EnumFailureType=n.Type.Enum(w),r.Failure=n.Type.Object({code:n.Type.Optional(r.EnumFailureType),message:n.Type.Optional(n.Type.String())},{$id:"Failure"}),function(e){e[e.ButtonRequest_Other=1]="ButtonRequest_Other",e[e.ButtonRequest_FeeOverThreshold=2]="ButtonRequest_FeeOverThreshold",e[e.ButtonRequest_ConfirmOutput=3]="ButtonRequest_ConfirmOutput",e[e.ButtonRequest_ResetDevice=4]="ButtonRequest_ResetDevice",e[e.ButtonRequest_ConfirmWord=5]="ButtonRequest_ConfirmWord",e[e.ButtonRequest_WipeDevice=6]="ButtonRequest_WipeDevice",e[e.ButtonRequest_ProtectCall=7]="ButtonRequest_ProtectCall",e[e.ButtonRequest_SignTx=8]="ButtonRequest_SignTx",e[e.ButtonRequest_FirmwareCheck=9]="ButtonRequest_FirmwareCheck",e[e.ButtonRequest_Address=10]="ButtonRequest_Address",e[e.ButtonRequest_PublicKey=11]="ButtonRequest_PublicKey",e[e.ButtonRequest_MnemonicWordCount=12]="ButtonRequest_MnemonicWordCount",e[e.ButtonRequest_MnemonicInput=13]="ButtonRequest_MnemonicInput",e[e._Deprecated_ButtonRequest_PassphraseType=14]="_Deprecated_ButtonRequest_PassphraseType",e[e.ButtonRequest_UnknownDerivationPath=15]="ButtonRequest_UnknownDerivationPath",e[e.ButtonRequest_RecoveryHomepage=16]="ButtonRequest_RecoveryHomepage",e[e.ButtonRequest_Success=17]="ButtonRequest_Success",e[e.ButtonRequest_Warning=18]="ButtonRequest_Warning",e[e.ButtonRequest_PassphraseEntry=19]="ButtonRequest_PassphraseEntry",e[e.ButtonRequest_PinEntry=20]="ButtonRequest_PinEntry"}(A||(r.Enum_ButtonRequestType=A={})),r.EnumEnum_ButtonRequestType=n.Type.Enum(A),r.ButtonRequestType=n.Type.KeyOfEnum(A,{$id:"ButtonRequestType"}),r.ButtonRequest=n.Type.Object({code:n.Type.Optional(r.ButtonRequestType),pages:n.Type.Optional(n.Type.Number()),name:n.Type.Optional(n.Type.String())},{$id:"ButtonRequest"}),r.ButtonAck=n.Type.Object({},{$id:"ButtonAck"}),function(e){e[e.PinMatrixRequestType_Current=1]="PinMatrixRequestType_Current",e[e.PinMatrixRequestType_NewFirst=2]="PinMatrixRequestType_NewFirst",e[e.PinMatrixRequestType_NewSecond=3]="PinMatrixRequestType_NewSecond",e[e.PinMatrixRequestType_WipeCodeFirst=4]="PinMatrixRequestType_WipeCodeFirst",e[e.PinMatrixRequestType_WipeCodeSecond=5]="PinMatrixRequestType_WipeCodeSecond"}(R||(r.Enum_PinMatrixRequestType=R={})),r.EnumEnum_PinMatrixRequestType=n.Type.Enum(R),r.PinMatrixRequestType=n.Type.KeyOfEnum(R,{$id:"PinMatrixRequestType"}),r.PinMatrixRequest=n.Type.Object({type:n.Type.Optional(r.PinMatrixRequestType)},{$id:"PinMatrixRequest"}),r.PinMatrixAck=n.Type.Object({pin:n.Type.String()},{$id:"PinMatrixAck"}),r.PassphraseRequest=n.Type.Object({_on_device:n.Type.Optional(n.Type.Boolean())},{$id:"PassphraseRequest"}),r.PassphraseAck=n.Type.Object({passphrase:n.Type.Optional(n.Type.String()),_state:n.Type.Optional(n.Type.String()),on_device:n.Type.Optional(n.Type.Boolean())},{$id:"PassphraseAck"}),r.Deprecated_PassphraseStateRequest=n.Type.Object({state:n.Type.Optional(n.Type.String())},{$id:"Deprecated_PassphraseStateRequest"}),r.Deprecated_PassphraseStateAck=n.Type.Object({},{$id:"Deprecated_PassphraseStateAck"}),r.CipherKeyValue=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),key:n.Type.String(),value:n.Type.String(),encrypt:n.Type.Optional(n.Type.Boolean()),ask_on_encrypt:n.Type.Optional(n.Type.Boolean()),ask_on_decrypt:n.Type.Optional(n.Type.Boolean()),iv:n.Type.Optional(n.Type.String())},{$id:"CipherKeyValue"}),r.CipheredKeyValue=n.Type.Object({value:n.Type.String()},{$id:"CipheredKeyValue"}),r.IdentityType=n.Type.Object({proto:n.Type.Optional(n.Type.String()),user:n.Type.Optional(n.Type.String()),host:n.Type.Optional(n.Type.String()),port:n.Type.Optional(n.Type.String()),path:n.Type.Optional(n.Type.String()),index:n.Type.Optional(n.Type.Number())},{$id:"IdentityType"}),r.SignIdentity=n.Type.Object({identity:r.IdentityType,challenge_hidden:n.Type.Optional(n.Type.String()),challenge_visual:n.Type.Optional(n.Type.String()),ecdsa_curve_name:n.Type.Optional(n.Type.String())},{$id:"SignIdentity"}),r.SignedIdentity=n.Type.Object({address:n.Type.String(),public_key:n.Type.String(),signature:n.Type.String()},{$id:"SignedIdentity"}),r.GetECDHSessionKey=n.Type.Object({identity:r.IdentityType,peer_public_key:n.Type.String(),ecdsa_curve_name:n.Type.Optional(n.Type.String())},{$id:"GetECDHSessionKey"}),r.ECDHSessionKey=n.Type.Object({session_key:n.Type.String(),public_key:n.Type.Optional(n.Type.String())},{$id:"ECDHSessionKey"}),function(e){e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.INFO=2]="INFO"}(I||(r.DebugButton=I={})),r.EnumDebugButton=n.Type.Enum(I),function(e){e[e.LEFT_BTN=0]="LEFT_BTN",e[e.MIDDLE_BTN=1]="MIDDLE_BTN",e[e.RIGHT_BTN=2]="RIGHT_BTN"}(P||(r.DebugPhysicalButton=P={})),r.EnumDebugPhysicalButton=n.Type.Enum(P),function(e){e[e.IMMEDIATE=0]="IMMEDIATE",e[e.NEXT_LAYOUT=1]="NEXT_LAYOUT",e[e.CURRENT_LAYOUT=2]="CURRENT_LAYOUT"}(N||(r.DebugWaitType=N={})),r.EnumDebugWaitType=n.Type.Enum(N),r.DebugLinkResetDebugEvents=n.Type.Object({},{$id:"DebugLinkResetDebugEvents"}),r.DebugLinkOptigaSetSecMax=n.Type.Object({},{$id:"DebugLinkOptigaSetSecMax"}),r.EosGetPublicKey=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),show_display:n.Type.Optional(n.Type.Boolean()),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"EosGetPublicKey"}),r.EosPublicKey=n.Type.Object({wif_public_key:n.Type.String(),raw_public_key:n.Type.String()},{$id:"EosPublicKey"}),r.EosTxHeader=n.Type.Object({expiration:n.Type.Number(),ref_block_num:n.Type.Number(),ref_block_prefix:n.Type.Number(),max_net_usage_words:n.Type.Number(),max_cpu_usage_ms:n.Type.Number(),delay_sec:n.Type.Number()},{$id:"EosTxHeader"}),r.EosSignTx=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),chain_id:n.Type.String(),header:r.EosTxHeader,num_actions:n.Type.Number(),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"EosSignTx"}),r.EosTxActionRequest=n.Type.Object({data_size:n.Type.Optional(n.Type.Number())},{$id:"EosTxActionRequest"}),r.EosAsset=n.Type.Object({amount:n.Type.Uint(),symbol:n.Type.String()},{$id:"EosAsset"}),r.EosPermissionLevel=n.Type.Object({actor:n.Type.String(),permission:n.Type.String()},{$id:"EosPermissionLevel"}),r.EosAuthorizationKey=n.Type.Object({type:n.Type.Optional(n.Type.Number()),key:n.Type.String(),address_n:n.Type.Optional(n.Type.Array(n.Type.Number())),weight:n.Type.Number()},{$id:"EosAuthorizationKey"}),r.EosAuthorizationAccount=n.Type.Object({account:r.EosPermissionLevel,weight:n.Type.Number()},{$id:"EosAuthorizationAccount"}),r.EosAuthorizationWait=n.Type.Object({wait_sec:n.Type.Number(),weight:n.Type.Number()},{$id:"EosAuthorizationWait"}),r.EosAuthorization=n.Type.Object({threshold:n.Type.Number(),keys:n.Type.Array(r.EosAuthorizationKey),accounts:n.Type.Array(r.EosAuthorizationAccount),waits:n.Type.Array(r.EosAuthorizationWait)},{$id:"EosAuthorization"}),r.EosActionCommon=n.Type.Object({account:n.Type.String(),name:n.Type.String(),authorization:n.Type.Array(r.EosPermissionLevel)},{$id:"EosActionCommon"}),r.EosActionTransfer=n.Type.Object({sender:n.Type.String(),receiver:n.Type.String(),quantity:r.EosAsset,memo:n.Type.String()},{$id:"EosActionTransfer"}),r.EosActionDelegate=n.Type.Object({sender:n.Type.String(),receiver:n.Type.String(),net_quantity:r.EosAsset,cpu_quantity:r.EosAsset,transfer:n.Type.Boolean()},{$id:"EosActionDelegate"}),r.EosActionUndelegate=n.Type.Object({sender:n.Type.String(),receiver:n.Type.String(),net_quantity:r.EosAsset,cpu_quantity:r.EosAsset},{$id:"EosActionUndelegate"}),r.EosActionRefund=n.Type.Object({owner:n.Type.String()},{$id:"EosActionRefund"}),r.EosActionBuyRam=n.Type.Object({payer:n.Type.String(),receiver:n.Type.String(),quantity:r.EosAsset},{$id:"EosActionBuyRam"}),r.EosActionBuyRamBytes=n.Type.Object({payer:n.Type.String(),receiver:n.Type.String(),bytes:n.Type.Number()},{$id:"EosActionBuyRamBytes"}),r.EosActionSellRam=n.Type.Object({account:n.Type.String(),bytes:n.Type.Number()},{$id:"EosActionSellRam"}),r.EosActionVoteProducer=n.Type.Object({voter:n.Type.String(),proxy:n.Type.String(),producers:n.Type.Array(n.Type.String())},{$id:"EosActionVoteProducer"}),r.EosActionUpdateAuth=n.Type.Object({account:n.Type.String(),permission:n.Type.String(),parent:n.Type.String(),auth:r.EosAuthorization},{$id:"EosActionUpdateAuth"}),r.EosActionDeleteAuth=n.Type.Object({account:n.Type.String(),permission:n.Type.String()},{$id:"EosActionDeleteAuth"}),r.EosActionLinkAuth=n.Type.Object({account:n.Type.String(),code:n.Type.String(),type:n.Type.String(),requirement:n.Type.String()},{$id:"EosActionLinkAuth"}),r.EosActionUnlinkAuth=n.Type.Object({account:n.Type.String(),code:n.Type.String(),type:n.Type.String()},{$id:"EosActionUnlinkAuth"}),r.EosActionNewAccount=n.Type.Object({creator:n.Type.String(),name:n.Type.String(),owner:r.EosAuthorization,active:r.EosAuthorization},{$id:"EosActionNewAccount"}),r.EosActionUnknown=n.Type.Object({data_size:n.Type.Number(),data_chunk:n.Type.String()},{$id:"EosActionUnknown"}),r.EosTxActionAck=n.Type.Object({common:r.EosActionCommon,transfer:n.Type.Optional(r.EosActionTransfer),delegate:n.Type.Optional(r.EosActionDelegate),undelegate:n.Type.Optional(r.EosActionUndelegate),refund:n.Type.Optional(r.EosActionRefund),buy_ram:n.Type.Optional(r.EosActionBuyRam),buy_ram_bytes:n.Type.Optional(r.EosActionBuyRamBytes),sell_ram:n.Type.Optional(r.EosActionSellRam),vote_producer:n.Type.Optional(r.EosActionVoteProducer),update_auth:n.Type.Optional(r.EosActionUpdateAuth),delete_auth:n.Type.Optional(r.EosActionDeleteAuth),link_auth:n.Type.Optional(r.EosActionLinkAuth),unlink_auth:n.Type.Optional(r.EosActionUnlinkAuth),new_account:n.Type.Optional(r.EosActionNewAccount),unknown:n.Type.Optional(r.EosActionUnknown)},{$id:"EosTxActionAck"}),r.EosSignedTx=n.Type.Object({signature:n.Type.String()},{$id:"EosSignedTx"}),function(e){e[e.NETWORK=0]="NETWORK",e[e.TOKEN=1]="TOKEN"}(C||(r.EthereumDefinitionType=C={})),r.EnumEthereumDefinitionType=n.Type.Enum(C),r.EthereumNetworkInfo=n.Type.Object({chain_id:n.Type.Number(),symbol:n.Type.String(),slip44:n.Type.Number(),name:n.Type.String()},{$id:"EthereumNetworkInfo"}),r.EthereumTokenInfo=n.Type.Object({address:n.Type.String(),chain_id:n.Type.Number(),symbol:n.Type.String(),decimals:n.Type.Number(),name:n.Type.String()},{$id:"EthereumTokenInfo"}),r.EthereumDefinitions=n.Type.Object({encoded_network:n.Type.Optional(n.Type.ArrayBuffer()),encoded_token:n.Type.Optional(n.Type.ArrayBuffer())},{$id:"EthereumDefinitions"}),r.EthereumSignTypedData=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),primary_type:n.Type.String(),metamask_v4_compat:n.Type.Optional(n.Type.Boolean()),definitions:n.Type.Optional(r.EthereumDefinitions)},{$id:"EthereumSignTypedData"}),r.EthereumTypedDataStructRequest=n.Type.Object({name:n.Type.String()},{$id:"EthereumTypedDataStructRequest"}),function(e){e[e.UINT=1]="UINT",e[e.INT=2]="INT",e[e.BYTES=3]="BYTES",e[e.STRING=4]="STRING",e[e.BOOL=5]="BOOL",e[e.ADDRESS=6]="ADDRESS",e[e.ARRAY=7]="ARRAY",e[e.STRUCT=8]="STRUCT"}(j||(r.EthereumDataType=j={})),r.EnumEthereumDataType=n.Type.Enum(j),r.EthereumFieldType=n.Type.Recursive((e=>n.Type.Object({data_type:r.EnumEthereumDataType,size:n.Type.Optional(n.Type.Number()),entry_type:n.Type.Optional(e),struct_name:n.Type.Optional(n.Type.String())})),{$id:"EthereumFieldType"}),r.EthereumStructMember=n.Type.Object({type:r.EthereumFieldType,name:n.Type.String()},{$id:"EthereumStructMember"}),r.EthereumTypedDataStructAck=n.Type.Object({members:n.Type.Array(r.EthereumStructMember)},{$id:"EthereumTypedDataStructAck"}),r.EthereumTypedDataValueRequest=n.Type.Object({member_path:n.Type.Array(n.Type.Number())},{$id:"EthereumTypedDataValueRequest"}),r.EthereumTypedDataValueAck=n.Type.Object({value:n.Type.String()},{$id:"EthereumTypedDataValueAck"}),r.EthereumGetPublicKey=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),show_display:n.Type.Optional(n.Type.Boolean())},{$id:"EthereumGetPublicKey"}),r.EthereumPublicKey=n.Type.Object({node:r.HDNodeType,xpub:n.Type.String()},{$id:"EthereumPublicKey"}),r.EthereumGetAddress=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),show_display:n.Type.Optional(n.Type.Boolean()),encoded_network:n.Type.Optional(n.Type.ArrayBuffer()),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"EthereumGetAddress"}),r.EthereumAddress=n.Type.Object({_old_address:n.Type.Optional(n.Type.String()),address:n.Type.String()},{$id:"EthereumAddress"}),r.EthereumSignTx=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),nonce:n.Type.Optional(n.Type.String()),gas_price:n.Type.String(),gas_limit:n.Type.String(),to:n.Type.Optional(n.Type.String()),value:n.Type.Optional(n.Type.String()),data_initial_chunk:n.Type.Optional(n.Type.String()),data_length:n.Type.Optional(n.Type.Number()),chain_id:n.Type.Number(),tx_type:n.Type.Optional(n.Type.Number()),definitions:n.Type.Optional(r.EthereumDefinitions),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"EthereumSignTx"}),r.EthereumAccessList=n.Type.Object({address:n.Type.String(),storage_keys:n.Type.Array(n.Type.String())},{$id:"EthereumAccessList"}),r.EthereumSignTxEIP1559=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),nonce:n.Type.String(),max_gas_fee:n.Type.String(),max_priority_fee:n.Type.String(),gas_limit:n.Type.String(),to:n.Type.Optional(n.Type.String()),value:n.Type.String(),data_initial_chunk:n.Type.Optional(n.Type.String()),data_length:n.Type.Number(),chain_id:n.Type.Number(),access_list:n.Type.Array(r.EthereumAccessList),definitions:n.Type.Optional(r.EthereumDefinitions),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"EthereumSignTxEIP1559"}),r.EthereumTxRequest=n.Type.Object({data_length:n.Type.Optional(n.Type.Number()),signature_v:n.Type.Optional(n.Type.Number()),signature_r:n.Type.Optional(n.Type.String()),signature_s:n.Type.Optional(n.Type.String())},{$id:"EthereumTxRequest"}),r.EthereumTxAck=n.Type.Object({data_chunk:n.Type.String()},{$id:"EthereumTxAck"}),r.EthereumSignMessage=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),message:n.Type.String(),encoded_network:n.Type.Optional(n.Type.ArrayBuffer()),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"EthereumSignMessage"}),r.EthereumMessageSignature=n.Type.Object({signature:n.Type.String(),address:n.Type.String()},{$id:"EthereumMessageSignature"}),r.EthereumVerifyMessage=n.Type.Object({signature:n.Type.String(),message:n.Type.String(),address:n.Type.String(),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"EthereumVerifyMessage"}),r.EthereumSignTypedHash=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),domain_separator_hash:n.Type.String(),message_hash:n.Type.Optional(n.Type.String()),encoded_network:n.Type.Optional(n.Type.ArrayBuffer())},{$id:"EthereumSignTypedHash"}),r.EthereumTypedDataSignature=n.Type.Object({signature:n.Type.String(),address:n.Type.String()},{$id:"EthereumTypedDataSignature"}),function(e){e[e.Bip39=0]="Bip39",e[e.Slip39_Basic=1]="Slip39_Basic",e[e.Slip39_Advanced=2]="Slip39_Advanced",e[e.Slip39_Single_Extendable=3]="Slip39_Single_Extendable",e[e.Slip39_Basic_Extendable=4]="Slip39_Basic_Extendable",e[e.Slip39_Advanced_Extendable=5]="Slip39_Advanced_Extendable"}(k||(r.Enum_BackupType=k={})),r.EnumEnum_BackupType=n.Type.Enum(k),r.BackupType=n.Type.KeyOfEnum(k,{$id:"BackupType"}),function(e){e[e.Strict=0]="Strict",e[e.PromptAlways=1]="PromptAlways",e[e.PromptTemporarily=2]="PromptTemporarily"}(M||(r.Enum_SafetyCheckLevel=M={})),r.EnumEnum_SafetyCheckLevel=n.Type.Enum(M),r.SafetyCheckLevel=n.Type.KeyOfEnum(M,{$id:"SafetyCheckLevel"}),function(e){e[e.North=0]="North",e[e.East=90]="East",e[e.South=180]="South",e[e.West=270]="West"}(L||(r.Enum_DisplayRotation=L={})),r.EnumEnum_DisplayRotation=n.Type.Enum(L),r.DisplayRotation=n.Type.KeyOfEnum(L,{$id:"DisplayRotation"}),function(e){e[e.Toif=1]="Toif",e[e.Jpeg=2]="Jpeg",e[e.ToiG=3]="ToiG"}(D||(r.Enum_HomescreenFormat=D={})),r.EnumEnum_HomescreenFormat=n.Type.Enum(D),r.HomescreenFormat=n.Type.KeyOfEnum(D,{$id:"HomescreenFormat"}),r.Initialize=n.Type.Object({session_id:n.Type.Optional(n.Type.String()),_skip_passphrase:n.Type.Optional(n.Type.Boolean()),derive_cardano:n.Type.Optional(n.Type.Boolean())},{$id:"Initialize"}),r.GetFeatures=n.Type.Object({},{$id:"GetFeatures"}),function(e){e[e.NotAvailable=0]="NotAvailable",e[e.Required=1]="Required",e[e.Available=2]="Available"}(B||(r.Enum_BackupAvailability=B={})),r.EnumEnum_BackupAvailability=n.Type.Enum(B),r.BackupAvailability=n.Type.KeyOfEnum(B,{$id:"BackupAvailability"}),function(e){e[e.Nothing=0]="Nothing",e[e.Recovery=1]="Recovery",e[e.Backup=2]="Backup"}(z||(r.Enum_RecoveryStatus=z={})),r.EnumEnum_RecoveryStatus=n.Type.Enum(z),r.RecoveryStatus=n.Type.KeyOfEnum(z,{$id:"RecoveryStatus"}),function(e){e[e.Capability_Bitcoin=1]="Capability_Bitcoin",e[e.Capability_Bitcoin_like=2]="Capability_Bitcoin_like",e[e.Capability_Binance=3]="Capability_Binance",e[e.Capability_Cardano=4]="Capability_Cardano",e[e.Capability_Crypto=5]="Capability_Crypto",e[e.Capability_EOS=6]="Capability_EOS",e[e.Capability_Ethereum=7]="Capability_Ethereum",e[e.Capability_Lisk=8]="Capability_Lisk",e[e.Capability_Monero=9]="Capability_Monero",e[e.Capability_NEM=10]="Capability_NEM",e[e.Capability_Ripple=11]="Capability_Ripple",e[e.Capability_Stellar=12]="Capability_Stellar",e[e.Capability_Tezos=13]="Capability_Tezos",e[e.Capability_U2F=14]="Capability_U2F",e[e.Capability_Shamir=15]="Capability_Shamir",e[e.Capability_ShamirGroups=16]="Capability_ShamirGroups",e[e.Capability_PassphraseEntry=17]="Capability_PassphraseEntry",e[e.Capability_Solana=18]="Capability_Solana",e[e.Capability_Translations=19]="Capability_Translations",e[e.Capability_Brightness=20]="Capability_Brightness",e[e.Capability_Haptic=21]="Capability_Haptic"}(U||(r.Enum_Capability=U={})),r.EnumEnum_Capability=n.Type.Enum(U),r.Capability=n.Type.KeyOfEnum(U,{$id:"Capability"}),function(e){e[e.ScrambledWords=0]="ScrambledWords",e[e.Matrix=1]="Matrix"}(F||(r.RecoveryDeviceInputMethod=F={})),r.EnumRecoveryDeviceInputMethod=n.Type.Enum(F),function(e){e[e.NormalRecovery=0]="NormalRecovery",e[e.DryRun=1]="DryRun",e[e.UnlockRepeatedBackup=2]="UnlockRepeatedBackup"}($||(r.Enum_RecoveryType=$={})),r.EnumEnum_RecoveryType=n.Type.Enum($),r.RecoveryType=n.Type.KeyOfEnum($,{$id:"RecoveryType"}),r.RecoveryDevice=n.Type.Object({word_count:n.Type.Optional(n.Type.Number()),passphrase_protection:n.Type.Optional(n.Type.Boolean()),pin_protection:n.Type.Optional(n.Type.Boolean()),language:n.Type.Optional(n.Type.String()),label:n.Type.Optional(n.Type.String()),enforce_wordlist:n.Type.Optional(n.Type.Boolean()),input_method:n.Type.Optional(r.EnumRecoveryDeviceInputMethod),u2f_counter:n.Type.Optional(n.Type.Number()),type:n.Type.Optional(r.RecoveryType)},{$id:"RecoveryDevice"}),r.Features=n.Type.Object({vendor:n.Type.String(),major_version:n.Type.Number(),minor_version:n.Type.Number(),patch_version:n.Type.Number(),bootloader_mode:n.Type.Union([n.Type.Boolean(),n.Type.Null()]),device_id:n.Type.Union([n.Type.String(),n.Type.Null()]),pin_protection:n.Type.Union([n.Type.Boolean(),n.Type.Null()]),passphrase_protection:n.Type.Union([n.Type.Boolean(),n.Type.Null()]),language:n.Type.Union([n.Type.String(),n.Type.Null()]),label:n.Type.Union([n.Type.String(),n.Type.Null()]),initialized:n.Type.Union([n.Type.Boolean(),n.Type.Null()]),revision:n.Type.Union([n.Type.String(),n.Type.Null()]),bootloader_hash:n.Type.Union([n.Type.String(),n.Type.Null()]),imported:n.Type.Union([n.Type.Boolean(),n.Type.Null()]),unlocked:n.Type.Union([n.Type.Boolean(),n.Type.Null()]),_passphrase_cached:n.Type.Optional(n.Type.Boolean()),firmware_present:n.Type.Union([n.Type.Boolean(),n.Type.Null()]),backup_availability:n.Type.Union([r.BackupAvailability,n.Type.Null()]),flags:n.Type.Union([n.Type.Number(),n.Type.Null()]),model:n.Type.String(),fw_major:n.Type.Union([n.Type.Number(),n.Type.Null()]),fw_minor:n.Type.Union([n.Type.Number(),n.Type.Null()]),fw_patch:n.Type.Union([n.Type.Number(),n.Type.Null()]),fw_vendor:n.Type.Union([n.Type.String(),n.Type.Null()]),unfinished_backup:n.Type.Union([n.Type.Boolean(),n.Type.Null()]),no_backup:n.Type.Union([n.Type.Boolean(),n.Type.Null()]),recovery_status:n.Type.Union([r.RecoveryStatus,n.Type.Null()]),capabilities:n.Type.Array(r.Capability),backup_type:n.Type.Union([r.BackupType,n.Type.Null()]),sd_card_present:n.Type.Union([n.Type.Boolean(),n.Type.Null()]),sd_protection:n.Type.Union([n.Type.Boolean(),n.Type.Null()]),wipe_code_protection:n.Type.Union([n.Type.Boolean(),n.Type.Null()]),session_id:n.Type.Union([n.Type.String(),n.Type.Null()]),passphrase_always_on_device:n.Type.Union([n.Type.Boolean(),n.Type.Null()]),safety_checks:n.Type.Union([r.SafetyCheckLevel,n.Type.Null()]),auto_lock_delay_ms:n.Type.Union([n.Type.Number(),n.Type.Null()]),display_rotation:n.Type.Union([r.DisplayRotation,n.Type.Null()]),experimental_features:n.Type.Union([n.Type.Boolean(),n.Type.Null()]),busy:n.Type.Optional(n.Type.Boolean()),homescreen_format:n.Type.Optional(r.HomescreenFormat),hide_passphrase_from_host:n.Type.Optional(n.Type.Boolean()),internal_model:r.EnumDeviceModelInternal,unit_color:n.Type.Optional(n.Type.Number()),unit_btconly:n.Type.Optional(n.Type.Boolean()),homescreen_width:n.Type.Optional(n.Type.Number()),homescreen_height:n.Type.Optional(n.Type.Number()),bootloader_locked:n.Type.Optional(n.Type.Boolean()),language_version_matches:n.Type.Optional(n.Type.Boolean()),unit_packaging:n.Type.Optional(n.Type.Number()),haptic_feedback:n.Type.Optional(n.Type.Boolean()),recovery_type:n.Type.Optional(r.RecoveryType),optiga_sec:n.Type.Optional(n.Type.Number())},{$id:"Features"}),r.LockDevice=n.Type.Object({},{$id:"LockDevice"}),r.SetBusy=n.Type.Object({expiry_ms:n.Type.Optional(n.Type.Number())},{$id:"SetBusy"}),r.EndSession=n.Type.Object({},{$id:"EndSession"}),r.ApplySettings=n.Type.Object({language:n.Type.Optional(n.Type.String()),label:n.Type.Optional(n.Type.String()),use_passphrase:n.Type.Optional(n.Type.Boolean()),homescreen:n.Type.Optional(n.Type.String()),_passphrase_source:n.Type.Optional(n.Type.Number()),auto_lock_delay_ms:n.Type.Optional(n.Type.Number()),display_rotation:n.Type.Optional(n.Type.Union([r.DisplayRotation,r.EnumEnum_DisplayRotation])),passphrase_always_on_device:n.Type.Optional(n.Type.Boolean()),safety_checks:n.Type.Optional(r.SafetyCheckLevel),experimental_features:n.Type.Optional(n.Type.Boolean()),hide_passphrase_from_host:n.Type.Optional(n.Type.Boolean()),haptic_feedback:n.Type.Optional(n.Type.Boolean())},{$id:"ApplySettings"}),r.ChangeLanguage=n.Type.Object({data_length:n.Type.Number(),show_display:n.Type.Optional(n.Type.Boolean())},{$id:"ChangeLanguage"}),r.TranslationDataRequest=n.Type.Object({data_length:n.Type.Number(),data_offset:n.Type.Number()},{$id:"TranslationDataRequest"}),r.TranslationDataAck=n.Type.Object({data_chunk:n.Type.String()},{$id:"TranslationDataAck"}),r.ApplyFlags=n.Type.Object({flags:n.Type.Number()},{$id:"ApplyFlags"}),r.ChangePin=n.Type.Object({remove:n.Type.Optional(n.Type.Boolean())},{$id:"ChangePin"}),r.ChangeWipeCode=n.Type.Object({remove:n.Type.Optional(n.Type.Boolean())},{$id:"ChangeWipeCode"}),function(e){e[e.DISABLE=0]="DISABLE",e[e.ENABLE=1]="ENABLE",e[e.REFRESH=2]="REFRESH"}(G||(r.SdProtectOperationType=G={})),r.EnumSdProtectOperationType=n.Type.Enum(G),r.SdProtect=n.Type.Object({operation:r.EnumSdProtectOperationType},{$id:"SdProtect"}),r.Ping=n.Type.Object({message:n.Type.Optional(n.Type.String()),button_protection:n.Type.Optional(n.Type.Boolean())},{$id:"Ping"}),r.Cancel=n.Type.Object({},{$id:"Cancel"}),r.GetEntropy=n.Type.Object({size:n.Type.Number()},{$id:"GetEntropy"}),r.Entropy=n.Type.Object({entropy:n.Type.String()},{$id:"Entropy"}),r.GetFirmwareHash=n.Type.Object({challenge:n.Type.Optional(n.Type.String())},{$id:"GetFirmwareHash"}),r.FirmwareHash=n.Type.Object({hash:n.Type.String()},{$id:"FirmwareHash"}),r.AuthenticateDevice=n.Type.Object({challenge:n.Type.String()},{$id:"AuthenticateDevice"}),r.AuthenticityProof=n.Type.Object({certificates:n.Type.Array(n.Type.String()),signature:n.Type.String()},{$id:"AuthenticityProof"}),r.WipeDevice=n.Type.Object({},{$id:"WipeDevice"}),r.LoadDevice=n.Type.Object({mnemonics:n.Type.Array(n.Type.String()),pin:n.Type.Optional(n.Type.String()),passphrase_protection:n.Type.Optional(n.Type.Boolean()),language:n.Type.Optional(n.Type.String()),label:n.Type.Optional(n.Type.String()),skip_checksum:n.Type.Optional(n.Type.Boolean()),u2f_counter:n.Type.Optional(n.Type.Number()),needs_backup:n.Type.Optional(n.Type.Boolean()),no_backup:n.Type.Optional(n.Type.Boolean())},{$id:"LoadDevice"}),r.ResetDevice=n.Type.Object({strength:n.Type.Optional(n.Type.Number()),passphrase_protection:n.Type.Optional(n.Type.Boolean()),pin_protection:n.Type.Optional(n.Type.Boolean()),language:n.Type.Optional(n.Type.String()),label:n.Type.Optional(n.Type.String()),u2f_counter:n.Type.Optional(n.Type.Number()),skip_backup:n.Type.Optional(n.Type.Boolean()),no_backup:n.Type.Optional(n.Type.Boolean()),backup_type:n.Type.Optional(r.EnumEnum_BackupType)},{$id:"ResetDevice"}),r.Slip39Group=n.Type.Object({member_threshold:n.Type.Number(),member_count:n.Type.Number()},{$id:"Slip39Group"}),r.BackupDevice=n.Type.Object({group_threshold:n.Type.Optional(n.Type.Number()),groups:n.Type.Optional(n.Type.Array(r.Slip39Group))},{$id:"BackupDevice"}),r.EntropyRequest=n.Type.Object({},{$id:"EntropyRequest"}),r.EntropyAck=n.Type.Object({entropy:n.Type.String()},{$id:"EntropyAck"}),function(e){e[e.WordRequestType_Plain=0]="WordRequestType_Plain",e[e.WordRequestType_Matrix9=1]="WordRequestType_Matrix9",e[e.WordRequestType_Matrix6=2]="WordRequestType_Matrix6"}(H||(r.Enum_WordRequestType=H={})),r.EnumEnum_WordRequestType=n.Type.Enum(H),r.WordRequestType=n.Type.KeyOfEnum(H,{$id:"WordRequestType"}),r.WordRequest=n.Type.Object({type:r.WordRequestType},{$id:"WordRequest"}),r.WordAck=n.Type.Object({word:n.Type.String()},{$id:"WordAck"}),r.SetU2FCounter=n.Type.Object({u2f_counter:n.Type.Number()},{$id:"SetU2FCounter"}),r.GetNextU2FCounter=n.Type.Object({},{$id:"GetNextU2FCounter"}),r.NextU2FCounter=n.Type.Object({u2f_counter:n.Type.Number()},{$id:"NextU2FCounter"}),r.DoPreauthorized=n.Type.Object({},{$id:"DoPreauthorized"}),r.PreauthorizedRequest=n.Type.Object({},{$id:"PreauthorizedRequest"}),r.CancelAuthorization=n.Type.Object({},{$id:"CancelAuthorization"}),function(e){e[e.STOP_AND_WAIT=0]="STOP_AND_WAIT",e[e.INSTALL_UPGRADE=1]="INSTALL_UPGRADE"}(K||(r.BootCommand=K={})),r.EnumBootCommand=n.Type.Enum(K),r.RebootToBootloader=n.Type.Object({boot_command:n.Type.Optional(r.EnumBootCommand),firmware_header:n.Type.Optional(n.Type.String()),language_data_length:n.Type.Optional(n.Type.Number())},{$id:"RebootToBootloader"}),r.GetNonce=n.Type.Object({},{$id:"GetNonce"}),r.Nonce=n.Type.Object({nonce:n.Type.String()},{$id:"Nonce"}),r.UnlockPath=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),mac:n.Type.Optional(n.Type.String())},{$id:"UnlockPath"}),r.UnlockedPathRequest=n.Type.Object({mac:n.Type.Optional(n.Type.String())},{$id:"UnlockedPathRequest"}),r.ShowDeviceTutorial=n.Type.Object({},{$id:"ShowDeviceTutorial"}),r.UnlockBootloader=n.Type.Object({},{$id:"UnlockBootloader"}),r.SetBrightness=n.Type.Object({value:n.Type.Optional(n.Type.Number())},{$id:"SetBrightness"}),r.NEMGetAddress=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),network:n.Type.Optional(n.Type.Number()),show_display:n.Type.Optional(n.Type.Boolean()),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"NEMGetAddress"}),r.NEMAddress=n.Type.Object({address:n.Type.String()},{$id:"NEMAddress"}),r.NEMTransactionCommon=n.Type.Object({address_n:n.Type.Optional(n.Type.Array(n.Type.Number())),network:n.Type.Optional(n.Type.Number()),timestamp:n.Type.Number(),fee:n.Type.Uint(),deadline:n.Type.Number(),signer:n.Type.Optional(n.Type.String())},{$id:"NEMTransactionCommon"}),r.NEMMosaic=n.Type.Object({namespace:n.Type.String(),mosaic:n.Type.String(),quantity:n.Type.Number()},{$id:"NEMMosaic"}),r.NEMTransfer=n.Type.Object({recipient:n.Type.String(),amount:n.Type.Uint(),payload:n.Type.Optional(n.Type.String()),public_key:n.Type.Optional(n.Type.String()),mosaics:n.Type.Optional(n.Type.Array(r.NEMMosaic))},{$id:"NEMTransfer"}),r.NEMProvisionNamespace=n.Type.Object({namespace:n.Type.String(),parent:n.Type.Optional(n.Type.String()),sink:n.Type.String(),fee:n.Type.Uint()},{$id:"NEMProvisionNamespace"}),function(e){e[e.MosaicLevy_Absolute=1]="MosaicLevy_Absolute",e[e.MosaicLevy_Percentile=2]="MosaicLevy_Percentile"}(V||(r.NEMMosaicLevy=V={})),r.EnumNEMMosaicLevy=n.Type.Enum(V),r.NEMMosaicDefinition=n.Type.Object({name:n.Type.Optional(n.Type.String()),ticker:n.Type.Optional(n.Type.String()),namespace:n.Type.String(),mosaic:n.Type.String(),divisibility:n.Type.Optional(n.Type.Number()),levy:n.Type.Optional(r.EnumNEMMosaicLevy),fee:n.Type.Optional(n.Type.Uint()),levy_address:n.Type.Optional(n.Type.String()),levy_namespace:n.Type.Optional(n.Type.String()),levy_mosaic:n.Type.Optional(n.Type.String()),supply:n.Type.Optional(n.Type.Number()),mutable_supply:n.Type.Optional(n.Type.Boolean()),transferable:n.Type.Optional(n.Type.Boolean()),description:n.Type.String(),networks:n.Type.Optional(n.Type.Array(n.Type.Number()))},{$id:"NEMMosaicDefinition"}),r.NEMMosaicCreation=n.Type.Object({definition:r.NEMMosaicDefinition,sink:n.Type.String(),fee:n.Type.Uint()},{$id:"NEMMosaicCreation"}),function(e){e[e.SupplyChange_Increase=1]="SupplyChange_Increase",e[e.SupplyChange_Decrease=2]="SupplyChange_Decrease"}(q||(r.NEMSupplyChangeType=q={})),r.EnumNEMSupplyChangeType=n.Type.Enum(q),r.NEMMosaicSupplyChange=n.Type.Object({namespace:n.Type.String(),mosaic:n.Type.String(),type:r.EnumNEMSupplyChangeType,delta:n.Type.Number()},{$id:"NEMMosaicSupplyChange"}),function(e){e[e.CosignatoryModification_Add=1]="CosignatoryModification_Add",e[e.CosignatoryModification_Delete=2]="CosignatoryModification_Delete"}(W||(r.NEMModificationType=W={})),r.EnumNEMModificationType=n.Type.Enum(W),r.NEMCosignatoryModification=n.Type.Object({type:r.EnumNEMModificationType,public_key:n.Type.String()},{$id:"NEMCosignatoryModification"}),r.NEMAggregateModification=n.Type.Object({modifications:n.Type.Optional(n.Type.Array(r.NEMCosignatoryModification)),relative_change:n.Type.Optional(n.Type.Number())},{$id:"NEMAggregateModification"}),function(e){e[e.ImportanceTransfer_Activate=1]="ImportanceTransfer_Activate",e[e.ImportanceTransfer_Deactivate=2]="ImportanceTransfer_Deactivate"}(Y||(r.NEMImportanceTransferMode=Y={})),r.EnumNEMImportanceTransferMode=n.Type.Enum(Y),r.NEMImportanceTransfer=n.Type.Object({mode:r.EnumNEMImportanceTransferMode,public_key:n.Type.String()},{$id:"NEMImportanceTransfer"}),r.NEMSignTx=n.Type.Object({transaction:r.NEMTransactionCommon,multisig:n.Type.Optional(r.NEMTransactionCommon),transfer:n.Type.Optional(r.NEMTransfer),cosigning:n.Type.Optional(n.Type.Boolean()),provision_namespace:n.Type.Optional(r.NEMProvisionNamespace),mosaic_creation:n.Type.Optional(r.NEMMosaicCreation),supply_change:n.Type.Optional(r.NEMMosaicSupplyChange),aggregate_modification:n.Type.Optional(r.NEMAggregateModification),importance_transfer:n.Type.Optional(r.NEMImportanceTransfer),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"NEMSignTx"}),r.NEMSignedTx=n.Type.Object({data:n.Type.String(),signature:n.Type.String()},{$id:"NEMSignedTx"}),r.NEMDecryptMessage=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),network:n.Type.Optional(n.Type.Number()),public_key:n.Type.Optional(n.Type.String()),payload:n.Type.Optional(n.Type.String())},{$id:"NEMDecryptMessage"}),r.NEMDecryptedMessage=n.Type.Object({payload:n.Type.String()},{$id:"NEMDecryptedMessage"}),r.RippleGetAddress=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),show_display:n.Type.Optional(n.Type.Boolean()),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"RippleGetAddress"}),r.RippleAddress=n.Type.Object({address:n.Type.String()},{$id:"RippleAddress"}),r.RipplePayment=n.Type.Object({amount:n.Type.Uint(),destination:n.Type.String(),destination_tag:n.Type.Optional(n.Type.Number())},{$id:"RipplePayment"}),r.RippleSignTx=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),fee:n.Type.Uint(),flags:n.Type.Optional(n.Type.Number()),sequence:n.Type.Number(),last_ledger_sequence:n.Type.Optional(n.Type.Number()),payment:r.RipplePayment,chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"RippleSignTx"}),r.RippleSignedTx=n.Type.Object({signature:n.Type.String(),serialized_tx:n.Type.String()},{$id:"RippleSignedTx"}),r.SolanaGetPublicKey=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),show_display:n.Type.Optional(n.Type.Boolean())},{$id:"SolanaGetPublicKey"}),r.SolanaPublicKey=n.Type.Object({public_key:n.Type.String()},{$id:"SolanaPublicKey"}),r.SolanaGetAddress=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),show_display:n.Type.Optional(n.Type.Boolean()),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"SolanaGetAddress"}),r.SolanaAddress=n.Type.Object({address:n.Type.String()},{$id:"SolanaAddress"}),r.SolanaTxTokenAccountInfo=n.Type.Object({base_address:n.Type.String(),token_program:n.Type.String(),token_mint:n.Type.String(),token_account:n.Type.String()},{$id:"SolanaTxTokenAccountInfo"}),r.SolanaTxAdditionalInfo=n.Type.Object({token_accounts_infos:n.Type.Array(r.SolanaTxTokenAccountInfo)},{$id:"SolanaTxAdditionalInfo"}),r.SolanaSignTx=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),serialized_tx:n.Type.String(),additional_info:n.Type.Optional(r.SolanaTxAdditionalInfo)},{$id:"SolanaSignTx"}),r.SolanaTxSignature=n.Type.Object({signature:n.Type.String()},{$id:"SolanaTxSignature"}),function(e){e[e.NATIVE=0]="NATIVE",e[e.ALPHANUM4=1]="ALPHANUM4",e[e.ALPHANUM12=2]="ALPHANUM12"}(Q||(r.StellarAssetType=Q={})),r.EnumStellarAssetType=n.Type.Enum(Q),r.StellarAsset=n.Type.Object({type:n.Type.Union([n.Type.Literal(0),n.Type.Literal(1),n.Type.Literal(2),n.Type.Literal("NATIVE"),n.Type.Literal("ALPHANUM4"),n.Type.Literal("ALPHANUM12")]),code:n.Type.Optional(n.Type.String()),issuer:n.Type.Optional(n.Type.String())},{$id:"StellarAsset"}),r.StellarGetAddress=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),show_display:n.Type.Optional(n.Type.Boolean()),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"StellarGetAddress"}),r.StellarAddress=n.Type.Object({address:n.Type.String()},{$id:"StellarAddress"}),function(e){e[e.NONE=0]="NONE",e[e.TEXT=1]="TEXT",e[e.ID=2]="ID",e[e.HASH=3]="HASH",e[e.RETURN=4]="RETURN"}(X||(r.StellarMemoType=X={})),r.EnumStellarMemoType=n.Type.Enum(X),r.StellarSignTx=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),network_passphrase:n.Type.String(),source_account:n.Type.String(),fee:n.Type.Uint(),sequence_number:n.Type.Uint(),timebounds_start:n.Type.Number(),timebounds_end:n.Type.Number(),memo_type:r.EnumStellarMemoType,memo_text:n.Type.Optional(n.Type.String()),memo_id:n.Type.Optional(n.Type.Uint()),memo_hash:n.Type.Optional(n.Type.Union([n.Type.Buffer(),n.Type.String()])),num_operations:n.Type.Number()},{$id:"StellarSignTx"}),r.StellarTxOpRequest=n.Type.Object({},{$id:"StellarTxOpRequest"}),r.StellarPaymentOp=n.Type.Object({source_account:n.Type.Optional(n.Type.String()),destination_account:n.Type.String(),asset:r.StellarAsset,amount:n.Type.Uint()},{$id:"StellarPaymentOp"}),r.StellarCreateAccountOp=n.Type.Object({source_account:n.Type.Optional(n.Type.String()),new_account:n.Type.String(),starting_balance:n.Type.Uint()},{$id:"StellarCreateAccountOp"}),r.StellarPathPaymentStrictReceiveOp=n.Type.Object({source_account:n.Type.Optional(n.Type.String()),send_asset:r.StellarAsset,send_max:n.Type.Uint(),destination_account:n.Type.String(),destination_asset:r.StellarAsset,destination_amount:n.Type.Uint(),paths:n.Type.Optional(n.Type.Array(r.StellarAsset))},{$id:"StellarPathPaymentStrictReceiveOp"}),r.StellarPathPaymentStrictSendOp=n.Type.Object({source_account:n.Type.Optional(n.Type.String()),send_asset:r.StellarAsset,send_amount:n.Type.Uint(),destination_account:n.Type.String(),destination_asset:r.StellarAsset,destination_min:n.Type.Uint(),paths:n.Type.Optional(n.Type.Array(r.StellarAsset))},{$id:"StellarPathPaymentStrictSendOp"}),r.StellarManageSellOfferOp=n.Type.Object({source_account:n.Type.Optional(n.Type.String()),selling_asset:r.StellarAsset,buying_asset:r.StellarAsset,amount:n.Type.Uint(),price_n:n.Type.Number(),price_d:n.Type.Number(),offer_id:n.Type.Uint()},{$id:"StellarManageSellOfferOp"}),r.StellarManageBuyOfferOp=n.Type.Object({source_account:n.Type.Optional(n.Type.String()),selling_asset:r.StellarAsset,buying_asset:r.StellarAsset,amount:n.Type.Uint(),price_n:n.Type.Number(),price_d:n.Type.Number(),offer_id:n.Type.Uint()},{$id:"StellarManageBuyOfferOp"}),r.StellarCreatePassiveSellOfferOp=n.Type.Object({source_account:n.Type.Optional(n.Type.String()),selling_asset:r.StellarAsset,buying_asset:r.StellarAsset,amount:n.Type.Uint(),price_n:n.Type.Number(),price_d:n.Type.Number()},{$id:"StellarCreatePassiveSellOfferOp"}),function(e){e[e.ACCOUNT=0]="ACCOUNT",e[e.PRE_AUTH=1]="PRE_AUTH",e[e.HASH=2]="HASH"}(J||(r.StellarSignerType=J={})),r.EnumStellarSignerType=n.Type.Enum(J),r.StellarSetOptionsOp=n.Type.Object({source_account:n.Type.Optional(n.Type.String()),inflation_destination_account:n.Type.Optional(n.Type.String()),clear_flags:n.Type.Optional(n.Type.Number()),set_flags:n.Type.Optional(n.Type.Number()),master_weight:n.Type.Optional(n.Type.Uint()),low_threshold:n.Type.Optional(n.Type.Uint()),medium_threshold:n.Type.Optional(n.Type.Uint()),high_threshold:n.Type.Optional(n.Type.Uint()),home_domain:n.Type.Optional(n.Type.String()),signer_type:n.Type.Optional(r.EnumStellarSignerType),signer_key:n.Type.Optional(n.Type.Union([n.Type.Buffer(),n.Type.String()])),signer_weight:n.Type.Optional(n.Type.Number())},{$id:"StellarSetOptionsOp"}),r.StellarChangeTrustOp=n.Type.Object({source_account:n.Type.Optional(n.Type.String()),asset:r.StellarAsset,limit:n.Type.Uint()},{$id:"StellarChangeTrustOp"}),r.StellarAllowTrustOp=n.Type.Object({source_account:n.Type.Optional(n.Type.String()),trusted_account:n.Type.String(),asset_type:r.EnumStellarAssetType,asset_code:n.Type.Optional(n.Type.String()),is_authorized:n.Type.Boolean()},{$id:"StellarAllowTrustOp"}),r.StellarAccountMergeOp=n.Type.Object({source_account:n.Type.Optional(n.Type.String()),destination_account:n.Type.String()},{$id:"StellarAccountMergeOp"}),r.StellarManageDataOp=n.Type.Object({source_account:n.Type.Optional(n.Type.String()),key:n.Type.String(),value:n.Type.Optional(n.Type.Union([n.Type.Buffer(),n.Type.String()]))},{$id:"StellarManageDataOp"}),r.StellarBumpSequenceOp=n.Type.Object({source_account:n.Type.Optional(n.Type.String()),bump_to:n.Type.Uint()},{$id:"StellarBumpSequenceOp"}),r.StellarClaimClaimableBalanceOp=n.Type.Object({source_account:n.Type.Optional(n.Type.String()),balance_id:n.Type.String()},{$id:"StellarClaimClaimableBalanceOp"}),r.StellarSignedTx=n.Type.Object({public_key:n.Type.String(),signature:n.Type.String()},{$id:"StellarSignedTx"}),r.TezosGetAddress=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),show_display:n.Type.Optional(n.Type.Boolean()),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"TezosGetAddress"}),r.TezosAddress=n.Type.Object({address:n.Type.String()},{$id:"TezosAddress"}),r.TezosGetPublicKey=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),show_display:n.Type.Optional(n.Type.Boolean()),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"TezosGetPublicKey"}),r.TezosPublicKey=n.Type.Object({public_key:n.Type.String()},{$id:"TezosPublicKey"}),function(e){e[e.Implicit=0]="Implicit",e[e.Originated=1]="Originated"}(Z||(r.TezosContractType=Z={})),r.EnumTezosContractType=n.Type.Enum(Z),r.TezosContractID=n.Type.Object({tag:n.Type.Number(),hash:n.Type.Uint8Array()},{$id:"TezosContractID"}),r.TezosRevealOp=n.Type.Object({source:n.Type.Uint8Array(),fee:n.Type.Uint(),counter:n.Type.Number(),gas_limit:n.Type.Number(),storage_limit:n.Type.Number(),public_key:n.Type.Uint8Array()},{$id:"TezosRevealOp"}),r.TezosManagerTransfer=n.Type.Object({destination:r.TezosContractID,amount:n.Type.Uint()},{$id:"TezosManagerTransfer"}),r.TezosParametersManager=n.Type.Object({set_delegate:n.Type.Optional(n.Type.Uint8Array()),cancel_delegate:n.Type.Optional(n.Type.Boolean()),transfer:n.Type.Optional(r.TezosManagerTransfer)},{$id:"TezosParametersManager"}),r.TezosTransactionOp=n.Type.Object({source:n.Type.Uint8Array(),fee:n.Type.Uint(),counter:n.Type.Number(),gas_limit:n.Type.Number(),storage_limit:n.Type.Number(),amount:n.Type.Uint(),destination:r.TezosContractID,parameters:n.Type.Optional(n.Type.Array(n.Type.Number())),parameters_manager:n.Type.Optional(r.TezosParametersManager)},{$id:"TezosTransactionOp"}),r.TezosOriginationOp=n.Type.Object({source:n.Type.Uint8Array(),fee:n.Type.Uint(),counter:n.Type.Number(),gas_limit:n.Type.Number(),storage_limit:n.Type.Number(),manager_pubkey:n.Type.Optional(n.Type.String()),balance:n.Type.Number(),spendable:n.Type.Optional(n.Type.Boolean()),delegatable:n.Type.Optional(n.Type.Boolean()),delegate:n.Type.Optional(n.Type.Uint8Array()),script:n.Type.Union([n.Type.String(),n.Type.Array(n.Type.Number())])},{$id:"TezosOriginationOp"}),r.TezosDelegationOp=n.Type.Object({source:n.Type.Uint8Array(),fee:n.Type.Uint(),counter:n.Type.Number(),gas_limit:n.Type.Number(),storage_limit:n.Type.Number(),delegate:n.Type.Uint8Array()},{$id:"TezosDelegationOp"}),r.TezosProposalOp=n.Type.Object({source:n.Type.String(),period:n.Type.Number(),proposals:n.Type.Array(n.Type.String())},{$id:"TezosProposalOp"}),function(e){e[e.Yay=0]="Yay",e[e.Nay=1]="Nay",e[e.Pass=2]="Pass"}(ee||(r.TezosBallotType=ee={})),r.EnumTezosBallotType=n.Type.Enum(ee),r.TezosBallotOp=n.Type.Object({source:n.Type.String(),period:n.Type.Number(),proposal:n.Type.String(),ballot:r.EnumTezosBallotType},{$id:"TezosBallotOp"}),r.TezosSignTx=n.Type.Object({address_n:n.Type.Array(n.Type.Number()),branch:n.Type.Uint8Array(),reveal:n.Type.Optional(r.TezosRevealOp),transaction:n.Type.Optional(r.TezosTransactionOp),origination:n.Type.Optional(r.TezosOriginationOp),delegation:n.Type.Optional(r.TezosDelegationOp),proposal:n.Type.Optional(r.TezosProposalOp),ballot:n.Type.Optional(r.TezosBallotOp),chunkify:n.Type.Optional(n.Type.Boolean())},{$id:"TezosSignTx"}),r.TezosSignedTx=n.Type.Object({signature:n.Type.String(),sig_op_contents:n.Type.String(),operation_hash:n.Type.String()},{$id:"TezosSignedTx"}),r.MessageType=n.Type.Object({BinanceGetAddress:r.BinanceGetAddress,BinanceAddress:r.BinanceAddress,BinanceGetPublicKey:r.BinanceGetPublicKey,BinancePublicKey:r.BinancePublicKey,BinanceSignTx:r.BinanceSignTx,BinanceTxRequest:r.BinanceTxRequest,BinanceCoin:r.BinanceCoin,BinanceInputOutput:r.BinanceInputOutput,BinanceTransferMsg:r.BinanceTransferMsg,BinanceOrderMsg:r.BinanceOrderMsg,BinanceCancelMsg:r.BinanceCancelMsg,BinanceSignedTx:r.BinanceSignedTx,HDNodeType:r.HDNodeType,HDNodePathType:r.HDNodePathType,MultisigRedeemScriptType:r.MultisigRedeemScriptType,GetPublicKey:r.GetPublicKey,PublicKey:r.PublicKey,GetAddress:r.GetAddress,Address:r.Address,GetOwnershipId:r.GetOwnershipId,OwnershipId:r.OwnershipId,SignMessage:r.SignMessage,MessageSignature:r.MessageSignature,VerifyMessage:r.VerifyMessage,CoinJoinRequest:r.CoinJoinRequest,SignTx:r.SignTx,TxRequestDetailsType:r.TxRequestDetailsType,TxRequestSerializedType:r.TxRequestSerializedType,TxRequest:r.TxRequest,TxInputType:r.TxInputType,TxOutputBinType:r.TxOutputBinType,TxOutputType:r.TxOutputType,PrevTx:r.PrevTx,PrevInput:r.PrevInput,PrevOutput:r.PrevOutput,TextMemo:r.TextMemo,RefundMemo:r.RefundMemo,CoinPurchaseMemo:r.CoinPurchaseMemo,PaymentRequestMemo:r.PaymentRequestMemo,TxAckPaymentRequest:r.TxAckPaymentRequest,TxAck:r.TxAck,TxAckInputWrapper:r.TxAckInputWrapper,TxAckInput:r.TxAckInput,TxAckOutputWrapper:r.TxAckOutputWrapper,TxAckOutput:r.TxAckOutput,TxAckPrevMeta:r.TxAckPrevMeta,TxAckPrevInputWrapper:r.TxAckPrevInputWrapper,TxAckPrevInput:r.TxAckPrevInput,TxAckPrevOutputWrapper:r.TxAckPrevOutputWrapper,TxAckPrevOutput:r.TxAckPrevOutput,TxAckPrevExtraDataWrapper:r.TxAckPrevExtraDataWrapper,TxAckPrevExtraData:r.TxAckPrevExtraData,GetOwnershipProof:r.GetOwnershipProof,OwnershipProof:r.OwnershipProof,AuthorizeCoinJoin:r.AuthorizeCoinJoin,FirmwareErase:r.FirmwareErase,FirmwareRequest:r.FirmwareRequest,FirmwareUpload:r.FirmwareUpload,ProdTestT1:r.ProdTestT1,CardanoBlockchainPointerType:r.CardanoBlockchainPointerType,CardanoNativeScript:r.CardanoNativeScript,CardanoGetNativeScriptHash:r.CardanoGetNativeScriptHash,CardanoNativeScriptHash:r.CardanoNativeScriptHash,CardanoAddressParametersType:r.CardanoAddressParametersType,CardanoGetAddress:r.CardanoGetAddress,CardanoAddress:r.CardanoAddress,CardanoGetPublicKey:r.CardanoGetPublicKey,CardanoPublicKey:r.CardanoPublicKey,CardanoSignTxInit:r.CardanoSignTxInit,CardanoTxInput:r.CardanoTxInput,CardanoTxOutput:r.CardanoTxOutput,CardanoAssetGroup:r.CardanoAssetGroup,CardanoToken:r.CardanoToken,CardanoTxInlineDatumChunk:r.CardanoTxInlineDatumChunk,CardanoTxReferenceScriptChunk:r.CardanoTxReferenceScriptChunk,CardanoPoolOwner:r.CardanoPoolOwner,CardanoPoolRelayParameters:r.CardanoPoolRelayParameters,CardanoPoolMetadataType:r.CardanoPoolMetadataType,CardanoPoolParametersType:r.CardanoPoolParametersType,CardanoDRep:r.CardanoDRep,CardanoTxCertificate:r.CardanoTxCertificate,CardanoTxWithdrawal:r.CardanoTxWithdrawal,CardanoCVoteRegistrationDelegation:r.CardanoCVoteRegistrationDelegation,CardanoCVoteRegistrationParametersType:r.CardanoCVoteRegistrationParametersType,CardanoTxAuxiliaryData:r.CardanoTxAuxiliaryData,CardanoTxMint:r.CardanoTxMint,CardanoTxCollateralInput:r.CardanoTxCollateralInput,CardanoTxRequiredSigner:r.CardanoTxRequiredSigner,CardanoTxReferenceInput:r.CardanoTxReferenceInput,CardanoTxItemAck:r.CardanoTxItemAck,CardanoTxAuxiliaryDataSupplement:r.CardanoTxAuxiliaryDataSupplement,CardanoTxWitnessRequest:r.CardanoTxWitnessRequest,CardanoTxWitnessResponse:r.CardanoTxWitnessResponse,CardanoTxHostAck:r.CardanoTxHostAck,CardanoTxBodyHash:r.CardanoTxBodyHash,CardanoSignTxFinished:r.CardanoSignTxFinished,Success:r.Success,Failure:r.Failure,ButtonRequest:r.ButtonRequest,ButtonAck:r.ButtonAck,PinMatrixRequest:r.PinMatrixRequest,PinMatrixAck:r.PinMatrixAck,PassphraseRequest:r.PassphraseRequest,PassphraseAck:r.PassphraseAck,Deprecated_PassphraseStateRequest:r.Deprecated_PassphraseStateRequest,Deprecated_PassphraseStateAck:r.Deprecated_PassphraseStateAck,CipherKeyValue:r.CipherKeyValue,CipheredKeyValue:r.CipheredKeyValue,IdentityType:r.IdentityType,SignIdentity:r.SignIdentity,SignedIdentity:r.SignedIdentity,GetECDHSessionKey:r.GetECDHSessionKey,ECDHSessionKey:r.ECDHSessionKey,DebugLinkResetDebugEvents:r.DebugLinkResetDebugEvents,DebugLinkOptigaSetSecMax:r.DebugLinkOptigaSetSecMax,EosGetPublicKey:r.EosGetPublicKey,EosPublicKey:r.EosPublicKey,EosTxHeader:r.EosTxHeader,EosSignTx:r.EosSignTx,EosTxActionRequest:r.EosTxActionRequest,EosAsset:r.EosAsset,EosPermissionLevel:r.EosPermissionLevel,EosAuthorizationKey:r.EosAuthorizationKey,EosAuthorizationAccount:r.EosAuthorizationAccount,EosAuthorizationWait:r.EosAuthorizationWait,EosAuthorization:r.EosAuthorization,EosActionCommon:r.EosActionCommon,EosActionTransfer:r.EosActionTransfer,EosActionDelegate:r.EosActionDelegate,EosActionUndelegate:r.EosActionUndelegate,EosActionRefund:r.EosActionRefund,EosActionBuyRam:r.EosActionBuyRam,EosActionBuyRamBytes:r.EosActionBuyRamBytes,EosActionSellRam:r.EosActionSellRam,EosActionVoteProducer:r.EosActionVoteProducer,EosActionUpdateAuth:r.EosActionUpdateAuth,EosActionDeleteAuth:r.EosActionDeleteAuth,EosActionLinkAuth:r.EosActionLinkAuth,EosActionUnlinkAuth:r.EosActionUnlinkAuth,EosActionNewAccount:r.EosActionNewAccount,EosActionUnknown:r.EosActionUnknown,EosTxActionAck:r.EosTxActionAck,EosSignedTx:r.EosSignedTx,EthereumNetworkInfo:r.EthereumNetworkInfo,EthereumTokenInfo:r.EthereumTokenInfo,EthereumDefinitions:r.EthereumDefinitions,EthereumSignTypedData:r.EthereumSignTypedData,EthereumTypedDataStructRequest:r.EthereumTypedDataStructRequest,EthereumFieldType:r.EthereumFieldType,EthereumStructMember:r.EthereumStructMember,EthereumTypedDataStructAck:r.EthereumTypedDataStructAck,EthereumTypedDataValueRequest:r.EthereumTypedDataValueRequest,EthereumTypedDataValueAck:r.EthereumTypedDataValueAck,EthereumGetPublicKey:r.EthereumGetPublicKey,EthereumPublicKey:r.EthereumPublicKey,EthereumGetAddress:r.EthereumGetAddress,EthereumAddress:r.EthereumAddress,EthereumSignTx:r.EthereumSignTx,EthereumAccessList:r.EthereumAccessList,EthereumSignTxEIP1559:r.EthereumSignTxEIP1559,EthereumTxRequest:r.EthereumTxRequest,EthereumTxAck:r.EthereumTxAck,EthereumSignMessage:r.EthereumSignMessage,EthereumMessageSignature:r.EthereumMessageSignature,EthereumVerifyMessage:r.EthereumVerifyMessage,EthereumSignTypedHash:r.EthereumSignTypedHash,EthereumTypedDataSignature:r.EthereumTypedDataSignature,Initialize:r.Initialize,GetFeatures:r.GetFeatures,RecoveryDevice:r.RecoveryDevice,Features:r.Features,LockDevice:r.LockDevice,SetBusy:r.SetBusy,EndSession:r.EndSession,ApplySettings:r.ApplySettings,ChangeLanguage:r.ChangeLanguage,TranslationDataRequest:r.TranslationDataRequest,TranslationDataAck:r.TranslationDataAck,ApplyFlags:r.ApplyFlags,ChangePin:r.ChangePin,ChangeWipeCode:r.ChangeWipeCode,SdProtect:r.SdProtect,Ping:r.Ping,Cancel:r.Cancel,GetEntropy:r.GetEntropy,Entropy:r.Entropy,GetFirmwareHash:r.GetFirmwareHash,FirmwareHash:r.FirmwareHash,AuthenticateDevice:r.AuthenticateDevice,AuthenticityProof:r.AuthenticityProof,WipeDevice:r.WipeDevice,LoadDevice:r.LoadDevice,ResetDevice:r.ResetDevice,Slip39Group:r.Slip39Group,BackupDevice:r.BackupDevice,EntropyRequest:r.EntropyRequest,EntropyAck:r.EntropyAck,WordRequest:r.WordRequest,WordAck:r.WordAck,SetU2FCounter:r.SetU2FCounter,GetNextU2FCounter:r.GetNextU2FCounter,NextU2FCounter:r.NextU2FCounter,DoPreauthorized:r.DoPreauthorized,PreauthorizedRequest:r.PreauthorizedRequest,CancelAuthorization:r.CancelAuthorization,RebootToBootloader:r.RebootToBootloader,GetNonce:r.GetNonce,Nonce:r.Nonce,UnlockPath:r.UnlockPath,UnlockedPathRequest:r.UnlockedPathRequest,ShowDeviceTutorial:r.ShowDeviceTutorial,UnlockBootloader:r.UnlockBootloader,SetBrightness:r.SetBrightness,NEMGetAddress:r.NEMGetAddress,NEMAddress:r.NEMAddress,NEMTransactionCommon:r.NEMTransactionCommon,NEMMosaic:r.NEMMosaic,NEMTransfer:r.NEMTransfer,NEMProvisionNamespace:r.NEMProvisionNamespace,NEMMosaicDefinition:r.NEMMosaicDefinition,NEMMosaicCreation:r.NEMMosaicCreation,NEMMosaicSupplyChange:r.NEMMosaicSupplyChange,NEMCosignatoryModification:r.NEMCosignatoryModification,NEMAggregateModification:r.NEMAggregateModification,NEMImportanceTransfer:r.NEMImportanceTransfer,NEMSignTx:r.NEMSignTx,NEMSignedTx:r.NEMSignedTx,NEMDecryptMessage:r.NEMDecryptMessage,NEMDecryptedMessage:r.NEMDecryptedMessage,RippleGetAddress:r.RippleGetAddress,RippleAddress:r.RippleAddress,RipplePayment:r.RipplePayment,RippleSignTx:r.RippleSignTx,RippleSignedTx:r.RippleSignedTx,SolanaGetPublicKey:r.SolanaGetPublicKey,SolanaPublicKey:r.SolanaPublicKey,SolanaGetAddress:r.SolanaGetAddress,SolanaAddress:r.SolanaAddress,SolanaTxTokenAccountInfo:r.SolanaTxTokenAccountInfo,SolanaTxAdditionalInfo:r.SolanaTxAdditionalInfo,SolanaSignTx:r.SolanaSignTx,SolanaTxSignature:r.SolanaTxSignature,StellarAsset:r.StellarAsset,StellarGetAddress:r.StellarGetAddress,StellarAddress:r.StellarAddress,StellarSignTx:r.StellarSignTx,StellarTxOpRequest:r.StellarTxOpRequest,StellarPaymentOp:r.StellarPaymentOp,StellarCreateAccountOp:r.StellarCreateAccountOp,StellarPathPaymentStrictReceiveOp:r.StellarPathPaymentStrictReceiveOp,StellarPathPaymentStrictSendOp:r.StellarPathPaymentStrictSendOp,StellarManageSellOfferOp:r.StellarManageSellOfferOp,StellarManageBuyOfferOp:r.StellarManageBuyOfferOp,StellarCreatePassiveSellOfferOp:r.StellarCreatePassiveSellOfferOp,StellarSetOptionsOp:r.StellarSetOptionsOp,StellarChangeTrustOp:r.StellarChangeTrustOp,StellarAllowTrustOp:r.StellarAllowTrustOp,StellarAccountMergeOp:r.StellarAccountMergeOp,StellarManageDataOp:r.StellarManageDataOp,StellarBumpSequenceOp:r.StellarBumpSequenceOp,StellarClaimClaimableBalanceOp:r.StellarClaimClaimableBalanceOp,StellarSignedTx:r.StellarSignedTx,TezosGetAddress:r.TezosGetAddress,TezosAddress:r.TezosAddress,TezosGetPublicKey:r.TezosGetPublicKey,TezosPublicKey:r.TezosPublicKey,TezosContractID:r.TezosContractID,TezosRevealOp:r.TezosRevealOp,TezosManagerTransfer:r.TezosManagerTransfer,TezosParametersManager:r.TezosParametersManager,TezosTransactionOp:r.TezosTransactionOp,TezosOriginationOp:r.TezosOriginationOp,TezosDelegationOp:r.TezosDelegationOp,TezosProposalOp:r.TezosProposalOp,TezosBallotOp:r.TezosBallotOp,TezosSignTx:r.TezosSignTx,TezosSignedTx:r.TezosSignedTx},{$id:"MessageType"})}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf",file:"node_modules/@trezor/protobuf/lib/messages-schema.js"}],[3326,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i,o,s,a,c,u,l,p,d,h,f,y,m,T,g,b,_,O,E,S,v,x,w,A,R,I,P,N,C,j,k,M,L,D,B,z,U,F,$,G,H,K,V,q,W,Y,Q,X,J;Object.defineProperty(r,"__esModule",{value:!0}),r.TezosBallotType=r.TezosContractType=r.StellarSignerType=r.StellarMemoType=r.StellarAssetType=r.NEMImportanceTransferMode=r.NEMModificationType=r.NEMSupplyChangeType=r.NEMMosaicLevy=r.BootCommand=r.Enum_WordRequestType=r.SdProtectOperationType=r.Enum_RecoveryType=r.RecoveryDeviceInputMethod=r.Enum_Capability=r.Enum_RecoveryStatus=r.Enum_BackupAvailability=r.Enum_HomescreenFormat=r.Enum_DisplayRotation=r.Enum_SafetyCheckLevel=r.Enum_BackupType=r.EthereumDataType=r.EthereumDefinitionType=r.DebugWaitType=r.DebugPhysicalButton=r.DebugButton=r.Enum_PinMatrixRequestType=r.Enum_ButtonRequestType=r.FailureType=r.CardanoTxWitnessType=r.CardanoTxSigningMode=r.CardanoCVoteRegistrationFormat=r.CardanoTxAuxiliaryDataSupplementType=r.CardanoPoolRelayType=r.CardanoDRepType=r.CardanoCertificateType=r.CardanoTxOutputSerializationFormat=r.CardanoNativeScriptHashDisplayFormat=r.CardanoNativeScriptType=r.CardanoAddressType=r.CardanoDerivationType=r.Enum_RequestType=r.AmountUnit=r.DecredStakingSpendType=r.Enum_OutputScriptType=r.Enum_InputScriptType=r.BinanceTimeInForce=r.BinanceOrderSide=r.BinanceOrderType=r.DeviceModelInternal=void 0,function(e){e.T1B1="T1B1",e.T2T1="T2T1",e.T2B1="T2B1",e.T3B1="T3B1",e.T3T1="T3T1",e.T3W1="T3W1"}(n||(r.DeviceModelInternal=n={})),function(e){e[e.OT_UNKNOWN=0]="OT_UNKNOWN",e[e.MARKET=1]="MARKET",e[e.LIMIT=2]="LIMIT",e[e.OT_RESERVED=3]="OT_RESERVED"}(i||(r.BinanceOrderType=i={})),function(e){e[e.SIDE_UNKNOWN=0]="SIDE_UNKNOWN",e[e.BUY=1]="BUY",e[e.SELL=2]="SELL"}(o||(r.BinanceOrderSide=o={})),function(e){e[e.TIF_UNKNOWN=0]="TIF_UNKNOWN",e[e.GTE=1]="GTE",e[e.TIF_RESERVED=2]="TIF_RESERVED",e[e.IOC=3]="IOC"}(s||(r.BinanceTimeInForce=s={})),function(e){e[e.SPENDADDRESS=0]="SPENDADDRESS",e[e.SPENDMULTISIG=1]="SPENDMULTISIG",e[e.EXTERNAL=2]="EXTERNAL",e[e.SPENDWITNESS=3]="SPENDWITNESS",e[e.SPENDP2SHWITNESS=4]="SPENDP2SHWITNESS",e[e.SPENDTAPROOT=5]="SPENDTAPROOT"}(a||(r.Enum_InputScriptType=a={})),function(e){e[e.PAYTOADDRESS=0]="PAYTOADDRESS",e[e.PAYTOSCRIPTHASH=1]="PAYTOSCRIPTHASH",e[e.PAYTOMULTISIG=2]="PAYTOMULTISIG",e[e.PAYTOOPRETURN=3]="PAYTOOPRETURN",e[e.PAYTOWITNESS=4]="PAYTOWITNESS",e[e.PAYTOP2SHWITNESS=5]="PAYTOP2SHWITNESS",e[e.PAYTOTAPROOT=6]="PAYTOTAPROOT"}(c||(r.Enum_OutputScriptType=c={})),function(e){e[e.SSGen=0]="SSGen",e[e.SSRTX=1]="SSRTX"}(u||(r.DecredStakingSpendType=u={})),function(e){e[e.BITCOIN=0]="BITCOIN",e[e.MILLIBITCOIN=1]="MILLIBITCOIN",e[e.MICROBITCOIN=2]="MICROBITCOIN",e[e.SATOSHI=3]="SATOSHI"}(l||(r.AmountUnit=l={})),function(e){e[e.TXINPUT=0]="TXINPUT",e[e.TXOUTPUT=1]="TXOUTPUT",e[e.TXMETA=2]="TXMETA",e[e.TXFINISHED=3]="TXFINISHED",e[e.TXEXTRADATA=4]="TXEXTRADATA",e[e.TXORIGINPUT=5]="TXORIGINPUT",e[e.TXORIGOUTPUT=6]="TXORIGOUTPUT",e[e.TXPAYMENTREQ=7]="TXPAYMENTREQ"}(p||(r.Enum_RequestType=p={})),function(e){e[e.LEDGER=0]="LEDGER",e[e.ICARUS=1]="ICARUS",e[e.ICARUS_TREZOR=2]="ICARUS_TREZOR"}(d||(r.CardanoDerivationType=d={})),function(e){e[e.BASE=0]="BASE",e[e.BASE_SCRIPT_KEY=1]="BASE_SCRIPT_KEY",e[e.BASE_KEY_SCRIPT=2]="BASE_KEY_SCRIPT",e[e.BASE_SCRIPT_SCRIPT=3]="BASE_SCRIPT_SCRIPT",e[e.POINTER=4]="POINTER",e[e.POINTER_SCRIPT=5]="POINTER_SCRIPT",e[e.ENTERPRISE=6]="ENTERPRISE",e[e.ENTERPRISE_SCRIPT=7]="ENTERPRISE_SCRIPT",e[e.BYRON=8]="BYRON",e[e.REWARD=14]="REWARD",e[e.REWARD_SCRIPT=15]="REWARD_SCRIPT"}(h||(r.CardanoAddressType=h={})),function(e){e[e.PUB_KEY=0]="PUB_KEY",e[e.ALL=1]="ALL",e[e.ANY=2]="ANY",e[e.N_OF_K=3]="N_OF_K",e[e.INVALID_BEFORE=4]="INVALID_BEFORE",e[e.INVALID_HEREAFTER=5]="INVALID_HEREAFTER"}(f||(r.CardanoNativeScriptType=f={})),function(e){e[e.HIDE=0]="HIDE",e[e.BECH32=1]="BECH32",e[e.POLICY_ID=2]="POLICY_ID"}(y||(r.CardanoNativeScriptHashDisplayFormat=y={})),function(e){e[e.ARRAY_LEGACY=0]="ARRAY_LEGACY",e[e.MAP_BABBAGE=1]="MAP_BABBAGE"}(m||(r.CardanoTxOutputSerializationFormat=m={})),function(e){e[e.STAKE_REGISTRATION=0]="STAKE_REGISTRATION",e[e.STAKE_DEREGISTRATION=1]="STAKE_DEREGISTRATION",e[e.STAKE_DELEGATION=2]="STAKE_DELEGATION",e[e.STAKE_POOL_REGISTRATION=3]="STAKE_POOL_REGISTRATION",e[e.STAKE_REGISTRATION_CONWAY=7]="STAKE_REGISTRATION_CONWAY",e[e.STAKE_DEREGISTRATION_CONWAY=8]="STAKE_DEREGISTRATION_CONWAY",e[e.VOTE_DELEGATION=9]="VOTE_DELEGATION"}(T||(r.CardanoCertificateType=T={})),function(e){e[e.KEY_HASH=0]="KEY_HASH",e[e.SCRIPT_HASH=1]="SCRIPT_HASH",e[e.ABSTAIN=2]="ABSTAIN",e[e.NO_CONFIDENCE=3]="NO_CONFIDENCE"}(g||(r.CardanoDRepType=g={})),function(e){e[e.SINGLE_HOST_IP=0]="SINGLE_HOST_IP",e[e.SINGLE_HOST_NAME=1]="SINGLE_HOST_NAME",e[e.MULTIPLE_HOST_NAME=2]="MULTIPLE_HOST_NAME"}(b||(r.CardanoPoolRelayType=b={})),function(e){e[e.NONE=0]="NONE",e[e.CVOTE_REGISTRATION_SIGNATURE=1]="CVOTE_REGISTRATION_SIGNATURE"}(_||(r.CardanoTxAuxiliaryDataSupplementType=_={})),function(e){e[e.CIP15=0]="CIP15",e[e.CIP36=1]="CIP36"}(O||(r.CardanoCVoteRegistrationFormat=O={})),function(e){e[e.ORDINARY_TRANSACTION=0]="ORDINARY_TRANSACTION",e[e.POOL_REGISTRATION_AS_OWNER=1]="POOL_REGISTRATION_AS_OWNER",e[e.MULTISIG_TRANSACTION=2]="MULTISIG_TRANSACTION",e[e.PLUTUS_TRANSACTION=3]="PLUTUS_TRANSACTION"}(E||(r.CardanoTxSigningMode=E={})),function(e){e[e.BYRON_WITNESS=0]="BYRON_WITNESS",e[e.SHELLEY_WITNESS=1]="SHELLEY_WITNESS"}(S||(r.CardanoTxWitnessType=S={})),function(e){e[e.Failure_UnexpectedMessage=1]="Failure_UnexpectedMessage",e[e.Failure_ButtonExpected=2]="Failure_ButtonExpected",e[e.Failure_DataError=3]="Failure_DataError",e[e.Failure_ActionCancelled=4]="Failure_ActionCancelled",e[e.Failure_PinExpected=5]="Failure_PinExpected",e[e.Failure_PinCancelled=6]="Failure_PinCancelled",e[e.Failure_PinInvalid=7]="Failure_PinInvalid",e[e.Failure_InvalidSignature=8]="Failure_InvalidSignature",e[e.Failure_ProcessError=9]="Failure_ProcessError",e[e.Failure_NotEnoughFunds=10]="Failure_NotEnoughFunds",e[e.Failure_NotInitialized=11]="Failure_NotInitialized",e[e.Failure_PinMismatch=12]="Failure_PinMismatch",e[e.Failure_WipeCodeMismatch=13]="Failure_WipeCodeMismatch",e[e.Failure_InvalidSession=14]="Failure_InvalidSession",e[e.Failure_FirmwareError=99]="Failure_FirmwareError"}(v||(r.FailureType=v={})),function(e){e[e.ButtonRequest_Other=1]="ButtonRequest_Other",e[e.ButtonRequest_FeeOverThreshold=2]="ButtonRequest_FeeOverThreshold",e[e.ButtonRequest_ConfirmOutput=3]="ButtonRequest_ConfirmOutput",e[e.ButtonRequest_ResetDevice=4]="ButtonRequest_ResetDevice",e[e.ButtonRequest_ConfirmWord=5]="ButtonRequest_ConfirmWord",e[e.ButtonRequest_WipeDevice=6]="ButtonRequest_WipeDevice",e[e.ButtonRequest_ProtectCall=7]="ButtonRequest_ProtectCall",e[e.ButtonRequest_SignTx=8]="ButtonRequest_SignTx",e[e.ButtonRequest_FirmwareCheck=9]="ButtonRequest_FirmwareCheck",e[e.ButtonRequest_Address=10]="ButtonRequest_Address",e[e.ButtonRequest_PublicKey=11]="ButtonRequest_PublicKey",e[e.ButtonRequest_MnemonicWordCount=12]="ButtonRequest_MnemonicWordCount",e[e.ButtonRequest_MnemonicInput=13]="ButtonRequest_MnemonicInput",e[e._Deprecated_ButtonRequest_PassphraseType=14]="_Deprecated_ButtonRequest_PassphraseType",e[e.ButtonRequest_UnknownDerivationPath=15]="ButtonRequest_UnknownDerivationPath",e[e.ButtonRequest_RecoveryHomepage=16]="ButtonRequest_RecoveryHomepage",e[e.ButtonRequest_Success=17]="ButtonRequest_Success",e[e.ButtonRequest_Warning=18]="ButtonRequest_Warning",e[e.ButtonRequest_PassphraseEntry=19]="ButtonRequest_PassphraseEntry",e[e.ButtonRequest_PinEntry=20]="ButtonRequest_PinEntry"}(x||(r.Enum_ButtonRequestType=x={})),function(e){e[e.PinMatrixRequestType_Current=1]="PinMatrixRequestType_Current",e[e.PinMatrixRequestType_NewFirst=2]="PinMatrixRequestType_NewFirst",e[e.PinMatrixRequestType_NewSecond=3]="PinMatrixRequestType_NewSecond",e[e.PinMatrixRequestType_WipeCodeFirst=4]="PinMatrixRequestType_WipeCodeFirst",e[e.PinMatrixRequestType_WipeCodeSecond=5]="PinMatrixRequestType_WipeCodeSecond"}(w||(r.Enum_PinMatrixRequestType=w={})),function(e){e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.INFO=2]="INFO"}(A||(r.DebugButton=A={})),function(e){e[e.LEFT_BTN=0]="LEFT_BTN",e[e.MIDDLE_BTN=1]="MIDDLE_BTN",e[e.RIGHT_BTN=2]="RIGHT_BTN"}(R||(r.DebugPhysicalButton=R={})),function(e){e[e.IMMEDIATE=0]="IMMEDIATE",e[e.NEXT_LAYOUT=1]="NEXT_LAYOUT",e[e.CURRENT_LAYOUT=2]="CURRENT_LAYOUT"}(I||(r.DebugWaitType=I={})),function(e){e[e.NETWORK=0]="NETWORK",e[e.TOKEN=1]="TOKEN"}(P||(r.EthereumDefinitionType=P={})),function(e){e[e.UINT=1]="UINT",e[e.INT=2]="INT",e[e.BYTES=3]="BYTES",e[e.STRING=4]="STRING",e[e.BOOL=5]="BOOL",e[e.ADDRESS=6]="ADDRESS",e[e.ARRAY=7]="ARRAY",e[e.STRUCT=8]="STRUCT"}(N||(r.EthereumDataType=N={})),function(e){e[e.Bip39=0]="Bip39",e[e.Slip39_Basic=1]="Slip39_Basic",e[e.Slip39_Advanced=2]="Slip39_Advanced",e[e.Slip39_Single_Extendable=3]="Slip39_Single_Extendable",e[e.Slip39_Basic_Extendable=4]="Slip39_Basic_Extendable",e[e.Slip39_Advanced_Extendable=5]="Slip39_Advanced_Extendable"}(C||(r.Enum_BackupType=C={})),function(e){e[e.Strict=0]="Strict",e[e.PromptAlways=1]="PromptAlways",e[e.PromptTemporarily=2]="PromptTemporarily"}(j||(r.Enum_SafetyCheckLevel=j={})),function(e){e[e.North=0]="North",e[e.East=90]="East",e[e.South=180]="South",e[e.West=270]="West"}(k||(r.Enum_DisplayRotation=k={})),function(e){e[e.Toif=1]="Toif",e[e.Jpeg=2]="Jpeg",e[e.ToiG=3]="ToiG"}(M||(r.Enum_HomescreenFormat=M={})),function(e){e[e.NotAvailable=0]="NotAvailable",e[e.Required=1]="Required",e[e.Available=2]="Available"}(L||(r.Enum_BackupAvailability=L={})),function(e){e[e.Nothing=0]="Nothing",e[e.Recovery=1]="Recovery",e[e.Backup=2]="Backup"}(D||(r.Enum_RecoveryStatus=D={})),function(e){e[e.Capability_Bitcoin=1]="Capability_Bitcoin",e[e.Capability_Bitcoin_like=2]="Capability_Bitcoin_like",e[e.Capability_Binance=3]="Capability_Binance",e[e.Capability_Cardano=4]="Capability_Cardano",e[e.Capability_Crypto=5]="Capability_Crypto",e[e.Capability_EOS=6]="Capability_EOS",e[e.Capability_Ethereum=7]="Capability_Ethereum",e[e.Capability_Lisk=8]="Capability_Lisk",e[e.Capability_Monero=9]="Capability_Monero",e[e.Capability_NEM=10]="Capability_NEM",e[e.Capability_Ripple=11]="Capability_Ripple",e[e.Capability_Stellar=12]="Capability_Stellar",e[e.Capability_Tezos=13]="Capability_Tezos",e[e.Capability_U2F=14]="Capability_U2F",e[e.Capability_Shamir=15]="Capability_Shamir",e[e.Capability_ShamirGroups=16]="Capability_ShamirGroups",e[e.Capability_PassphraseEntry=17]="Capability_PassphraseEntry",e[e.Capability_Solana=18]="Capability_Solana",e[e.Capability_Translations=19]="Capability_Translations",e[e.Capability_Brightness=20]="Capability_Brightness",e[e.Capability_Haptic=21]="Capability_Haptic"}(B||(r.Enum_Capability=B={})),function(e){e[e.ScrambledWords=0]="ScrambledWords",e[e.Matrix=1]="Matrix"}(z||(r.RecoveryDeviceInputMethod=z={})),function(e){e[e.NormalRecovery=0]="NormalRecovery",e[e.DryRun=1]="DryRun",e[e.UnlockRepeatedBackup=2]="UnlockRepeatedBackup"}(U||(r.Enum_RecoveryType=U={})),function(e){e[e.DISABLE=0]="DISABLE",e[e.ENABLE=1]="ENABLE",e[e.REFRESH=2]="REFRESH"}(F||(r.SdProtectOperationType=F={})),function(e){e[e.WordRequestType_Plain=0]="WordRequestType_Plain",e[e.WordRequestType_Matrix9=1]="WordRequestType_Matrix9",e[e.WordRequestType_Matrix6=2]="WordRequestType_Matrix6"}($||(r.Enum_WordRequestType=$={})),function(e){e[e.STOP_AND_WAIT=0]="STOP_AND_WAIT",e[e.INSTALL_UPGRADE=1]="INSTALL_UPGRADE"}(G||(r.BootCommand=G={})),function(e){e[e.MosaicLevy_Absolute=1]="MosaicLevy_Absolute",e[e.MosaicLevy_Percentile=2]="MosaicLevy_Percentile"}(H||(r.NEMMosaicLevy=H={})),function(e){e[e.SupplyChange_Increase=1]="SupplyChange_Increase",e[e.SupplyChange_Decrease=2]="SupplyChange_Decrease"}(K||(r.NEMSupplyChangeType=K={})),function(e){e[e.CosignatoryModification_Add=1]="CosignatoryModification_Add",e[e.CosignatoryModification_Delete=2]="CosignatoryModification_Delete"}(V||(r.NEMModificationType=V={})),function(e){e[e.ImportanceTransfer_Activate=1]="ImportanceTransfer_Activate",e[e.ImportanceTransfer_Deactivate=2]="ImportanceTransfer_Deactivate"}(q||(r.NEMImportanceTransferMode=q={})),function(e){e[e.NATIVE=0]="NATIVE",e[e.ALPHANUM4=1]="ALPHANUM4",e[e.ALPHANUM12=2]="ALPHANUM12"}(W||(r.StellarAssetType=W={})),function(e){e[e.NONE=0]="NONE",e[e.TEXT=1]="TEXT",e[e.ID=2]="ID",e[e.HASH=3]="HASH",e[e.RETURN=4]="RETURN"}(Y||(r.StellarMemoType=Y={})),function(e){e[e.ACCOUNT=0]="ACCOUNT",e[e.PRE_AUTH=1]="PRE_AUTH",e[e.HASH=2]="HASH"}(Q||(r.StellarSignerType=Q={})),function(e){e[e.Implicit=0]="Implicit",e[e.Originated=1]="Originated"}(X||(r.TezosContractType=X={})),function(e){e[e.Yay=0]="Yay",e[e.Nay=1]="Nay",e[e.Pass=2]="Pass"}(J||(r.TezosBallotType=J={}))}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf",file:"node_modules/@trezor/protobuf/lib/messages.js"}],[3327,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf",file:"node_modules/@trezor/protobuf/lib/types.js"}],[3328,{"protobufjs/light":5035,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createMessageFromType=r.createMessageFromName=r.isPrimitiveField=void 0,r.parseConfigure=function(e){if("string"==typeof e)return n.Root.fromJSON(JSON.parse(e));return n.Root.fromJSON(e)};const n=e("tslib").__importStar(e("protobufjs/light")),i=["bool","string","bytes","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","double","float"];r.isPrimitiveField=e=>i.includes(e);r.createMessageFromName=(e,t)=>{const r=e.lookupType(t);let n=e.lookupEnum("MessageType").values[t];return"number"!=typeof n&&r.options&&(n=r.options["(wire_type)"]),{Message:r,messageType:null!=n?n:t}};r.createMessageFromType=(e,t)=>{if("string"==typeof t){return{Message:e.lookupType(t),messageName:t}}const r=e.lookupEnum("MessageType").valuesById[t];return{Message:e.lookupType(r),messageName:r}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf",file:"node_modules/@trezor/protobuf/lib/utils.js"}],[3329,{"@sinclair/typebox":3340},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ArrayBufferBuilder=void 0;const n=e("@sinclair/typebox");n.TypeRegistry.Set("ArrayBuffer",((e,t)=>t instanceof ArrayBuffer));class i extends n.JavaScriptTypeBuilder{ArrayBuffer(e){return(0,n.CreateType)({[n.Kind]:"ArrayBuffer",type:"ArrayBuffer"},e)}}r.ArrayBufferBuilder=i}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils",file:"node_modules/@trezor/schema-utils/lib/custom-types/array-buffer.js"}],[3330,{"@sinclair/typebox":3340,buffer:4074},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.BufferBuilder=void 0;const n=e("@sinclair/typebox");n.TypeRegistry.Set("Buffer",((e,r)=>r instanceof t));class i extends n.JavaScriptTypeBuilder{Buffer(e){return(0,n.CreateType)({[n.Kind]:"Buffer",type:"Buffer"},e)}}r.BufferBuilder=i}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils",file:"node_modules/@trezor/schema-utils/lib/custom-types/buffer.js"}],[3331,{"./array-buffer":3329,"./buffer":3330,"./keyof-enum":3332,"./uint":3333},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UintBuilder=r.KeyofEnumBuilder=r.BufferBuilder=r.ArrayBufferBuilder=void 0;var n=e("./array-buffer");Object.defineProperty(r,"ArrayBufferBuilder",{enumerable:!0,get:function(){return n.ArrayBufferBuilder}});var i=e("./buffer");Object.defineProperty(r,"BufferBuilder",{enumerable:!0,get:function(){return i.BufferBuilder}});var o=e("./keyof-enum");Object.defineProperty(r,"KeyofEnumBuilder",{enumerable:!0,get:function(){return o.KeyofEnumBuilder}});var s=e("./uint");Object.defineProperty(r,"UintBuilder",{enumerable:!0,get:function(){return s.UintBuilder}})}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils",file:"node_modules/@trezor/schema-utils/lib/custom-types/index.js"}],[3332,{"@sinclair/typebox":3340},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.KeyofEnumBuilder=void 0;const n=e("@sinclair/typebox");class i extends n.JavaScriptTypeBuilder{KeyOfEnum(e,t){const r=Object.keys(e).map((e=>this.Literal(e)));return this.Union(r,Object.assign(Object.assign({},t),{[n.Hint]:"KeyOfEnum"}))}Enum(e,t){const r=Object.entries(e).filter((([e,t])=>"string"==typeof e||!isNaN(e))).map((([e,t])=>this.Literal(t,{$id:e})));return this.Union(r,Object.assign(Object.assign({},t),{[n.Hint]:"Enum"}))}}r.KeyofEnumBuilder=i}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils",file:"node_modules/@trezor/schema-utils/lib/custom-types/keyof-enum.js"}],[3333,{"@sinclair/typebox":3340},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UintBuilder=void 0;const n=e("@sinclair/typebox");n.TypeRegistry.Set("Uint",((e,t)=>("string"==typeof t||"number"==typeof t)&&!("number"==typeof t&&!Number.isSafeInteger(t)||!/^(?:[1-9]\d*|\d)$/.test(t.toString().replace(/^-/,e.allowNegative?"":"-")))));class i extends n.JavaScriptTypeBuilder{Uint(e){return(0,n.CreateType)({[n.Kind]:"Uint",type:"Uint"},e)}}r.UintBuilder=i}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils",file:"node_modules/@trezor/schema-utils/lib/custom-types/uint.js"}],[3334,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidParameter=void 0;class n extends Error{constructor(e,t,r,n){let i="Invalid parameter";i+=` "${t.substring(1)}"`,i+=` (= ${JSON.stringify(n)})`,i+=`: ${e.replace(/'/g,'"')}`,super(i),this.name="InvalidParameter",this.field=t,this.type=r}}r.InvalidParameter=n}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils",file:"node_modules/@trezor/schema-utils/lib/errors.js"}],[3335,{"./custom-types":3331,"./errors":3334,"./utils":3336,"@sinclair/typebox":3340,"@sinclair/typebox/errors":3339,"ts-mixer":5609},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CloneType=r.Optional=r.Type=void 0,r.Validate=l,r.Assert=d,r.AssertWeak=function(e,t){try{d(e,t)}catch(e){if(!(e instanceof a.InvalidParameter))throw e;if(e.type===i.ValueErrorType.ObjectRequiredProperty)throw e;console.warn("Method params validation failed",e)}};const n=e("@sinclair/typebox");Object.defineProperty(r,"Optional",{enumerable:!0,get:function(){return n.Optional}}),Object.defineProperty(r,"CloneType",{enumerable:!0,get:function(){return n.CloneType}});const i=e("@sinclair/typebox/errors"),o=e("ts-mixer"),s=e("./custom-types"),a=e("./errors"),c=e("./utils");class u extends((0,o.Mixin)(n.JavaScriptTypeBuilder,s.ArrayBufferBuilder,s.BufferBuilder,s.KeyofEnumBuilder,s.UintBuilder)){}function l(e,t){try{return d(e,t),!0}catch(e){return!1}}function p(e){const t=e.value,r=e.schema.anyOf;if(!r.find((e=>l(e,t)))){const o=r.filter((e=>"Object"===e[n.Kind]&&!Object.entries(e.properties).find((([e,r])=>r.const&&r.const!==t[e]))));if(1===o.length)d(o[0],t);else if(o.length>1){const e=o.map((e=>({schema:e,errors:[...(0,i.Errors)(e,t)]}))).sort(((e,t)=>e.errors.length-t.errors.length)),[r]=e;d(r.schema,t)}throw new a.InvalidParameter(e.message,e.path,e.type,e.value)}}function d(e,t){const r=[...(0,i.Errors)(e,t)];let[o]=r;for(;o;){if("/"===o.path&&r.length>1);else if(null==o.value&&"Optional"===o.schema[n.OptionalKind]);else if(o.type===i.ValueErrorType.Union)p(o);else{if(o.type!==i.ValueErrorType.Number||"string"!=typeof o.value)throw new a.InvalidParameter(o.message,o.path,o.type,o.value);{const e=o.value,r=Number(e);if(Number.isNaN(r)||e!==r.toString())throw new a.InvalidParameter(o.message,o.path,o.type,o.value);{const e=o.path.slice(1).split("/");(0,c.setDeepValue)(t,e,r)}}}r.shift(),[o]=r}}r.Type=new u}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils",file:"node_modules/@trezor/schema-utils/lib/index.js"}],[3336,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.setDeepValue=function e(t,[r,...n],i){n.length?(r in t||(t[r]={}),e(t[r],n,i)):t[r]=i},r.getDeepValue=function e(t,[r,...n]){return n.length?r in t?e(t[r],n):undefined:t[r]}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils",file:"node_modules/@trezor/schema-utils/lib/utils.js"}],[3337,{"../system/index":3341,"../type/error/index":3379,"../type/extends/extends-undefined":3387,"../type/keyof/index":3425,"../type/never/index":3436,"../type/registry/index":3480,"../type/symbols/index":3502,"../value/check/index":3536,"../value/deref/index":3538,"../value/guard/index":3540,"../value/hash/index":3542,"./function":3338},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueErrorIterator=r.ValueErrorsUnknownTypeError=r.ValueErrorType=void 0,r.Errors=function(...e){const t=3===e.length?O(e[0],e[1],"",e[2]):O(e[0],[],"",e[1]);return new b(t)};const n=e("../system/index"),i=e("../type/keyof/index"),o=e("../type/registry/index"),s=e("../type/extends/extends-undefined"),a=e("./function"),c=e("../type/error/index"),u=e("../value/deref/index"),l=e("../value/hash/index"),p=e("../value/check/index"),d=e("../type/symbols/index"),h=e("../type/never/index"),f=e("../value/guard/index");var y;!function(e){e[e.ArrayContains=0]="ArrayContains",e[e.ArrayMaxContains=1]="ArrayMaxContains",e[e.ArrayMaxItems=2]="ArrayMaxItems",e[e.ArrayMinContains=3]="ArrayMinContains",e[e.ArrayMinItems=4]="ArrayMinItems",e[e.ArrayUniqueItems=5]="ArrayUniqueItems",e[e.Array=6]="Array",e[e.AsyncIterator=7]="AsyncIterator",e[e.BigIntExclusiveMaximum=8]="BigIntExclusiveMaximum",e[e.BigIntExclusiveMinimum=9]="BigIntExclusiveMinimum",e[e.BigIntMaximum=10]="BigIntMaximum",e[e.BigIntMinimum=11]="BigIntMinimum",e[e.BigIntMultipleOf=12]="BigIntMultipleOf",e[e.BigInt=13]="BigInt",e[e.Boolean=14]="Boolean",e[e.DateExclusiveMaximumTimestamp=15]="DateExclusiveMaximumTimestamp",e[e.DateExclusiveMinimumTimestamp=16]="DateExclusiveMinimumTimestamp",e[e.DateMaximumTimestamp=17]="DateMaximumTimestamp",e[e.DateMinimumTimestamp=18]="DateMinimumTimestamp",e[e.DateMultipleOfTimestamp=19]="DateMultipleOfTimestamp",e[e.Date=20]="Date",e[e.Function=21]="Function",e[e.IntegerExclusiveMaximum=22]="IntegerExclusiveMaximum",e[e.IntegerExclusiveMinimum=23]="IntegerExclusiveMinimum",e[e.IntegerMaximum=24]="IntegerMaximum",e[e.IntegerMinimum=25]="IntegerMinimum",e[e.IntegerMultipleOf=26]="IntegerMultipleOf",e[e.Integer=27]="Integer",e[e.IntersectUnevaluatedProperties=28]="IntersectUnevaluatedProperties",e[e.Intersect=29]="Intersect",e[e.Iterator=30]="Iterator",e[e.Kind=31]="Kind",e[e.Literal=32]="Literal",e[e.Never=33]="Never",e[e.Not=34]="Not",e[e.Null=35]="Null",e[e.NumberExclusiveMaximum=36]="NumberExclusiveMaximum",e[e.NumberExclusiveMinimum=37]="NumberExclusiveMinimum",e[e.NumberMaximum=38]="NumberMaximum",e[e.NumberMinimum=39]="NumberMinimum",e[e.NumberMultipleOf=40]="NumberMultipleOf",e[e.Number=41]="Number",e[e.ObjectAdditionalProperties=42]="ObjectAdditionalProperties",e[e.ObjectMaxProperties=43]="ObjectMaxProperties",e[e.ObjectMinProperties=44]="ObjectMinProperties",e[e.ObjectRequiredProperty=45]="ObjectRequiredProperty",e[e.Object=46]="Object",e[e.Promise=47]="Promise",e[e.RegExp=48]="RegExp",e[e.StringFormatUnknown=49]="StringFormatUnknown",e[e.StringFormat=50]="StringFormat",e[e.StringMaxLength=51]="StringMaxLength",e[e.StringMinLength=52]="StringMinLength",e[e.StringPattern=53]="StringPattern",e[e.String=54]="String",e[e.Symbol=55]="Symbol",e[e.TupleLength=56]="TupleLength",e[e.Tuple=57]="Tuple",e[e.Uint8ArrayMaxByteLength=58]="Uint8ArrayMaxByteLength",e[e.Uint8ArrayMinByteLength=59]="Uint8ArrayMinByteLength",e[e.Uint8Array=60]="Uint8Array",e[e.Undefined=61]="Undefined",e[e.Union=62]="Union",e[e.Void=63]="Void"}(y||(r.ValueErrorType=y={}));class m extends c.TypeBoxError{constructor(e){super("Unknown type"),this.schema=e}}function T(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function g(e){return e!==undefined}r.ValueErrorsUnknownTypeError=m;class b{constructor(e){this.iterator=e}[Symbol.iterator](){return this.iterator}First(){const e=this.iterator.next();return e.done?undefined:e.value}}function _(e,t,r,n,i=[]){return{type:e,schema:t,path:r,value:n,message:(0,a.GetErrorFunction)()({errorType:e,path:r,schema:t,value:n,errors:i}),errors:i}}function*O(e,t,r,a){const c=g(e.$id)?[...t,e]:t,E=e;switch(E[d.Kind]){case"Any":case"Unknown":return yield*function*(e,t,r,n){}();case"Array":return yield*function*(e,t,r,n){if(!(0,f.IsArray)(n))return yield _(y.Array,e,r,n);!g(e.minItems)||n.length>=e.minItems||(yield _(y.ArrayMinItems,e,r,n)),!g(e.maxItems)||n.length<=e.maxItems||(yield _(y.ArrayMaxItems,e,r,n));for(let i=0;i<n.length;i++)yield*O(e.items,t,`${r}/${i}`,n[i]);if(!0!==e.uniqueItems||function(){const e=new Set;for(const t of n){const r=(0,l.Hash)(t);if(e.has(r))return!1;e.add(r)}return!0}()||(yield _(y.ArrayUniqueItems,e,r,n)),!(g(e.contains)||g(e.minContains)||g(e.maxContains)))return;const i=g(e.contains)?e.contains:(0,h.Never)(),o=n.reduce(((e,n,o)=>!0===O(i,t,`${r}${o}`,n).next().done?e+1:e),0);0===o&&(yield _(y.ArrayContains,e,r,n)),(0,f.IsNumber)(e.minContains)&&o<e.minContains&&(yield _(y.ArrayMinContains,e,r,n)),(0,f.IsNumber)(e.maxContains)&&o>e.maxContains&&(yield _(y.ArrayMaxContains,e,r,n))}(E,c,r,a);case"AsyncIterator":return yield*function*(e,t,r,n){(0,f.IsAsyncIterator)(n)||(yield _(y.AsyncIterator,e,r,n))}(E,0,r,a);case"BigInt":return yield*function*(e,t,r,n){if(!(0,f.IsBigInt)(n))return yield _(y.BigInt,e,r,n);!g(e.exclusiveMaximum)||n<e.exclusiveMaximum||(yield _(y.BigIntExclusiveMaximum,e,r,n)),!g(e.exclusiveMinimum)||n>e.exclusiveMinimum||(yield _(y.BigIntExclusiveMinimum,e,r,n)),!g(e.maximum)||n<=e.maximum||(yield _(y.BigIntMaximum,e,r,n)),!g(e.minimum)||n>=e.minimum||(yield _(y.BigIntMinimum,e,r,n)),g(e.multipleOf)&&n%e.multipleOf!==BigInt(0)&&(yield _(y.BigIntMultipleOf,e,r,n))}(E,0,r,a);case"Boolean":return yield*function*(e,t,r,n){(0,f.IsBoolean)(n)||(yield _(y.Boolean,e,r,n))}(E,0,r,a);case"Constructor":return yield*function*(e,t,r,n){yield*O(e.returns,t,r,n.prototype)}(E,c,r,a);case"Date":return yield*function*(e,t,r,n){if(!(0,f.IsDate)(n))return yield _(y.Date,e,r,n);!g(e.exclusiveMaximumTimestamp)||n.getTime()<e.exclusiveMaximumTimestamp||(yield _(y.DateExclusiveMaximumTimestamp,e,r,n)),!g(e.exclusiveMinimumTimestamp)||n.getTime()>e.exclusiveMinimumTimestamp||(yield _(y.DateExclusiveMinimumTimestamp,e,r,n)),!g(e.maximumTimestamp)||n.getTime()<=e.maximumTimestamp||(yield _(y.DateMaximumTimestamp,e,r,n)),!g(e.minimumTimestamp)||n.getTime()>=e.minimumTimestamp||(yield _(y.DateMinimumTimestamp,e,r,n)),g(e.multipleOfTimestamp)&&n.getTime()%e.multipleOfTimestamp!=0&&(yield _(y.DateMultipleOfTimestamp,e,r,n))}(E,0,r,a);case"Function":return yield*function*(e,t,r,n){(0,f.IsFunction)(n)||(yield _(y.Function,e,r,n))}(E,0,r,a);case"Integer":return yield*function*(e,t,r,n){if(!(0,f.IsInteger)(n))return yield _(y.Integer,e,r,n);!g(e.exclusiveMaximum)||n<e.exclusiveMaximum||(yield _(y.IntegerExclusiveMaximum,e,r,n)),!g(e.exclusiveMinimum)||n>e.exclusiveMinimum||(yield _(y.IntegerExclusiveMinimum,e,r,n)),!g(e.maximum)||n<=e.maximum||(yield _(y.IntegerMaximum,e,r,n)),!g(e.minimum)||n>=e.minimum||(yield _(y.IntegerMinimum,e,r,n)),g(e.multipleOf)&&n%e.multipleOf!=0&&(yield _(y.IntegerMultipleOf,e,r,n))}(E,0,r,a);case"Intersect":return yield*function*(e,t,r,n){let o=!1;for(const i of e.allOf)for(const e of O(i,t,r,n))o=!0,yield e;if(o)return yield _(y.Intersect,e,r,n);if(!1===e.unevaluatedProperties){const t=new RegExp((0,i.KeyOfPattern)(e));for(const i of Object.getOwnPropertyNames(n))t.test(i)||(yield _(y.IntersectUnevaluatedProperties,e,`${r}/${i}`,n))}if("object"==typeof e.unevaluatedProperties){const o=new RegExp((0,i.KeyOfPattern)(e));for(const i of Object.getOwnPropertyNames(n))if(!o.test(i)){const o=O(e.unevaluatedProperties,t,`${r}/${i}`,n[i]).next();o.done||(yield o.value)}}}(E,c,r,a);case"Iterator":return yield*function*(e,t,r,n){(0,f.IsIterator)(n)||(yield _(y.Iterator,e,r,n))}(E,0,r,a);case"Literal":return yield*function*(e,t,r,n){n!==e.const&&(yield _(y.Literal,e,r,n))}(E,0,r,a);case"Never":return yield*function*(e,t,r,n){yield _(y.Never,e,r,n)}(E,0,r,a);case"Not":return yield*function*(e,t,r,n){!0===O(e.not,t,r,n).next().done&&(yield _(y.Not,e,r,n))}(E,c,r,a);case"Null":return yield*function*(e,t,r,n){(0,f.IsNull)(n)||(yield _(y.Null,e,r,n))}(E,0,r,a);case"Number":return yield*function*(e,t,r,i){if(!n.TypeSystemPolicy.IsNumberLike(i))return yield _(y.Number,e,r,i);!g(e.exclusiveMaximum)||i<e.exclusiveMaximum||(yield _(y.NumberExclusiveMaximum,e,r,i)),!g(e.exclusiveMinimum)||i>e.exclusiveMinimum||(yield _(y.NumberExclusiveMinimum,e,r,i)),!g(e.maximum)||i<=e.maximum||(yield _(y.NumberMaximum,e,r,i)),!g(e.minimum)||i>=e.minimum||(yield _(y.NumberMinimum,e,r,i)),g(e.multipleOf)&&i%e.multipleOf!=0&&(yield _(y.NumberMultipleOf,e,r,i))}(E,0,r,a);case"Object":return yield*function*(e,t,r,i){if(!n.TypeSystemPolicy.IsObjectLike(i))return yield _(y.Object,e,r,i);!g(e.minProperties)||Object.getOwnPropertyNames(i).length>=e.minProperties||(yield _(y.ObjectMinProperties,e,r,i)),!g(e.maxProperties)||Object.getOwnPropertyNames(i).length<=e.maxProperties||(yield _(y.ObjectMaxProperties,e,r,i));const o=Array.isArray(e.required)?e.required:[],a=Object.getOwnPropertyNames(e.properties),c=Object.getOwnPropertyNames(i);for(const t of o)c.includes(t)||(yield _(y.ObjectRequiredProperty,e.properties[t],`${r}/${T(t)}`,undefined));if(!1===e.additionalProperties)for(const t of c)a.includes(t)||(yield _(y.ObjectAdditionalProperties,e,`${r}/${T(t)}`,i[t]));if("object"==typeof e.additionalProperties)for(const n of c)a.includes(n)||(yield*O(e.additionalProperties,t,`${r}/${T(n)}`,i[n]));for(const o of a){const a=e.properties[o];e.required&&e.required.includes(o)?(yield*O(a,t,`${r}/${T(o)}`,i[o]),(0,s.ExtendsUndefinedCheck)(e)&&!(o in i)&&(yield _(y.ObjectRequiredProperty,a,`${r}/${T(o)}`,undefined))):n.TypeSystemPolicy.IsExactOptionalProperty(i,o)&&(yield*O(a,t,`${r}/${T(o)}`,i[o]))}}(E,c,r,a);case"Promise":return yield*function*(e,t,r,n){(0,f.IsPromise)(n)||(yield _(y.Promise,e,r,n))}(E,0,r,a);case"Record":return yield*function*(e,t,r,i){if(!n.TypeSystemPolicy.IsRecordLike(i))return yield _(y.Object,e,r,i);!g(e.minProperties)||Object.getOwnPropertyNames(i).length>=e.minProperties||(yield _(y.ObjectMinProperties,e,r,i)),!g(e.maxProperties)||Object.getOwnPropertyNames(i).length<=e.maxProperties||(yield _(y.ObjectMaxProperties,e,r,i));const[o,s]=Object.entries(e.patternProperties)[0],a=new RegExp(o);for(const[e,n]of Object.entries(i))a.test(e)&&(yield*O(s,t,`${r}/${T(e)}`,n));if("object"==typeof e.additionalProperties)for(const[n,o]of Object.entries(i))a.test(n)||(yield*O(e.additionalProperties,t,`${r}/${T(n)}`,o));if(!1===e.additionalProperties)for(const[t,n]of Object.entries(i))if(!a.test(t))return yield _(y.ObjectAdditionalProperties,e,`${r}/${T(t)}`,n)}(E,c,r,a);case"Ref":case"This":return yield*function*(e,t,r,n){yield*O((0,u.Deref)(e,t),t,r,n)}(E,c,r,a);case"RegExp":return yield*function*(e,t,r,n){return(0,f.IsString)(n)?(!g(e.minLength)||n.length>=e.minLength||(yield _(y.StringMinLength,e,r,n)),!g(e.maxLength)||n.length<=e.maxLength||(yield _(y.StringMaxLength,e,r,n)),new RegExp(e.source,e.flags).test(n)?void 0:yield _(y.RegExp,e,r,n)):yield _(y.String,e,r,n)}(E,0,r,a);case"String":return yield*function*(e,t,r,n){if(!(0,f.IsString)(n))return yield _(y.String,e,r,n);!g(e.minLength)||n.length>=e.minLength||(yield _(y.StringMinLength,e,r,n)),!g(e.maxLength)||n.length<=e.maxLength||(yield _(y.StringMaxLength,e,r,n)),(0,f.IsString)(e.pattern)&&(new RegExp(e.pattern).test(n)||(yield _(y.StringPattern,e,r,n)));(0,f.IsString)(e.format)&&(o.FormatRegistry.Has(e.format)?o.FormatRegistry.Get(e.format)(n)||(yield _(y.StringFormat,e,r,n)):yield _(y.StringFormatUnknown,e,r,n))}(E,0,r,a);case"Symbol":return yield*function*(e,t,r,n){(0,f.IsSymbol)(n)||(yield _(y.Symbol,e,r,n))}(E,0,r,a);case"TemplateLiteral":return yield*function*(e,t,r,n){if(!(0,f.IsString)(n))return yield _(y.String,e,r,n);new RegExp(e.pattern).test(n)||(yield _(y.StringPattern,e,r,n))}(E,0,r,a);case"Tuple":return yield*function*(e,t,r,n){if(!(0,f.IsArray)(n))return yield _(y.Tuple,e,r,n);if(e.items===undefined&&0!==n.length)return yield _(y.TupleLength,e,r,n);if(n.length!==e.maxItems)return yield _(y.TupleLength,e,r,n);if(e.items)for(let i=0;i<e.items.length;i++)yield*O(e.items[i],t,`${r}/${i}`,n[i])}(E,c,r,a);case"Undefined":return yield*function*(e,t,r,n){(0,f.IsUndefined)(n)||(yield _(y.Undefined,e,r,n))}(E,0,r,a);case"Union":return yield*function*(e,t,r,n){if((0,p.Check)(e,t,n))return;const i=e.anyOf.map((e=>new b(O(e,t,r,n))));yield _(y.Union,e,r,n,i)}(E,c,r,a);case"Uint8Array":return yield*function*(e,t,r,n){if(!(0,f.IsUint8Array)(n))return yield _(y.Uint8Array,e,r,n);!g(e.maxByteLength)||n.length<=e.maxByteLength||(yield _(y.Uint8ArrayMaxByteLength,e,r,n)),!g(e.minByteLength)||n.length>=e.minByteLength||(yield _(y.Uint8ArrayMinByteLength,e,r,n))}(E,0,r,a);case"Void":return yield*function*(e,t,r,i){n.TypeSystemPolicy.IsVoidLike(i)||(yield _(y.Void,e,r,i))}(E,0,r,a);default:if(!o.TypeRegistry.Has(E[d.Kind]))throw new m(e);return yield*function*(e,t,r,n){o.TypeRegistry.Get(e[d.Kind])(e,n)||(yield _(y.Kind,e,r,n))}(E,0,r,a)}}r.ValueErrorIterator=b}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/errors/errors.js"}],[3338,{"../type/symbols/index":3502,"./errors":3337},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.DefaultErrorFunction=o,r.SetErrorFunction=function(e){s=e},r.GetErrorFunction=function(){return s};const n=e("../type/symbols/index"),i=e("./errors");function o(e){switch(e.errorType){case i.ValueErrorType.ArrayContains:return"Expected array to contain at least one matching value";case i.ValueErrorType.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case i.ValueErrorType.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case i.ValueErrorType.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case i.ValueErrorType.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case i.ValueErrorType.ArrayUniqueItems:return"Expected array elements to be unique";case i.ValueErrorType.Array:return"Expected array";case i.ValueErrorType.AsyncIterator:return"Expected AsyncIterator";case i.ValueErrorType.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case i.ValueErrorType.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case i.ValueErrorType.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case i.ValueErrorType.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case i.ValueErrorType.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case i.ValueErrorType.BigInt:return"Expected bigint";case i.ValueErrorType.Boolean:return"Expected boolean";case i.ValueErrorType.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case i.ValueErrorType.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case i.ValueErrorType.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case i.ValueErrorType.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case i.ValueErrorType.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case i.ValueErrorType.Date:return"Expected Date";case i.ValueErrorType.Function:return"Expected function";case i.ValueErrorType.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case i.ValueErrorType.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case i.ValueErrorType.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case i.ValueErrorType.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case i.ValueErrorType.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case i.ValueErrorType.Integer:return"Expected integer";case i.ValueErrorType.IntersectUnevaluatedProperties:return"Unexpected property";case i.ValueErrorType.Intersect:return"Expected all values to match";case i.ValueErrorType.Iterator:return"Expected Iterator";case i.ValueErrorType.Literal:return`Expected ${"string"==typeof e.schema.const?`'${e.schema.const}'`:e.schema.const}`;case i.ValueErrorType.Never:return"Never";case i.ValueErrorType.Not:return"Value should not match";case i.ValueErrorType.Null:return"Expected null";case i.ValueErrorType.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case i.ValueErrorType.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case i.ValueErrorType.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case i.ValueErrorType.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case i.ValueErrorType.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case i.ValueErrorType.Number:return"Expected number";case i.ValueErrorType.Object:return"Expected object";case i.ValueErrorType.ObjectAdditionalProperties:return"Unexpected property";case i.ValueErrorType.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case i.ValueErrorType.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case i.ValueErrorType.ObjectRequiredProperty:return"Expected required property";case i.ValueErrorType.Promise:return"Expected Promise";case i.ValueErrorType.RegExp:return"Expected string to match regular expression";case i.ValueErrorType.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case i.ValueErrorType.StringFormat:return`Expected string to match '${e.schema.format}' format`;case i.ValueErrorType.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case i.ValueErrorType.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case i.ValueErrorType.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case i.ValueErrorType.String:return"Expected string";case i.ValueErrorType.Symbol:return"Expected symbol";case i.ValueErrorType.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case i.ValueErrorType.Tuple:return"Expected tuple";case i.ValueErrorType.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case i.ValueErrorType.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case i.ValueErrorType.Uint8Array:return"Expected Uint8Array";case i.ValueErrorType.Undefined:return"Expected undefined";case i.ValueErrorType.Union:return"Expected union value";case i.ValueErrorType.Void:return"Expected void";case i.ValueErrorType.Kind:return`Expected kind '${e.schema[n.Kind]}'`;default:return"Unknown error type"}}let s=o}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/errors/function.js"}],[3339,{"./errors":3337,"./function":3338},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./errors"),r),i(e("./function"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/errors/index.js"}],[3340,{"./type/any/index":3345,"./type/array/index":3347,"./type/async-iterator/index":3349,"./type/awaited/index":3351,"./type/bigint/index":3353,"./type/boolean/index":3355,"./type/clone/index":3356,"./type/composite/index":3360,"./type/const/index":3362,"./type/constructor-parameters/index":3364,"./type/constructor/index":3366,"./type/create/index":3368,"./type/date/index":3371,"./type/deref/index":3373,"./type/enum/index":3377,"./type/error/index":3379,"./type/exclude/index":3383,"./type/extends/index":3389,"./type/extract/index":3393,"./type/function/index":3395,"./type/guard/index":3396,"./type/helpers/index":3401,"./type/indexed/index":3402,"./type/instance-type/index":3407,"./type/integer/index":3409,"./type/intersect/index":3411,"./type/intrinsic/index":3417,"./type/iterator/index":3423,"./type/keyof/index":3425,"./type/literal/index":3430,"./type/mapped/index":3432,"./type/never/index":3436,"./type/not/index":3438,"./type/null/index":3440,"./type/number/index":3442,"./type/object/index":3444,"./type/omit/index":3446,"./type/optional/index":3450,"./type/parameters/index":3453,"./type/partial/index":3455,"./type/patterns/index":3458,"./type/pick/index":3460,"./type/promise/index":3464,"./type/readonly-optional/index":3466,"./type/readonly/index":3468,"./type/record/index":3471,"./type/recursive/index":3473,"./type/ref/index":3475,"./type/regexp/index":3477,"./type/registry/index":3480,"./type/required/index":3482,"./type/rest/index":3485,"./type/return-type/index":3487,"./type/schema/index":3490,"./type/sets/index":3492,"./type/static/index":3494,"./type/strict/index":3496,"./type/string/index":3498,"./type/symbol/index":3500,"./type/symbols/index":3502,"./type/template-literal/index":3506,"./type/transform/index":3512,"./type/tuple/index":3514,"./type/type/index":3516,"./type/uint8array/index":3520,"./type/undefined/index":3522,"./type/union/index":3524,"./type/unknown/index":3529,"./type/unsafe/index":3531,"./type/void/index":3533},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./type/clone/index"),r),i(e("./type/create/index"),r),i(e("./type/error/index"),r),i(e("./type/guard/index"),r),i(e("./type/helpers/index"),r),i(e("./type/patterns/index"),r),i(e("./type/registry/index"),r),i(e("./type/sets/index"),r),i(e("./type/symbols/index"),r),i(e("./type/any/index"),r),i(e("./type/array/index"),r),i(e("./type/async-iterator/index"),r),i(e("./type/awaited/index"),r),i(e("./type/bigint/index"),r),i(e("./type/boolean/index"),r),i(e("./type/composite/index"),r),i(e("./type/const/index"),r),i(e("./type/constructor/index"),r),i(e("./type/constructor-parameters/index"),r),i(e("./type/date/index"),r),i(e("./type/deref/index"),r),i(e("./type/enum/index"),r),i(e("./type/exclude/index"),r),i(e("./type/extends/index"),r),i(e("./type/extract/index"),r),i(e("./type/function/index"),r),i(e("./type/indexed/index"),r),i(e("./type/instance-type/index"),r),i(e("./type/integer/index"),r),i(e("./type/intersect/index"),r),i(e("./type/iterator/index"),r),i(e("./type/intrinsic/index"),r),i(e("./type/keyof/index"),r),i(e("./type/literal/index"),r),i(e("./type/mapped/index"),r),i(e("./type/never/index"),r),i(e("./type/not/index"),r),i(e("./type/null/index"),r),i(e("./type/number/index"),r),i(e("./type/object/index"),r),i(e("./type/omit/index"),r),i(e("./type/optional/index"),r),i(e("./type/parameters/index"),r),i(e("./type/partial/index"),r),i(e("./type/pick/index"),r),i(e("./type/promise/index"),r),i(e("./type/readonly/index"),r),i(e("./type/readonly-optional/index"),r),i(e("./type/record/index"),r),i(e("./type/recursive/index"),r),i(e("./type/ref/index"),r),i(e("./type/regexp/index"),r),i(e("./type/required/index"),r),i(e("./type/rest/index"),r),i(e("./type/return-type/index"),r),i(e("./type/schema/index"),r),i(e("./type/static/index"),r),i(e("./type/strict/index"),r),i(e("./type/string/index"),r),i(e("./type/symbol/index"),r),i(e("./type/template-literal/index"),r),i(e("./type/transform/index"),r),i(e("./type/tuple/index"),r),i(e("./type/uint8array/index"),r),i(e("./type/undefined/index"),r),i(e("./type/union/index"),r),i(e("./type/unknown/index"),r),i(e("./type/unsafe/index"),r),i(e("./type/void/index"),r),i(e("./type/type/index"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/index.js"}],[3341,{"./policy":3342,"./system":3343},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./policy"),r),i(e("./system"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/system/index.js"}],[3342,{"../value/guard/index":3540},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TypeSystemPolicy=void 0;const n=e("../value/guard/index");var i;!function(e){function t(t){const r=(0,n.IsObject)(t);return e.AllowArrayObject?r:r&&!(0,n.IsArray)(t)}e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1,e.IsExactOptionalProperty=function(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined},e.IsObjectLike=t,e.IsRecordLike=function(e){return t(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)},e.IsNumberLike=function(t){return e.AllowNaN?(0,n.IsNumber)(t):Number.isFinite(t)},e.IsVoidLike=function(t){const r=(0,n.IsUndefined)(t);return e.AllowNullVoid?r||null===t:r}}(i||(r.TypeSystemPolicy=i={}))}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/system/policy.js"}],[3343,{"../type/error/index":3379,"../type/registry/index":3480,"../type/symbols/index":3502,"../type/unsafe/index":3531},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TypeSystem=r.TypeSystemDuplicateFormat=r.TypeSystemDuplicateTypeKind=void 0;const n=e("../type/registry/index"),i=e("../type/unsafe/index"),o=e("../type/symbols/index"),s=e("../type/error/index");class a extends s.TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}r.TypeSystemDuplicateTypeKind=a;class c extends s.TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var u;r.TypeSystemDuplicateFormat=c,function(e){e.Type=function(e,t){if(n.TypeRegistry.Has(e))throw new a(e);return n.TypeRegistry.Set(e,t),(t={})=>(0,i.Unsafe)({...t,[o.Kind]:e})},e.Format=function(e,t){if(n.FormatRegistry.Has(e))throw new c(e);return n.FormatRegistry.Set(e,t),e}}(u||(r.TypeSystem=u={}))}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/system/system.js"}],[3344,{"../create/index":3368,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Any=function(e){return(0,n.CreateType)({[i.Kind]:"Any"},e)};const n=e("../create/index"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/any/any.js"}],[3345,{"./any":3344},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./any"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/any/index.js"}],[3346,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Array=function(e,t){return(0,n.CreateType)({[i.Kind]:"Array",type:"array",items:e},t)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/array/array.js"}],[3347,{"./array":3346},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./array"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/array/index.js"}],[3348,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AsyncIterator=function(e,t){return(0,i.CreateType)({[n.Kind]:"AsyncIterator",type:"AsyncIterator",items:e},t)};const n=e("../symbols/index"),i=e("../create/type")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/async-iterator.js"}],[3349,{"./async-iterator":3348},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./async-iterator"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/index.js"}],[3350,{"../create/type":3369,"../guard/kind":3397,"../intersect/index":3411,"../union/index":3524},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Awaited=function(e,t){return(0,o.CreateType)(c(e),t)};const n=e("../intersect/index"),i=e("../union/index"),o=e("../create/type"),s=e("../guard/kind");function a(e){return e.map((e=>c(e)))}function c(e){return(0,s.IsIntersect)(e)?function(e){return(0,n.Intersect)(a(e))}(e.allOf):(0,s.IsUnion)(e)?function(e){return(0,i.Union)(a(e))}(e.anyOf):(0,s.IsPromise)(e)?function(e){return c(e)}(e.item):e}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/awaited/awaited.js"}],[3351,{"./awaited":3350},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./awaited"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/awaited/index.js"}],[3352,{"../create/index":3368,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BigInt=function(e){return(0,i.CreateType)({[n.Kind]:"BigInt",type:"bigint"},e)};const n=e("../symbols/index"),i=e("../create/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/bigint/bigint.js"}],[3353,{"./bigint":3352},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./bigint"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/bigint/index.js"}],[3354,{"../create/index":3368,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Boolean=function(e){return(0,i.CreateType)({[n.Kind]:"Boolean",type:"boolean"},e)};const n=e("../symbols/index"),i=e("../create/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/boolean/boolean.js"}],[3355,{"./boolean":3354},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./boolean"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/boolean/index.js"}],[3356,{"./type":3357,"./value":3358},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./type"),r),i(e("./value"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/clone/index.js"}],[3357,{"./value":3358},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CloneRest=function(e){return e.map((e=>i(e)))},r.CloneType=i;const n=e("./value");function i(e,t){return t===undefined?(0,n.Clone)(e):(0,n.Clone)({...t,...e})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/clone/type.js"}],[3358,{"../guard/value":3399},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Clone=function(e){return i(e)};const n=e("../guard/value");function i(e){return n.IsArray(e)?function(e){return e.map((e=>i(e)))}(e):n.IsDate(e)?function(e){return new Date(e.getTime())}(e):n.IsUint8Array(e)?function(e){return new Uint8Array(e)}(e):n.IsRegExp(e)?function(e){return new RegExp(e.source,e.flags)}(e):n.IsObject(e)?function(e){const t={};for(const r of Object.getOwnPropertyNames(e))t[r]=i(e[r]);for(const r of Object.getOwnPropertySymbols(e))t[r]=i(e[r]);return t}(e):e}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/clone/value.js"}],[3359,{"../guard/kind":3397,"../indexed/index":3402,"../intersect/index":3411,"../keyof/index":3425,"../object/index":3444,"../sets/index":3492},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Composite=function(e,t){const r=function(e){const t=[];for(const r of e)t.push(...(0,o.KeyOfPropertyKeys)(r));return(0,a.SetDistinct)(t)}(e),i=function(e,t){const r={};for(const i of t)r[i]=(0,n.IntersectEvaluated)(u(e,i));return r}(e,r);return(0,s.Object)(i,t)};const n=e("../intersect/index"),i=e("../indexed/index"),o=e("../keyof/index"),s=e("../object/index"),a=e("../sets/index"),c=e("../guard/kind");function u(e,t){const r=[];for(const n of e)r.push(...(0,i.IndexFromPropertyKeys)(n,[t]));return function(e){return e.filter((e=>!(0,c.IsNever)(e)))}(r)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/composite/composite.js"}],[3360,{"./composite":3359},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./composite"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/composite/index.js"}],[3361,{"../any/index":3345,"../bigint/index":3353,"../create/index":3368,"../date/index":3371,"../function/index":3395,"../guard/value":3399,"../literal/index":3430,"../null/index":3440,"../object/index":3444,"../readonly/index":3468,"../symbol/index":3500,"../tuple/index":3514,"../uint8array/index":3520,"../undefined/index":3522,"../unknown/index":3529},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Const=function(e,t){return(0,m.CreateType)(b(e,!0),t)};const n=e("../any/index"),i=e("../bigint/index"),o=e("../date/index"),s=e("../function/index"),a=e("../literal/index"),c=e("../null/index"),u=e("../object/index"),l=e("../symbol/index"),p=e("../tuple/index"),d=e("../readonly/index"),h=e("../undefined/index"),f=e("../uint8array/index"),y=e("../unknown/index"),m=e("../create/index"),T=e("../guard/value");function g(e,t){return!0===t?e:(0,d.Readonly)(e)}function b(e,t){return(0,T.IsAsyncIterator)(e)||(0,T.IsIterator)(e)?g((0,n.Any)(),t):(0,T.IsArray)(e)?(0,d.Readonly)((0,p.Tuple)(e.map((e=>b(e,!1))))):(0,T.IsUint8Array)(e)?(0,f.Uint8Array)():(0,T.IsDate)(e)?(0,o.Date)():(0,T.IsObject)(e)?g((0,u.Object)(function(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,d.Readonly)(b(e[r],!1));return t}(e)),t):(0,T.IsFunction)(e)?g((0,s.Function)([],(0,y.Unknown)()),t):(0,T.IsUndefined)(e)?(0,h.Undefined)():(0,T.IsNull)(e)?(0,c.Null)():(0,T.IsSymbol)(e)?(0,l.Symbol)():(0,T.IsBigInt)(e)?(0,i.BigInt)():(0,T.IsNumber)(e)||(0,T.IsBoolean)(e)||(0,T.IsString)(e)?(0,a.Literal)(e):(0,u.Object)({})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/const/const.js"}],[3362,{"./const":3361},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./const"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/const/index.js"}],[3363,{"../tuple/index":3514},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ConstructorParameters=function(e,t){return(0,n.Tuple)(e.parameters,t)};const n=e("../tuple/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/constructor-parameters.js"}],[3364,{"./constructor-parameters":3363},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./constructor-parameters"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/index.js"}],[3365,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Constructor=function(e,t,r){return(0,n.CreateType)({[i.Kind]:"Constructor",type:"Constructor",parameters:e,returns:t},r)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/constructor/constructor.js"}],[3366,{"./constructor":3365},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./constructor"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/constructor/index.js"}],[3367,{"../guard/value":3399},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Immutable=i;const n=e("../guard/value");function i(e){return n.IsArray(e)?function(e){return globalThis.Object.freeze(e).map((e=>i(e)))}(e):n.IsDate(e)||n.IsUint8Array(e)||n.IsRegExp(e)?e:n.IsObject(e)?function(e){const t={};for(const r of Object.getOwnPropertyNames(e))t[r]=i(e[r]);for(const r of Object.getOwnPropertySymbols(e))t[r]=i(e[r]);return globalThis.Object.freeze(t)}(e):e}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/create/immutable.js"}],[3368,{"./type":3369},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./type"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/create/index.js"}],[3369,{"../../system/policy":3342,"../clone/value":3358,"./immutable":3367},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CreateType=function(e,t){const r=t!==undefined?{...t,...e}:e;switch(n.TypeSystemPolicy.InstanceMode){case"freeze":return(0,i.Immutable)(r);case"clone":return(0,o.Clone)(r);default:return r}};const n=e("../../system/policy"),i=e("./immutable"),o=e("../clone/value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/create/type.js"}],[3370,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Date=function(e){return(0,i.CreateType)({[n.Kind]:"Date",type:"Date"},e)};const n=e("../symbols/index"),i=e("../create/type")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/date/date.js"}],[3371,{"./date":3370},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./date"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/date/index.js"}],[3372,{"../clone/type":3357,"../discard/index":3375,"../guard/kind":3397,"../guard/value":3399},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Deref=l;const n=e("../clone/type"),i=e("../discard/index"),o=e("../guard/value"),s=e("../guard/kind");function a(e,t){return e.map((e=>l(e,t)))}function c(e,t){return e.properties=function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=l(e[n],t);return r}(e.properties,t),e}function u(e,t){return(0,s.IsConstructor)(e)||(0,s.IsFunction)(e)?function(e,t){return e.parameters=a(e.parameters,t),e.returns=l(e.returns,t),e}(e,t):(0,s.IsIntersect)(e)?function(e,t){return e.allOf=a(e.allOf,t),e}(e,t):(0,s.IsUnion)(e)?function(e,t){return e.anyOf=a(e.anyOf,t),e}(e,t):(0,s.IsTuple)(e)?function(e,t){return(0,o.IsUndefined)(e.items)||(e.items=a(e.items,t)),e}(e,t):(0,s.IsArray)(e)?function(e,t){return e.items=l(e.items,t),e}(e,t):(0,s.IsObject)(e)?c(e,t):(0,s.IsPromise)(e)?function(e,t){return e.item=l(e.item,t),e}(e,t):(0,s.IsAsyncIterator)(e)||(0,s.IsIterator)(e)?function(e,t){return e.items=l(e.items,t),e}(e,t):(0,s.IsRef)(e)?function(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);return l((0,i.Discard)(r,["$id"]),t)}(e,t):e}function l(e,t){return u((0,n.CloneType)(e),(0,n.CloneRest)(t))}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/deref/deref.js"}],[3373,{"./deref":3372},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./deref"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/deref/index.js"}],[3374,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Discard=function(e,t){return t.reduce(((e,t)=>function(e,t){const{[t]:r,...n}=e;return n}(e,t)),e)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/discard/discard.js"}],[3375,{"./discard":3374},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./discard"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/discard/index.js"}],[3376,{"../guard/value":3399,"../literal/index":3430,"../symbols/index":3502,"../union/index":3524},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Enum=function(e,t){if((0,s.IsUndefined)(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t])),a=[...new Set(r)].map((e=>(0,n.Literal)(e)));return(0,o.Union)(a,{...t,[i.Hint]:"Enum"})};const n=e("../literal/index"),i=e("../symbols/index"),o=e("../union/index"),s=e("../guard/value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/enum/enum.js"}],[3377,{"./enum":3376},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./enum"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/enum/index.js"}],[3378,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TypeBoxError=void 0;class n extends Error{constructor(e){super(e)}}r.TypeBoxError=n}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/error/error.js"}],[3379,{"./error":3378},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./error"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/error/index.js"}],[3380,{"../mapped/index":3432,"./exclude":3382},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExcludeFromMappedResult=function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,i.Exclude)(e[n],t);return r}(e.properties,t)}(e,t);return(0,n.MappedResult)(r)};const n=e("../mapped/index"),i=e("./exclude")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-mapped-result.js"}],[3381,{"../template-literal/index":3506,"./exclude":3382},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExcludeFromTemplateLiteral=function(e,t){return(0,n.Exclude)((0,i.TemplateLiteralToUnion)(e),t)};const n=e("./exclude"),i=e("../template-literal/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-template-literal.js"}],[3382,{"../create/type":3369,"../extends/index":3389,"../guard/kind":3397,"../never/index":3436,"../union/index":3524,"./exclude-from-mapped-result":3380,"./exclude-from-template-literal":3381},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Exclude=function(e,t,r={}){return(0,u.IsTemplateLiteral)(e)?(0,n.CreateType)((0,c.ExcludeFromTemplateLiteral)(e,t),r):(0,u.IsMappedResult)(e)?(0,n.CreateType)((0,a.ExcludeFromMappedResult)(e,t),r):(0,n.CreateType)((0,u.IsUnion)(e)?function(e,t){const r=e.filter((e=>(0,s.ExtendsCheck)(e,t)===s.ExtendsResult.False));return 1===r.length?r[0]:(0,i.Union)(r)}(e.anyOf,t):(0,s.ExtendsCheck)(e,t)!==s.ExtendsResult.False?(0,o.Never)():e,r)};const n=e("../create/type"),i=e("../union/index"),o=e("../never/index"),s=e("../extends/index"),a=e("./exclude-from-mapped-result"),c=e("./exclude-from-template-literal"),u=e("../guard/kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude.js"}],[3383,{"./exclude":3382,"./exclude-from-mapped-result":3380,"./exclude-from-template-literal":3381},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./exclude-from-mapped-result"),r),i(e("./exclude-from-template-literal"),r),i(e("./exclude"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/exclude/index.js"}],[3384,{"../any/index":3345,"../error/index":3379,"../function/index":3395,"../guard/index":3396,"../number/index":3442,"../patterns/index":3458,"../string/index":3498,"../symbols/index":3502,"../template-literal/index":3506,"../unknown/index":3529},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExtendsResult=r.ExtendsResolverError=void 0,r.ExtendsCheck=function(e,t){return H(e,t)};const n=e("../any/index"),i=e("../function/index"),o=e("../number/index"),s=e("../string/index"),a=e("../unknown/index"),c=e("../template-literal/index"),u=e("../patterns/index"),l=e("../symbols/index"),p=e("../error/index"),d=e("../guard/index");class h extends p.TypeBoxError{}var f;function y(e){return e===f.False?e:f.True}function m(e){throw new h(e)}function T(e){return d.TypeGuard.IsNever(e)||d.TypeGuard.IsIntersect(e)||d.TypeGuard.IsUnion(e)||d.TypeGuard.IsUnknown(e)||d.TypeGuard.IsAny(e)}function g(e,t){return d.TypeGuard.IsNever(t)?S(e,t):d.TypeGuard.IsIntersect(t)?E(e,t):d.TypeGuard.IsUnion(t)?F(e,t):d.TypeGuard.IsUnknown(t)?$(e,t):d.TypeGuard.IsAny(t)?b(e,t):m("StructuralRight")}function b(e,t){return f.True}function _(e,t){return d.TypeGuard.IsLiteralBoolean(e)||d.TypeGuard.IsBoolean(e)?f.True:f.False}function O(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsNumber(e.const)||d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?f.True:f.False}function E(e,t){return t.allOf.every((t=>H(e,t)===f.True))?f.True:f.False}function S(e,t){return f.False}function v(e){let[t,r]=[e,0];for(;d.TypeGuard.IsNot(t);)t=t.not,r+=1;return r%2==0?t:(0,a.Unknown)()}function x(e,t){return d.TypeGuard.IsLiteralNumber(e)||d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?f.True:f.False}function w(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function A(e){return N(e)}function R(e){return w(e,0)||w(e,1)&&"description"in e.properties&&d.TypeGuard.IsUnion(e.properties.description)&&2===e.properties.description.anyOf.length&&(d.TypeGuard.IsString(e.properties.description.anyOf[0])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[1])||d.TypeGuard.IsString(e.properties.description.anyOf[1])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[0]))}function I(e){return w(e,0)}function P(e){return w(e,0)}function N(e){const t=(0,o.Number)();return w(e,0)||w(e,1)&&"length"in e.properties&&y(H(e.properties.length,t))===f.True}function C(e,t){return H(e,t)===f.False||d.TypeGuard.IsOptional(e)&&!d.TypeGuard.IsOptional(t)?f.False:f.True}function j(e,t){return d.TypeGuard.IsUnknown(e)?f.False:d.TypeGuard.IsAny(e)?f.Union:d.TypeGuard.IsNever(e)||d.TypeGuard.IsLiteralString(e)&&A(t)||d.TypeGuard.IsLiteralNumber(e)&&I(t)||d.TypeGuard.IsLiteralBoolean(e)&&P(t)||d.TypeGuard.IsSymbol(e)&&R(t)||d.TypeGuard.IsBigInt(e)&&w(t,0)||d.TypeGuard.IsString(e)&&A(t)||d.TypeGuard.IsSymbol(e)&&R(t)||d.TypeGuard.IsNumber(e)&&I(t)||d.TypeGuard.IsInteger(e)&&I(t)||d.TypeGuard.IsBoolean(e)&&P(t)||d.TypeGuard.IsUint8Array(e)&&function(e){return N(e)}(t)||d.TypeGuard.IsDate(e)&&function(e){return w(e,0)}(t)||d.TypeGuard.IsConstructor(e)&&function(e){return w(e,0)}(t)||d.TypeGuard.IsFunction(e)&&function(e){const t=(0,o.Number)();return w(e,0)||w(e,1)&&"length"in e.properties&&y(H(e.properties.length,t))===f.True}(t)?f.True:d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsString(M(e))?"Record"===t[l.Hint]?f.True:f.False:d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsNumber(M(e))&&w(t,0)?f.True:f.False}function k(e,t){return T(t)?g(e,t):d.TypeGuard.IsObject(t)&&function(e){const t=(0,i.Function)([(0,n.Any)()],(0,n.Any)());return w(e,0)||w(e,1)&&"then"in e.properties&&y(H(e.properties.then,t))===f.True}(t)?f.True:d.TypeGuard.IsPromise(t)?y(H(e.item,t.item)):f.False}function M(e){return u.PatternNumberExact in e.patternProperties?(0,o.Number)():u.PatternStringExact in e.patternProperties?(0,s.String)():m("Unknown record key pattern")}function L(e){return u.PatternNumberExact in e.patternProperties?e.patternProperties[u.PatternNumberExact]:u.PatternStringExact in e.patternProperties?e.patternProperties[u.PatternStringExact]:m("Unable to get record value schema")}function D(e,t){const[r,n]=[M(t),L(t)];return d.TypeGuard.IsLiteralString(e)&&d.TypeGuard.IsNumber(r)&&y(H(e,n))===f.True?f.True:d.TypeGuard.IsUint8Array(e)&&d.TypeGuard.IsNumber(r)||d.TypeGuard.IsString(e)&&d.TypeGuard.IsNumber(r)||d.TypeGuard.IsArray(e)&&d.TypeGuard.IsNumber(r)?H(e,n):d.TypeGuard.IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties))if(C(n,e.properties[t])===f.False)return f.False;return f.True})():f.False}function B(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsString(e.const)||d.TypeGuard.IsString(e)?f.True:f.False}function z(e,t){return T(t)?g(e,t):d.TypeGuard.IsObject(t)&&N(t)||d.TypeGuard.IsArray(t)&&function(e,t){return d.TypeGuard.IsArray(t)&&e.items!==undefined&&e.items.every((e=>H(e,t.items)===f.True))}(e,t)?f.True:d.TypeGuard.IsTuple(t)?d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)||!d.ValueGuard.IsUndefined(e.items)&&d.ValueGuard.IsUndefined(t.items)?f.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)||e.items.every(((e,r)=>H(e,t.items[r])===f.True))?f.True:f.False:f.False}function U(e,t){return T(t)?g(e,t):d.TypeGuard.IsObject(t)?j(e,t):d.TypeGuard.IsRecord(t)?D(e,t):d.TypeGuard.IsVoid(t)?function(e,t){return d.TypeGuard.IsUndefined(e)||d.TypeGuard.IsUndefined(e)?f.True:f.False}(e):d.TypeGuard.IsUndefined(t)?f.True:f.False}function F(e,t){return t.anyOf.some((t=>H(e,t)===f.True))?f.True:f.False}function $(e,t){return f.True}function G(e,t){return d.TypeGuard.IsNever(t)?S():d.TypeGuard.IsIntersect(t)?E(e,t):d.TypeGuard.IsUnion(t)?F(e,t):d.TypeGuard.IsAny(t)?b():d.TypeGuard.IsString(t)?B(e):d.TypeGuard.IsNumber(t)?x(e):d.TypeGuard.IsInteger(t)?O(e):d.TypeGuard.IsBoolean(t)?_(e):d.TypeGuard.IsArray(t)?function(e,t){return d.TypeGuard.IsUnknown(e)?f.False:d.TypeGuard.IsAny(e)?f.Union:d.TypeGuard.IsNever(e)?f.True:f.False}(e):d.TypeGuard.IsTuple(t)?function(e,t){return d.TypeGuard.IsNever(e)?f.True:d.TypeGuard.IsUnknown(e)?f.False:d.TypeGuard.IsAny(e)?f.Union:f.False}(e):d.TypeGuard.IsObject(t)?j(e,t):d.TypeGuard.IsUnknown(t)?f.True:f.False}function H(e,t){return d.TypeGuard.IsTemplateLiteral(e)||d.TypeGuard.IsTemplateLiteral(t)?function(e,t){return d.TypeGuard.IsTemplateLiteral(e)?H((0,c.TemplateLiteralToUnion)(e),t):d.TypeGuard.IsTemplateLiteral(t)?H(e,(0,c.TemplateLiteralToUnion)(t)):m("Invalid fallthrough for TemplateLiteral")}(e,t):d.TypeGuard.IsRegExp(e)||d.TypeGuard.IsRegExp(t)?function(e,t){return H(d.TypeGuard.IsRegExp(e)?(0,s.String)():e,d.TypeGuard.IsRegExp(t)?(0,s.String)():t)}(e,t):d.TypeGuard.IsNot(e)||d.TypeGuard.IsNot(t)?function(e,t){return d.TypeGuard.IsNot(e)?H(v(e),t):d.TypeGuard.IsNot(t)?H(e,v(t)):m("Invalid fallthrough for Not")}(e,t):d.TypeGuard.IsAny(e)?function(e,t){return d.TypeGuard.IsIntersect(t)?E(e,t):d.TypeGuard.IsUnion(t)&&t.anyOf.some((e=>d.TypeGuard.IsAny(e)||d.TypeGuard.IsUnknown(e)))?f.True:d.TypeGuard.IsUnion(t)?f.Union:d.TypeGuard.IsUnknown(t)||d.TypeGuard.IsAny(t)?f.True:f.Union}(e,t):d.TypeGuard.IsArray(e)?function(e,t){return d.TypeGuard.IsObject(t)&&N(t)?f.True:T(t)?g(e,t):d.TypeGuard.IsArray(t)?y(H(e.items,t.items)):f.False}(e,t):d.TypeGuard.IsBigInt(e)?function(e,t){return T(t)?g(e,t):d.TypeGuard.IsObject(t)?j(e,t):d.TypeGuard.IsRecord(t)?D(e,t):d.TypeGuard.IsBigInt(t)?f.True:f.False}(e,t):d.TypeGuard.IsBoolean(e)?function(e,t){return T(t)?g(e,t):d.TypeGuard.IsObject(t)?j(e,t):d.TypeGuard.IsRecord(t)?D(e,t):d.TypeGuard.IsBoolean(t)?f.True:f.False}(e,t):d.TypeGuard.IsAsyncIterator(e)?function(e,t){return T(t)?g(e,t):d.TypeGuard.IsAsyncIterator(t)?y(H(e.items,t.items)):f.False}(e,t):d.TypeGuard.IsConstructor(e)?function(e,t){return T(t)?g(e,t):d.TypeGuard.IsObject(t)?j(e,t):d.TypeGuard.IsConstructor(t)?e.parameters.length>t.parameters.length?f.False:e.parameters.every(((e,r)=>y(H(t.parameters[r],e))===f.True))?y(H(e.returns,t.returns)):f.False:f.False}(e,t):d.TypeGuard.IsDate(e)?function(e,t){return T(t)?g(e,t):d.TypeGuard.IsObject(t)?j(e,t):d.TypeGuard.IsRecord(t)?D(e,t):d.TypeGuard.IsDate(t)?f.True:f.False}(e,t):d.TypeGuard.IsFunction(e)?function(e,t){return T(t)?g(e,t):d.TypeGuard.IsObject(t)?j(e,t):d.TypeGuard.IsFunction(t)?e.parameters.length>t.parameters.length?f.False:e.parameters.every(((e,r)=>y(H(t.parameters[r],e))===f.True))?y(H(e.returns,t.returns)):f.False:f.False}(e,t):d.TypeGuard.IsInteger(e)?function(e,t){return d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?f.True:T(t)?g(e,t):d.TypeGuard.IsObject(t)?j(e,t):d.TypeGuard.IsRecord(t)?D(e,t):f.False}(e,t):d.TypeGuard.IsIntersect(e)?function(e,t){return e.allOf.some((e=>H(e,t)===f.True))?f.True:f.False}(e,t):d.TypeGuard.IsIterator(e)?function(e,t){return T(t)?g(e,t):d.TypeGuard.IsIterator(t)?y(H(e.items,t.items)):f.False}(e,t):d.TypeGuard.IsLiteral(e)?function(e,t){return d.TypeGuard.IsLiteral(t)&&t.const===e.const?f.True:T(t)?g(e,t):d.TypeGuard.IsObject(t)?j(e,t):d.TypeGuard.IsRecord(t)?D(e,t):d.TypeGuard.IsString(t)?B(e):d.TypeGuard.IsNumber(t)?x(e):d.TypeGuard.IsInteger(t)?O(e):d.TypeGuard.IsBoolean(t)?_(e):f.False}(e,t):d.TypeGuard.IsNever(e)?f.True:d.TypeGuard.IsNull(e)?function(e,t){return T(t)?g(e,t):d.TypeGuard.IsObject(t)?j(e,t):d.TypeGuard.IsRecord(t)?D(e,t):d.TypeGuard.IsNull(t)?f.True:f.False}(e,t):d.TypeGuard.IsNumber(e)?function(e,t){return T(t)?g(e,t):d.TypeGuard.IsObject(t)?j(e,t):d.TypeGuard.IsRecord(t)?D(e,t):d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?f.True:f.False}(e,t):d.TypeGuard.IsObject(e)?function(e,t){return T(t)?g(e,t):d.TypeGuard.IsRecord(t)?D(e,t):d.TypeGuard.IsObject(t)?(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!d.TypeGuard.IsOptional(t.properties[r]))return f.False;if(d.TypeGuard.IsOptional(t.properties[r]))return f.True;if(C(e.properties[r],t.properties[r])===f.False)return f.False}return f.True})():f.False}(e,t):d.TypeGuard.IsRecord(e)?function(e,t){return T(t)?g(e,t):d.TypeGuard.IsObject(t)?j(e,t):d.TypeGuard.IsRecord(t)?H(L(e),L(t)):f.False}(e,t):d.TypeGuard.IsString(e)?function(e,t){return T(t)?g(e,t):d.TypeGuard.IsObject(t)?j(e,t):d.TypeGuard.IsRecord(t)?D(e,t):d.TypeGuard.IsString(t)?f.True:f.False}(e,t):d.TypeGuard.IsSymbol(e)?function(e,t){return T(t)?g(e,t):d.TypeGuard.IsObject(t)?j(e,t):d.TypeGuard.IsRecord(t)?D(e,t):d.TypeGuard.IsSymbol(t)?f.True:f.False}(e,t):d.TypeGuard.IsTuple(e)?z(e,t):d.TypeGuard.IsPromise(e)?k(e,t):d.TypeGuard.IsUint8Array(e)?function(e,t){return T(t)?g(e,t):d.TypeGuard.IsObject(t)?j(e,t):d.TypeGuard.IsRecord(t)?D(e,t):d.TypeGuard.IsUint8Array(t)?f.True:f.False}(e,t):d.TypeGuard.IsUndefined(e)?U(e,t):d.TypeGuard.IsUnion(e)?function(e,t){return e.anyOf.every((e=>H(e,t)===f.True))?f.True:f.False}(e,t):d.TypeGuard.IsUnknown(e)?G(e,t):d.TypeGuard.IsVoid(e)?function(e,t){return d.TypeGuard.IsIntersect(t)?E(e,t):d.TypeGuard.IsUnion(t)?F(e,t):d.TypeGuard.IsUnknown(t)?$():d.TypeGuard.IsAny(t)?b():d.TypeGuard.IsObject(t)?j(e,t):d.TypeGuard.IsVoid(t)?f.True:f.False}(e,t):m(`Unknown left type operand '${e[l.Kind]}'`)}r.ExtendsResolverError=h,function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"}(f||(r.ExtendsResult=f={}))}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-check.js"}],[3385,{"../clone/value":3358,"../literal/index":3430,"../mapped/index":3432,"./extends":3388},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExtendsFromMappedKey=function(e,t,r,i,o){const s=function(e,t,r,n,i){return function(e,t,r,n,i){return e.reduce(((e,o)=>({...e,...a(o,t,r,n,i)})),{})}(e.keys,t,r,n,i)}(e,t,r,i,o);return(0,n.MappedResult)(s)};const n=e("../mapped/index"),i=e("../literal/index"),o=e("./extends"),s=e("../clone/value");function a(e,t,r,n,a){return{[e]:(0,o.Extends)((0,i.Literal)(e),t,r,n,(0,s.Clone)(a))}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-key.js"}],[3386,{"../clone/value":3358,"../mapped/index":3432,"./extends":3388},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExtendsFromMappedResult=function(e,t,r,s,a){const c=function(e,t,r,n,s){return function(e,t,r,n,s){const a={};for(const c of globalThis.Object.getOwnPropertyNames(e))a[c]=(0,i.Extends)(e[c],t,r,n,(0,o.Clone)(s));return a}(e.properties,t,r,n,s)}(e,t,r,s,a);return(0,n.MappedResult)(c)};const n=e("../mapped/index"),i=e("./extends"),o=e("../clone/value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-result.js"}],[3387,{"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExtendsUndefinedCheck=i;const n=e("../symbols/index");function i(e){return"Intersect"===e[n.Kind]?function(e){return e.allOf.every((e=>i(e)))}(e):"Union"===e[n.Kind]?function(e){return e.anyOf.some((e=>i(e)))}(e):"Not"===e[n.Kind]?function(e){return!i(e.not)}(e):"Undefined"===e[n.Kind]}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-undefined.js"}],[3388,{"../create/type":3369,"../guard/kind":3397,"../union/index":3524,"./extends-check":3384,"./extends-from-mapped-key":3385,"./extends-from-mapped-result":3386},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Extends=function(e,t,r,u,l){return(0,c.IsMappedResult)(e)?(0,a.ExtendsFromMappedResult)(e,t,r,u,l):(0,c.IsMappedKey)(e)?(0,n.CreateType)((0,s.ExtendsFromMappedKey)(e,t,r,u,l)):(0,n.CreateType)(function(e,t,r,n){const s=(0,o.ExtendsCheck)(e,t);return s===o.ExtendsResult.Union?(0,i.Union)([r,n]):s===o.ExtendsResult.True?r:n}(e,t,r,u),l)};const n=e("../create/type"),i=e("../union/index"),o=e("./extends-check"),s=e("./extends-from-mapped-key"),a=e("./extends-from-mapped-result"),c=e("../guard/kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extends/extends.js"}],[3389,{"./extends":3388,"./extends-check":3384,"./extends-from-mapped-key":3385,"./extends-from-mapped-result":3386,"./extends-undefined":3387},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./extends-check"),r),i(e("./extends-from-mapped-key"),r),i(e("./extends-from-mapped-result"),r),i(e("./extends-undefined"),r),i(e("./extends"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extends/index.js"}],[3390,{"../mapped/index":3432,"./extract":3392},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExtractFromMappedResult=function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,i.Extract)(e[n],t);return r}(e.properties,t)}(e,t);return(0,n.MappedResult)(r)};const n=e("../mapped/index"),i=e("./extract")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-mapped-result.js"}],[3391,{"../template-literal/index":3506,"./extract":3392},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExtractFromTemplateLiteral=function(e,t){return(0,n.Extract)((0,i.TemplateLiteralToUnion)(e),t)};const n=e("./extract"),i=e("../template-literal/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-template-literal.js"}],[3392,{"../create/type":3369,"../extends/index":3389,"../guard/kind":3397,"../never/index":3436,"../union/index":3524,"./extract-from-mapped-result":3390,"./extract-from-template-literal":3391},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Extract=function(e,t,r){return(0,u.IsTemplateLiteral)(e)?(0,n.CreateType)((0,c.ExtractFromTemplateLiteral)(e,t),r):(0,u.IsMappedResult)(e)?(0,n.CreateType)((0,a.ExtractFromMappedResult)(e,t),r):(0,n.CreateType)((0,u.IsUnion)(e)?function(e,t){const r=e.filter((e=>(0,s.ExtendsCheck)(e,t)!==s.ExtendsResult.False));return 1===r.length?r[0]:(0,i.Union)(r)}(e.anyOf,t):(0,s.ExtendsCheck)(e,t)!==s.ExtendsResult.False?e:(0,o.Never)(),r)};const n=e("../create/type"),i=e("../union/index"),o=e("../never/index"),s=e("../extends/index"),a=e("./extract-from-mapped-result"),c=e("./extract-from-template-literal"),u=e("../guard/kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extract/extract.js"}],[3393,{"./extract":3392,"./extract-from-mapped-result":3390,"./extract-from-template-literal":3391},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./extract-from-mapped-result"),r),i(e("./extract-from-template-literal"),r),i(e("./extract"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extract/index.js"}],[3394,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Function=function(e,t,r){return(0,n.CreateType)({[i.Kind]:"Function",type:"Function",parameters:e,returns:t},r)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/function/function.js"}],[3395,{"./function":3394},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./function"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/function/index.js"}],[3396,{"./kind":3397,"./type":3398,"./value":3399},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueGuard=r.TypeGuard=r.KindGuard=void 0,r.KindGuard=e("./kind"),r.TypeGuard=e("./type"),r.ValueGuard=e("./value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/guard/index.js"}],[3397,{"../symbols/index":3502,"./value":3399},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IsReadonly=function(e){return n.IsObject(e)&&"Readonly"===e[i.ReadonlyKind]},r.IsOptional=function(e){return n.IsObject(e)&&"Optional"===e[i.OptionalKind]},r.IsAny=o,r.IsArray=s,r.IsAsyncIterator=a,r.IsBigInt=c,r.IsBoolean=u,r.IsConstructor=l,r.IsDate=p,r.IsFunction=d,r.IsInteger=h,r.IsProperties=function(e){return n.IsObject(e)},r.IsIntersect=f,r.IsIterator=y,r.IsKindOf=m,r.IsLiteralString=function(e){return T(e)&&n.IsString(e.const)},r.IsLiteralNumber=function(e){return T(e)&&n.IsNumber(e.const)},r.IsLiteralBoolean=function(e){return T(e)&&n.IsBoolean(e.const)},r.IsLiteral=T,r.IsMappedKey=g,r.IsMappedResult=b,r.IsNever=_,r.IsNot=O,r.IsNull=E,r.IsNumber=S,r.IsObject=v,r.IsPromise=x,r.IsRecord=w,r.IsRecursive=function(e){return n.IsObject(e)&&i.Hint in e&&"Recursive"===e[i.Hint]},r.IsRef=A,r.IsRegExp=R,r.IsString=I,r.IsSymbol=P,r.IsTemplateLiteral=N,r.IsThis=C,r.IsTransform=function(e){return n.IsObject(e)&&i.TransformKind in e},r.IsTuple=j,r.IsUndefined=k,r.IsUnion=M,r.IsUint8Array=L,r.IsUnknown=D,r.IsUnsafe=B,r.IsVoid=z,r.IsKind=U,r.IsSchema=function(e){return o(e)||s(e)||u(e)||c(e)||a(e)||l(e)||p(e)||d(e)||h(e)||f(e)||y(e)||T(e)||g(e)||b(e)||_(e)||O(e)||E(e)||S(e)||v(e)||x(e)||w(e)||A(e)||R(e)||I(e)||P(e)||N(e)||C(e)||j(e)||k(e)||M(e)||L(e)||D(e)||B(e)||z(e)||U(e)};const n=e("./value"),i=e("../symbols/index");function o(e){return m(e,"Any")}function s(e){return m(e,"Array")}function a(e){return m(e,"AsyncIterator")}function c(e){return m(e,"BigInt")}function u(e){return m(e,"Boolean")}function l(e){return m(e,"Constructor")}function p(e){return m(e,"Date")}function d(e){return m(e,"Function")}function h(e){return m(e,"Integer")}function f(e){return m(e,"Intersect")}function y(e){return m(e,"Iterator")}function m(e,t){return n.IsObject(e)&&i.Kind in e&&e[i.Kind]===t}function T(e){return m(e,"Literal")}function g(e){return m(e,"MappedKey")}function b(e){return m(e,"MappedResult")}function _(e){return m(e,"Never")}function O(e){return m(e,"Not")}function E(e){return m(e,"Null")}function S(e){return m(e,"Number")}function v(e){return m(e,"Object")}function x(e){return m(e,"Promise")}function w(e){return m(e,"Record")}function A(e){return m(e,"Ref")}function R(e){return m(e,"RegExp")}function I(e){return m(e,"String")}function P(e){return m(e,"Symbol")}function N(e){return m(e,"TemplateLiteral")}function C(e){return m(e,"This")}function j(e){return m(e,"Tuple")}function k(e){return m(e,"Undefined")}function M(e){return m(e,"Union")}function L(e){return m(e,"Uint8Array")}function D(e){return m(e,"Unknown")}function B(e){return m(e,"Unsafe")}function z(e){return m(e,"Void")}function U(e){return n.IsObject(e)&&i.Kind in e&&n.IsString(e[i.Kind])}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/guard/kind.js"}],[3398,{"../error/index":3379,"../symbols/index":3502,"./value":3399},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TypeGuardUnknownTypeError=void 0,r.IsReadonly=function(e){return n.IsObject(e)&&"Readonly"===e[i.ReadonlyKind]},r.IsOptional=function(e){return n.IsObject(e)&&"Optional"===e[i.OptionalKind]},r.IsAny=m,r.IsArray=T,r.IsAsyncIterator=g,r.IsBigInt=b,r.IsBoolean=_,r.IsConstructor=O,r.IsDate=E,r.IsFunction=S,r.IsInteger=v,r.IsProperties=x,r.IsIntersect=w,r.IsIterator=A,r.IsKindOf=R,r.IsLiteralString=I,r.IsLiteralNumber=P,r.IsLiteralBoolean=function(e){return N(e)&&n.IsBoolean(e.const)},r.IsLiteral=N,r.IsLiteralValue=C,r.IsMappedKey=j,r.IsMappedResult=k,r.IsNever=M,r.IsNot=L,r.IsNull=D,r.IsNumber=B,r.IsObject=z,r.IsPromise=U,r.IsRecord=F,r.IsRecursive=function(e){return n.IsObject(e)&&i.Hint in e&&"Recursive"===e[i.Hint]},r.IsRef=$,r.IsRegExp=G,r.IsString=H,r.IsSymbol=K,r.IsTemplateLiteral=V,r.IsThis=q,r.IsTransform=W,r.IsTuple=Y,r.IsUndefined=Q,r.IsUnionLiteral=function(e){return X(e)&&e.anyOf.every((e=>I(e)||P(e)))},r.IsUnion=X,r.IsUint8Array=J,r.IsUnknown=Z,r.IsUnsafe=ee,r.IsVoid=te,r.IsKind=re,r.IsSchema=ne;const n=e("./value"),i=e("../symbols/index"),o=e("../error/index");class s extends o.TypeBoxError{}r.TypeGuardUnknownTypeError=s;const a=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function c(e){try{return new RegExp(e),!0}catch{return!1}}function u(e){if(!n.IsString(e))return!1;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r>=7&&r<=13||27===r||127===r)return!1}return!0}function l(e){return h(e)||ne(e)}function p(e){return n.IsUndefined(e)||n.IsBigInt(e)}function d(e){return n.IsUndefined(e)||n.IsNumber(e)}function h(e){return n.IsUndefined(e)||n.IsBoolean(e)}function f(e){return n.IsUndefined(e)||n.IsString(e)}function y(e){return n.IsUndefined(e)||ne(e)}function m(e){return R(e,"Any")&&f(e.$id)}function T(e){return R(e,"Array")&&"array"===e.type&&f(e.$id)&&ne(e.items)&&d(e.minItems)&&d(e.maxItems)&&h(e.uniqueItems)&&y(e.contains)&&d(e.minContains)&&d(e.maxContains)}function g(e){return R(e,"AsyncIterator")&&"AsyncIterator"===e.type&&f(e.$id)&&ne(e.items)}function b(e){return R(e,"BigInt")&&"bigint"===e.type&&f(e.$id)&&p(e.exclusiveMaximum)&&p(e.exclusiveMinimum)&&p(e.maximum)&&p(e.minimum)&&p(e.multipleOf)}function _(e){return R(e,"Boolean")&&"boolean"===e.type&&f(e.$id)}function O(e){return R(e,"Constructor")&&"Constructor"===e.type&&f(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>ne(e)))&&ne(e.returns)}function E(e){return R(e,"Date")&&"Date"===e.type&&f(e.$id)&&d(e.exclusiveMaximumTimestamp)&&d(e.exclusiveMinimumTimestamp)&&d(e.maximumTimestamp)&&d(e.minimumTimestamp)&&d(e.multipleOfTimestamp)}function S(e){return R(e,"Function")&&"Function"===e.type&&f(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>ne(e)))&&ne(e.returns)}function v(e){return R(e,"Integer")&&"integer"===e.type&&f(e.$id)&&d(e.exclusiveMaximum)&&d(e.exclusiveMinimum)&&d(e.maximum)&&d(e.minimum)&&d(e.multipleOf)}function x(e){return n.IsObject(e)&&Object.entries(e).every((([e,t])=>u(e)&&ne(t)))}function w(e){return R(e,"Intersect")&&(!n.IsString(e.type)||"object"===e.type)&&n.IsArray(e.allOf)&&e.allOf.every((e=>ne(e)&&!W(e)))&&f(e.type)&&(h(e.unevaluatedProperties)||y(e.unevaluatedProperties))&&f(e.$id)}function A(e){return R(e,"Iterator")&&"Iterator"===e.type&&f(e.$id)&&ne(e.items)}function R(e,t){return n.IsObject(e)&&i.Kind in e&&e[i.Kind]===t}function I(e){return N(e)&&n.IsString(e.const)}function P(e){return N(e)&&n.IsNumber(e.const)}function N(e){return R(e,"Literal")&&f(e.$id)&&C(e.const)}function C(e){return n.IsBoolean(e)||n.IsNumber(e)||n.IsString(e)}function j(e){return R(e,"MappedKey")&&n.IsArray(e.keys)&&e.keys.every((e=>n.IsNumber(e)||n.IsString(e)))}function k(e){return R(e,"MappedResult")&&x(e.properties)}function M(e){return R(e,"Never")&&n.IsObject(e.not)&&0===Object.getOwnPropertyNames(e.not).length}function L(e){return R(e,"Not")&&ne(e.not)}function D(e){return R(e,"Null")&&"null"===e.type&&f(e.$id)}function B(e){return R(e,"Number")&&"number"===e.type&&f(e.$id)&&d(e.exclusiveMaximum)&&d(e.exclusiveMinimum)&&d(e.maximum)&&d(e.minimum)&&d(e.multipleOf)}function z(e){return R(e,"Object")&&"object"===e.type&&f(e.$id)&&x(e.properties)&&l(e.additionalProperties)&&d(e.minProperties)&&d(e.maxProperties)}function U(e){return R(e,"Promise")&&"Promise"===e.type&&f(e.$id)&&ne(e.item)}function F(e){return R(e,"Record")&&"object"===e.type&&f(e.$id)&&l(e.additionalProperties)&&n.IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return 1===t.length&&c(t[0])&&n.IsObject(e.patternProperties)&&ne(e.patternProperties[t[0]])})(e)}function $(e){return R(e,"Ref")&&f(e.$id)&&n.IsString(e.$ref)}function G(e){return R(e,"RegExp")&&f(e.$id)&&n.IsString(e.source)&&n.IsString(e.flags)&&d(e.maxLength)&&d(e.minLength)}function H(e){return R(e,"String")&&"string"===e.type&&f(e.$id)&&d(e.minLength)&&d(e.maxLength)&&function(e){return n.IsUndefined(e)||n.IsString(e)&&u(e)&&c(e)}(e.pattern)&&function(e){return n.IsUndefined(e)||n.IsString(e)&&u(e)}(e.format)}function K(e){return R(e,"Symbol")&&"symbol"===e.type&&f(e.$id)}function V(e){return R(e,"TemplateLiteral")&&"string"===e.type&&n.IsString(e.pattern)&&"^"===e.pattern[0]&&"$"===e.pattern[e.pattern.length-1]}function q(e){return R(e,"This")&&f(e.$id)&&n.IsString(e.$ref)}function W(e){return n.IsObject(e)&&i.TransformKind in e}function Y(e){return R(e,"Tuple")&&"array"===e.type&&f(e.$id)&&n.IsNumber(e.minItems)&&n.IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(n.IsUndefined(e.items)&&n.IsUndefined(e.additionalItems)&&0===e.minItems||n.IsArray(e.items)&&e.items.every((e=>ne(e))))}function Q(e){return R(e,"Undefined")&&"undefined"===e.type&&f(e.$id)}function X(e){return R(e,"Union")&&f(e.$id)&&n.IsObject(e)&&n.IsArray(e.anyOf)&&e.anyOf.every((e=>ne(e)))}function J(e){return R(e,"Uint8Array")&&"Uint8Array"===e.type&&f(e.$id)&&d(e.minByteLength)&&d(e.maxByteLength)}function Z(e){return R(e,"Unknown")&&f(e.$id)}function ee(e){return R(e,"Unsafe")}function te(e){return R(e,"Void")&&"void"===e.type&&f(e.$id)}function re(e){return n.IsObject(e)&&i.Kind in e&&n.IsString(e[i.Kind])&&!a.includes(e[i.Kind])}function ne(e){return n.IsObject(e)&&(m(e)||T(e)||_(e)||b(e)||g(e)||O(e)||E(e)||S(e)||v(e)||w(e)||A(e)||N(e)||j(e)||k(e)||M(e)||L(e)||D(e)||B(e)||z(e)||U(e)||F(e)||$(e)||G(e)||H(e)||K(e)||V(e)||q(e)||Y(e)||Q(e)||X(e)||J(e)||Z(e)||ee(e)||te(e)||re(e))}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/guard/type.js"}],[3399,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){return Array.isArray(e)}function i(e){return"object"==typeof e&&null!==e}function o(e){return e instanceof globalThis.Uint8Array}Object.defineProperty(r,"__esModule",{value:!0}),r.HasPropertyKey=function(e,t){return t in e},r.IsAsyncIterator=function(e){return i(e)&&!n(e)&&!o(e)&&Symbol.asyncIterator in e},r.IsArray=n,r.IsBigInt=function(e){return"bigint"==typeof e},r.IsBoolean=function(e){return"boolean"==typeof e},r.IsDate=function(e){return e instanceof globalThis.Date},r.IsFunction=function(e){return"function"==typeof e},r.IsIterator=function(e){return i(e)&&!n(e)&&!o(e)&&Symbol.iterator in e},r.IsNull=function(e){return null===e},r.IsNumber=function(e){return"number"==typeof e},r.IsObject=i,r.IsRegExp=function(e){return e instanceof globalThis.RegExp},r.IsString=function(e){return"string"==typeof e},r.IsSymbol=function(e){return"symbol"==typeof e},r.IsUint8Array=o,r.IsUndefined=function(e){return e===undefined}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/guard/value.js"}],[3400,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Increment=function(e){return(parseInt(e)+1).toString()}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/helpers/helpers.js"}],[3401,{"./helpers":3400},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./helpers"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/helpers/index.js"}],[3402,{"./indexed":3406,"./indexed-from-mapped-key":3403,"./indexed-from-mapped-result":3404,"./indexed-property-keys":3405},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./indexed-from-mapped-key"),r),i(e("./indexed-from-mapped-result"),r),i(e("./indexed-property-keys"),r),i(e("./indexed"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/indexed/index.js"}],[3403,{"../clone/value":3358,"../mapped/index":3432,"./indexed":3406},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IndexFromMappedKey=function(e,t,r){const n=function(e,t,r){return function(e,t,r){return t.reduce(((t,n)=>({...t,...s(e,n,r)})),{})}(e,t.keys,r)}(e,t,r);return(0,i.MappedResult)(n)};const n=e("./indexed"),i=e("../mapped/index"),o=e("../clone/value");function s(e,t,r){return{[t]:(0,n.Index)(e,[t],(0,o.Clone)(r))}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-key.js"}],[3404,{"../mapped/index":3432,"./index":3402,"./indexed-property-keys":3405},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IndexFromMappedResult=function(e,t,r){const s=function(e,t,r){return function(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t))n[s]=(0,o.Index)(e,(0,i.IndexPropertyKeys)(t[s]),r);return n}(e,t.properties,r)}(e,t,r);return(0,n.MappedResult)(s)};const n=e("../mapped/index"),i=e("./indexed-property-keys"),o=e("./index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-result.js"}],[3405,{"../guard/kind":3397,"../template-literal/index":3506},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IndexPropertyKeys=c;const n=e("../template-literal/index"),i=e("../guard/kind");function o(e){return(0,n.TemplateLiteralGenerate)(e).map((e=>e.toString()))}function s(e){const t=[];for(const r of e)t.push(...c(r));return t}function a(e){return[e.toString()]}function c(e){return[...new Set((0,i.IsTemplateLiteral)(e)?o(e):(0,i.IsUnion)(e)?s(e.anyOf):(0,i.IsLiteral)(e)?a(e.const):(0,i.IsNumber)(e)||(0,i.IsInteger)(e)?["[number]"]:[])]}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-property-keys.js"}],[3406,{"../create/type":3369,"../guard/kind":3397,"../intersect/index":3411,"../never/index":3436,"../union/index":3524,"./indexed-from-mapped-key":3403,"./indexed-from-mapped-result":3404,"./indexed-property-keys":3405},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IndexFromPropertyKey=f,r.IndexFromPropertyKeys=y,r.Index=function(e,t,r){return(0,l.IsMappedResult)(t)?(0,u.IndexFromMappedResult)(e,t,r):(0,l.IsMappedKey)(t)?(0,c.IndexFromMappedKey)(e,t,r):(0,n.CreateType)((0,l.IsSchema)(t)?m(e,(0,a.IndexPropertyKeys)(t)):m(e,t),r)};const n=e("../create/type"),i=e("../never/index"),o=e("../intersect/index"),s=e("../union/index"),a=e("./indexed-property-keys"),c=e("./indexed-from-mapped-key"),u=e("./indexed-from-mapped-result"),l=e("../guard/kind");function p(e,t){return e.map((e=>f(e,t)))}function d(e,t){return(0,o.IntersectEvaluated)(function(e){return e.filter((e=>!(0,l.IsNever)(e)))}(p(e,t)))}function h(e,t){return(0,s.UnionEvaluated)(function(e){return e.some((e=>(0,l.IsNever)(e)))?[]:e}(p(e,t)))}function f(e,t){return(0,l.IsIntersect)(e)?d(e.allOf,t):(0,l.IsUnion)(e)?h(e.anyOf,t):(0,l.IsTuple)(e)?function(e,t){return t in e?e[t]:"[number]"===t?(0,s.UnionEvaluated)(e):(0,i.Never)()}(e.items??[],t):(0,l.IsArray)(e)?function(e,t){return"[number]"===t?e:(0,i.Never)()}(e.items,t):(0,l.IsObject)(e)?function(e,t){return t in e?e[t]:(0,i.Never)()}(e.properties,t):(0,i.Never)()}function y(e,t){return t.map((t=>f(e,t)))}function m(e,t){return(0,s.UnionEvaluated)(y(e,t))}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed.js"}],[3407,{"./instance-type":3408},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./instance-type"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/instance-type/index.js"}],[3408,{"../create/type":3369},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.InstanceType=function(e,t){return(0,n.CreateType)(e.returns,t)};const n=e("../create/type")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/instance-type/instance-type.js"}],[3409,{"./integer":3410},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./integer"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/integer/index.js"}],[3410,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Integer=function(e){return(0,n.CreateType)({[i.Kind]:"Integer",type:"integer"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/integer/integer.js"}],[3411,{"./intersect":3415,"./intersect-evaluated":3413,"./intersect-type":3414},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./intersect-evaluated"),r),i(e("./intersect-type"),r),i(e("./intersect"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intersect/index.js"}],[3412,{"../create/type":3369,"../guard/kind":3397,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IntersectCreate=function(e,t={}){const r=e.every((e=>(0,o.IsObject)(e))),s=(0,o.IsSchema)(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return(0,n.CreateType)(!1===t.unevaluatedProperties||(0,o.IsSchema)(t.unevaluatedProperties)||r?{...s,[i.Kind]:"Intersect",type:"object",allOf:e}:{...s,[i.Kind]:"Intersect",allOf:e},t)};const n=e("../create/type"),i=e("../symbols/index"),o=e("../guard/kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-create.js"}],[3413,{"../create/type":3369,"../discard/index":3375,"../guard/kind":3397,"../never/index":3436,"../optional/index":3450,"../symbols/index":3502,"./intersect-create":3412},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IntersectEvaluated=function(e,t={}){if(0===e.length)return(0,s.Never)(t);if(1===e.length)return(0,i.CreateType)(e[0],t);if(e.some((e=>(0,u.IsTransform)(e))))throw new Error("Cannot intersect transform types");return function(e,t){return function(e){return e.every((e=>(0,u.IsOptional)(e)))}(e)?(0,a.Optional)((0,c.IntersectCreate)(l(e),t)):(0,c.IntersectCreate)(l(e),t)}(e,t)};const n=e("../symbols/index"),i=e("../create/type"),o=e("../discard/index"),s=e("../never/index"),a=e("../optional/index"),c=e("./intersect-create"),u=e("../guard/kind");function l(e){return e.map((e=>(0,u.IsOptional)(e)?function(e){return(0,o.Discard)(e,[n.OptionalKind])}(e):e))}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-evaluated.js"}],[3414,{"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-type.js"}],[3415,{"../create/type":3369,"../guard/kind":3397,"../never/index":3436,"./intersect-create":3412},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Intersect=function(e,t){if(0===e.length)return(0,i.Never)(t);if(1===e.length)return(0,n.CreateType)(e[0],t);if(e.some((e=>(0,s.IsTransform)(e))))throw new Error("Cannot intersect transform types");return(0,o.IntersectCreate)(e,t)};const n=e("../create/type"),i=e("../never/index"),o=e("./intersect-create"),s=e("../guard/kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect.js"}],[3416,{"./intrinsic":3419},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Capitalize=function(e,t={}){return(0,n.Intrinsic)(e,"Capitalize",t)};const n=e("./intrinsic")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/capitalize.js"}],[3417,{"./capitalize":3416,"./intrinsic":3419,"./intrinsic-from-mapped-key":3418,"./lowercase":3420,"./uncapitalize":3421,"./uppercase":3422},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./capitalize"),r),i(e("./intrinsic-from-mapped-key"),r),i(e("./intrinsic"),r),i(e("./lowercase"),r),i(e("./uncapitalize"),r),i(e("./uppercase"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/index.js"}],[3418,{"../clone/value":3358,"../literal/index":3430,"../mapped/index":3432,"./intrinsic":3419},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IntrinsicFromMappedKey=function(e,t,r){const i=function(e,t,r){return function(e,t,r){const n=e.reduce(((e,n)=>({...e,...a(n,t,r)})),{});return n}(e.keys,t,r)}(e,t,r);return(0,n.MappedResult)(i)};const n=e("../mapped/index"),i=e("./intrinsic"),o=e("../literal/index"),s=e("../clone/value");function a(e,t,r){return{[e]:(0,i.Intrinsic)((0,o.Literal)(e),t,(0,s.Clone)(r))}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic-from-mapped-key.js"}],[3419,{"../create/type":3369,"../guard/kind":3397,"../literal/index":3430,"../template-literal/index":3506,"../union/index":3524,"./intrinsic-from-mapped-key":3418},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Intrinsic=p;const n=e("../create/type"),i=e("../template-literal/index"),o=e("./intrinsic-from-mapped-key"),s=e("../literal/index"),a=e("../union/index"),c=e("../guard/kind");function u(e,t){return"string"==typeof e?"Uncapitalize"===t?function(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}(e):"Capitalize"===t?function(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}(e):"Uppercase"===t?function(e){return e.toUpperCase()}(e):"Lowercase"===t?function(e){return e.toLowerCase()}(e):e:e.toString()}function l(e,t){return e.map((e=>p(e,t)))}function p(e,t,r={}){return(0,c.IsMappedKey)(e)?(0,o.IntrinsicFromMappedKey)(e,t,r):(0,c.IsTemplateLiteral)(e)?function(e,t,r){const n=(0,i.TemplateLiteralParseExact)(e.pattern);if(!(0,i.IsTemplateLiteralExpressionFinite)(n))return{...e,pattern:u(e.pattern,t)};const o=l([...(0,i.TemplateLiteralExpressionGenerate)(n)].map((e=>(0,s.Literal)(e))),t),c=(0,a.Union)(o);return(0,i.TemplateLiteral)([c],r)}(e,t,r):(0,c.IsUnion)(e)?(0,a.Union)(l(e.anyOf,t),r):(0,c.IsLiteral)(e)?(0,s.Literal)(u(e.const,t),r):(0,n.CreateType)(e,r)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic.js"}],[3420,{"./intrinsic":3419},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Lowercase=function(e,t={}){return(0,n.Intrinsic)(e,"Lowercase",t)};const n=e("./intrinsic")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/lowercase.js"}],[3421,{"./intrinsic":3419},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Uncapitalize=function(e,t={}){return(0,n.Intrinsic)(e,"Uncapitalize",t)};const n=e("./intrinsic")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uncapitalize.js"}],[3422,{"./intrinsic":3419},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Uppercase=function(e,t={}){return(0,n.Intrinsic)(e,"Uppercase",t)};const n=e("./intrinsic")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uppercase.js"}],[3423,{"./iterator":3424},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./iterator"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/iterator/index.js"}],[3424,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Iterator=function(e,t){return(0,n.CreateType)({[i.Kind]:"Iterator",type:"Iterator",items:e},t)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/iterator/iterator.js"}],[3425,{"./keyof":3429,"./keyof-from-mapped-result":3426,"./keyof-property-entries":3427,"./keyof-property-keys":3428},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./keyof-from-mapped-result"),r),i(e("./keyof-property-entries"),r),i(e("./keyof-property-keys"),r),i(e("./keyof"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/keyof/index.js"}],[3426,{"../clone/value":3358,"../mapped/index":3432,"./keyof":3429},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.KeyOfFromMappedResult=function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,i.KeyOf)(e[n],(0,o.Clone)(t));return r}(e.properties,t)}(e,t);return(0,n.MappedResult)(r)};const n=e("../mapped/index"),i=e("./keyof"),o=e("../clone/value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-from-mapped-result.js"}],[3427,{"../indexed/indexed":3406,"./keyof-property-keys":3428},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.KeyOfPropertyEntries=function(e){const t=(0,i.KeyOfPropertyKeys)(e),r=(0,n.IndexFromPropertyKeys)(e,t);return t.map(((e,n)=>[t[n],r[n]]))};const n=e("../indexed/indexed"),i=e("./keyof-property-keys")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-entries.js"}],[3428,{"../guard/kind":3397,"../sets/index":3492},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.KeyOfPropertyKeys=s,r.KeyOfPattern=function(e){a=!0;const t=s(e);a=!1;return`^(${t.map((e=>`(${e})`)).join("|")})$`};const n=e("../sets/index"),i=e("../guard/kind");function o(e){const t=[];for(const r of e)t.push(s(r));return t}function s(e){return(0,i.IsIntersect)(e)?function(e){const t=o(e);return(0,n.SetUnionMany)(t)}(e.allOf):(0,i.IsUnion)(e)?function(e){const t=o(e);return(0,n.SetIntersectMany)(t)}(e.anyOf):(0,i.IsTuple)(e)?function(e){return e.map(((e,t)=>t.toString()))}(e.items??[]):(0,i.IsArray)(e)?(e.items,["[number]"]):(0,i.IsObject)(e)?function(e){return globalThis.Object.getOwnPropertyNames(e)}(e.properties):(0,i.IsRecord)(e)?(t=e.patternProperties,a?globalThis.Object.getOwnPropertyNames(t).map((e=>"^"===e[0]&&"$"===e[e.length-1]?e.slice(1,e.length-1):e)):[]):[];var t}let a=!1}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-keys.js"}],[3429,{"../create/type":3369,"../guard/kind":3397,"../literal/index":3430,"../number/index":3442,"../union/index":3524,"./keyof-from-mapped-result":3426,"./keyof-property-keys":3428},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.KeyOfPropertyKeysToRest=l,r.KeyOf=function(e,t){if((0,u.IsMappedResult)(e))return(0,c.KeyOfFromMappedResult)(e,t);{const r=l((0,s.KeyOfPropertyKeys)(e)),i=(0,a.UnionEvaluated)(r);return(0,n.CreateType)(i,t)}};const n=e("../create/type"),i=e("../literal/index"),o=e("../number/index"),s=e("./keyof-property-keys"),a=e("../union/index"),c=e("./keyof-from-mapped-result"),u=e("../guard/kind");function l(e){return e.map((e=>"[number]"===e?(0,o.Number)():(0,i.Literal)(e)))}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof.js"}],[3430,{"./literal":3431},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./literal"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/literal/index.js"}],[3431,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Literal=function(e,t){return(0,n.CreateType)({[i.Kind]:"Literal",const:e,type:typeof e},t)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/literal/literal.js"}],[3432,{"./mapped":3435,"./mapped-key":3433,"./mapped-result":3434},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./mapped-key"),r),i(e("./mapped-result"),r),i(e("./mapped"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/mapped/index.js"}],[3433,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MappedKey=function(e){return(0,n.CreateType)({[i.Kind]:"MappedKey",keys:e})};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-key.js"}],[3434,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MappedResult=function(e){return(0,n.CreateType)({[i.Kind]:"MappedResult",properties:e})};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-result.js"}],[3435,{"../array/index":3347,"../async-iterator/index":3349,"../constructor/index":3366,"../discard/index":3375,"../function/index":3395,"../guard/kind":3397,"../indexed/index":3402,"../intersect/index":3411,"../iterator/index":3423,"../literal/index":3430,"../object/index":3444,"../optional/index":3450,"../promise/index":3464,"../readonly/index":3468,"../sets/index":3492,"../symbols/index":3502,"../tuple/index":3514,"../union/index":3524,"./mapped-result":3434},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MappedFunctionReturnType=w,r.Mapped=function(e,t,r){const i=(0,O.IsSchema)(e)?(0,u.IndexPropertyKeys)(e):e,o=t({[n.Kind]:"MappedKey",keys:i}),s=w(i,o);return(0,h.Object)(s,r)};const n=e("../symbols/index"),i=e("../discard/index"),o=e("../array/index"),s=e("../async-iterator/index"),a=e("../constructor/index"),c=e("../function/index"),u=e("../indexed/index"),l=e("../intersect/index"),p=e("../iterator/index"),d=e("../literal/index"),h=e("../object/index"),f=e("../optional/index"),y=e("../promise/index"),m=e("../readonly/index"),T=e("../tuple/index"),g=e("../union/index"),b=e("../sets/index"),_=e("./mapped-result"),O=e("../guard/kind");function E(e,t){return e in t?x(e,t[e]):(0,_.MappedResult)(t)}function S(e,t){return(0,b.SetIncludes)(t,e)?function(e){return{[e]:(0,d.Literal)(e)}}(e):function(e){const t={};for(const r of e)t[r]=(0,d.Literal)(r);return t}(t)}function v(e,t){return t.map((t=>x(e,t)))}function x(e,t){const r={...t};return(0,O.IsOptional)(t)?(0,f.Optional)(x(e,(0,i.Discard)(t,[n.OptionalKind]))):(0,O.IsReadonly)(t)?(0,m.Readonly)(x(e,(0,i.Discard)(t,[n.ReadonlyKind]))):(0,O.IsMappedResult)(t)?E(e,t.properties):(0,O.IsMappedKey)(t)?function(e,t){return E(e,S(e,t))}(e,t.keys):(0,O.IsConstructor)(t)?(0,a.Constructor)(v(e,t.parameters),x(e,t.returns),r):(0,O.IsFunction)(t)?(0,c.Function)(v(e,t.parameters),x(e,t.returns),r):(0,O.IsAsyncIterator)(t)?(0,s.AsyncIterator)(x(e,t.items),r):(0,O.IsIterator)(t)?(0,p.Iterator)(x(e,t.items),r):(0,O.IsIntersect)(t)?(0,l.Intersect)(v(e,t.allOf),r):(0,O.IsUnion)(t)?(0,g.Union)(v(e,t.anyOf),r):(0,O.IsTuple)(t)?(0,T.Tuple)(v(e,t.items??[]),r):(0,O.IsObject)(t)?(0,h.Object)(function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=x(e,t[n]);return r}(e,t.properties),r):(0,O.IsArray)(t)?(0,o.Array)(x(e,t.items),r):(0,O.IsPromise)(t)?(0,y.Promise)(x(e,t.item),r):t}function w(e,t){const r={};for(const n of e)r[n]=x(n,t);return r}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped.js"}],[3436,{"./never":3437},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./never"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/never/index.js"}],[3437,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Never=function(e){return(0,n.CreateType)({[i.Kind]:"Never",not:{}},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/never/never.js"}],[3438,{"./not":3439},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./not"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/not/index.js"}],[3439,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Not=function(e,t){return(0,n.CreateType)({[i.Kind]:"Not",not:e},t)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/not/not.js"}],[3440,{"./null":3441},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./null"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/null/index.js"}],[3441,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Null=function(e){return(0,n.CreateType)({[i.Kind]:"Null",type:"null"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/null/null.js"}],[3442,{"./number":3443},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./number"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/number/index.js"}],[3443,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Number=function(e){return(0,n.CreateType)({[i.Kind]:"Number",type:"number"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/number/number.js"}],[3444,{"./object":3445},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./object"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/object/index.js"}],[3445,{"../create/type":3369,"../guard/kind":3397,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Object=void 0;const n=e("../create/type"),i=e("../symbols/index"),o=e("../guard/kind");r.Object=function(e,t){const r=function(e){const t=[];for(let r in e)(0,o.IsOptional)(e[r])||t.push(r);return t}(e),s=r.length>0?{[i.Kind]:"Object",type:"object",properties:e,required:r}:{[i.Kind]:"Object",type:"object",properties:e};return(0,n.CreateType)(s,t)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/object/object.js"}],[3446,{"./omit":3449,"./omit-from-mapped-key":3447,"./omit-from-mapped-result":3448},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./omit-from-mapped-key"),r),i(e("./omit-from-mapped-result"),r),i(e("./omit"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/omit/index.js"}],[3447,{"../clone/value":3358,"../mapped/index":3432,"./omit":3449},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.OmitFromMappedKey=function(e,t,r){const i=function(e,t,r){return function(e,t,r){return t.reduce(((t,n)=>({...t,...s(e,n,r)})),{})}(e,t.keys,r)}(e,t,r);return(0,n.MappedResult)(i)};const n=e("../mapped/index"),i=e("./omit"),o=e("../clone/value");function s(e,t,r){return{[t]:(0,i.Omit)(e,[t],(0,o.Clone)(r))}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-key.js"}],[3448,{"../clone/value":3358,"../mapped/index":3432,"./omit":3449},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.OmitFromMappedResult=function(e,t,r){const s=function(e,t,r){return function(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=(0,i.Omit)(e[s],t,(0,o.Clone)(r));return n}(e.properties,t,r)}(e,t,r);return(0,n.MappedResult)(s)};const n=e("../mapped/index"),i=e("./omit"),o=e("../clone/value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-result.js"}],[3449,{"../create/type":3369,"../discard/discard":3374,"../guard/kind":3397,"../indexed/index":3402,"../intersect/index":3411,"../object/index":3444,"../symbols/symbols":3503,"../union/index":3524,"./omit-from-mapped-key":3447,"./omit-from-mapped-result":3448},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Omit=function(e,t,r){if((0,d.IsMappedKey)(t))return(0,u.OmitFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.OmitFromMappedResult)(e,t,r);const i=(0,d.IsSchema)(t)?(0,c.IndexPropertyKeys)(t):t;return(0,n.CreateType)({...h(e,i),...r})};const n=e("../create/type"),i=e("../discard/discard"),o=e("../intersect/index"),s=e("../union/index"),a=e("../object/index"),c=e("../indexed/index"),u=e("./omit-from-mapped-key"),l=e("./omit-from-mapped-result"),p=e("../symbols/symbols"),d=e("../guard/kind");function h(e,t){return(0,d.IsIntersect)(e)?(0,o.Intersect)(function(e,t){return e.map((e=>h(e,t)))}(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(function(e,t){return e.map((e=>h(e,t)))}(e.anyOf,t)):(0,d.IsObject)(e)?function(e,t){const r=(0,i.Discard)(e,[p.TransformKind,"$id","required","properties"]),n=function(e,t){return t.reduce(((e,t)=>function(e,t){const{[t]:r,...n}=e;return n}(e,t)),e)}(e.properties,t);return(0,a.Object)(n,r)}(e,t):(0,a.Object)({})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/omit/omit.js"}],[3450,{"./optional":3452,"./optional-from-mapped-result":3451},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./optional-from-mapped-result"),r),i(e("./optional"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/optional/index.js"}],[3451,{"../mapped/index":3432,"./optional":3452},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.OptionalFromMappedResult=function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,i.Optional)(e[n],t);return r}(e.properties,t)}(e,t);return(0,n.MappedResult)(r)};const n=e("../mapped/index"),i=e("./optional")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/optional/optional-from-mapped-result.js"}],[3452,{"../create/type":3369,"../discard/index":3375,"../guard/kind":3397,"../symbols/index":3502,"./optional-from-mapped-result":3451},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Optional=function(e,t){const r=t??!0;return(0,a.IsMappedResult)(e)?(0,s.OptionalFromMappedResult)(e,r):function(e,t){return!1===t?function(e){return(0,n.CreateType)((0,o.Discard)(e,[i.OptionalKind]))}(e):function(e){return(0,n.CreateType)({...e,[i.OptionalKind]:"Optional"})}(e)}(e,r)};const n=e("../create/type"),i=e("../symbols/index"),o=e("../discard/index"),s=e("./optional-from-mapped-result"),a=e("../guard/kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/optional/optional.js"}],[3453,{"./parameters":3454},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./parameters"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/parameters/index.js"}],[3454,{"../tuple/index":3514},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Parameters=function(e,t){return(0,n.Tuple)(e.parameters,t)};const n=e("../tuple/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/parameters/parameters.js"}],[3455,{"./partial":3457,"./partial-from-mapped-result":3456},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./partial-from-mapped-result"),r),i(e("./partial"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/partial/index.js"}],[3456,{"../clone/value":3358,"../mapped/index":3432,"./partial":3457},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PartialFromMappedResult=function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,i.Partial)(e[n],(0,o.Clone)(t));return r}(e.properties,t)}(e,t);return(0,n.MappedResult)(r)};const n=e("../mapped/index"),i=e("./partial"),o=e("../clone/value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/partial/partial-from-mapped-result.js"}],[3457,{"../create/type":3369,"../discard/index":3375,"../guard/kind":3397,"../intersect/index":3411,"../object/index":3444,"../optional/index":3450,"../symbols/index":3502,"../union/index":3524,"./partial-from-mapped-result":3456},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Partial=function(e,t){return(0,p.IsMappedResult)(e)?(0,l.PartialFromMappedResult)(e,t):(0,n.CreateType)({...f(e),...t})};const n=e("../create/type"),i=e("../optional/index"),o=e("../object/index"),s=e("../intersect/index"),a=e("../union/index"),c=e("../discard/index"),u=e("../symbols/index"),l=e("./partial-from-mapped-result"),p=e("../guard/kind");function d(e){return e.map((e=>f(e)))}function h(e){const t=(0,c.Discard)(e,[u.TransformKind,"$id","required","properties"]),r=function(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,i.Optional)(e[r]);return t}(e.properties);return(0,o.Object)(r,t)}function f(e){return(0,p.IsIntersect)(e)?(0,s.Intersect)(d(e.allOf)):(0,p.IsUnion)(e)?(0,a.Union)(d(e.anyOf)):(0,p.IsObject)(e)?h(e):(0,o.Object)({})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/partial/partial.js"}],[3458,{"./patterns":3459},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./patterns"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/patterns/index.js"}],[3459,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PatternNeverExact=r.PatternStringExact=r.PatternNumberExact=r.PatternBooleanExact=r.PatternNever=r.PatternString=r.PatternNumber=r.PatternBoolean=void 0,r.PatternBoolean="(true|false)",r.PatternNumber="(0|[1-9][0-9]*)",r.PatternString="(.*)",r.PatternNever="(?!.*)",r.PatternBooleanExact=`^${r.PatternBoolean}$`,r.PatternNumberExact=`^${r.PatternNumber}$`,r.PatternStringExact=`^${r.PatternString}$`,r.PatternNeverExact=`^${r.PatternNever}$`}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/patterns/patterns.js"}],[3460,{"./pick":3463,"./pick-from-mapped-key":3461,"./pick-from-mapped-result":3462},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./pick-from-mapped-key"),r),i(e("./pick-from-mapped-result"),r),i(e("./pick"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/pick/index.js"}],[3461,{"../clone/value":3358,"../mapped/index":3432,"./pick":3463},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PickFromMappedKey=function(e,t,r){const i=function(e,t,r){return function(e,t,r){return t.reduce(((t,n)=>({...t,...s(e,n,r)})),{})}(e,t.keys,r)}(e,t,r);return(0,n.MappedResult)(i)};const n=e("../mapped/index"),i=e("./pick"),o=e("../clone/value");function s(e,t,r){return{[t]:(0,i.Pick)(e,[t],(0,o.Clone)(r))}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-key.js"}],[3462,{"../clone/value":3358,"../mapped/index":3432,"./pick":3463},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PickFromMappedResult=function(e,t,r){const s=function(e,t,r){return function(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=(0,i.Pick)(e[s],t,(0,o.Clone)(r));return n}(e.properties,t,r)}(e,t,r);return(0,n.MappedResult)(s)};const n=e("../mapped/index"),i=e("./pick"),o=e("../clone/value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-result.js"}],[3463,{"../create/type":3369,"../discard/discard":3374,"../guard/kind":3397,"../indexed/index":3402,"../intersect/index":3411,"../object/index":3444,"../symbols/symbols":3503,"../union/index":3524,"./pick-from-mapped-key":3461,"./pick-from-mapped-result":3462},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Pick=function(e,t,r){if((0,d.IsMappedKey)(t))return(0,u.PickFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.PickFromMappedResult)(e,t,r);const i=(0,d.IsSchema)(t)?(0,c.IndexPropertyKeys)(t):t;return(0,n.CreateType)({...h(e,i),...r})};const n=e("../create/type"),i=e("../discard/discard"),o=e("../intersect/index"),s=e("../union/index"),a=e("../object/index"),c=e("../indexed/index"),u=e("./pick-from-mapped-key"),l=e("./pick-from-mapped-result"),p=e("../symbols/symbols"),d=e("../guard/kind");function h(e,t){return(0,d.IsIntersect)(e)?(0,o.Intersect)(function(e,t){return e.map((e=>h(e,t)))}(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(function(e,t){return e.map((e=>h(e,t)))}(e.anyOf,t)):(0,d.IsObject)(e)?function(e,t){const r=(0,i.Discard)(e,[p.TransformKind,"$id","required","properties"]),n=function(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}(e.properties,t);return(0,a.Object)(n,r)}(e,t):(0,a.Object)({})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/pick/pick.js"}],[3464,{"./promise":3465},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./promise"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/promise/index.js"}],[3465,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Promise=function(e,t){return(0,n.CreateType)({[i.Kind]:"Promise",type:"Promise",item:e},t)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/promise/promise.js"}],[3466,{"./readonly-optional":3467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./readonly-optional"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/index.js"}],[3467,{"../optional/index":3450,"../readonly/index":3468},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ReadonlyOptional=function(e){return(0,n.Readonly)((0,i.Optional)(e))};const n=e("../readonly/index"),i=e("../optional/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/readonly-optional.js"}],[3468,{"./readonly":3470,"./readonly-from-mapped-result":3469},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./readonly-from-mapped-result"),r),i(e("./readonly"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/readonly/index.js"}],[3469,{"../mapped/index":3432,"./readonly":3470},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ReadonlyFromMappedResult=function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,i.Readonly)(e[n],t);return r}(e.properties,t)}(e,t);return(0,n.MappedResult)(r)};const n=e("../mapped/index"),i=e("./readonly")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly-from-mapped-result.js"}],[3470,{"../create/type":3369,"../discard/index":3375,"../guard/kind":3397,"../symbols/index":3502,"./readonly-from-mapped-result":3469},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Readonly=function(e,t){const r=t??!0;return(0,a.IsMappedResult)(e)?(0,s.ReadonlyFromMappedResult)(e,r):function(e,t){return!1===t?function(e){return(0,n.CreateType)((0,o.Discard)(e,[i.ReadonlyKind]))}(e):function(e){return(0,n.CreateType)({...e,[i.ReadonlyKind]:"Readonly"})}(e)}(e,r)};const n=e("../create/type"),i=e("../symbols/index"),o=e("../discard/index"),s=e("./readonly-from-mapped-result"),a=e("../guard/kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly.js"}],[3471,{"./record":3472},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./record"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/record/index.js"}],[3472,{"../create/type":3369,"../guard/kind":3397,"../guard/value":3399,"../indexed/index":3402,"../never/index":3436,"../object/index":3444,"../patterns/index":3458,"../symbols/index":3502,"../template-literal/index":3506,"../union/index":3524},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Record=function(e,t,r={}){return(0,d.IsUnion)(e)?function(e,t,r){return f((0,u.IndexPropertyKeys)((0,s.Union)(e)),t,r)}(e.anyOf,t,r):(0,d.IsTemplateLiteral)(e)?function(e,t,r){return(0,a.IsTemplateLiteralFinite)(e)?f((0,u.IndexPropertyKeys)(e),t,r):h(e.pattern,t,r)}(e,t,r):(0,d.IsLiteral)(e)?function(e,t,r){return f([e.toString()],t,r)}(e.const,t,r):(0,d.IsInteger)(e)||(0,d.IsNumber)(e)?function(e,t,r){return h(c.PatternNumberExact,t,r)}(0,t,r):(0,d.IsRegExp)(e)?function(e,t,r){return h(e.source,t,r)}(e,t,r):(0,d.IsString)(e)?function(e,t,r){const n=(0,p.IsUndefined)(e.pattern)?c.PatternStringExact:e.pattern;return h(n,t,r)}(e,t,r):(0,d.IsAny)(e)?function(e,t,r){return h(c.PatternStringExact,t,r)}(0,t,r):(0,d.IsNever)(e)?function(e,t,r){return h(c.PatternNeverExact,t,r)}(0,t,r):(0,o.Never)(r)};const n=e("../create/type"),i=e("../object/index"),o=e("../never/index"),s=e("../union/index"),a=e("../template-literal/index"),c=e("../patterns/index"),u=e("../indexed/index"),l=e("../symbols/index"),p=e("../guard/value"),d=e("../guard/kind");function h(e,t,r){return(0,n.CreateType)({[l.Kind]:"Record",type:"object",patternProperties:{[e]:t}},r)}function f(e,t,r){const n={};for(const r of e)n[r]=t;return(0,i.Object)(n,{...r,[l.Hint]:"Record"})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/record/record.js"}],[3473,{"./recursive":3474},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./recursive"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/recursive/index.js"}],[3474,{"../clone/type":3357,"../create/type":3369,"../guard/value":3399,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Recursive=function(e,t={}){(0,o.IsUndefined)(t.$id)&&(t.$id="T"+a++);const r=(0,n.CloneType)(e({[s.Kind]:"This",$ref:`${t.$id}`}));return r.$id=t.$id,(0,i.CreateType)({[s.Hint]:"Recursive",...r},t)};const n=e("../clone/type"),i=e("../create/type"),o=e("../guard/value"),s=e("../symbols/index");let a=0}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/recursive/recursive.js"}],[3475,{"./ref":3476},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./ref"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/ref/index.js"}],[3476,{"../create/type":3369,"../guard/value":3399,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Ref=function(e,t){if((0,o.IsString)(e))return(0,n.CreateType)({[i.Kind]:"Ref",$ref:e},t);if((0,o.IsUndefined)(e.$id))throw new Error("Reference target type must specify an $id");return(0,n.CreateType)({[i.Kind]:"Ref",$ref:e.$id},t)};const n=e("../create/type"),i=e("../symbols/index"),o=e("../guard/value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/ref/ref.js"}],[3477,{"./regexp":3478},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./regexp"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/regexp/index.js"}],[3478,{"../create/type":3369,"../guard/value":3399,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RegExp=function(e,t){const r=(0,i.IsString)(e)?new globalThis.RegExp(e):e;return(0,n.CreateType)({[o.Kind]:"RegExp",type:"RegExp",source:r.source,flags:r.flags},t)};const n=e("../create/type"),i=e("../guard/value"),o=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/regexp/regexp.js"}],[3479,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Entries=function(){return new Map(n)},r.Clear=function(){return n.clear()},r.Delete=function(e){return n.delete(e)},r.Has=function(e){return n.has(e)},r.Set=function(e,t){n.set(e,t)},r.Get=function(e){return n.get(e)};const n=new Map}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/registry/format.js"}],[3480,{"./format":3479,"./type":3481},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TypeRegistry=r.FormatRegistry=void 0,r.FormatRegistry=e("./format"),r.TypeRegistry=e("./type")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/registry/index.js"}],[3481,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Entries=function(){return new Map(n)},r.Clear=function(){return n.clear()},r.Delete=function(e){return n.delete(e)},r.Has=function(e){return n.has(e)},r.Set=function(e,t){n.set(e,t)},r.Get=function(e){return n.get(e)};const n=new Map}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/registry/type.js"}],[3482,{"./required":3484,"./required-from-mapped-result":3483},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./required-from-mapped-result"),r),i(e("./required"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/required/index.js"}],[3483,{"../mapped/index":3432,"./required":3484},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RequiredFromMappedResult=function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,i.Required)(e[n],t);return r}(e.properties,t)}(e,t);return(0,n.MappedResult)(r)};const n=e("../mapped/index"),i=e("./required")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/required/required-from-mapped-result.js"}],[3484,{"../create/type":3369,"../discard/index":3375,"../guard/kind":3397,"../intersect/index":3411,"../object/index":3444,"../symbols/index":3502,"../union/index":3524,"./required-from-mapped-result":3483},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Required=function(e,t){return(0,l.IsMappedResult)(e)?(0,u.RequiredFromMappedResult)(e,t):(0,n.CreateType)({...h(e),...t})};const n=e("../create/type"),i=e("../intersect/index"),o=e("../union/index"),s=e("../object/index"),a=e("../symbols/index"),c=e("../discard/index"),u=e("./required-from-mapped-result"),l=e("../guard/kind");function p(e){return e.map((e=>h(e)))}function d(e){const t=(0,c.Discard)(e,[a.TransformKind,"$id","required","properties"]),r=function(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,c.Discard)(e[r],[a.OptionalKind]);return t}(e.properties);return(0,s.Object)(r,t)}function h(e){return(0,l.IsIntersect)(e)?(0,i.Intersect)(p(e.allOf)):(0,l.IsUnion)(e)?(0,o.Union)(p(e.anyOf)):(0,l.IsObject)(e)?d(e):(0,s.Object)({})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/required/required.js"}],[3485,{"./rest":3486},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./rest"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/rest/index.js"}],[3486,{"../guard/kind":3397},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Rest=function(e){return function(e){return(0,n.IsIntersect)(e)?e.allOf:(0,n.IsUnion)(e)?e.anyOf:(0,n.IsTuple)(e)?e.items??[]:[]}(e)};const n=e("../guard/kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/rest/rest.js"}],[3487,{"./return-type":3488},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./return-type"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/return-type/index.js"}],[3488,{"../create/type":3369},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ReturnType=function(e,t){return(0,n.CreateType)(e.returns,t)};const n=e("../create/type")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/return-type/return-type.js"}],[3489,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/schema/anyschema.js"}],[3490,{"./anyschema":3489,"./schema":3491},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./anyschema"),r),i(e("./schema"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/schema/index.js"}],[3491,{"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/schema/schema.js"}],[3492,{"./set":3493},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./set"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/sets/index.js"}],[3493,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t){return e.includes(t)}function i(e,t){return e.filter((e=>t.includes(e)))}Object.defineProperty(r,"__esModule",{value:!0}),r.SetIncludes=n,r.SetIsSubset=function(e,t){return e.every((e=>n(t,e)))},r.SetDistinct=function(e){return[...new Set(e)]},r.SetIntersect=i,r.SetUnion=function(e,t){return[...e,...t]},r.SetComplement=function(e,t){return e.filter((e=>!t.includes(e)))},r.SetIntersectMany=function(e){return 1===e.length?e[0]:e.length>1?function(e,t){return e.reduce(((e,t)=>i(e,t)),t)}(e.slice(1),e[0]):[]},r.SetUnionMany=function(e){const t=[];for(const r of e)t.push(...r);return t}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/sets/set.js"}],[3494,{"./static":3495},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./static"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/static/index.js"}],[3495,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/static/static.js"}],[3496,{"./strict":3497},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./strict"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/strict/index.js"}],[3497,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Strict=function(e){return JSON.parse(JSON.stringify(e))}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/strict/strict.js"}],[3498,{"./string":3499},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./string"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/string/index.js"}],[3499,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.String=function(e){return(0,n.CreateType)({[i.Kind]:"String",type:"string"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/string/string.js"}],[3500,{"./symbol":3501},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./symbol"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/symbol/index.js"}],[3501,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Symbol=function(e){return(0,n.CreateType)({[i.Kind]:"Symbol",type:"symbol"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/symbol/symbol.js"}],[3502,{"./symbols":3503},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./symbols"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/symbols/index.js"}],[3503,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Kind=r.Hint=r.OptionalKind=r.ReadonlyKind=r.TransformKind=void 0,r.TransformKind=Symbol.for("TypeBox.Transform"),r.ReadonlyKind=Symbol.for("TypeBox.Readonly"),r.OptionalKind=Symbol.for("TypeBox.Optional"),r.Hint=Symbol.for("TypeBox.Hint"),r.Kind=Symbol.for("TypeBox.Kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/symbols/symbols.js"}],[3504,{"../error/index":3379,"./parse":3507},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TemplateLiteralFiniteError=void 0,r.IsTemplateLiteralExpressionFinite=s,r.IsTemplateLiteralFinite=function(e){return s((0,n.TemplateLiteralParseExact)(e.pattern))};const n=e("./parse"),i=e("../error/index");class o extends i.TypeBoxError{}function s(e){return!function(e){return"or"===e.type&&2===e.expr.length&&"const"===e.expr[0].type&&"0"===e.expr[0].const&&"const"===e.expr[1].type&&"[1-9][0-9]*"===e.expr[1].const}(e)&&!function(e){return"const"===e.type&&".*"===e.const}(e)&&(!!function(e){return"or"===e.type&&2===e.expr.length&&"const"===e.expr[0].type&&"true"===e.expr[0].const&&"const"===e.expr[1].type&&"false"===e.expr[1].const}(e)||("and"===e.type||"or"===e.type?e.expr.every((e=>s(e))):"const"===e.type||(()=>{throw new o("Unknown expression type")})()))}r.TemplateLiteralFiniteError=o}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/template-literal/finite.js"}],[3505,{"../error/index":3379,"./finite":3504,"./parse":3507},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TemplateLiteralGenerateError=void 0,r.TemplateLiteralExpressionGenerate=u,r.TemplateLiteralGenerate=function(e){const t=(0,i.TemplateLiteralParseExact)(e.pattern);return(0,n.IsTemplateLiteralExpressionFinite)(t)?[...u(t)]:[]};const n=e("./finite"),i=e("./parse"),o=e("../error/index");class s extends o.TypeBoxError{}function*a(e){if(1===e.length)return yield*e[0];for(const t of e[0])for(const r of a(e.slice(1)))yield`${t}${r}`}function*c(e){return yield*a(e.expr.map((e=>[...u(e)])))}function*u(e){return"and"===e.type?yield*c(e):"or"===e.type?yield*function*(e){for(const t of e.expr)yield*u(t)}(e):"const"===e.type?yield*function*(e){return yield e.const}(e):(()=>{throw new s("Unknown expression")})()}r.TemplateLiteralGenerateError=s}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/template-literal/generate.js"}],[3506,{"./finite":3504,"./generate":3505,"./parse":3507,"./pattern":3508,"./syntax":3509,"./template-literal":3510,"./union":3511},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./finite"),r),i(e("./generate"),r),i(e("./syntax"),r),i(e("./parse"),r),i(e("./pattern"),r),i(e("./union"),r),i(e("./template-literal"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/template-literal/index.js"}],[3507,{"../error/index":3379},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TemplateLiteralParserError=void 0,r.TemplateLiteralParse=l,r.TemplateLiteralParseExact=function(e){return l(e.slice(1,e.length-1))};const n=e("../error/index");class i extends n.TypeBoxError{}function o(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function s(e,t,r){return e[t]===r&&92!==e.charCodeAt(t-1)}function a(e,t){return s(e,t,"(")}function c(e,t){return s(e,t,")")}function u(e,t){return s(e,t,"|")}function l(e){return function(e){if(!a(e,0)||!c(e,e.length-1))return!1;let t=0;for(let r=0;r<e.length;r++)if(a(e,r)&&(t+=1),c(e,r)&&(t-=1),0===t&&r!==e.length-1)return!1;return!0}(e)?l(function(e){return e.slice(1,e.length-1)}(e)):function(e){let t=0;for(let r=0;r<e.length;r++)if(a(e,r)&&(t+=1),c(e,r)&&(t-=1),u(e,r)&&0===t)return!0;return!1}(e)?function(e){let[t,r]=[0,0];const n=[];for(let i=0;i<e.length;i++)if(a(e,i)&&(t+=1),c(e,i)&&(t-=1),u(e,i)&&0===t){const t=e.slice(r,i);t.length>0&&n.push(l(t)),r=i+1}const i=e.slice(r);return i.length>0&&n.push(l(i)),0===n.length?{type:"const",const:""}:1===n.length?n[0]:{type:"or",expr:n}}(e):function(e){for(let t=0;t<e.length;t++)if(a(e,t))return!0;return!1}(e)?function(e){function t(e,t){if(!a(e,t))throw new i("TemplateLiteralParser: Index must point to open parens");let r=0;for(let n=t;n<e.length;n++)if(a(e,n)&&(r+=1),c(e,n)&&(r-=1),0===r)return[t,n];throw new i("TemplateLiteralParser: Unclosed group parens in expression")}function r(e,t){for(let r=t;r<e.length;r++)if(a(e,r))return[t,r];return[t,e.length]}const n=[];for(let i=0;i<e.length;i++)if(a(e,i)){const[r,o]=t(e,i),s=e.slice(r,o+1);n.push(l(s)),i=o}else{const[t,o]=r(e,i),s=e.slice(t,o);s.length>0&&n.push(l(s)),i=o-1}return 0===n.length?{type:"const",const:""}:1===n.length?n[0]:{type:"and",expr:n}}(e):{type:"const",const:o(e)}}r.TemplateLiteralParserError=i}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/template-literal/parse.js"}],[3508,{"../error/index":3379,"../guard/kind":3397,"../patterns/index":3458,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TemplateLiteralPatternError=void 0,r.TemplateLiteralPattern=function(e){return`^${e.map((e=>c(e,""))).join("")}$`};const n=e("../patterns/index"),i=e("../symbols/index"),o=e("../error/index"),s=e("../guard/kind");class a extends o.TypeBoxError{}function c(e,t){return(0,s.IsTemplateLiteral)(e)?e.pattern.slice(1,e.pattern.length-1):(0,s.IsUnion)(e)?`(${e.anyOf.map((e=>c(e,t))).join("|")})`:(0,s.IsNumber)(e)||(0,s.IsInteger)(e)||(0,s.IsBigInt)(e)?`${t}${n.PatternNumber}`:(0,s.IsString)(e)?`${t}${n.PatternString}`:(0,s.IsLiteral)(e)?`${t}${r=e.const.toString(),r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`:(0,s.IsBoolean)(e)?`${t}${n.PatternBoolean}`:(()=>{throw new a(`Unexpected Kind '${e[i.Kind]}'`)})();var r}r.TemplateLiteralPatternError=a}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/template-literal/pattern.js"}],[3509,{"../bigint/index":3353,"../boolean/index":3355,"../literal/index":3430,"../never/index":3436,"../number/index":3442,"../string/index":3498,"../union/index":3524},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TemplateLiteralSyntax=function(e){return[...d(e)]};const n=e("../literal/index"),i=e("../boolean/index"),o=e("../bigint/index"),s=e("../number/index"),a=e("../string/index"),c=e("../union/index"),u=e("../never/index");function*l(e){const t=e.trim().replace(/"|'/g,"");return"boolean"===t?yield(0,i.Boolean)():"number"===t?yield(0,s.Number)():"bigint"===t?yield(0,o.BigInt)():"string"===t?yield(0,a.String)():yield(()=>{const e=t.split("|").map((e=>(0,n.Literal)(e.trim())));return 0===e.length?(0,u.Never)():1===e.length?e[0]:(0,c.UnionEvaluated)(e)})()}function*p(e){if("{"!==e[1]){const t=(0,n.Literal)("$"),r=d(e.slice(1));return yield*[t,...r]}for(let t=2;t<e.length;t++)if("}"===e[t]){const r=l(e.slice(2,t)),n=d(e.slice(t+1));return yield*[...r,...n]}yield(0,n.Literal)(e)}function*d(e){for(let t=0;t<e.length;t++)if("$"===e[t]){const r=(0,n.Literal)(e.slice(0,t)),i=p(e.slice(t));return yield*[r,...i]}yield(0,n.Literal)(e)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/template-literal/syntax.js"}],[3510,{"../create/type":3369,"../guard/value":3399,"../symbols/index":3502,"./pattern":3508,"./syntax":3509},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TemplateLiteral=function(e,t){const r=(0,s.IsString)(e)?(0,o.TemplateLiteralPattern)((0,i.TemplateLiteralSyntax)(e)):(0,o.TemplateLiteralPattern)(e);return(0,n.CreateType)({[a.Kind]:"TemplateLiteral",type:"string",pattern:r},t)};const n=e("../create/type"),i=e("./syntax"),o=e("./pattern"),s=e("../guard/value"),a=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/template-literal/template-literal.js"}],[3511,{"../literal/index":3430,"../union/index":3524,"./generate":3505},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TemplateLiteralToUnion=function(e){const t=(0,o.TemplateLiteralGenerate)(e).map((e=>(0,i.Literal)(e)));return(0,n.UnionEvaluated)(t)};const n=e("../union/index"),i=e("../literal/index"),o=e("./generate")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/template-literal/union.js"}],[3512,{"./transform":3513},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./transform"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/transform/index.js"}],[3513,{"../guard/kind":3397,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TransformEncodeBuilder=r.TransformDecodeBuilder=void 0,r.Transform=function(e){return new o(e)};const n=e("../symbols/index"),i=e("../guard/kind");class o{constructor(e){this.schema=e}Decode(e){return new s(this.schema,e)}}r.TransformDecodeBuilder=o;class s{constructor(e,t){this.schema=e,this.decode=t}EncodeTransform(e,t){const r={Encode:r=>t[n.TransformKind].Encode(e(r)),Decode:e=>this.decode(t[n.TransformKind].Decode(e))};return{...t,[n.TransformKind]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[n.TransformKind]:r}}Encode(e){return(0,i.IsTransform)(this.schema)?this.EncodeTransform(e,this.schema):this.EncodeSchema(e,this.schema)}}r.TransformEncodeBuilder=s}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/transform/transform.js"}],[3514,{"./tuple":3515},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./tuple"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/tuple/index.js"}],[3515,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Tuple=function(e,t){return(0,n.CreateType)(e.length>0?{[i.Kind]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[i.Kind]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},t)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/tuple/tuple.js"}],[3516,{"./javascript":3517,"./json":3518,"./type":3519},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Type=r.JavaScriptTypeBuilder=r.JsonTypeBuilder=void 0;var n=e("./json");Object.defineProperty(r,"JsonTypeBuilder",{enumerable:!0,get:function(){return n.JsonTypeBuilder}});const i=e("./type"),o=e("./javascript");Object.defineProperty(r,"JavaScriptTypeBuilder",{enumerable:!0,get:function(){return o.JavaScriptTypeBuilder}});const s=i;r.Type=s}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/type/index.js"}],[3517,{"../async-iterator/index":3349,"../awaited/index":3351,"../bigint/index":3353,"../constructor-parameters/index":3364,"../constructor/index":3366,"../date/index":3371,"../function/index":3395,"../instance-type/index":3407,"../iterator/index":3423,"../parameters/index":3453,"../promise/index":3464,"../regexp/index":3477,"../return-type/index":3487,"../symbol/index":3500,"../uint8array/index":3520,"../undefined/index":3522,"../void/index":3533,"./json":3518},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.JavaScriptTypeBuilder=void 0;const n=e("./json"),i=e("../async-iterator/index"),o=e("../awaited/index"),s=e("../bigint/index"),a=e("../constructor/index"),c=e("../constructor-parameters/index"),u=e("../date/index"),l=e("../function/index"),p=e("../instance-type/index"),d=e("../iterator/index"),h=e("../parameters/index"),f=e("../promise/index"),y=e("../regexp/index"),m=e("../return-type/index"),T=e("../symbol/index"),g=e("../uint8array/index"),b=e("../undefined/index"),_=e("../void/index");class O extends n.JsonTypeBuilder{AsyncIterator(e,t){return(0,i.AsyncIterator)(e,t)}Awaited(e,t){return(0,o.Awaited)(e,t)}BigInt(e){return(0,s.BigInt)(e)}ConstructorParameters(e,t){return(0,c.ConstructorParameters)(e,t)}Constructor(e,t,r){return(0,a.Constructor)(e,t,r)}Date(e={}){return(0,u.Date)(e)}Function(e,t,r){return(0,l.Function)(e,t,r)}InstanceType(e,t){return(0,p.InstanceType)(e,t)}Iterator(e,t){return(0,d.Iterator)(e,t)}Parameters(e,t){return(0,h.Parameters)(e,t)}Promise(e,t){return(0,f.Promise)(e,t)}RegExp(e,t){return(0,y.RegExp)(e,t)}ReturnType(e,t){return(0,m.ReturnType)(e,t)}Symbol(e){return(0,T.Symbol)(e)}Undefined(e){return(0,b.Undefined)(e)}Uint8Array(e){return(0,g.Uint8Array)(e)}Void(e){return(0,_.Void)(e)}}r.JavaScriptTypeBuilder=O}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/type/javascript.js"}],[3518,{"../any/index":3345,"../array/index":3347,"../boolean/index":3355,"../composite/index":3360,"../const/index":3362,"../deref/index":3373,"../enum/index":3377,"../exclude/index":3383,"../extends/index":3389,"../extract/index":3393,"../indexed/index":3402,"../integer/index":3409,"../intersect/index":3411,"../intrinsic/index":3417,"../keyof/index":3425,"../literal/index":3430,"../mapped/index":3432,"../never/index":3436,"../not/index":3438,"../null/index":3440,"../number/index":3442,"../object/index":3444,"../omit/index":3446,"../optional/index":3450,"../partial/index":3455,"../pick/index":3460,"../readonly-optional/index":3466,"../readonly/index":3468,"../record/index":3471,"../recursive/index":3473,"../ref/index":3475,"../required/index":3482,"../rest/index":3485,"../strict/index":3496,"../string/index":3498,"../template-literal/index":3506,"../transform/index":3512,"../tuple/index":3514,"../union/index":3524,"../unknown/index":3529,"../unsafe/index":3531},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.JsonTypeBuilder=void 0;const n=e("../any/index"),i=e("../array/index"),o=e("../boolean/index"),s=e("../composite/index"),a=e("../const/index"),c=e("../deref/index"),u=e("../enum/index"),l=e("../exclude/index"),p=e("../extends/index"),d=e("../extract/index"),h=e("../indexed/index"),f=e("../integer/index"),y=e("../intersect/index"),m=e("../intrinsic/index"),T=e("../keyof/index"),g=e("../literal/index"),b=e("../mapped/index"),_=e("../never/index"),O=e("../not/index"),E=e("../null/index"),S=e("../number/index"),v=e("../object/index"),x=e("../omit/index"),w=e("../optional/index"),A=e("../partial/index"),R=e("../pick/index"),I=e("../readonly/index"),P=e("../readonly-optional/index"),N=e("../record/index"),C=e("../recursive/index"),j=e("../ref/index"),k=e("../required/index"),M=e("../rest/index"),L=e("../strict/index"),D=e("../string/index"),B=e("../template-literal/index"),z=e("../transform/index"),U=e("../tuple/index"),F=e("../union/index"),$=e("../unknown/index"),G=e("../unsafe/index");r.JsonTypeBuilder=class{Strict(e){return(0,L.Strict)(e)}ReadonlyOptional(e){return(0,P.ReadonlyOptional)(e)}Readonly(e,t){return(0,I.Readonly)(e,t??!0)}Optional(e,t){return(0,w.Optional)(e,t??!0)}Any(e){return(0,n.Any)(e)}Array(e,t){return(0,i.Array)(e,t)}Boolean(e){return(0,o.Boolean)(e)}Capitalize(e,t){return(0,m.Capitalize)(e,t)}Composite(e,t){return(0,s.Composite)(e,t)}Const(e,t){return(0,a.Const)(e,t)}Deref(e,t){return(0,c.Deref)(e,t)}Enum(e,t){return(0,u.Enum)(e,t)}Exclude(e,t,r){return(0,l.Exclude)(e,t,r)}Extends(e,t,r,n,i){return(0,p.Extends)(e,t,r,n,i)}Extract(e,t,r){return(0,d.Extract)(e,t,r)}Index(e,t,r){return(0,h.Index)(e,t,r)}Integer(e){return(0,f.Integer)(e)}Intersect(e,t){return(0,y.Intersect)(e,t)}KeyOf(e,t){return(0,T.KeyOf)(e,t)}Literal(e,t){return(0,g.Literal)(e,t)}Lowercase(e,t){return(0,m.Lowercase)(e,t)}Mapped(e,t,r){return(0,b.Mapped)(e,t,r)}Never(e){return(0,_.Never)(e)}Not(e,t){return(0,O.Not)(e,t)}Null(e){return(0,E.Null)(e)}Number(e){return(0,S.Number)(e)}Object(e,t){return(0,v.Object)(e,t)}Omit(e,t,r){return(0,x.Omit)(e,t,r)}Partial(e,t){return(0,A.Partial)(e,t)}Pick(e,t,r){return(0,R.Pick)(e,t,r)}Record(e,t,r){return(0,N.Record)(e,t,r)}Recursive(e,t){return(0,C.Recursive)(e,t)}Ref(e,t){return(0,j.Ref)(e,t)}Required(e,t){return(0,k.Required)(e,t)}Rest(e){return(0,M.Rest)(e)}String(e){return(0,D.String)(e)}TemplateLiteral(e,t){return(0,B.TemplateLiteral)(e,t)}Transform(e){return(0,z.Transform)(e)}Tuple(e,t){return(0,U.Tuple)(e,t)}Uncapitalize(e,t){return(0,m.Uncapitalize)(e,t)}Union(e,t){return(0,F.Union)(e,t)}Unknown(e){return(0,$.Unknown)(e)}Unsafe(e){return(0,G.Unsafe)(e)}Uppercase(e,t){return(0,m.Uppercase)(e,t)}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/type/json.js"}],[3519,{"../any/index":3345,"../array/index":3347,"../async-iterator/index":3349,"../awaited/index":3351,"../bigint/index":3353,"../boolean/index":3355,"../composite/index":3360,"../const/index":3362,"../constructor-parameters/index":3364,"../constructor/index":3366,"../date/index":3371,"../deref/index":3373,"../enum/index":3377,"../exclude/index":3383,"../extends/index":3389,"../extract/index":3393,"../function/index":3395,"../indexed/index":3402,"../instance-type/index":3407,"../integer/index":3409,"../intersect/index":3411,"../intrinsic/index":3417,"../iterator/index":3423,"../keyof/index":3425,"../literal/index":3430,"../mapped/index":3432,"../never/index":3436,"../not/index":3438,"../null/index":3440,"../number/index":3442,"../object/index":3444,"../omit/index":3446,"../optional/index":3450,"../parameters/index":3453,"../partial/index":3455,"../pick/index":3460,"../promise/index":3464,"../readonly-optional/index":3466,"../readonly/index":3468,"../record/index":3471,"../recursive/index":3473,"../ref/index":3475,"../regexp/index":3477,"../required/index":3482,"../rest/index":3485,"../return-type/index":3487,"../strict/index":3496,"../string/index":3498,"../symbol/index":3500,"../template-literal/index":3506,"../transform/index":3512,"../tuple/index":3514,"../uint8array/index":3520,"../undefined/index":3522,"../union/index":3524,"../unknown/index":3529,"../unsafe/index":3531,"../void/index":3533},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.String=r.ReturnType=r.Rest=r.Required=r.RegExp=r.Ref=r.Recursive=r.Record=r.ReadonlyOptional=r.Readonly=r.Promise=r.Pick=r.Partial=r.Parameters=r.Optional=r.Omit=r.Object=r.Number=r.Null=r.Not=r.Never=r.Mapped=r.Literal=r.KeyOf=r.Iterator=r.Uppercase=r.Lowercase=r.Uncapitalize=r.Capitalize=r.Intersect=r.Integer=r.InstanceType=r.Index=r.Function=r.Extract=r.Extends=r.Exclude=r.Enum=r.Deref=r.Date=r.ConstructorParameters=r.Constructor=r.Const=r.Composite=r.Boolean=r.BigInt=r.Awaited=r.AsyncIterator=r.Array=r.Any=void 0,r.Void=r.Unsafe=r.Unknown=r.Union=r.Undefined=r.Uint8Array=r.Tuple=r.Transform=r.TemplateLiteral=r.Symbol=r.Strict=void 0;var n=e("../any/index");Object.defineProperty(r,"Any",{enumerable:!0,get:function(){return n.Any}});var i=e("../array/index");Object.defineProperty(r,"Array",{enumerable:!0,get:function(){return i.Array}});var o=e("../async-iterator/index");Object.defineProperty(r,"AsyncIterator",{enumerable:!0,get:function(){return o.AsyncIterator}});var s=e("../awaited/index");Object.defineProperty(r,"Awaited",{enumerable:!0,get:function(){return s.Awaited}});var a=e("../bigint/index");Object.defineProperty(r,"BigInt",{enumerable:!0,get:function(){return a.BigInt}});var c=e("../boolean/index");Object.defineProperty(r,"Boolean",{enumerable:!0,get:function(){return c.Boolean}});var u=e("../composite/index");Object.defineProperty(r,"Composite",{enumerable:!0,get:function(){return u.Composite}});var l=e("../const/index");Object.defineProperty(r,"Const",{enumerable:!0,get:function(){return l.Const}});var p=e("../constructor/index");Object.defineProperty(r,"Constructor",{enumerable:!0,get:function(){return p.Constructor}});var d=e("../constructor-parameters/index");Object.defineProperty(r,"ConstructorParameters",{enumerable:!0,get:function(){return d.ConstructorParameters}});var h=e("../date/index");Object.defineProperty(r,"Date",{enumerable:!0,get:function(){return h.Date}});var f=e("../deref/index");Object.defineProperty(r,"Deref",{enumerable:!0,get:function(){return f.Deref}});var y=e("../enum/index");Object.defineProperty(r,"Enum",{enumerable:!0,get:function(){return y.Enum}});var m=e("../exclude/index");Object.defineProperty(r,"Exclude",{enumerable:!0,get:function(){return m.Exclude}});var T=e("../extends/index");Object.defineProperty(r,"Extends",{enumerable:!0,get:function(){return T.Extends}});var g=e("../extract/index");Object.defineProperty(r,"Extract",{enumerable:!0,get:function(){return g.Extract}});var b=e("../function/index");Object.defineProperty(r,"Function",{enumerable:!0,get:function(){return b.Function}});var _=e("../indexed/index");Object.defineProperty(r,"Index",{enumerable:!0,get:function(){return _.Index}});var O=e("../instance-type/index");Object.defineProperty(r,"InstanceType",{enumerable:!0,get:function(){return O.InstanceType}});var E=e("../integer/index");Object.defineProperty(r,"Integer",{enumerable:!0,get:function(){return E.Integer}});var S=e("../intersect/index");Object.defineProperty(r,"Intersect",{enumerable:!0,get:function(){return S.Intersect}});var v=e("../intrinsic/index");Object.defineProperty(r,"Capitalize",{enumerable:!0,get:function(){return v.Capitalize}}),Object.defineProperty(r,"Uncapitalize",{enumerable:!0,get:function(){return v.Uncapitalize}}),Object.defineProperty(r,"Lowercase",{enumerable:!0,get:function(){return v.Lowercase}}),Object.defineProperty(r,"Uppercase",{enumerable:!0,get:function(){return v.Uppercase}});var x=e("../iterator/index");Object.defineProperty(r,"Iterator",{enumerable:!0,get:function(){return x.Iterator}});var w=e("../keyof/index");Object.defineProperty(r,"KeyOf",{enumerable:!0,get:function(){return w.KeyOf}});var A=e("../literal/index");Object.defineProperty(r,"Literal",{enumerable:!0,get:function(){return A.Literal}});var R=e("../mapped/index");Object.defineProperty(r,"Mapped",{enumerable:!0,get:function(){return R.Mapped}});var I=e("../never/index");Object.defineProperty(r,"Never",{enumerable:!0,get:function(){return I.Never}});var P=e("../not/index");Object.defineProperty(r,"Not",{enumerable:!0,get:function(){return P.Not}});var N=e("../null/index");Object.defineProperty(r,"Null",{enumerable:!0,get:function(){return N.Null}});var C=e("../number/index");Object.defineProperty(r,"Number",{enumerable:!0,get:function(){return C.Number}});var j=e("../object/index");Object.defineProperty(r,"Object",{enumerable:!0,get:function(){return j.Object}});var k=e("../omit/index");Object.defineProperty(r,"Omit",{enumerable:!0,get:function(){return k.Omit}});var M=e("../optional/index");Object.defineProperty(r,"Optional",{enumerable:!0,get:function(){return M.Optional}});var L=e("../parameters/index");Object.defineProperty(r,"Parameters",{enumerable:!0,get:function(){return L.Parameters}});var D=e("../partial/index");Object.defineProperty(r,"Partial",{enumerable:!0,get:function(){return D.Partial}});var B=e("../pick/index");Object.defineProperty(r,"Pick",{enumerable:!0,get:function(){return B.Pick}});var z=e("../promise/index");Object.defineProperty(r,"Promise",{enumerable:!0,get:function(){return z.Promise}});var U=e("../readonly/index");Object.defineProperty(r,"Readonly",{enumerable:!0,get:function(){return U.Readonly}});var F=e("../readonly-optional/index");Object.defineProperty(r,"ReadonlyOptional",{enumerable:!0,get:function(){return F.ReadonlyOptional}});var $=e("../record/index");Object.defineProperty(r,"Record",{enumerable:!0,get:function(){return $.Record}});var G=e("../recursive/index");Object.defineProperty(r,"Recursive",{enumerable:!0,get:function(){return G.Recursive}});var H=e("../ref/index");Object.defineProperty(r,"Ref",{enumerable:!0,get:function(){return H.Ref}});var K=e("../regexp/index");Object.defineProperty(r,"RegExp",{enumerable:!0,get:function(){return K.RegExp}});var V=e("../required/index");Object.defineProperty(r,"Required",{enumerable:!0,get:function(){return V.Required}});var q=e("../rest/index");Object.defineProperty(r,"Rest",{enumerable:!0,get:function(){return q.Rest}});var W=e("../return-type/index");Object.defineProperty(r,"ReturnType",{enumerable:!0,get:function(){return W.ReturnType}});var Y=e("../string/index");Object.defineProperty(r,"String",{enumerable:!0,get:function(){return Y.String}});var Q=e("../strict/index");Object.defineProperty(r,"Strict",{enumerable:!0,get:function(){return Q.Strict}});var X=e("../symbol/index");Object.defineProperty(r,"Symbol",{enumerable:!0,get:function(){return X.Symbol}});var J=e("../template-literal/index");Object.defineProperty(r,"TemplateLiteral",{enumerable:!0,get:function(){return J.TemplateLiteral}});var Z=e("../transform/index");Object.defineProperty(r,"Transform",{enumerable:!0,get:function(){return Z.Transform}});var ee=e("../tuple/index");Object.defineProperty(r,"Tuple",{enumerable:!0,get:function(){return ee.Tuple}});var te=e("../uint8array/index");Object.defineProperty(r,"Uint8Array",{enumerable:!0,get:function(){return te.Uint8Array}});var re=e("../undefined/index");Object.defineProperty(r,"Undefined",{enumerable:!0,get:function(){return re.Undefined}});var ne=e("../union/index");Object.defineProperty(r,"Union",{enumerable:!0,get:function(){return ne.Union}});var ie=e("../unknown/index");Object.defineProperty(r,"Unknown",{enumerable:!0,get:function(){return ie.Unknown}});var oe=e("../unsafe/index");Object.defineProperty(r,"Unsafe",{enumerable:!0,get:function(){return oe.Unsafe}});var se=e("../void/index");Object.defineProperty(r,"Void",{enumerable:!0,get:function(){return se.Void}})}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/type/type.js"}],[3520,{"./uint8array":3521},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./uint8array"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/uint8array/index.js"}],[3521,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Uint8Array=function(e){return(0,n.CreateType)({[i.Kind]:"Uint8Array",type:"Uint8Array"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/uint8array/uint8array.js"}],[3522,{"./undefined":3523},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./undefined"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/undefined/index.js"}],[3523,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Undefined=function(e){return(0,n.CreateType)({[i.Kind]:"Undefined",type:"undefined"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/undefined/undefined.js"}],[3524,{"./union":3528,"./union-evaluated":3526,"./union-type":3527},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./union-evaluated"),r),i(e("./union-type"),r),i(e("./union"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/union/index.js"}],[3525,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UnionCreate=function(e,t){return(0,n.CreateType)({[i.Kind]:"Union",anyOf:e},t)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/union/union-create.js"}],[3526,{"../create/type":3369,"../discard/index":3375,"../guard/kind":3397,"../never/index":3436,"../optional/index":3450,"../symbols/index":3502,"./union-create":3525},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UnionEvaluated=function(e,t){return 0===e.length?(0,s.Never)(t):1===e.length?(0,n.CreateType)(e[0],t):function(e,t){return function(e){return e.some((e=>(0,u.IsOptional)(e)))}(e)?(0,a.Optional)((0,c.UnionCreate)(l(e),t)):(0,c.UnionCreate)(l(e),t)}(e,t)};const n=e("../create/type"),i=e("../symbols/index"),o=e("../discard/index"),s=e("../never/index"),a=e("../optional/index"),c=e("./union-create"),u=e("../guard/kind");function l(e){return e.map((e=>(0,u.IsOptional)(e)?function(e){return(0,o.Discard)(e,[i.OptionalKind])}(e):e))}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/union/union-evaluated.js"}],[3527,{"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/union/union-type.js"}],[3528,{"../create/type":3369,"../never/index":3436,"./union-create":3525},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Union=function(e,t){return 0===e.length?(0,n.Never)(t):1===e.length?(0,i.CreateType)(e[0],t):(0,o.UnionCreate)(e,t)};const n=e("../never/index"),i=e("../create/type"),o=e("./union-create")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/union/union.js"}],[3529,{"./unknown":3530},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./unknown"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/unknown/index.js"}],[3530,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Unknown=function(e){return(0,n.CreateType)({[i.Kind]:"Unknown"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/unknown/unknown.js"}],[3531,{"./unsafe":3532},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./unsafe"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/unsafe/index.js"}],[3532,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Unsafe=function(e={}){return(0,n.CreateType)({[i.Kind]:e[i.Kind]??"Unsafe"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/unsafe/unsafe.js"}],[3533,{"./void":3534},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./void"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/void/index.js"}],[3534,{"../create/type":3369,"../symbols/index":3502},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Void=function(e){return(0,n.CreateType)({[i.Kind]:"Void",type:"void"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/void/void.js"}],[3535,{"../../system/index":3341,"../../type/error/index":3379,"../../type/extends/index":3389,"../../type/guard/type":3398,"../../type/keyof/index":3425,"../../type/never/index":3436,"../../type/registry/index":3480,"../../type/symbols/index":3502,"../deref/index":3538,"../guard/index":3540,"../hash/index":3542},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueCheckUnknownTypeError=void 0,r.Check=function(...e){return 3===e.length?T(e[0],e[1],e[2]):T(e[0],[],e[1])};const n=e("../../system/index"),i=e("../deref/index"),o=e("../hash/index"),s=e("../../type/symbols/index"),a=e("../../type/keyof/index"),c=e("../../type/extends/index"),u=e("../../type/registry/index"),l=e("../../type/error/index"),p=e("../../type/never/index"),d=e("../guard/index"),h=e("../../type/guard/type");class f extends l.TypeBoxError{constructor(e){super("Unknown type"),this.schema=e}}function y(e){return"Any"===e[s.Kind]||"Unknown"===e[s.Kind]}function m(e){return e!==undefined}function T(e,t,r){const l=m(e.$id)?[...t,e]:t,g=e;switch(g[s.Kind]){case"Any":case"Unknown":return!0;case"Array":return function(e,t,r){if(!(0,d.IsArray)(r))return!1;if(m(e.minItems)&&!(r.length>=e.minItems))return!1;if(m(e.maxItems)&&!(r.length<=e.maxItems))return!1;if(!r.every((r=>T(e.items,t,r))))return!1;if(!0===e.uniqueItems&&!function(){const e=new Set;for(const t of r){const r=(0,o.Hash)(t);if(e.has(r))return!1;e.add(r)}return!0}())return!1;if(!(m(e.contains)||(0,d.IsNumber)(e.minContains)||(0,d.IsNumber)(e.maxContains)))return!0;const n=m(e.contains)?e.contains:(0,p.Never)(),i=r.reduce(((e,r)=>T(n,t,r)?e+1:e),0);return!(0===i||(0,d.IsNumber)(e.minContains)&&i<e.minContains||(0,d.IsNumber)(e.maxContains)&&i>e.maxContains)}(g,l,r);case"AsyncIterator":return function(e,t,r){return(0,d.IsAsyncIterator)(r)}(0,0,r);case"BigInt":return function(e,t,r){return!(!(0,d.IsBigInt)(r)||m(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||m(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||m(e.maximum)&&!(r<=e.maximum)||m(e.minimum)&&!(r>=e.minimum)||m(e.multipleOf)&&r%e.multipleOf!==BigInt(0))}(g,0,r);case"Boolean":return function(e,t,r){return(0,d.IsBoolean)(r)}(0,0,r);case"Constructor":return function(e,t,r){return T(e.returns,t,r.prototype)}(g,l,r);case"Date":return function(e,t,r){return!(!(0,d.IsDate)(r)||m(e.exclusiveMaximumTimestamp)&&!(r.getTime()<e.exclusiveMaximumTimestamp)||m(e.exclusiveMinimumTimestamp)&&!(r.getTime()>e.exclusiveMinimumTimestamp)||m(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)||m(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)||m(e.multipleOfTimestamp)&&r.getTime()%e.multipleOfTimestamp!=0)}(g,0,r);case"Function":return function(e,t,r){return(0,d.IsFunction)(r)}(0,0,r);case"Integer":return function(e,t,r){return!(!(0,d.IsInteger)(r)||m(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||m(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||m(e.maximum)&&!(r<=e.maximum)||m(e.minimum)&&!(r>=e.minimum)||m(e.multipleOf)&&r%e.multipleOf!=0)}(g,0,r);case"Intersect":return function(e,t,r){const n=e.allOf.every((e=>T(e,t,r)));if(!1===e.unevaluatedProperties){const t=new RegExp((0,a.KeyOfPattern)(e)),i=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&i}if((0,h.IsSchema)(e.unevaluatedProperties)){const i=new RegExp((0,a.KeyOfPattern)(e)),o=Object.getOwnPropertyNames(r).every((n=>i.test(n)||T(e.unevaluatedProperties,t,r[n])));return n&&o}return n}(g,l,r);case"Iterator":return function(e,t,r){return(0,d.IsIterator)(r)}(0,0,r);case"Literal":return function(e,t,r){return r===e.const}(g,0,r);case"Never":return!1;case"Not":return function(e,t,r){return!T(e.not,t,r)}(g,l,r);case"Null":return function(e,t,r){return(0,d.IsNull)(r)}(0,0,r);case"Number":return function(e,t,r){return!(!n.TypeSystemPolicy.IsNumberLike(r)||m(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||m(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||m(e.minimum)&&!(r>=e.minimum)||m(e.maximum)&&!(r<=e.maximum)||m(e.multipleOf)&&r%e.multipleOf!=0)}(g,0,r);case"Object":return function(e,t,r){if(!n.TypeSystemPolicy.IsObjectLike(r))return!1;if(m(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties))return!1;if(m(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties))return!1;const i=Object.getOwnPropertyNames(e.properties);for(const o of i){const i=e.properties[o];if(e.required&&e.required.includes(o)){if(!T(i,t,r[o]))return!1;if(((0,c.ExtendsUndefinedCheck)(i)||y(i))&&!(o in r))return!1}else if(n.TypeSystemPolicy.IsExactOptionalProperty(r,o)&&!T(i,t,r[o]))return!1}if(!1===e.additionalProperties){const t=Object.getOwnPropertyNames(r);return!(!e.required||e.required.length!==i.length||t.length!==i.length)||t.every((e=>i.includes(e)))}if("object"==typeof e.additionalProperties)return Object.getOwnPropertyNames(r).every((n=>i.includes(n)||T(e.additionalProperties,t,r[n])));return!0}(g,l,r);case"Promise":return function(e,t,r){return(0,d.IsPromise)(r)}(0,0,r);case"Record":return function(e,t,r){if(!n.TypeSystemPolicy.IsRecordLike(r))return!1;if(m(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties))return!1;if(m(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties))return!1;const[i,o]=Object.entries(e.patternProperties)[0],s=new RegExp(i),a=Object.entries(r).every((([e,r])=>!s.test(e)||T(o,t,r))),c="object"!=typeof e.additionalProperties||Object.entries(r).every((([r,n])=>!!s.test(r)||T(e.additionalProperties,t,n))),u=!1!==e.additionalProperties||Object.getOwnPropertyNames(r).every((e=>s.test(e)));return a&&c&&u}(g,l,r);case"Ref":case"This":return function(e,t,r){return T((0,i.Deref)(e,t),t,r)}(g,l,r);case"RegExp":return function(e,t,r){const n=new RegExp(e.source,e.flags);return(!m(e.minLength)||r.length>=e.minLength)&&(!m(e.maxLength)||r.length<=e.maxLength)&&n.test(r)}(g,0,r);case"String":return function(e,t,r){if(!(0,d.IsString)(r))return!1;if(m(e.minLength)&&!(r.length>=e.minLength))return!1;if(m(e.maxLength)&&!(r.length<=e.maxLength))return!1;if(m(e.pattern)&&!new RegExp(e.pattern).test(r))return!1;if(m(e.format))return!!u.FormatRegistry.Has(e.format)&&u.FormatRegistry.Get(e.format)(r);return!0}(g,0,r);case"Symbol":return function(e,t,r){return(0,d.IsSymbol)(r)}(0,0,r);case"TemplateLiteral":return function(e,t,r){return(0,d.IsString)(r)&&new RegExp(e.pattern).test(r)}(g,0,r);case"Tuple":return function(e,t,r){if(!(0,d.IsArray)(r))return!1;if(e.items===undefined&&0!==r.length)return!1;if(r.length!==e.maxItems)return!1;if(!e.items)return!0;for(let n=0;n<e.items.length;n++)if(!T(e.items[n],t,r[n]))return!1;return!0}(g,l,r);case"Undefined":return function(e,t,r){return(0,d.IsUndefined)(r)}(0,0,r);case"Union":return function(e,t,r){return e.anyOf.some((e=>T(e,t,r)))}(g,l,r);case"Uint8Array":return function(e,t,r){return!!(0,d.IsUint8Array)(r)&&(!m(e.maxByteLength)||r.length<=e.maxByteLength)&&(!m(e.minByteLength)||r.length>=e.minByteLength)}(g,0,r);case"Void":return function(e,t,r){return n.TypeSystemPolicy.IsVoidLike(r)}(0,0,r);default:if(!u.TypeRegistry.Has(g[s.Kind]))throw new f(g);return function(e,t,r){return!!u.TypeRegistry.Has(e[s.Kind])&&u.TypeRegistry.Get(e[s.Kind])(e,r)}(g,0,r)}}r.ValueCheckUnknownTypeError=f}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/value/check/check.js"}],[3536,{"./check":3535},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./check"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/value/check/index.js"}],[3537,{"../../type/error/index":3379,"../../type/symbols/index":3502,"../guard/guard":3539},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TypeDereferenceError=void 0,r.Pushref=function(e,t){return!(0,o.IsString)(e.$id)||t.some((t=>t.$id===e.$id))||t.push(e),t},r.Deref=a;const n=e("../../type/error/index"),i=e("../../type/symbols/index"),o=e("../guard/guard");class s extends n.TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$ref}'`),this.schema=e}}function a(e,t){return"This"===e[i.Kind]||"Ref"===e[i.Kind]?function(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new s(e);return a(r,t)}(e,t):e}r.TypeDereferenceError=s}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/value/deref/deref.js"}],[3538,{"./deref":3537},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./deref"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/value/deref/index.js"}],[3539,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){return null!==e&&"object"==typeof e}function i(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function o(e){return e===undefined}function s(e){return null===e}function a(e){return"boolean"==typeof e}function c(e){return"number"==typeof e}function u(e){return"bigint"==typeof e}function l(e){return"string"==typeof e}function p(e){return"function"==typeof e}function d(e){return"symbol"==typeof e}Object.defineProperty(r,"__esModule",{value:!0}),r.IsAsyncIterator=function(e){return n(e)&&Symbol.asyncIterator in e},r.IsIterator=function(e){return n(e)&&Symbol.iterator in e},r.IsStandardObject=function(e){return n(e)&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))},r.IsInstanceObject=function(e){return n(e)&&!i(e)&&p(e.constructor)&&"Object"!==e.constructor.name},r.IsPromise=function(e){return e instanceof Promise},r.IsDate=function(e){return e instanceof Date&&Number.isFinite(e.getTime())},r.IsMap=function(e){return e instanceof globalThis.Map},r.IsSet=function(e){return e instanceof globalThis.Set},r.IsRegExp=function(e){return e instanceof globalThis.RegExp},r.IsTypedArray=function(e){return ArrayBuffer.isView(e)},r.IsInt8Array=function(e){return e instanceof globalThis.Int8Array},r.IsUint8Array=function(e){return e instanceof globalThis.Uint8Array},r.IsUint8ClampedArray=function(e){return e instanceof globalThis.Uint8ClampedArray},r.IsInt16Array=function(e){return e instanceof globalThis.Int16Array},r.IsUint16Array=function(e){return e instanceof globalThis.Uint16Array},r.IsInt32Array=function(e){return e instanceof globalThis.Int32Array},r.IsUint32Array=function(e){return e instanceof globalThis.Uint32Array},r.IsFloat32Array=function(e){return e instanceof globalThis.Float32Array},r.IsFloat64Array=function(e){return e instanceof globalThis.Float64Array},r.IsBigInt64Array=function(e){return e instanceof globalThis.BigInt64Array},r.IsBigUint64Array=function(e){return e instanceof globalThis.BigUint64Array},r.HasPropertyKey=function(e,t){return t in e},r.IsObject=n,r.IsArray=i,r.IsUndefined=o,r.IsNull=s,r.IsBoolean=a,r.IsNumber=c,r.IsInteger=function(e){return Number.isInteger(e)},r.IsBigInt=u,r.IsString=l,r.IsFunction=p,r.IsSymbol=d,r.IsValueType=function(e){return u(e)||a(e)||s(e)||c(e)||l(e)||d(e)||o(e)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/value/guard/guard.js"}],[3540,{"./guard":3539},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./guard"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/value/guard/index.js"}],[3541,{"../../type/error/index":3379,"../guard/index":3540},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueHashError=void 0,r.Hash=function(e){return a=BigInt("14695981039346656037"),y(e),a};const n=e("../guard/index"),i=e("../../type/error/index");class o extends i.TypeBoxError{constructor(e){super("Unable to hash value"),this.value=e}}var s;r.ValueHashError=o,function(e){e[e.Undefined=0]="Undefined",e[e.Null=1]="Null",e[e.Boolean=2]="Boolean",e[e.Number=3]="Number",e[e.String=4]="String",e[e.Object=5]="Object",e[e.Array=6]="Array",e[e.Date=7]="Date",e[e.Uint8Array=8]="Uint8Array",e[e.Symbol=9]="Symbol",e[e.BigInt=10]="BigInt"}(s||(s={}));let a=BigInt("14695981039346656037");const[c,u]=[BigInt("1099511628211"),BigInt("18446744073709551616")],l=Array.from({length:256}).map(((e,t)=>BigInt(t))),p=new Float64Array(1),d=new DataView(p.buffer),h=new Uint8Array(p.buffer);function*f(e){const t=0===e?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r<t;r++)yield e>>8*(t-1-r)&255}function y(e){if((0,n.IsArray)(e))return function(e){m(s.Array);for(const t of e)y(t)}(e);if((0,n.IsBoolean)(e))return function(e){m(s.Boolean),m(e?1:0)}(e);if((0,n.IsBigInt)(e))return function(e){m(s.BigInt),d.setBigInt64(0,e);for(const e of h)m(e)}(e);if((0,n.IsDate)(e))return function(e){m(s.Date),y(e.getTime())}(e);if(!(0,n.IsNull)(e)){if((0,n.IsNumber)(e))return function(e){m(s.Number),d.setFloat64(0,e);for(const e of h)m(e)}(e);if((0,n.IsObject)(e))return function(e){m(s.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort())y(t),y(e[t])}(e);if((0,n.IsString)(e))return function(e){m(s.String);for(let t=0;t<e.length;t++)for(const r of f(e.charCodeAt(t)))m(r)}(e);if((0,n.IsSymbol)(e))return function(e){m(s.Symbol),y(e.description)}(e);if((0,n.IsUint8Array)(e))return function(e){m(s.Uint8Array);for(let t=0;t<e.length;t++)m(e[t])}(e);if((0,n.IsUndefined)(e))return m(s.Undefined);throw new o(e)}m(s.Null)}function m(e){a^=l[e],a=a*c%u}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/value/hash/hash.js"}],[3542,{"./hash":3541},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./hash"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/value/hash/index.js"}],[3543,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TRANSPORT=r.ACTION_TIMEOUT=r.TREZOR_USB_DESCRIPTORS=r.WEBUSB_BOOTLOADER_PRODUCT=r.T1_HID_PRODUCT=r.T1_HID_VENDOR=r.DEBUGLINK_ENDPOINT_ID=r.DEBUGLINK_INTERFACE_ID=r.ENDPOINT_ID=r.INTERFACE_ID=r.CONFIGURATION_ID=void 0,r.CONFIGURATION_ID=1,r.INTERFACE_ID=0,r.ENDPOINT_ID=1,r.DEBUGLINK_INTERFACE_ID=1,r.DEBUGLINK_ENDPOINT_ID=2,r.T1_HID_VENDOR=21324,r.T1_HID_PRODUCT=1;r.WEBUSB_BOOTLOADER_PRODUCT=21440,r.TREZOR_USB_DESCRIPTORS=[{vendorId:21324,productId:r.T1_HID_PRODUCT},{vendorId:4617,productId:r.WEBUSB_BOOTLOADER_PRODUCT},{vendorId:4617,productId:21441}],r.ACTION_TIMEOUT=1e4,r.TRANSPORT={START:"transport-start",ERROR:"transport-error",DEVICE_CONNECTED:"transport-device_connected",DEVICE_DISCONNECTED:"transport-device_disconnected",DEVICE_SESSION_CHANGED:"transport-device_session_changed",DEVICE_REQUEST_RELEASE:"transport-device_request_release",DISABLE_WEBUSB:"transport-disable_webusb",REQUEST_DEVICE:"transport-request_device",GET_INFO:"transport-get_info"}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/transport",file:"node_modules/@trezor/transport/lib/constants.js"}],[3544,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.addDashesToSpaces=void 0;r.addDashesToSpaces=e=>e.replace(/\s+/g,"-")}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/addDashesToSpaces.js"}],[3545,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.arrayDistinct=void 0;r.arrayDistinct=(e,t,r)=>r.indexOf(e)===t}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/arrayDistinct.js"}],[3546,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.arrayPartition=void 0;r.arrayPartition=(e,t)=>e.reduce((([e,r],n)=>t(n)?[[...e,n],r]:[e,[...r,n]]),[[],[]])}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/arrayPartition.js"}],[3547,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.arrayShuffle=void 0;r.arrayShuffle=(e,{randomInt:t})=>{const r=e.slice();for(let e=r.length-1;e>0;e--){const n=t(0,e+1);[r[e],r[n]]=[r[n],r[e]]}return r}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/arrayShuffle.js"}],[3548,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.arrayToDictionary=void 0;const n=e=>!!["string","number"].includes(typeof e);r.arrayToDictionary=(e,t,r)=>r?e.reduce(((e,r)=>{var i;const o=t(r);return n(o)?Object.assign(Object.assign({},e),{[o]:[...null!==(i=e[o])&&void 0!==i?i:[],r]}):e}),{}):e.reduce(((e,r)=>{const i=t(r);return n(i)?Object.assign(Object.assign({},e),{[i]:r}):e}),{})}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/arrayToDictionary.js"}],[3549,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isAscii=function(e){return!e||!n.test(e)},r.getNonAsciiChars=function(e){return e?e.match(n):null};const n=/[^\x20-\x7E]/g}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/asciiUtils.js"}],[3550,{"bignumber.js":3596,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BigNumber=void 0;const n=e("tslib").__importDefault(e("bignumber.js"));r.BigNumber=n.default.clone({EXPONENTIAL_AT:1e9})}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/bigNumber.js"}],[3551,{buffer:4074},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.getChunkSize=r.reverseBuffer=void 0;r.reverseBuffer=t=>{if(t.length<1)return t;const r=e.alloc(t.length);let n=r.length-1;for(let e=0;e<r.length/2;e++)r[e]=t[n],r[n]=t[e],n--;return r};r.getChunkSize=t=>{const r=e.allocUnsafe(1);return r.writeUInt8(t),r}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/bufferUtils.js"}],[3552,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.bytesToHumanReadable=void 0;const n=["B","KB","MB","GB","TB"];r.bytesToHumanReadable=e=>{let t=Math.abs(e),r=0;for(;t>=1024||r>=n.length;)t/=1024,r++;return`${t.toFixed(1)} ${n[r]}`}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/bytesToHumanReadable.js"}],[3553,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.capitalizeFirstLetter=void 0;r.capitalizeFirstLetter=e=>e.charAt(0).toUpperCase()+e.slice(1)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/capitalizeFirstLetter.js"}],[3554,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.cloneObject=void 0;r.cloneObject=(e,t=new WeakMap)=>{if(null===e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);if(e instanceof ArrayBuffer)return e.slice(0);if(ArrayBuffer.isView(e)){return new(0,e.constructor)(e)}const n=Array.isArray(e)?[]:{};t.set(e,n);for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=e[i];if("function"==typeof o||"symbol"==typeof o)continue;n[i]=(0,r.cloneObject)(o,t)}return n}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/cloneObject.js"}],[3555,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.countBytesInString=void 0;r.countBytesInString=e=>encodeURI(e).split(/%..|./).length-1}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/countBytesInString.js"}],[3556,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createCooldown=void 0;r.createCooldown=e=>{let t=0;return()=>{const r=Date.now();return r-t>=e&&(t=r,!0)}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/createCooldown.js"}],[3557,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createDeferred=void 0;r.createDeferred=e=>{let t=()=>{},r=()=>{};const n=new Promise(((e,n)=>{t=e,r=n}));return{id:e,resolve:t,reject:r,promise:n}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/createDeferred.js"}],[3558,{"./createDeferred":3557},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createDeferredManager=void 0;const n=e("./createDeferred");r.createDeferredManager=e=>{const{initialId:t=0,timeout:r=0,onTimeout:i}=null!=e?e:{},o=[];let s,a=t;const c=()=>{const e=Date.now(),t=o.reduce(((e,{deadline:t})=>(e&&t?Math.min:Math.max)(e,t)),0);s&&clearTimeout(s),s=t?setTimeout(u,Math.max(t-e,0)):undefined},u=()=>{const e=Date.now();o.filter((t=>t.deadline&&t.deadline<=e)).forEach((e=>{null==i||i(e.id),e.deadline=0})),c()},l=e=>{const t=o.findIndex((({id:t})=>t===e)),[r]=t>=0?o.splice(t,1):[undefined];return(null==r?void 0:r.deadline)&&c(),r};return{length:()=>o.length,nextId:()=>a,create:(e=r)=>{const t=a++,i=(0,n.createDeferred)(t),s=e&&Date.now()+e;return o.push(Object.assign(Object.assign({},i),{deadline:s})),e&&c(),{promiseId:t,promise:i.promise}},resolve:(e,t)=>{const r=l(e);return null==r||r.resolve(t),!!r},reject:(e,t)=>{const r=l(e);return null==r||r.reject(t),!!r},rejectAll:e=>{o.forEach((t=>t.reject(e)));o.splice(0,o.length).length&&c()}}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/createDeferredManager.js"}],[3559,{"./createDeferred":3557},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createLazy=void 0;const n=e("./createDeferred");r.createLazy=(e,t)=>{let r,i;return{get:()=>r,getPending:()=>null==i?void 0:i.promise,getOrInit:(...t)=>{if(r!==undefined)return Promise.resolve(r);if(!i){const o=(0,n.createDeferred)();i=o,e(...t).then((e=>{r=e,i=undefined,o.resolve(e)})).catch((e=>{i=undefined,o.reject(e)}))}return i.promise},dispose:()=>{i&&(i.reject(new Error("Disposed during initialization")),i=undefined),r!==undefined&&(null==t||t(r),r=undefined)}}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/createLazy.js"}],[3560,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createTimeoutPromise=void 0;r.createTimeoutPromise=e=>new Promise((t=>setTimeout(t,e)))}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/createTimeoutPromise.js"}],[3561,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getKeyByValue=function(e,t){return e&&Object.keys(e).find((r=>e[r]===t))},r.getValueByKey=function(e,t){const r=e&&Object.keys(e).find((e=>e===t));return r&&e[r]}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/enumUtils.js"}],[3562,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.extractUrlsFromText=void 0;const n=/\b(?:https?:\/\/|www\.)[a-zA-Z0-9-._~:/?#[\]@!$&'()*+,;=%]+\b|(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(?=\b|\s|$|\])/gi;r.extractUrlsFromText=e=>{const t=[],r=[];let i=0;return[...e.matchAll(n)].forEach((n=>{const o=n[0],s=n.index!==undefined?n.index:-1;i<s&&r.push(e.slice(i,s)),t.push(o),i=s+o.length})),i<e.length&&r.push(e.slice(i)),0===r.length&&t.length>0&&r.push(""),{textParts:r,urls:t}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/extractUrlsFromText.js"}],[3563,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getLocaleSeparators=void 0;r.getLocaleSeparators=e=>{var t,r;const n=new Intl.NumberFormat(e).formatToParts(10000.1);return{decimalSeparator:null===(t=n.find((({type:e})=>"decimal"===e)))||void 0===t?void 0:t.value,thousandsSeparator:null===(r=n.find((({type:e})=>"group"===e)))||void 0===r?void 0:r.value}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/getLocaleSeparators.js"}],[3564,{tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getMutex=void 0;const n=e("tslib");r.getMutex=()=>{const e=Symbol(),t={};return(...r)=>n.__awaiter(void 0,[...r],void 0,(function*(r=e){for(;t[r];)yield t[r];let n=()=>{};return t[r]=new Promise((e=>{n=e})).finally((()=>{delete t[r]})),n}))}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/getMutex.js"}],[3565,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getNumberFromPixelString=void 0;r.getNumberFromPixelString=e=>parseInt(e.replace("px",""),10)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/getNumberFromPixelString.js"}],[3566,{crypto:4039},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getRandomInt=void 0;const n=e("crypto");r.getRandomInt=(e,t)=>{if(!Number.isSafeInteger(e))throw new RangeError(`The "min" argument must be a safe integer. Received type ${typeof e} (${e})`);if(!Number.isSafeInteger(t))throw new RangeError(`The "max" argument must be a safe integer. Received type ${typeof t} (${t})`);if(e>=t)throw new RangeError(`The value of "max" is out of range. It must be greater than the value of "min" (${e}). Received ${t}`);const r=4294967296,i=t-e;if(i>r)throw new RangeError("This function only provide 32 bits of entropy, therefore range cannot be more then 2^32.");const o="undefined"!=typeof window?e=>window.crypto.getRandomValues(e):e=>(0,n.getRandomValues)(e),s=new Uint32Array(1),a=r-r%i;let c;do{o(s),c=s[0]}while(c>=a);return e+c%i}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/getRandomInt.js"}],[3567,{"./getMutex":3564},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getSynchronize=void 0;const n=e("./getMutex");r.getSynchronize=e=>{const t=null!=e?e:(0,n.getMutex)();return(e,r)=>t(r).then((t=>Promise.resolve().then(e).finally(t)))}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/getSynchronize.js"}],[3568,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getWeakRandomId=void 0;r.getWeakRandomId=e=>{let t="";const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n<e;n++)t+=r.charAt(Math.floor(62*Math.random()));return t}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/getWeakRandomId.js"}],[3569,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getWeakRandomInt=void 0;r.getWeakRandomInt=(e,t)=>{if(e>=t)throw new RangeError(`The value of "max" is out of range. It must be greater than the value of "min" (${e}). Received ${t}`);return Math.floor(Math.random()*(t-e)+e)}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/getWeakRandomInt.js"}],[3570,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getWeakRandomNumberInRange=void 0;r.getWeakRandomNumberInRange=(e,t)=>Math.floor(Math.random()*(t-e+1))+e}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/getWeakRandomNumberInRange.js"}],[3571,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hasUppercaseLetter=void 0;const n=new RegExp("^(.*[A-Z].*)$");r.hasUppercaseLetter=e=>n.test(e)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/hasUppercaseLetter.js"}],[3572,{"./addDashesToSpaces":3544,"./arrayDistinct":3545,"./arrayPartition":3546,"./arrayShuffle":3547,"./arrayToDictionary":3548,"./asciiUtils":3549,"./bigNumber":3550,"./bufferUtils":3551,"./bytesToHumanReadable":3552,"./capitalizeFirstLetter":3553,"./cloneObject":3554,"./countBytesInString":3555,"./createCooldown":3556,"./createDeferred":3557,"./createDeferredManager":3558,"./createLazy":3559,"./createTimeoutPromise":3560,"./enumUtils":3561,"./extractUrlsFromText":3562,"./getLocaleSeparators":3563,"./getMutex":3564,"./getNumberFromPixelString":3565,"./getRandomInt":3566,"./getSynchronize":3567,"./getWeakRandomId":3568,"./getWeakRandomInt":3569,"./getWeakRandomNumberInRange":3570,"./hasUppercaseLetter":3571,"./isArrayMember":3573,"./isFullPath":3574,"./isHex":3575,"./isNotUndefined":3576,"./isUrl":3577,"./logs":3578,"./logsManager":3579,"./mergeDeepObject":3580,"./objectPartition":3581,"./parseElectrumUrl":3582,"./parseHostname":3583,"./promiseAllSequence":3584,"./redactUserPath":3585,"./scheduleAction":3586,"./splitStringEveryNCharacters":3587,"./throttler":3588,"./throwError":3589,"./topologicalSort":3590,"./truncateMiddle":3591,"./typedEventEmitter":3592,"./urlToOnion":3593,"./versionUtils":3594,"./xssFilters":3595,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.xssFilters=r.versionUtils=r.enumUtils=r.bufferUtils=void 0;const n=e("tslib");r.bufferUtils=n.__importStar(e("./bufferUtils")),r.enumUtils=n.__importStar(e("./enumUtils")),r.versionUtils=n.__importStar(e("./versionUtils")),r.xssFilters=n.__importStar(e("./xssFilters")),n.__exportStar(e("./addDashesToSpaces"),r),n.__exportStar(e("./arrayDistinct"),r),n.__exportStar(e("./arrayPartition"),r),n.__exportStar(e("./arrayShuffle"),r),n.__exportStar(e("./arrayToDictionary"),r),n.__exportStar(e("./bytesToHumanReadable"),r),n.__exportStar(e("./capitalizeFirstLetter"),r),n.__exportStar(e("./cloneObject"),r),n.__exportStar(e("./countBytesInString"),r),n.__exportStar(e("./createCooldown"),r),n.__exportStar(e("./createDeferred"),r),n.__exportStar(e("./createDeferredManager"),r),n.__exportStar(e("./createLazy"),r),n.__exportStar(e("./createTimeoutPromise"),r),n.__exportStar(e("./getLocaleSeparators"),r),n.__exportStar(e("./getMutex"),r),n.__exportStar(e("./getNumberFromPixelString"),r),n.__exportStar(e("./getWeakRandomNumberInRange"),r),n.__exportStar(e("./getSynchronize"),r),n.__exportStar(e("./getRandomInt"),r),n.__exportStar(e("./getWeakRandomId"),r),n.__exportStar(e("./getWeakRandomInt"),r),n.__exportStar(e("./hasUppercaseLetter"),r),n.__exportStar(e("./isArrayMember"),r),n.__exportStar(e("./isHex"),r),n.__exportStar(e("./isNotUndefined"),r),n.__exportStar(e("./isUrl"),r),n.__exportStar(e("./mergeDeepObject"),r),n.__exportStar(e("./objectPartition"),r),n.__exportStar(e("./parseElectrumUrl"),r),n.__exportStar(e("./parseHostname"),r),n.__exportStar(e("./promiseAllSequence"),r),n.__exportStar(e("./redactUserPath"),r),n.__exportStar(e("./scheduleAction"),r),n.__exportStar(e("./splitStringEveryNCharacters"),r),n.__exportStar(e("./throwError"),r),n.__exportStar(e("./topologicalSort"),r),n.__exportStar(e("./truncateMiddle"),r),n.__exportStar(e("./typedEventEmitter"),r),n.__exportStar(e("./urlToOnion"),r),n.__exportStar(e("./logs"),r),n.__exportStar(e("./logsManager"),r),n.__exportStar(e("./bigNumber"),r),n.__exportStar(e("./throttler"),r),n.__exportStar(e("./extractUrlsFromText"),r),n.__exportStar(e("./isFullPath"),r),n.__exportStar(e("./asciiUtils"),r)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/index.js"}],[3573,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isArrayMember=void 0;r.isArrayMember=(e,t)=>t.some((t=>t===e))}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/isArrayMember.js"}],[3574,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isFullPath=void 0;r.isFullPath=e=>/^(\/|([a-zA-Z]:\\))/.test(e)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/isFullPath.js"}],[3575,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isHex=void 0;r.isHex=e=>/^(0x|0X)?[0-9A-Fa-f]+$/g.test(e)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/isHex.js"}],[3576,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isNotUndefined=void 0;r.isNotUndefined=e=>void 0!==e}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/isNotUndefined.js"}],[3577,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isUrl=void 0;const n=/^(http|ws)s?:\/\/[a-z0-9]([a-z0-9.-]+)?(:[0-9]{1,5})?((\/)?(([a-z0-9-_])+(\/)?)+)$/i;r.isUrl=e=>n.test(e)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/isUrl.js"}],[3578,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Log=void 0;r.Log=class{constructor(e,t,r){this.css="",this.MAX_ENTRIES=100,this.prefix=e,this.enabled=t,this.messages=[],r&&(this.logWriter=r)}setColors(e){this.css="undefined"!=typeof window&&e[this.prefix]?e[this.prefix]:""}addMessage({level:e,prefix:t,timestamp:r},...n){const i={level:e,prefix:t,css:this.css,message:n,timestamp:r||Date.now()};if(this.messages.push(i),this.logWriter)try{this.logWriter.add(i)}catch(e){console.error("There was an error adding log message",e,i)}this.messages.length>this.MAX_ENTRIES&&this.messages.shift()}setWriter(e){this.logWriter=e}log(...e){this.addMessage({level:"log",prefix:this.prefix},...e),this.enabled&&console.log(`%c${this.prefix}`,this.css,...e)}error(...e){this.addMessage({level:"error",prefix:this.prefix},...e),this.enabled&&console.error(`%c${this.prefix}`,this.css,...e)}info(...e){this.addMessage({level:"info",prefix:this.prefix},...e),this.enabled&&console.info(`%c${this.prefix}`,this.css,...e)}warn(...e){this.addMessage({level:"warn",prefix:this.prefix},...e),this.enabled&&console.warn(`%c${this.prefix}`,this.css,...e)}debug(...e){this.addMessage({level:"debug",prefix:this.prefix},...e),this.enabled&&(this.css?console.log(`%c${this.prefix}`,this.css,...e):console.log(this.prefix,...e))}getLog(){return this.messages}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/logs.js"}],[3579,{"./logs":3578},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.LogsManager=void 0;const n=e("./logs");r.LogsManager=class{constructor({colors:e}){this.logs={},this.colors={},this.colors=e}initLog(e,t,r){const i=r||this.writer,o=new n.Log(e,!!t,i);return this.colors&&o.setColors(this.colors),this.logs[e]=o,o}setLogWriter(e){Object.keys(this.logs).forEach((t=>{if(this.writer=e(),this.writer){this.logs[t].setWriter(this.writer);const{messages:e}=this.logs[t];e.forEach((e=>{var t;null===(t=this.writer)||void 0===t||t.add(e)}))}}))}enableLog(e){Object.keys(this.logs).forEach((t=>{this.logs[t].enabled=!!e}))}enableLogByPrefix(e,t){this.logs[e]&&(this.logs[e].enabled=t)}getLog(){let e=[];return Object.keys(this.logs).forEach((t=>{e=e.concat(this.logs[t].messages)})),e.sort(((e,t)=>e.timestamp-t.timestamp)),e}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/logsManager.js"}],[3580,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mergeDeepObject=void 0;const n=e=>{if("object"==typeof e&&null!==e){if("function"==typeof Object.getPrototypeOf){const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}return"[object Object]"===Object.prototype.toString.call(e)}return!1},i=(e,t,[r,...s])=>r===undefined?o(e,t):n(e)?Object.assign(Object.assign({},e),{[r]:i(e[r],t,s)}):{[r]:i({},t,s)},o=(e,t)=>Array.isArray(e)&&Array.isArray(t)?r.mergeDeepObject.options.mergeArrays?Array.from(new Set(e.concat(t))):t:n(e)&&n(t)?(0,r.mergeDeepObject)(e,t):t;r.mergeDeepObject=(...e)=>e.reduce(((e,t)=>{if(Array.isArray(t))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(t).forEach((n=>{if(!["__proto__","constructor","prototype"].includes(n))if(r.mergeDeepObject.options.dotNotation){const[r,...o]=n.split(".");e[r]=i(e[r],t[n],o)}else e[n]=o(e[n],t[n])})),e}),{});const s={mergeArrays:!0,dotNotation:!1};r.mergeDeepObject.options=s,r.mergeDeepObject.withOptions=(e,...t)=>{r.mergeDeepObject.options=Object.assign(Object.assign({},s),e);const n=(0,r.mergeDeepObject)(...t);return r.mergeDeepObject.options=s,n}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/mergeDeepObject.js"}],[3581,{tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.objectPartition=void 0;const n=e("tslib");r.objectPartition=(e,t)=>t.reduce((([e,t],r)=>{const i=t,o=r,s=i[o],a=n.__rest(i,["symbol"==typeof o?o:o+""]);return void 0!==s?[Object.assign(Object.assign({},e),{[r]:s}),a]:[e,t]}),[{},e])}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/objectPartition.js"}],[3582,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseElectrumUrl=void 0;const n=/^(?:([a-zA-Z0-9.-]+)|\[([a-f0-9:]+)\]):([0-9]{1,5}):([ts])$/;r.parseElectrumUrl=e=>{var t;const r=e.match(n);return r?{host:null!==(t=r[1])&&void 0!==t?t:r[2],port:Number.parseInt(r[3],10),protocol:r[4]}:undefined}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/parseElectrumUrl.js"}],[3583,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseHostname=void 0;const n=/^([a-z0-9.+-]+:\/\/)?([a-z0-9.-]+)([:/][^:/]+)*\/?$/i;r.parseHostname=e=>{var t,r;return null===(r=null===(t=e.match(n))||void 0===t?void 0:t[2])||void 0===r?void 0:r.toLowerCase()}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/parseHostname.js"}],[3584,{tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.promiseAllSequence=void 0;const n=e("tslib");r.promiseAllSequence=e=>n.__awaiter(void 0,void 0,void 0,(function*(){const t=[];for(let r=0;r<e.length;++r){const n=yield e[r]();t.push(n)}return t}))}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/promiseAllSequence.js"}],[3585,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.redactUserPathFromString=r.startOfUserPathRegex=void 0,r.startOfUserPathRegex=/([/\\][Uu]sers[/\\]{1,4})([^"^'^[^\]^/^\\]*)/g;r.redactUserPathFromString=e=>e.replace(r.startOfUserPathRegex,"$1[*]")}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/redactUserPath.js"}],[3586,{tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleAction=void 0;const n=e("tslib"),i=e=>Array.isArray(e),o=()=>new Error("Aborted by signal"),s=()=>new Error("Aborted by deadline"),a=()=>new Error("Aborted by timeout"),c=(e,t)=>new Promise(((r,n)=>{if(t.aborted)return n();if(e===undefined)return r();let i;const o=()=>{clearTimeout(i),t.removeEventListener("abort",o),n()};i=setTimeout((()=>{t.removeEventListener("abort",o),r()}),e),t.addEventListener("abort",o)})),u=(e,t,r)=>new Promise(((n,i)=>{if(r.aborted)return i();let o;const s=()=>{clearTimeout(o),r.removeEventListener("abort",s),i()};o=setTimeout((()=>{r.removeEventListener("abort",s),i(t())}),e),r.addEventListener("abort",s)})),l=(e,t,r)=>e===undefined?[]:[u(e,t,r)],p=(e,t)=>new Promise(((r,n)=>{if(t.aborted)return n();if(null==e?void 0:e.aborted)return n(o());const i=()=>n(o());null==e||e.addEventListener("abort",i);const s=()=>{null==e||e.removeEventListener("abort",i),t.removeEventListener("abort",s),n()};t.addEventListener("abort",s)})),d=(e,t)=>n.__awaiter(void 0,void 0,void 0,(function*(){const r=new AbortController;t.aborted&&r.abort();const n=()=>{t.removeEventListener("abort",n),r.abort()};t.addEventListener("abort",n);try{return yield new Promise((t=>t(e(r.signal))))}finally{t.aborted||t.removeEventListener("abort",n)}}));r.scheduleAction=(e,t)=>n.__awaiter(void 0,void 0,void 0,(function*(){const{signal:r,delay:o,attempts:u,timeout:h,deadline:f,gap:y,attemptFailureHandler:m}=t,T=f&&f-Date.now(),g=i(u)?u.length:null!=u?u:f?Infinity:1,b=new AbortController,_=b.signal,O=i(u)?e=>u[e]:()=>({timeout:h,gap:y});try{return yield Promise.race([p(r,_),...l(T,s,_),c(o,_).then((()=>((e,t,r,i)=>n.__awaiter(void 0,void 0,void 0,(function*(){for(let n=0;n<e-1&&!i.aborted;n++){const e=new AbortController,o=()=>e.abort();i.addEventListener("abort",o);try{return yield t(n,e.signal)}catch(e){o(),yield r(n,e)}finally{i.removeEventListener("abort",o)}}return i.aborted?Promise.reject():t(e-1,i)})))(g,((t,r)=>Promise.race([...l(O(t).timeout,a,_),d(e,r)])),((e,t)=>{var r;const n=null==m?void 0:m(t);return n?Promise.reject(n):c(null!==(r=O(e).gap)&&void 0!==r?r:0,_)}),_)))])}finally{b.abort()}}))}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/scheduleAction.js"}],[3587,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.splitStringEveryNCharacters=function(e,t){var r;if(0===t)return[];const n=new RegExp(`.{1,${t}}`,"g");return null!==(r=e.match(n))&&void 0!==r?r:[]}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/splitStringEveryNCharacters.js"}],[3588,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Throttler=void 0;r.Throttler=class{constructor(e){this.delay=e,this.intervals={},this.callbacks={}}throttle(e,t){this.intervals[e]?this.callbacks[e]=t:(t(),this.intervals[e]=setInterval((()=>this.tick(e)),this.delay))}tick(e){this.callbacks[e]?(this.callbacks[e](),delete this.callbacks[e]):this.cancel(e)}cancel(e){clearInterval(this.intervals[e]),delete this.intervals[e],delete this.callbacks[e]}dispose(){Object.keys(this.intervals).forEach(this.cancel,this)}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/throttler.js"}],[3589,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.throwError=void 0;r.throwError=e=>{throw new Error(e)}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/throwError.js"}],[3590,{"./arrayPartition":3546},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.topologicalSort=void 0;const n=e("./arrayPartition");r.topologicalSort=(e,t,r)=>{const i=[],o=e=>(0,n.arrayPartition)(e,(r=>!e.some((e=>t(e,r)))));let s=e;for(;s.length;){const[e,t]=o(s);if(!e.length)throw new Error("Cycle detected");i.push(...r?e.sort(r):e),s=t}return i}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/topologicalSort.js"}],[3591,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.truncateMiddle=void 0;r.truncateMiddle=(e,t,r)=>{if(e.length<=t+r)return e;return`${e.substring(0,t)}${e.substring(e.length-r,e.length)}`}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/truncateMiddle.js"}],[3592,{events:4399},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TypedEmitter=void 0;const n=e("events");class i extends n.EventEmitter{listenerCount(e){return super.listenerCount(e)}}r.TypedEmitter=i}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/typedEventEmitter.js"}],[3593,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.urlToOnion=void 0;r.urlToOnion=(e,t)=>{var r;const[,n,i,o,s]=null!==(r=e.match(/^(http|ws)s?:\/\/([^:/]+\.)?([^/.]+\.[^/.]+)(\/.*)?$/i))&&void 0!==r?r:[];if(o&&t[o])return`${n}://${null!=i?i:""}${t[o]}${null!=s?s:""}`}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/urlToOnion.js"}],[3594,{"./throwError":3589},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.normalizeVersion=r.isNewerOrEqual=r.isEqual=r.isNewer=r.isVersionArray=void 0;const n=e("./throwError");r.isVersionArray=e=>Array.isArray(e)&&3===e.length&&e.every((e=>"number"==typeof e&&e>=0));const i=e=>{var t;return null!==(t="string"==typeof e?(e=>{var t;return null===(t=e.match(/^(\d+)\.(\d+)\.(\d+)([+-].*)?$/))||void 0===t?void 0:t.slice(1,4).map((e=>Number(e)))})(e):(e=>(0,r.isVersionArray)(e)?e:null)(e))&&void 0!==t?t:(0,n.throwError)(`version string is in wrong format: ${e}`)},o=([e,t,r],[n,i,o])=>e-n||t-i||r-o;r.isNewer=(e,t)=>o(i(e),i(t))>0;r.isEqual=(e,t)=>0===o(i(e),i(t));r.isNewerOrEqual=(e,t)=>o(i(e),i(t))>=0;r.normalizeVersion=e=>e.replace(/\b0+(\d)/g,"$1")}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/versionUtils.js"}],[3595,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.inDoubleQuotes=r.inSingleQuotes=r.inHTML=void 0;const n=/</g,i=/'/g,o=/"/g;r.inHTML=e=>e.replace(n,"&lt;");r.inSingleQuotes=e=>e.replace(i,"&#39;");r.inDoubleQuotes=e=>e.replace(o,"&quot;")}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/xssFilters.js"}],[3596,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e){var r,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,o=Math.floor,s="[BigNumber Error] ",a=s+"Number primitive has more than 15 significant digits: ",c=1e14,u=14,l=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],d=1e7,h=1e9;function f(e){var t=0|e;return e>0||e===t?t:t-1}function y(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(t=e[n++]+"",r=u-t.length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function m(e,t){var r,n,i=e.c,o=t.c,s=e.s,a=t.s,c=e.e,u=t.e;if(!s||!a)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-a:s;if(s!=a)return s;if(r=s<0,n=c==u,!i||!o)return n?0:!i^r?1:-1;if(!n)return c>u^r?1:-1;for(a=(c=i.length)<(u=o.length)?c:u,s=0;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^r?1:-1;return c==u?0:c>u^r?1:-1}function T(e,t,r,n){if(e<t||e>r||e!==o(e))throw Error(s+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function g(e){var t=e.c.length-1;return f(e.e/u)==t&&e.c[t]%2!=0}function b(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function _(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}r=function e(t){var r,O,E,S,v,x,w,A,R,I,P=H.prototype={constructor:H,toString:null,valueOf:null},N=new H(1),C=20,j=4,k=-7,M=21,L=-1e7,D=1e7,B=!1,z=1,U=0,F={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},$="0123456789abcdefghijklmnopqrstuvwxyz",G=!0;function H(e,t){var r,i,s,c,p,d,h,f,y=this;if(!(y instanceof H))return new H(e,t);if(null==t){if(e&&!0===e._isBigNumber)return y.s=e.s,void(!e.c||e.e>D?y.c=y.e=null:e.e<L?y.c=[y.e=0]:(y.e=e.e,y.c=e.c.slice()));if((d="number"==typeof e)&&0*e==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(c=0,p=e;p>=10;p/=10,c++);return void(c>D?y.c=y.e=null:(y.e=c,y.c=[e]))}f=String(e)}else{if(!n.test(f=String(e)))return E(y,f,d);y.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(c=f.indexOf("."))>-1&&(f=f.replace(".","")),(p=f.search(/e/i))>0?(c<0&&(c=p),c+=+f.slice(p+1),f=f.substring(0,p)):c<0&&(c=f.length)}else{if(T(t,2,$.length,"Base"),10==t&&G)return W(y=new H(e),C+y.e+1,j);if(f=String(e),d="number"==typeof e){if(0*e!=0)return E(y,f,d,t);if(y.s=1/e<0?(f=f.slice(1),-1):1,H.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(a+e)}else y.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(r=$.slice(0,t),c=p=0,h=f.length;p<h;p++)if(r.indexOf(i=f.charAt(p))<0){if("."==i){if(p>c){c=h;continue}}else if(!s&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){s=!0,p=-1,c=0;continue}return E(y,String(e),d,t)}d=!1,(c=(f=O(f,t,10,y.s)).indexOf("."))>-1?f=f.replace(".",""):c=f.length}for(p=0;48===f.charCodeAt(p);p++);for(h=f.length;48===f.charCodeAt(--h););if(f=f.slice(p,++h)){if(h-=p,d&&H.DEBUG&&h>15&&(e>l||e!==o(e)))throw Error(a+y.s*e);if((c=c-p-1)>D)y.c=y.e=null;else if(c<L)y.c=[y.e=0];else{if(y.e=c,y.c=[],p=(c+1)%u,c<0&&(p+=u),p<h){for(p&&y.c.push(+f.slice(0,p)),h-=u;p<h;)y.c.push(+f.slice(p,p+=u));p=u-(f=f.slice(p)).length}else p-=h;for(;p--;f+="0");y.c.push(+f)}}else y.c=[y.e=0]}function K(e,t,r,n){var i,o,s,a,c;if(null==r?r=j:T(r,0,8),!e.c)return e.toString();if(i=e.c[0],s=e.e,null==t)c=y(e.c),c=1==n||2==n&&(s<=k||s>=M)?b(c,s):_(c,s,"0");else if(o=(e=W(new H(e),t,r)).e,a=(c=y(e.c)).length,1==n||2==n&&(t<=o||o<=k)){for(;a<t;c+="0",a++);c=b(c,o)}else if(t-=s,c=_(c,o,"0"),o+1>a){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=o-a)>0)for(o+1==a&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function V(e,t){for(var r,n,i=1,o=new H(e[0]);i<e.length;i++)(!(n=new H(e[i])).s||(r=m(o,n))===t||0===r&&o.s===t)&&(o=n);return o}function q(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*u-1)>D?e.c=e.e=null:r<L?e.c=[e.e=0]:(e.e=r,e.c=t),e}function W(e,t,r,n){var s,a,l,d,h,f,y,m=e.c,T=p;if(m){e:{for(s=1,d=m[0];d>=10;d/=10,s++);if((a=t-s)<0)a+=u,l=t,h=m[f=0],y=o(h/T[s-l-1]%10);else if((f=i((a+1)/u))>=m.length){if(!n)break e;for(;m.length<=f;m.push(0));h=y=0,s=1,l=(a%=u)-u+1}else{for(h=d=m[f],s=1;d>=10;d/=10,s++);y=(l=(a%=u)-u+s)<0?0:o(h/T[s-l-1]%10)}if(n=n||t<0||null!=m[f+1]||(l<0?h:h%T[s-l-1]),n=r<4?(y||n)&&(0==r||r==(e.s<0?3:2)):y>5||5==y&&(4==r||n||6==r&&(a>0?l>0?h/T[s-l]:0:m[f-1])%10&1||r==(e.s<0?8:7)),t<1||!m[0])return m.length=0,n?(t-=e.e+1,m[0]=T[(u-t%u)%u],e.e=-t||0):m[0]=e.e=0,e;if(0==a?(m.length=f,d=1,f--):(m.length=f+1,d=T[u-a],m[f]=l>0?o(h/T[s-l]%T[l])*d:0),n)for(;;){if(0==f){for(a=1,l=m[0];l>=10;l/=10,a++);for(l=m[0]+=d,d=1;l>=10;l/=10,d++);a!=d&&(e.e++,m[0]==c&&(m[0]=1));break}if(m[f]+=d,m[f]!=c)break;m[f--]=0,d=1}for(a=m.length;0===m[--a];m.pop());}e.e>D?e.c=e.e=null:e.e<L&&(e.c=[e.e=0])}return e}function Y(e){var t,r=e.e;return null===r?e.toString():(t=y(e.c),t=r<=k||r>=M?b(t,r):_(t,r,"0"),e.s<0?"-"+t:t)}return H.clone=e,H.ROUND_UP=0,H.ROUND_DOWN=1,H.ROUND_CEIL=2,H.ROUND_FLOOR=3,H.ROUND_HALF_UP=4,H.ROUND_HALF_DOWN=5,H.ROUND_HALF_EVEN=6,H.ROUND_HALF_CEIL=7,H.ROUND_HALF_FLOOR=8,H.EUCLID=9,H.config=H.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(s+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(T(r=e[t],0,h,t),C=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(T(r=e[t],0,8,t),j=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(T(r[0],-h,0,t),T(r[1],0,h,t),k=r[0],M=r[1]):(T(r,-h,h,t),k=-(M=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)T(r[0],-h,-1,t),T(r[1],1,h,t),L=r[0],D=r[1];else{if(T(r,-h,h,t),!r)throw Error(s+t+" cannot be zero: "+r);L=-(D=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(s+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw B=!r,Error(s+"crypto unavailable");B=r}else B=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(T(r=e[t],0,9,t),z=r),e.hasOwnProperty(t="POW_PRECISION")&&(T(r=e[t],0,h,t),U=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(s+t+" not an object: "+r);F=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(s+t+" invalid: "+r);G="0123456789"==r.slice(0,10),$=r}}return{DECIMAL_PLACES:C,ROUNDING_MODE:j,EXPONENTIAL_AT:[k,M],RANGE:[L,D],CRYPTO:B,MODULO_MODE:z,POW_PRECISION:U,FORMAT:F,ALPHABET:$}},H.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!H.DEBUG)return!0;var t,r,n=e.c,i=e.e,a=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===a||-1===a)&&i>=-h&&i<=h&&i===o(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%u)<1&&(t+=u),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=c||r!==o(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===a||1===a||-1===a))return!0;throw Error(s+"Invalid BigNumber: "+e)},H.maximum=H.max=function(){return V(arguments,-1)},H.minimum=H.min=function(){return V(arguments,1)},H.random=(S=9007199254740992,v=Math.random()*S&2097151?function(){return o(Math.random()*S)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,a,c,l=0,d=[],f=new H(N);if(null==e?e=C:T(e,0,h),a=i(e/u),B)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));l<a;)(c=131072*t[l]+(t[l+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[l]=r[0],t[l+1]=r[1]):(d.push(c%1e14),l+=2);l=a/2}else{if(!crypto.randomBytes)throw B=!1,Error(s+"crypto unavailable");for(t=crypto.randomBytes(a*=7);l<a;)(c=281474976710656*(31&t[l])+1099511627776*t[l+1]+4294967296*t[l+2]+16777216*t[l+3]+(t[l+4]<<16)+(t[l+5]<<8)+t[l+6])>=9e15?crypto.randomBytes(7).copy(t,l):(d.push(c%1e14),l+=7);l=a/7}if(!B)for(;l<a;)(c=v())<9e15&&(d[l++]=c%1e14);for(a=d[--l],e%=u,a&&e&&(c=p[u-e],d[l]=o(a/c)*c);0===d[l];d.pop(),l--);if(l<0)d=[n=0];else{for(n=-1;0===d[0];d.splice(0,1),n-=u);for(l=1,c=d[0];c>=10;c/=10,l++);l<u&&(n-=u-l)}return f.e=n,f.c=d,f}),H.sum=function(){for(var e=1,t=arguments,r=new H(t[0]);e<t.length;)r=r.plus(t[e++]);return r},O=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,s=[0],a=0,c=e.length;a<c;){for(o=s.length;o--;s[o]*=t);for(s[0]+=n.indexOf(e.charAt(a++)),i=0;i<s.length;i++)s[i]>r-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/r|0,s[i]%=r)}return s.reverse()}return function(n,i,o,s,a){var c,u,l,p,d,h,f,m,T=n.indexOf("."),g=C,b=j;for(T>=0&&(p=U,U=0,n=n.replace(".",""),h=(m=new H(i)).pow(n.length-T),U=p,m.c=t(_(y(h.c),h.e,"0"),10,o,e),m.e=m.c.length),l=p=(f=t(n,i,o,a?(c=$,e):(c=e,$))).length;0==f[--p];f.pop());if(!f[0])return c.charAt(0);if(T<0?--l:(h.c=f,h.e=l,h.s=s,f=(h=r(h,m,g,b,o)).c,d=h.r,l=h.e),T=f[u=l+g+1],p=o/2,d=d||u<0||null!=f[u+1],d=b<4?(null!=T||d)&&(0==b||b==(h.s<0?3:2)):T>p||T==p&&(4==b||d||6==b&&1&f[u-1]||b==(h.s<0?8:7)),u<1||!f[0])n=d?_(c.charAt(1),-g,c.charAt(0)):c.charAt(0);else{if(f.length=u,d)for(--o;++f[--u]>o;)f[u]=0,u||(++l,f=[1].concat(f));for(p=f.length;!f[--p];);for(T=0,n="";T<=p;n+=c.charAt(f[T++]));n=_(n,l,c.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,i,o,s,a=0,c=e.length,u=t%d,l=t/d|0;for(e=e.slice();c--;)a=((i=u*(o=e[c]%d)+(n=l*o+(s=e[c]/d|0)*u)%d*d+a)/r|0)+(n/d|0)+l*s,e[c]=i%r;return a&&(e=[a].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,s,a,l){var p,d,h,y,m,T,g,b,_,O,E,S,v,x,w,A,R,I=n.s==i.s?1:-1,P=n.c,N=i.c;if(!(P&&P[0]&&N&&N[0]))return new H(n.s&&i.s&&(P?!N||P[0]!=N[0]:N)?P&&0==P[0]||!N?0*I:I/0:NaN);for(_=(b=new H(I)).c=[],I=s+(d=n.e-i.e)+1,l||(l=c,d=f(n.e/u)-f(i.e/u),I=I/u|0),h=0;N[h]==(P[h]||0);h++);if(N[h]>(P[h]||0)&&d--,I<0)_.push(1),y=!0;else{for(x=P.length,A=N.length,h=0,I+=2,(m=o(l/(N[0]+1)))>1&&(N=e(N,m,l),P=e(P,m,l),A=N.length,x=P.length),v=A,E=(O=P.slice(0,A)).length;E<A;O[E++]=0);R=N.slice(),R=[0].concat(R),w=N[0],N[1]>=l/2&&w++;do{if(m=0,(p=t(N,O,A,E))<0){if(S=O[0],A!=E&&(S=S*l+(O[1]||0)),(m=o(S/w))>1)for(m>=l&&(m=l-1),g=(T=e(N,m,l)).length,E=O.length;1==t(T,O,g,E);)m--,r(T,A<g?R:N,g,l),g=T.length,p=1;else 0==m&&(p=m=1),g=(T=N.slice()).length;if(g<E&&(T=[0].concat(T)),r(O,T,E,l),E=O.length,-1==p)for(;t(N,O,A,E)<1;)m++,r(O,A<E?R:N,E,l),E=O.length}else 0===p&&(m++,O=[0]);_[h++]=m,O[0]?O[E++]=P[v]||0:(O=[P[v]],E=1)}while((v++<x||null!=O[0])&&I--);y=null!=O[0],_[0]||_.splice(0,1)}if(l==c){for(h=1,I=_[0];I>=10;I/=10,h++);W(b,s+(b.e=h+d*u-1)+1,a,y)}else b.e=d,b.r=+y;return b}}(),x=/^(-?)0([xbo])(?=\w[\w.]*$)/i,w=/^([^.]+)\.$/,A=/^\.([^.]+)$/,R=/^-?(Infinity|NaN)$/,I=/^\s*\+(?=[\w.])|^\s+|\s+$/g,E=function(e,t,r,n){var i,o=r?t:t.replace(I,"");if(R.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(x,(function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t})),n&&(i=n,o=o.replace(w,"$1").replace(A,"0.$1")),t!=o))return new H(o,i);if(H.DEBUG)throw Error(s+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},P.absoluteValue=P.abs=function(){var e=new H(this);return e.s<0&&(e.s=1),e},P.comparedTo=function(e,t){return m(this,new H(e,t))},P.decimalPlaces=P.dp=function(e,t){var r,n,i,o=this;if(null!=e)return T(e,0,h),null==t?t=j:T(t,0,8),W(new H(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-f(this.e/u))*u,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},P.dividedBy=P.div=function(e,t){return r(this,new H(e,t),C,j)},P.dividedToIntegerBy=P.idiv=function(e,t){return r(this,new H(e,t),0,1)},P.exponentiatedBy=P.pow=function(e,t){var r,n,a,c,l,p,d,h,f=this;if((e=new H(e)).c&&!e.isInteger())throw Error(s+"Exponent not an integer: "+Y(e));if(null!=t&&(t=new H(t)),l=e.e>14,!f.c||!f.c[0]||1==f.c[0]&&!f.e&&1==f.c.length||!e.c||!e.c[0])return h=new H(Math.pow(+Y(f),l?e.s*(2-g(e)):+Y(e))),t?h.mod(t):h;if(p=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new H(NaN);(n=!p&&f.isInteger()&&t.isInteger())&&(f=f.mod(t))}else{if(e.e>9&&(f.e>0||f.e<-1||(0==f.e?f.c[0]>1||l&&f.c[1]>=24e7:f.c[0]<8e13||l&&f.c[0]<=9999975e7)))return c=f.s<0&&g(e)?-0:0,f.e>-1&&(c=1/c),new H(p?1/c:c);U&&(c=i(U/u+2))}for(l?(r=new H(.5),p&&(e.s=1),d=g(e)):d=(a=Math.abs(+Y(e)))%2,h=new H(N);;){if(d){if(!(h=h.times(f)).c)break;c?h.c.length>c&&(h.c.length=c):n&&(h=h.mod(t))}if(a){if(0===(a=o(a/2)))break;d=a%2}else if(W(e=e.times(r),e.e+1,1),e.e>14)d=g(e);else{if(0===(a=+Y(e)))break;d=a%2}f=f.times(f),c?f.c&&f.c.length>c&&(f.c.length=c):n&&(f=f.mod(t))}return n?h:(p&&(h=N.div(h)),t?h.mod(t):c?W(h,U,j,undefined):h)},P.integerValue=function(e){var t=new H(this);return null==e?e=j:T(e,0,8),W(t,t.e+1,e)},P.isEqualTo=P.eq=function(e,t){return 0===m(this,new H(e,t))},P.isFinite=function(){return!!this.c},P.isGreaterThan=P.gt=function(e,t){return m(this,new H(e,t))>0},P.isGreaterThanOrEqualTo=P.gte=function(e,t){return 1===(t=m(this,new H(e,t)))||0===t},P.isInteger=function(){return!!this.c&&f(this.e/u)>this.c.length-2},P.isLessThan=P.lt=function(e,t){return m(this,new H(e,t))<0},P.isLessThanOrEqualTo=P.lte=function(e,t){return-1===(t=m(this,new H(e,t)))||0===t},P.isNaN=function(){return!this.s},P.isNegative=function(){return this.s<0},P.isPositive=function(){return this.s>0},P.isZero=function(){return!!this.c&&0==this.c[0]},P.minus=function(e,t){var r,n,i,o,s=this,a=s.s;if(t=(e=new H(e,t)).s,!a||!t)return new H(NaN);if(a!=t)return e.s=-t,s.plus(e);var l=s.e/u,p=e.e/u,d=s.c,h=e.c;if(!l||!p){if(!d||!h)return d?(e.s=-t,e):new H(h?s:NaN);if(!d[0]||!h[0])return h[0]?(e.s=-t,e):new H(d[0]?s:3==j?-0:0)}if(l=f(l),p=f(p),d=d.slice(),a=l-p){for((o=a<0)?(a=-a,i=d):(p=l,i=h),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=d.length)<(t=h.length))?a:t,a=t=0;t<n;t++)if(d[t]!=h[t]){o=d[t]<h[t];break}if(o&&(i=d,d=h,h=i,e.s=-e.s),(t=(n=h.length)-(r=d.length))>0)for(;t--;d[r++]=0);for(t=c-1;n>a;){if(d[--n]<h[n]){for(r=n;r&&!d[--r];d[r]=t);--d[r],d[n]+=c}d[n]-=h[n]}for(;0==d[0];d.splice(0,1),--p);return d[0]?q(e,d,p):(e.s=3==j?-1:1,e.c=[e.e=0],e)},P.modulo=P.mod=function(e,t){var n,i,o=this;return e=new H(e,t),!o.c||!e.s||e.c&&!e.c[0]?new H(NaN):!e.c||o.c&&!o.c[0]?new H(o):(9==z?(i=e.s,e.s=1,n=r(o,e,0,3),e.s=i,n.s*=i):n=r(o,e,0,z),(e=o.minus(n.times(e))).c[0]||1!=z||(e.s=o.s),e)},P.multipliedBy=P.times=function(e,t){var r,n,i,o,s,a,l,p,h,y,m,T,g,b,_,O=this,E=O.c,S=(e=new H(e,t)).c;if(!(E&&S&&E[0]&&S[0]))return!O.s||!e.s||E&&!E[0]&&!S||S&&!S[0]&&!E?e.c=e.e=e.s=null:(e.s*=O.s,E&&S?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=f(O.e/u)+f(e.e/u),e.s*=O.s,(l=E.length)<(y=S.length)&&(g=E,E=S,S=g,i=l,l=y,y=i),i=l+y,g=[];i--;g.push(0));for(b=c,_=d,i=y;--i>=0;){for(r=0,m=S[i]%_,T=S[i]/_|0,o=i+(s=l);o>i;)r=((p=m*(p=E[--s]%_)+(a=T*p+(h=E[s]/_|0)*m)%_*_+g[o]+r)/b|0)+(a/_|0)+T*h,g[o--]=p%b;g[o]=r}return r?++n:g.splice(0,1),q(e,g,n)},P.negated=function(){var e=new H(this);return e.s=-e.s||null,e},P.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new H(e,t)).s,!i||!t)return new H(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/u,s=e.e/u,a=n.c,l=e.c;if(!o||!s){if(!a||!l)return new H(i/0);if(!a[0]||!l[0])return l[0]?e:new H(a[0]?n:0*i)}if(o=f(o),s=f(s),a=a.slice(),i=o-s){for(i>0?(s=o,r=l):(i=-i,r=a),r.reverse();i--;r.push(0));r.reverse()}for((i=a.length)-(t=l.length)<0&&(r=l,l=a,a=r,t=i),i=0;t;)i=(a[--t]=a[t]+l[t]+i)/c|0,a[t]=c===a[t]?0:a[t]%c;return i&&(a=[i].concat(a),++s),q(e,a,s)},P.precision=P.sd=function(e,t){var r,n,i,o=this;if(null!=e&&e!==!!e)return T(e,1,h),null==t?t=j:T(t,0,8),W(new H(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*u+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},P.shiftedBy=function(e){return T(e,-9007199254740991,l),this.times("1e"+e)},P.squareRoot=P.sqrt=function(){var e,t,n,i,o,s=this,a=s.c,c=s.s,u=s.e,l=C+4,p=new H("0.5");if(1!==c||!a||!a[0])return new H(!c||c<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(c=Math.sqrt(+Y(s)))||c==1/0?(((t=y(a)).length+u)%2==0&&(t+="0"),c=Math.sqrt(+t),u=f((u+1)/2)-(u<0||u%2),n=new H(t=c==1/0?"5e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):n=new H(c+""),n.c[0])for((c=(u=n.e)+l)<3&&(c=0);;)if(o=n,n=p.times(o.plus(r(s,o,l,1))),y(o.c).slice(0,c)===(t=y(n.c)).slice(0,c)){if(n.e<u&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(W(n,n.e+C+2,1),e=!n.times(n).eq(s));break}if(!i&&(W(o,o.e+C+2,0),o.times(o).eq(s))){n=o;break}l+=4,c+=4,i=1}return W(n,n.e+C+1,j,e)},P.toExponential=function(e,t){return null!=e&&(T(e,0,h),e++),K(this,e,t,1)},P.toFixed=function(e,t){return null!=e&&(T(e,0,h),e=e+this.e+1),K(this,e,t)},P.toFormat=function(e,t,r){var n,i=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=F;else if("object"!=typeof r)throw Error(s+"Argument not an object: "+r);if(n=i.toFixed(e,t),i.c){var o,a=n.split("."),c=+r.groupSize,u=+r.secondaryGroupSize,l=r.groupSeparator||"",p=a[0],d=a[1],h=i.s<0,f=h?p.slice(1):p,y=f.length;if(u&&(o=c,c=u,u=o,y-=o),c>0&&y>0){for(o=y%c||c,p=f.substr(0,o);o<y;o+=c)p+=l+f.substr(o,c);u>0&&(p+=l+f.slice(o)),h&&(p="-"+p)}n=d?p+(r.decimalSeparator||"")+((u=+r.fractionGroupSize)?d.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):p}return(r.prefix||"")+n+(r.suffix||"")},P.toFraction=function(e){var t,n,i,o,a,c,l,d,h,f,m,T,g=this,b=g.c;if(null!=e&&(!(l=new H(e)).isInteger()&&(l.c||1!==l.s)||l.lt(N)))throw Error(s+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+Y(l));if(!b)return new H(g);for(t=new H(N),h=n=new H(N),i=d=new H(N),T=y(b),a=t.e=T.length-g.e-1,t.c[0]=p[(c=a%u)<0?u+c:c],e=!e||l.comparedTo(t)>0?a>0?t:h:l,c=D,D=1/0,l=new H(T),d.c[0]=0;f=r(l,t,0,1),1!=(o=n.plus(f.times(i))).comparedTo(e);)n=i,i=o,h=d.plus(f.times(o=h)),d=o,t=l.minus(f.times(o=t)),l=o;return o=r(e.minus(n),i,0,1),d=d.plus(o.times(h)),n=n.plus(o.times(i)),d.s=h.s=g.s,m=r(h,i,a*=2,j).minus(g).abs().comparedTo(r(d,n,a,j).minus(g).abs())<1?[h,i]:[d,n],D=c,m},P.toNumber=function(){return+Y(this)},P.toPrecision=function(e,t){return null!=e&&T(e,1,h),K(this,e,t,2)},P.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=k||i>=M?b(y(r.c),i):_(y(r.c),i,"0"):10===e&&G?t=_(y((r=W(new H(r),C+i+1,j)).c),r.e,"0"):(T(e,2,$.length,"Base"),t=O(_(y(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},P.valueOf=P.toJSON=function(){return Y(this)},P._isBigNumber=!0,null!=t&&H.set(t),H}(),r.default=r.BigNumber=r,"function"==typeof define&&define.amd?define((function(){return r})):void 0!==t&&t.exports?t.exports=r:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=r)}(this)}}},{package:"@trezor/connect-web>@trezor/utils>bignumber.js",file:"node_modules/@trezor/utils/node_modules/bignumber.js/bignumber.js"}],[363,{"../../../shared/constants/app":5719,"../../../ui/helpers/utils/util":6819,"../lib/util":187,"../translate":366,"@metamask/etherscan-link":1908,"@metamask/transaction-controller":2905,lodash:4855,"webextension-polyfill":5696},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,i=(n=e("webextension-polyfill"))&&n.__esModule?n:{default:n},o=e("@metamask/etherscan-link"),s=e("lodash"),a=e("@metamask/transaction-controller"),c=e("../lib/util"),u=e("../../../shared/constants/app"),l=e("../../../ui/helpers/utils/util"),p=e("../translate");r.default=class{reload(){i.default.runtime.reload()}async openTab(e){return await i.default.tabs.create(e)}async openWindow(e){return await i.default.windows.create(e)}async focusWindow(e){await i.default.windows.update(e,{focused:!0})}async updateWindowPosition(e,t,r){await i.default.windows.update(e,{left:t,top:r})}async getLastFocusedWindow(){return await i.default.windows.getLastFocused()}async closeCurrentWindow(){const e=await i.default.windows.getCurrent();i.default.windows.remove(e.id)}getVersion(){return i.default.runtime.getManifest().version}getExtensionURL(e=null,t=null){let r=i.default.runtime.getURL("home.html");return e&&(r+=`#${e}`),t&&(r+=`?${t}`),r}openExtensionInBrowser(e=null,t=null,r=!1){const n=this.getExtensionURL(e,t,r);this.openTab({url:n}),(0,c.getEnvironmentType)()===u.ENVIRONMENT_TYPE_BACKGROUND||r||window.close()}getPlatformInfo(e){try{return void e(i.default.runtime.getPlatformInfo())}catch(t){return void e(t)}}async showTransactionNotification(e,t){const{status:r,txReceipt:{status:n}={}}=e;r===a.TransactionStatus.confirmed?"0x0"===n?await this._showFailedTransaction(e,"Transaction encountered an error."):await this._showConfirmedTransaction(e,t):r===a.TransactionStatus.failed&&await this._showFailedTransaction(e)}addOnRemovedListener(e){i.default.windows.onRemoved.addListener(e)}async getAllWindows(){return await i.default.windows.getAll()}async getActiveTabs(){return await i.default.tabs.query({active:!0})}async currentTab(){return await i.default.tabs.getCurrent()}async switchToTab(e){return await i.default.tabs.update(e,{highlighted:!0})}async switchToAnotherURL(e,t){await i.default.tabs.update(e,{url:t})}async closeTab(e){await i.default.tabs.remove(e)}async _showConfirmedTransaction(e,t){this._subscribeToNotificationClicked();const r=(0,o.getBlockExplorerLink)(e,t),n=parseInt(e.txParams.nonce,16),i=(0,s.startCase)((0,s.toLower)((0,l.getURLHostName)(r).replace(/([.]\w+)$/u,""))),a=(0,p.t)("notificationTransactionSuccessTitle");let c=(0,p.t)("notificationTransactionSuccessMessage",n);r.length&&(c+=` ${(0,p.t)("notificationTransactionSuccessView",i)}`),await this._showNotification(a,c,r)}async _showFailedTransaction(e,t){const r=parseInt(e.txParams.nonce,16),n=(0,p.t)("notificationTransactionFailedTitle");let i=(0,p.t)("notificationTransactionFailedMessage",r,t||e.error.message);await this._showNotification(n,i)}async _showNotification(e,t,r){const n=await i.default.runtime.getURL("../../images/icon-64.png");await i.default.notifications.create(r,{type:"basic",title:e,iconUrl:n,message:t})}_subscribeToNotificationClicked(){i.default.notifications.onClicked.hasListener(this._viewOnEtherscan)||i.default.notifications.onClicked.addListener(this._viewOnEtherscan)}_viewOnEtherscan(e){e.startsWith("https://")&&i.default.tabs.create({url:e})}}}}},{package:"$root$",file:"app/scripts/platforms/extension.js"}],[366,{"../../shared/modules/i18n":5789,"../_locales/en/messages.json":1},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.t=function(e,...t){return(0,o.getMessage)(s,a,e,t)||(0,o.getMessage)(o.FALLBACK_LOCALE,i.default,e,t)},r.updateCurrentLocale=async function(e){if(s===e)return;a=e===o.FALLBACK_LOCALE?i.default:await(0,o.fetchLocale)(e);s=e};var n,i=(n=e("../_locales/en/messages.json"))&&n.__esModule?n:{default:n},o=e("../../shared/modules/i18n");let s=o.FALLBACK_LOCALE,a=i.default}}},{package:"$root$",file:"app/scripts/translate.ts"}],[369,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n={DEV:"dev",DIST:"dist",PROD:"prod",TEST:"test",TEST_DEV:"testDev"},i={...n,CLEAN:"clean",LINT_SCSS:"lint-scss",MANIFEST_DEV:"manifest:dev",MANIFEST_PROD:"manifest:prod",MANIFEST_TEST:"manifest:test",MANIFEST_TEST_DEV:"manifest:testDev",RELOAD:"reload",SCRIPTS_CORE_DEV_STANDARD_ENTRY_POINTS:"scripts:core:dev:standardEntryPoints",SCRIPTS_CORE_DEV_CONTENTSCRIPT:"scripts:core:dev:contentscript",SCRIPTS_CORE_DEV_DISABLE_CONSOLE:"scripts:core:dev:disable-console",SCRIPTS_CORE_DEV_SENTRY:"scripts:core:dev:sentry",SCRIPTS_CORE_DEV_PHISHING_DETECT:"scripts:core:dev:phishing-detect",SCRIPTS_CORE_DIST_STANDARD_ENTRY_POINTS:"scripts:core:dist:standardEntryPoints",SCRIPTS_CORE_DIST_CONTENTSCRIPT:"scripts:core:dist:contentscript",SCRIPTS_CORE_DIST_DISABLE_CONSOLE:"scripts:core:dist:disable-console",SCRIPTS_CORE_DIST_SENTRY:"scripts:core:dist:sentry",SCRIPTS_CORE_DIST_PHISHING_DETECT:"scripts:core:dist:phishing-detect",SCRIPTS_CORE_PROD_STANDARD_ENTRY_POINTS:"scripts:core:prod:standardEntryPoints",SCRIPTS_CORE_PROD_CONTENTSCRIPT:"scripts:core:prod:contentscript",SCRIPTS_CORE_PROD_DISABLE_CONSOLE:"scripts:core:prod:disable-console",SCRIPTS_CORE_PROD_SENTRY:"scripts:core:prod:sentry",SCRIPTS_CORE_PROD_PHISHING_DETECT:"scripts:core:prod:phishing-detect",SCRIPTS_CORE_TEST_LIVE_STANDARD_ENTRY_POINTS:"scripts:core:test-live:standardEntryPoints",SCRIPTS_CORE_TEST_LIVE_CONTENTSCRIPT:"scripts:core:test-live:contentscript",SCRIPTS_CORE_TEST_LIVE_DISABLE_CONSOLE:"scripts:core:test-live:disable-console",SCRIPTS_CORE_TEST_LIVE_SENTRY:"scripts:core:test-live:sentry",SCRIPTS_CORE_TEST_LIVE_PHISHING_DETECT:"scripts:core:test-live:phishing-detect",SCRIPTS_CORE_TEST_STANDARD_ENTRY_POINTS:"scripts:core:test:standardEntryPoints",SCRIPTS_CORE_TEST_CONTENTSCRIPT:"scripts:core:test:contentscript",SCRIPTS_CORE_TEST_DISABLE_CONSOLE:"scripts:core:test:disable-console",SCRIPTS_CORE_TEST_SENTRY:"scripts:core:test:sentry",SCRIPTS_CORE_TEST_PHISHING_DETECT:"scripts:core:test:phishing-detect",SCRIPTS_DIST:"scripts:dist",STATIC_DEV:"static:dev",STATIC_PROD:"static:prod",STYLES:"styles",STYLES_DEV:"styles:dev",STYLES_PROD:"styles:prod",ZIP:"zip"};t.exports={BUILD_TARGETS:n,ENVIRONMENT:{DEVELOPMENT:"development",PRODUCTION:"production",OTHER:"other",PULL_REQUEST:"pull-request",RELEASE_CANDIDATE:"release-candidate",STAGING:"staging",TESTING:"testing"},TASKS:i}}}},{package:"$root$",file:"development/build/constants.js"}],[371,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/arrayLikeToArray.js"}],[372,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/arrayWithHoles.js"}],[373,{"./arrayLikeToArray.js":371},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./arrayLikeToArray.js");t.exports=function(e){if(Array.isArray(e))return n(e)},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"}],[375,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}t.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var s=e.apply(t,r);function a(e){n(s,i,o,a,c,"next",e)}function c(e){n(s,i,o,a,c,"throw",e)}a(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/asyncToGenerator.js"}],[378,{"./toPropertyKey.js":399},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./toPropertyKey.js");t.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/defineProperty.js"}],[379,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(){return t.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.exports.__esModule=!0,t.exports.default=t.exports,n.apply(null,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/extends.js"}],[382,{"./setPrototypeOf.js":394},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./setPrototypeOf.js");t.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/inheritsLoose.js"}],[3824,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{AbortController:n}=globalThis;t.exports={AbortController:n}}}},{package:"@lavamoat/lavapack>readable-stream>abort-controller",file:"node_modules/abort-controller/browser.js"}],[3825,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){
/*!
* accounting.js v0.4.1
* Copyright 2014 Open Exchange Rates
*
* Freely distributable under the MIT license.
* Portions of accounting.js are inspired or borrowed from underscore.js
*
* Full details and documentation:
* http://openexchangerates.github.io/accounting.js/
*/
!function(e,n){var i={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},o=Array.prototype.map,s=Array.isArray,a=Object.prototype.toString;function c(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function u(e){return s?s(e):"[object Array]"===a.call(e)}function l(e){return e&&"[object Object]"===a.call(e)}function p(e,t){var r;for(r in e=e||{},t=t||{})t.hasOwnProperty(r)&&null==e[r]&&(e[r]=t[r]);return e}function d(e,t,r){var n,i,s=[];if(!e)return s;if(o&&e.map===o)return e.map(t,r);for(n=0,i=e.length;n<i;n++)s[n]=t.call(r,e[n],n,e);return s}function h(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function f(e){var t=i.settings.currency.format;return"function"==typeof e&&(e=e()),c(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:c(t)?i.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var y,m=i.unformat=i.parse=function(e,t){if(u(e))return d(e,(function(e){return m(e,t)}));if("number"==typeof(e=e||0))return e;t=t||i.settings.number.decimal;var r=new RegExp("[^0-9-"+t+"]",["g"]),n=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(r,"").replace(t,"."));return isNaN(n)?0:n},T=i.toFixed=function(e,t){t=h(t,i.settings.number.precision);var r=Math.pow(10,t);return(Math.round(i.unformat(e)*r)/r).toFixed(t)},g=i.formatNumber=i.format=function(e,t,r,n){if(u(e))return d(e,(function(e){return g(e,t,r,n)}));e=m(e);var o=p(l(t)?t:{precision:t,thousand:r,decimal:n},i.settings.number),s=h(o.precision),a=e<0?"-":"",c=parseInt(T(Math.abs(e||0),s),10)+"",f=c.length>3?c.length%3:0;return a+(f?c.substr(0,f)+o.thousand:"")+c.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+o.thousand)+(s?o.decimal+T(Math.abs(e),s).split(".")[1]:"")},b=i.formatMoney=function(e,t,r,n,o,s){if(u(e))return d(e,(function(e){return b(e,t,r,n,o,s)}));e=m(e);var a=p(l(t)?t:{symbol:t,precision:r,thousand:n,decimal:o,format:s},i.settings.currency),c=f(a.format);return(e>0?c.pos:e<0?c.neg:c.zero).replace("%s",a.symbol).replace("%v",g(Math.abs(e),h(a.precision),a.thousand,a.decimal))};i.formatColumn=function(e,t,r,n,o,s){if(!e)return[];var a=p(l(t)?t:{symbol:t,precision:r,thousand:n,decimal:o,format:s},i.settings.currency),y=f(a.format),T=y.pos.indexOf("%s")<y.pos.indexOf("%v"),b=0,_=d(e,(function(e,t){if(u(e))return i.formatColumn(e,a);var r=((e=m(e))>0?y.pos:e<0?y.neg:y.zero).replace("%s",a.symbol).replace("%v",g(Math.abs(e),h(a.precision),a.thousand,a.decimal));return r.length>b&&(b=r.length),r}));return d(_,(function(e,t){return c(e)&&e.length<b?T?e.replace(a.symbol,a.symbol+new Array(b-e.length+1).join(" ")):new Array(b-e.length+1).join(" ")+e:e}))},void 0!==r?(void 0!==t&&t.exports&&(r=t.exports=i),r.accounting=i):"function"==typeof define&&define.amd?define([],(function(){return i})):(i.noConflict=(y=e.accounting,function(){return e.accounting=y,i.noConflict=void 0,i}),e.accounting=i)}(this)}}},{package:"currency-formatter>accounting",file:"node_modules/accounting/accounting.js"}],[3826,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){
/*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
!function(e){function n(e){return parseInt(e)===e}function i(e){if(!n(e.length))return!1;for(var t=0;t<e.length;t++)if(!n(e[t])||e[t]<0||e[t]>255)return!1;return!0}function o(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!i(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(n(e.length)&&i(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function s(e){return new Uint8Array(e)}function a(e,t,r,n,i){null==n&&null==i||(e=e.slice?e.slice(n,i):Array.prototype.slice.call(e,n,i)),t.set(e,r)}var c,u={toBytes:function(e){var t=[],r=0;for(e=encodeURI(e);r<e.length;){var n=e.charCodeAt(r++);37===n?(t.push(parseInt(e.substr(r,2),16)),r+=2):t.push(n)}return o(t)},fromBytes:function(e){for(var t=[],r=0;r<e.length;){var n=e[r];n<128?(t.push(String.fromCharCode(n)),r++):n>191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}},l=(c="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},fromBytes:function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(c[(240&n)>>4]+c[15&n])}return t.join("")}}),p={16:10,24:12,32:14},d=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],h=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],f=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],y=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],T=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],g=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],b=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],_=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],O=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],E=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],S=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],v=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],x=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],w=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function A(e){for(var t=[],r=0;r<e.length;r+=4)t.push(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]);return t}var R=function(e){if(!(this instanceof R))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:o(e,!0)}),this._prepare()};R.prototype._prepare=function(){var e=p[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var r,n=4*(e+1),i=this.key.length/4,o=A(this.key);for(t=0;t<i;t++)r=t>>2,this._Ke[r][t%4]=o[t],this._Kd[e-r][t%4]=o[t];for(var s,a=0,c=i;c<n;){if(s=o[i-1],o[0]^=h[s>>16&255]<<24^h[s>>8&255]<<16^h[255&s]<<8^h[s>>24&255]^d[a]<<24,a+=1,8!=i)for(t=1;t<i;t++)o[t]^=o[t-1];else{for(t=1;t<i/2;t++)o[t]^=o[t-1];s=o[i/2-1],o[i/2]^=h[255&s]^h[s>>8&255]<<8^h[s>>16&255]<<16^h[s>>24&255]<<24;for(t=i/2+1;t<i;t++)o[t]^=o[t-1]}for(t=0;t<i&&c<n;)u=c>>2,l=c%4,this._Ke[u][l]=o[t],this._Kd[e-u][l]=o[t++],c++}for(var u=1;u<e;u++)for(var l=0;l<4;l++)s=this._Kd[u][l],this._Kd[u][l]=S[s>>24&255]^v[s>>16&255]^x[s>>8&255]^w[255&s]},R.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=A(e),i=0;i<4;i++)n[i]^=this._Ke[0][i];for(var o=1;o<t;o++){for(i=0;i<4;i++)r[i]=y[n[i]>>24&255]^m[n[(i+1)%4]>>16&255]^T[n[(i+2)%4]>>8&255]^g[255&n[(i+3)%4]]^this._Ke[o][i];n=r.slice()}var a,c=s(16);for(i=0;i<4;i++)a=this._Ke[t][i],c[4*i]=255&(h[n[i]>>24&255]^a>>24),c[4*i+1]=255&(h[n[(i+1)%4]>>16&255]^a>>16),c[4*i+2]=255&(h[n[(i+2)%4]>>8&255]^a>>8),c[4*i+3]=255&(h[255&n[(i+3)%4]]^a);return c},R.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=A(e),i=0;i<4;i++)n[i]^=this._Kd[0][i];for(var o=1;o<t;o++){for(i=0;i<4;i++)r[i]=b[n[i]>>24&255]^_[n[(i+3)%4]>>16&255]^O[n[(i+2)%4]>>8&255]^E[255&n[(i+1)%4]]^this._Kd[o][i];n=r.slice()}var a,c=s(16);for(i=0;i<4;i++)a=this._Kd[t][i],c[4*i]=255&(f[n[i]>>24&255]^a>>24),c[4*i+1]=255&(f[n[(i+3)%4]>>16&255]^a>>16),c[4*i+2]=255&(f[n[(i+2)%4]>>8&255]^a>>8),c[4*i+3]=255&(f[255&n[(i+1)%4]]^a);return c};var I=function(e){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new R(e)};I.prototype.encrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=s(e.length),r=s(16),n=0;n<e.length;n+=16)a(e,r,0,n,n+16),a(r=this._aes.encrypt(r),t,n);return t},I.prototype.decrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=s(e.length),r=s(16),n=0;n<e.length;n+=16)a(e,r,0,n,n+16),a(r=this._aes.decrypt(r),t,n);return t};var P=function(e,t){if(!(this instanceof P))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=s(16);this._lastCipherblock=o(t,!0),this._aes=new R(e)};P.prototype.encrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=s(e.length),r=s(16),n=0;n<e.length;n+=16){a(e,r,0,n,n+16);for(var i=0;i<16;i++)r[i]^=this._lastCipherblock[i];this._lastCipherblock=this._aes.encrypt(r),a(this._lastCipherblock,t,n)}return t},P.prototype.decrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=s(e.length),r=s(16),n=0;n<e.length;n+=16){a(e,r,0,n,n+16),r=this._aes.decrypt(r);for(var i=0;i<16;i++)t[n+i]=r[i]^this._lastCipherblock[i];a(e,this._lastCipherblock,0,n,n+16)}return t};var N=function(e,t,r){if(!(this instanceof N))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 size)")}else t=s(16);r||(r=1),this.segmentSize=r,this._shiftRegister=o(t,!0),this._aes=new R(e)};N.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,r=o(e,!0),n=0;n<r.length;n+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)r[n+i]^=t[i];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(r,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r},N.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,r=o(e,!0),n=0;n<r.length;n+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)r[n+i]^=t[i];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(e,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r};var C=function(e,t){if(!(this instanceof C))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=s(16);this._lastPrecipher=o(t,!0),this._lastPrecipherIndex=16,this._aes=new R(e)};C.prototype.encrypt=function(e){for(var t=o(e,!0),r=0;r<t.length;r++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[r]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},C.prototype.decrypt=C.prototype.encrypt;var j=function(e){if(!(this instanceof j))throw Error("Counter must be instanitated with `new`");0===e||e||(e=1),"number"==typeof e?(this._counter=s(16),this.setValue(e)):this.setBytes(e)};j.prototype.setValue=function(e){if("number"!=typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");if(e>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)},j.prototype.setBytes=function(e){if(16!=(e=o(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},j.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var k=function(e,t){if(!(this instanceof k))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof j||(t=new j(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new R(e)};k.prototype.encrypt=function(e){for(var t=o(e,!0),r=0;r<t.length;r++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[r]^=this._remainingCounter[this._remainingCounterIndex++];return t},k.prototype.decrypt=k.prototype.encrypt;var M={AES:R,Counter:j,ModeOfOperation:{ecb:I,cbc:P,cfb:N,ofb:C,ctr:k},utils:{hex:l,utf8:u},padding:{pkcs7:{pad:function(e){var t=16-(e=o(e,!0)).length%16,r=s(e.length+t);a(e,r);for(var n=e.length;n<r.length;n++)r[n]=t;return r},strip:function(e){if((e=o(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var r=e.length-t,n=0;n<t;n++)if(e[r+n]!==t)throw new Error("PKCS#7 invalid padding byte");var i=s(r);return a(e,i,0,0,r),i}}},_arrayTest:{coerceArray:o,createArray:s,copyArray:a}};void 0!==r?t.exports=M:"function"==typeof define&&define.amd?define([],(function(){return M})):(e.aesjs&&(M._aesjs=e.aesjs),e.aesjs=M)}(this)}}},{package:"eth-lattice-keyring>gridplus-sdk>aes-js",file:"node_modules/aes-js/index.js"}],[3827,{"./cache":3828,"./compile":3832,"./compile/async":3829,"./compile/error_classes":3830,"./compile/formats":3831,"./compile/resolve":3833,"./compile/rules":3834,"./compile/schema_obj":3835,"./compile/util":3837,"./data":3838,"./keyword":3866,"./refs/data.json":3867,"./refs/json-schema-draft-07.json":3868,"fast-json-stable-stringify":4434},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./compile"),i=e("./compile/resolve"),o=e("./cache"),s=e("./compile/schema_obj"),a=e("fast-json-stable-stringify"),c=e("./compile/formats"),u=e("./compile/rules"),l=e("./data"),p=e("./compile/util");t.exports=T,T.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var i=r(t);!0!==r.$async&&(this.errors=r.errors);return i},T.prototype.compile=function(e,t){var r=this._addSchema(e,undefined,t);return r.validate||this._compile(r)},T.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var o=0;o<e.length;o++)this.addSchema(e[o],undefined,r,n);return this}var s=this._getId(e);if(s!==undefined&&"string"!=typeof s)throw new Error("schema id must be string");return S(this,t=i.normalizeId(t||s)),this._schemas[t]=this._addSchema(e,r,n,!0),this},T.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},T.prototype.validateSchema=function(e,t){var r=e.$schema;if(r!==undefined&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(f)?f:undefined,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var i="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(i);this.logger.error(i)}return n},T.prototype.getSchema=function(e){var t=g(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var r=i.schema.call(e,{schema:{}},t);if(r){var o=r.schema,a=r.root,c=r.baseId,u=n.call(e,o,a,undefined,c);return e._fragments[t]=new s({ref:t,fragment:!0,schema:o,root:a,baseId:c,validate:u}),u}}(this,e)}},T.prototype.removeSchema=function(e){if(e instanceof RegExp)return b(this,this._schemas,e),b(this,this._refs,e),this;switch(typeof e){case"undefined":return b(this,this._schemas),b(this,this._refs),this._cache.clear(),this;case"string":var t=g(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var r=this._opts.serialize,n=r?r(e):e;this._cache.del(n);var o=this._getId(e);o&&(o=i.normalizeId(o),delete this._schemas[o],delete this._refs[o])}return this},T.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},T.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=(t=t||{}).separator===undefined?", ":t.separator,n=t.dataVar===undefined?"data":t.dataVar,i="",o=0;o<e.length;o++){var s=e[o];s&&(i+=n+s.dataPath+" "+s.message+r)}return i.slice(0,-r.length)},T.prototype._addSchema=function(e,t,r,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var o=this._opts.serialize,a=o?o(e):e,c=this._cache.get(a);if(c)return c;n=n||!1!==this._opts.addUsedSchema;var u=i.normalizeId(this._getId(e));u&&n&&S(this,u);var l,p=!1!==this._opts.validateSchema&&!t;p&&!(l=u&&u==i.normalizeId(e.$schema))&&this.validateSchema(e,!0);var d=i.ids.call(this,e),h=new s({id:u,schema:e,localRefs:d,cacheKey:a,meta:r});"#"!=u[0]&&n&&(this._refs[u]=h);this._cache.put(a,h),p&&l&&this.validateSchema(e,!0);return h},T.prototype._compile=function(e,t){if(e.compiling)return e.validate=o,o.schema=e.schema,o.errors=null,o.root=t||o,!0===e.schema.$async&&(o.$async=!0),o;var r,i;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{i=n.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=i,e.refs=i.refs,e.refVal=i.refVal,e.root=i.root,i;function o(){var t=e.validate,r=t.apply(this,arguments);return o.errors=t.errors,r}},T.prototype.compileAsync=e("./compile/async");var d=e("./keyword");T.prototype.addKeyword=d.add,T.prototype.getKeyword=d.get,T.prototype.removeKeyword=d.remove,T.prototype.validateKeyword=d.validate;var h=e("./compile/error_classes");T.ValidationError=h.Validation,T.MissingRefError=h.MissingRef,T.$dataMetaSchema=l;var f="http://json-schema.org/draft-07/schema",y=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],m=["/properties"];function T(t){if(!(this instanceof T))return new T(t);t=this._opts=p.copy(t)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:v,warn:v,error:v};else{if(t===undefined&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=c(t.format),this._cache=t.cache||new o,this._loadingSchemas={},this._compilations=[],this.RULES=u(),this._getId=function(e){switch(e.schemaId){case"auto":return E;case"id":return _;default:return O}}(t),t.loopRequired=t.loopRequired||Infinity,"property"==t.errorDataPath&&(t._errorDataPathProperty=!0),t.serialize===undefined&&(t.serialize=a),this._metaOpts=function(e){for(var t=p.copy(e._opts),r=0;r<y.length;r++)delete t[y[r]];return t}(this),t.formats&&function(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}(this),t.keywords&&function(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}(this),function(t){var r;t._opts.$data&&(r=e("./refs/data.json"),t.addMetaSchema(r,r.$id,!0));if(!1===t._opts.meta)return;var n=e("./refs/json-schema-draft-07.json");t._opts.$data&&(n=l(n,m));t.addMetaSchema(n,f,!0),t._refs["http://json-schema.org/schema"]=f}(this),"object"==typeof t.meta&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}(this)}function g(e,t){return t=i.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function b(e,t,r){for(var n in t){var i=t[n];i.meta||r&&!r.test(n)||(e._cache.del(i.cacheKey),delete t[n])}}function _(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function O(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function E(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function S(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function v(){}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/ajv.js"}],[3828,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=t.exports=function(){this._cache={}};n.prototype.put=function(e,t){this._cache[e]=t},n.prototype.get=function(e){return this._cache[e]},n.prototype.del=function(e){delete this._cache[e]},n.prototype.clear=function(){this._cache={}}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/cache.js"}],[3829,{"./error_classes":3830},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./error_classes").MissingRef;t.exports=function e(t,r,i){var o=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(i=r,r=undefined);var s=a(t).then((function(){var e=o._addSchema(t,undefined,r);return e.validate||c(e)}));i&&s.then((function(e){i(null,e)}),i);return s;function a(t){var r=t.$schema;return r&&!o.getSchema(r)?e.call(o,{$ref:r},!0):Promise.resolve()}function c(e){try{return o._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(u(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var i=o._loadingSchemas[n];i||(i=o._loadingSchemas[n]=o._opts.loadSchema(n)).then(s,s);return i.then((function(e){if(!u(n))return a(e).then((function(){u(n)||o.addSchema(e,n,undefined,r)}))})).then((function(){return c(e)}));function s(){delete o._loadingSchemas[n]}function u(e){return o._refs[e]||o._schemas[e]}}(t);throw t}}}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/compile/async.js"}],[383,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/interopRequireDefault.js"}],[3830,{"./resolve":3833},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./resolve");function i(e,t,r){this.message=r||i.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function o(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}t.exports={Validation:o((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:o(i)},i.message=function(e,t){return"can't resolve reference "+t+" from id "+e}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/compile/error_classes.js"}],[3831,{"./util":3837},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./util"),i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31],s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,a=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,c=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,u=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,l=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,p=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,d=/^(?:\/(?:[^~/]|~0|~1)*)*$/,h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,f=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function y(e){return e="full"==e?"full":"fast",n.copy(y[e])}function m(e){var t=e.match(i);if(!t)return!1;var r=+t[1],n=+t[2],s=+t[3];return n>=1&&n<=12&&s>=1&&s<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:o[n])}function T(e,t){var r=e.match(s);if(!r)return!1;var n=r[1],i=r[2],o=r[3],a=r[5];return(n<=23&&i<=59&&o<=59||23==n&&59==i&&60==o)&&(!t||a)}t.exports=y,y.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":u,url:l,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:a,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:O,uuid:p,"json-pointer":d,"json-pointer-uri-fragment":h,"relative-json-pointer":f},y.full={date:m,time:T,"date-time":function(e){var t=e.split(g);return 2==t.length&&m(t[0])&&T(t[1],!0)},uri:function(e){return b.test(e)&&c.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":u,url:l,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:a,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:O,uuid:p,"json-pointer":d,"json-pointer-uri-fragment":h,"relative-json-pointer":f};var g=/t|\s/i;var b=/\/|:/;var _=/[^\\]\\Z/;function O(e){if(_.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/compile/formats.js"}],[3832,{"../dotjs/validate":3865,"./error_classes":3830,"./resolve":3833,"./util":3837,"fast-deep-equal":4427,"fast-json-stable-stringify":4434},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./resolve"),i=e("./util"),o=e("./error_classes"),s=e("fast-json-stable-stringify"),a=e("../dotjs/validate"),c=i.ucs2length,u=e("fast-deep-equal"),l=o.Validation;function p(e,t,r){var n=h.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function d(e,t,r){var n=h.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function h(e,t,r){for(var n=0;n<this._compilations.length;n++){var i=this._compilations[n];if(i.schema==e&&i.root==t&&i.baseId==r)return n}return-1}function f(e,t){return"var pattern"+e+" = new RegExp("+i.toQuotedString(t[e])+");"}function y(e){return"var default"+e+" = defaults["+e+"];"}function m(e,t){return t[e]===undefined?"":"var refVal"+e+" = refVal["+e+"];"}function T(e){return"var customRule"+e+" = customRules["+e+"];"}function g(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}t.exports=function e(t,r,h,b){var _=this,O=this._opts,E=[undefined],S={},v=[],x={},w=[],A={},R=[];r=r||{schema:t,refVal:E,refs:S};var I=p.call(this,t,r,b),P=this._compilations[I.index];if(I.compiling)return P.callValidate=function e(){var t=P.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var N=this._formats,C=this.RULES;try{var j=M(t,r,h,b);P.validate=j;var k=P.callValidate;return k&&(k.schema=j.schema,k.errors=null,k.refs=j.refs,k.refVal=j.refVal,k.root=j.root,k.$async=j.$async,O.sourceCode&&(k.source=j.source)),j}finally{d.call(this,t,r,b)}function M(t,s,p,d){var h=!s||s&&s.schema==t;if(s.schema!=r.schema)return e.call(_,t,s,p,d);var b,x=!0===t.$async,A=a({isTop:!0,schema:t,isRoot:h,baseId:d,root:s,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:o.MissingRef,RULES:C,validate:a,util:i,resolve:n,resolveRef:L,usePattern:z,useDefault:U,useCustomRule:F,opts:O,formats:N,logger:_.logger,self:_});A=g(E,m)+g(v,f)+g(w,y)+g(R,T)+A,O.processCode&&(A=O.processCode(A,t));try{b=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",A)(_,C,N,r,E,w,R,u,c,l),E[0]=b}catch(e){throw _.logger.error("Error compiling schema, function code:",A),e}return b.schema=t,b.errors=null,b.refs=S,b.refVal=E,b.root=h?b:s,x&&(b.$async=!0),!0===O.sourceCode&&(b.source={code:A,patterns:v,defaults:w}),b}function L(t,i,o){i=n.url(t,i);var s,a,c=S[i];if(c!==undefined)return B(s=E[c],a="refVal["+c+"]");if(!o&&r.refs){var u=r.refs[i];if(u!==undefined)return B(s=r.refVal[u],a=D(i,s))}a=D(i);var l=n.call(_,M,r,i);if(l===undefined){var p=h&&h[i];p&&(l=n.inlineRef(p,O.inlineRefs)?p:e.call(_,p,r,h,t))}if(l!==undefined)return function(e,t){var r=S[e];E[r]=t}(i,l),B(l,a);!function(e){delete S[e]}(i)}function D(e,t){var r=E.length;return E[r]=t,S[e]=r,"refVal"+r}function B(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function z(e){var t=x[e];return t===undefined&&(t=x[e]=v.length,v[t]=e),"pattern"+t}function U(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return i.toQuotedString(e);case"object":if(null===e)return"null";var t=s(e),r=A[t];return r===undefined&&(r=A[t]=w.length,w[r]=e),"default"+r}}function F(e,t,r,n){if(!1!==_._opts.validateSchema){var i=e.definition.dependencies;if(i&&!i.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+i.join(","));var o=e.definition.validateSchema;if(o)if(!o(t)){var s="keyword schema is invalid: "+_.errorsText(o.errors);if("log"!=_._opts.validateSchema)throw new Error(s);_.logger.error(s)}}var a,c=e.definition.compile,u=e.definition.inline,l=e.definition.macro;if(c)a=c.call(_,t,r,n);else if(l)a=l.call(_,t,r,n),!1!==O.validateSchema&&_.validateSchema(a,!0);else if(u)a=u.call(_,n,e.keyword,t,r);else if(!(a=e.definition.validate))return;if(a===undefined)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var p=R.length;return R[p]=a,{code:"customRule"+p,validate:a}}}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/compile/index.js"}],[3833,{"./schema_obj":3835,"./util":3837,"fast-deep-equal":4427,"json-schema-traverse":3869,"uri-js":5638},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("uri-js"),i=e("fast-deep-equal"),o=e("./util"),s=e("./schema_obj"),a=e("json-schema-traverse");function c(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return c.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof s)return f(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var i,o,a,l=u.call(this,t,r);return l&&(i=l.schema,t=l.root,a=l.baseId),i instanceof s?o=i.validate||e.call(this,i.schema,t,undefined,a):i!==undefined&&(o=f(i,this._opts.inlineRefs)?i:e.call(this,i,t,undefined,a)),o}function u(e,t){var r=n.parse(t),i=g(r),o=T(this._getId(e.schema));if(0===Object.keys(e.schema).length||i!==o){var a=_(i),c=this._refs[a];if("string"==typeof c)return l.call(this,e,c,r);if(c instanceof s)c.validate||this._compile(c),e=c;else{if(!((c=this._schemas[a])instanceof s))return;if(c.validate||this._compile(c),a==_(t))return{schema:c,root:e,baseId:o};e=c}if(!e.schema)return;o=T(this._getId(e.schema))}return d.call(this,r,o,e.schema,e)}function l(e,t,r){var n=u.call(this,e,t);if(n){var i=n.schema,o=n.baseId;e=n.root;var s=this._getId(i);return s&&(o=O(o,s)),d.call(this,r,o,i,e)}}t.exports=c,c.normalizeId=_,c.fullPath=T,c.url=O,c.ids=function(e){var t=_(this._getId(e)),r={"":t},s={"":T(t,!1)},c={},u=this;return a(e,{allKeys:!0},(function(e,t,a,l,p,d,h){if(""!==t){var f=u._getId(e),y=r[l],m=s[l]+"/"+p;if(h!==undefined&&(m+="/"+("number"==typeof h?h:o.escapeFragment(h))),"string"==typeof f){f=y=_(y?n.resolve(y,f):f);var T=u._refs[f];if("string"==typeof T&&(T=u._refs[T]),T&&T.schema){if(!i(e,T.schema))throw new Error('id "'+f+'" resolves to more than one schema')}else if(f!=_(m))if("#"==f[0]){if(c[f]&&!i(e,c[f]))throw new Error('id "'+f+'" resolves to more than one schema');c[f]=e}else u._refs[f]=m}r[t]=y,s[t]=m}})),c},c.inlineRef=f,c.schema=u;var p=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function d(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var i=e.fragment.split("/"),s=1;s<i.length;s++){var a=i[s];if(a){if((r=r[a=o.unescapeFragment(a)])===undefined)break;var c;if(!p[a]&&((c=this._getId(r))&&(t=O(t,c)),r.$ref)){var l=O(t,r.$ref),d=u.call(this,n,l);d&&(r=d.schema,n=d.root,t=d.baseId)}}}return r!==undefined&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var h=o.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function f(e,t){return!1!==t&&(t===undefined||!0===t?y(e):t?m(e)<=t:void 0)}function y(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!y(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!y(t))return!1}return!0}function m(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=m(t)),r==Infinity)return Infinity}else for(var i in e){if("$ref"==i)return Infinity;if(h[i])r++;else if("object"==typeof(t=e[i])&&(r+=m(t)+1),r==Infinity)return Infinity}return r}function T(e,t){return!1!==t&&(e=_(e)),g(n.parse(e))}function g(e){return n.serialize(e).split("#")[0]+"#"}var b=/#\/?$/;function _(e){return e?e.replace(b,""):""}function O(e,t){return t=_(t),n.resolve(e,t)}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/compile/resolve.js"}],[3834,{"../dotjs":3854,"./util":3837},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../dotjs"),i=e("./util").toHash;t.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=i(t),e.types=i(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var i;if("object"==typeof r){var o=Object.keys(r)[0];i=r[o],r=o,i.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:i}})),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=i(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/compile/rules.js"}],[3835,{"./util":3837},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./util");t.exports=function(e){n.copy(e,this)}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/compile/schema_obj.js"}],[3836,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){for(var t,r=0,n=e.length,i=0;i<n;)r++,(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<n&&56320==(64512&(t=e.charCodeAt(i)))&&i++;return r}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/compile/ucs2length.js"}],[3837,{"./ucs2length":3836,"fast-deep-equal":4427},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t,r,n){var i=n?" !== ":" === ",o=n?" || ":" && ",s=n?"!":"",a=n?"":"!";switch(e){case"null":return t+i+"null";case"array":return s+"Array.isArray("+t+")";case"object":return"("+s+t+o+"typeof "+t+i+'"object"'+o+a+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+o+a+"("+t+" % 1)"+o+t+i+t+(r?o+s+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(r?o+s+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}t.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){if(1===e.length)return n(e[0],t,r,!0);var i="",s=o(e);for(var a in s.array&&s.object&&(i=s.null?"(":"(!"+t+" || ",i+="typeof "+t+' !== "object")',delete s.null,delete s.array,delete s.object),s.number&&delete s.integer,s)i+=(i?" && ":"")+n(a,t,r,!0);return i},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var o=t[n];(i[o]||"array"===e&&"array"===o)&&(r[r.length]=o)}if(r.length)return r}else{if(i[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:o,getProperty:c,escapeQuotes:u,equal:e("fast-deep-equal"),ucs2length:e("./ucs2length"),varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var r in e)if(!t[r])return r},toQuotedString:l,getPathExpr:function(e,t,r,n){return h(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){var n=l(r?"/"+f(t):c(t));return h(e,n)},getData:function(e,t,r){var n,i,o,s;if(""===e)return"rootData";if("/"==e[0]){if(!p.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,o="rootData"}else{if(!(s=e.match(d)))throw new Error("Invalid JSON-pointer: "+e);if(n=+s[1],"#"==(i=s[2])){if(n>=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(o="data"+(t-n||""),!i)return o}for(var a=o,u=i.split("/"),l=0;l<u.length;l++){var h=u[l];h&&(a+=" && "+(o+=c(y(h))))}return a},unescapeFragment:function(e){return y(decodeURIComponent(e))},unescapeJsonPointer:y,escapeFragment:function(e){return encodeURIComponent(f(e))},escapeJsonPointer:f};var i=o(["string","number","integer","boolean","null"]);function o(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var s=/^[a-z$_][a-z$_0-9]*$/i,a=/'|\\/g;function c(e){return"number"==typeof e?"["+e+"]":s.test(e)?"."+e:"['"+u(e)+"']"}function u(e){return e.replace(a,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function l(e){return"'"+u(e)+"'"}var p=/^\/(?:[^~]|~0|~1)*$/,d=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function h(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function f(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function y(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/compile/util.js"}],[3838,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];t.exports=function(e,t){for(var r=0;r<t.length;r++){e=JSON.parse(JSON.stringify(e));var i,o=t[r].split("/"),s=e;for(i=1;i<o.length;i++)s=s[o[i]];for(i=0;i<n.length;i++){var a=n[i],c=s[a];c&&(s[a]={anyOf:[c,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/data.js"}],[3839,{"./refs/json-schema-draft-07.json":3868},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./refs/json-schema-draft-07.json");t.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/definition_schema.js"}],[384,{"./typeof.js":400},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./typeof.js").default;function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}t.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var c=s?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/interopRequireWildcard.js"}],[3840,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(s||""),d=e.opts.$data&&a&&a.$data;d?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+o):n=a;var h="maximum"==t,f=h?"exclusiveMaximum":"exclusiveMinimum",y=e.schema[f],m=e.opts.$data&&y&&y.$data,T=h?"<":">",g=h?">":"<",b=undefined;if(!d&&"number"!=typeof a&&a!==undefined)throw new Error(t+" must be number");if(!m&&y!==undefined&&"number"!=typeof y&&"boolean"!=typeof y)throw new Error(f+" must be number or boolean");if(m){var _=e.util.getData(y.$data,s,e.dataPathArr),O="exclusive"+o,E="exclType"+o,S="exclIsNumber"+o,v="' + "+(A="op"+o)+" + '";i+=" var schemaExcl"+o+" = "+_+"; ",i+=" var "+O+"; var "+E+" = typeof "+(_="schemaExcl"+o)+"; if ("+E+" != 'boolean' && "+E+" != 'undefined' && "+E+" != 'number') { ";var x;b=f;(x=x||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: '"+f+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var w=i;i=x.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+w+"]); ":i+=" validate.errors = ["+w+"]; return false; ":i+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",d&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+E+" == 'number' ? ( ("+O+" = "+n+" === undefined || "+_+" "+T+"= "+n+") ? "+p+" "+g+"= "+_+" : "+p+" "+g+" "+n+" ) : ( ("+O+" = "+_+" === true) ? "+p+" "+g+"= "+n+" : "+p+" "+g+" "+n+" ) || "+p+" !== "+p+") { var op"+o+" = "+O+" ? '"+T+"' : '"+T+"='; ",a===undefined&&(b=f,u=e.errSchemaPath+"/"+f,n=_,d=m)}else{v=T;if((S="number"==typeof y)&&d){var A="'"+v+"'";i+=" if ( ",d&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" ( "+n+" === undefined || "+y+" "+T+"= "+n+" ? "+p+" "+g+"= "+y+" : "+p+" "+g+" "+n+" ) || "+p+" !== "+p+") { "}else{S&&a===undefined?(O=!0,b=f,u=e.errSchemaPath+"/"+f,n=y,g+="="):(S&&(n=Math[h?"min":"max"](y,a)),y===(!S||n)?(O=!0,b=f,u=e.errSchemaPath+"/"+f,g+="="):(O=!1,v+="="));A="'"+v+"'";i+=" if ( ",d&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+p+" "+g+" "+n+" || "+p+" !== "+p+") { "}}b=b||t,(x=x||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+A+", limit: "+n+", exclusive: "+O+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be "+v+" ",i+=d?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+c:""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";w=i;return i=x.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+w+"]); ":i+=" validate.errors = ["+w+"]; return false; ":i+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { "),i}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/_limit.js"}],[3841,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(s||""),d=e.opts.$data&&a&&a.$data;if(d?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+o):n=a,!d&&"number"!=typeof a)throw new Error(t+" must be number");i+="if ( ",d&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+p+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var h=t,f=f||[];f.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(h||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=d?"' + "+n+" + '":""+a,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+c:""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var y=i;return i=f.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/_limitItems.js"}],[3842,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(s||""),d=e.opts.$data&&a&&a.$data;if(d?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+o):n=a,!d&&"number"!=typeof a)throw new Error(t+" must be number");var h="maxLength"==t?">":"<";i+="if ( ",d&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?i+=" "+p+".length ":i+=" ucs2length("+p+") ",i+=" "+h+" "+n+") { ";var f=t,y=y||[];y.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(f||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=d?"' + "+n+" + '":""+a,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+c:""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var m=i;return i=y.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/_limitLength.js"}],[3843,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(s||""),d=e.opts.$data&&a&&a.$data;if(d?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+o):n=a,!d&&"number"!=typeof a)throw new Error(t+" must be number");i+="if ( ",d&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" Object.keys("+p+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var h=t,f=f||[];f.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(h||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==t?"more":"fewer",i+=" than ",i+=d?"' + "+n+" + '":""+a,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+c:""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var y=i;return i=f.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/_limitProperties.js"}],[3844,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n=" ",i=e.schema[t],o=e.schemaPath+e.util.getProperty(t),s=e.errSchemaPath+"/"+t,a=!e.opts.allErrors,c=e.util.copy(e),u="";c.level++;var l="valid"+c.level,p=c.baseId,d=!0,h=i;if(h)for(var f,y=-1,m=h.length-1;y<m;)f=h[y+=1],(e.opts.strictKeywords?"object"==typeof f&&Object.keys(f).length>0||!1===f:e.util.schemaHasRules(f,e.RULES.all))&&(d=!1,c.schema=f,c.schemaPath=o+"["+y+"]",c.errSchemaPath=s+"/"+y,n+=" "+e.validate(c)+" ",c.baseId=p,a&&(n+=" if ("+l+") { ",u+="}"));return a&&(n+=d?" if (true) { ":" "+u.slice(0,-1)+" "),n}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/allOf.js"}],[3845,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+i,d="errs__"+i,h=e.util.copy(e),f="";h.level++;var y="valid"+h.level,m=s.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(m){var T=h.baseId;n+=" var "+d+" = errors; var "+p+" = false; ";var g=e.compositeRule;e.compositeRule=h.compositeRule=!0;var b=s;if(b)for(var _,O=-1,E=b.length-1;O<E;)_=b[O+=1],h.schema=_,h.schemaPath=a+"["+O+"]",h.errSchemaPath=c+"/"+O,n+=" "+e.validate(h)+" ",h.baseId=T,n+=" "+p+" = "+p+" || "+y+"; if (!"+p+") { ",f+="}";e.compositeRule=h.compositeRule=g,n+=" "+f+" if (!"+p+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else u&&(n+=" if (true) { ");return n}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/anyOf.js"}],[3846,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n=" ",i=e.schema[t],o=e.errSchemaPath+"/"+t,s=(e.opts.allErrors,e.util.toQuotedString(i));return!0===e.opts.$comment?n+=" console.log("+s+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+s+", "+e.util.toQuotedString(o)+", validate.root.schema);"),n}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/comment.js"}],[3847,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+i,d=e.opts.$data&&s&&s.$data;d&&(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; "),d||(n+=" var schema"+i+" = validate.schema"+a+";"),n+="var "+p+" = equal("+l+", schema"+i+"); if (!"+p+") { ";var h=h||[];h.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var f=n;return n=h.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+f+"]); ":n+=" validate.errors = ["+f+"]; return false; ":n+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/const.js"}],[3848,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+i,d="errs__"+i,h=e.util.copy(e);h.level++;var f="valid"+h.level,y="i"+i,m=h.dataLevel=e.dataLevel+1,T="data"+m,g=e.baseId,b=e.opts.strictKeywords?"object"==typeof s&&Object.keys(s).length>0||!1===s:e.util.schemaHasRules(s,e.RULES.all);if(n+="var "+d+" = errors;var "+p+";",b){var _=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=s,h.schemaPath=a,h.errSchemaPath=c,n+=" var "+f+" = false; for (var "+y+" = 0; "+y+" < "+l+".length; "+y+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers,!0);var O=l+"["+y+"]";h.dataPathArr[m]=y;var E=e.validate(h);h.baseId=g,e.util.varOccurences(E,T)<2?n+=" "+e.util.varReplace(E,T,O)+" ":n+=" var "+T+" = "+O+"; "+E+" ",n+=" if ("+f+") break; } ",e.compositeRule=h.compositeRule=_,n+=" if (!"+f+") {"}else n+=" if ("+l+".length == 0) {";var S=S||[];S.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var v=n;return n=S.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/contains.js"}],[3849,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n,i,o=" ",s=e.level,a=e.dataLevel,c=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(a||""),h="valid"+s,f="errs__"+s,y=e.opts.$data&&c&&c.$data;y?(o+=" var schema"+s+" = "+e.util.getData(c.$data,a,e.dataPathArr)+"; ",i="schema"+s):i=c;var m,T,g,b,_,O=this,E="definition"+s,S=O.definition,v="";if(y&&S.$data){_="keywordValidate"+s;var x=S.validateSchema;o+=" var "+E+" = RULES.custom['"+t+"'].definition; var "+_+" = "+E+".validate;"}else{if(!(b=e.useCustomRule(O,c,e.schema,e)))return;i="validate.schema"+u,_=b.code,m=S.compile,T=S.inline,g=S.macro}var w=_+".errors",A="i"+s,R="ruleErr"+s,I=S.async;if(I&&!e.async)throw new Error("async keyword in sync schema");if(T||g||(o+=w+" = null;"),o+="var "+f+" = errors;var "+h+";",y&&S.$data&&(v+="}",o+=" if ("+i+" === undefined) { "+h+" = true; } else { ",x&&(v+="}",o+=" "+h+" = "+E+".validateSchema("+i+"); if ("+h+") { ")),T)S.statements?o+=" "+b.validate+" ":o+=" "+h+" = "+b.validate+"; ";else if(g){var P=e.util.copy(e);v="";P.level++;var N="valid"+P.level;P.schema=b.validate,P.schemaPath="";var C=e.compositeRule;e.compositeRule=P.compositeRule=!0;var j=e.validate(P).replace(/validate\.schema/g,_);e.compositeRule=P.compositeRule=C,o+=" "+j}else{(D=D||[]).push(o),o="",o+=" "+_+".call( ",e.opts.passContext?o+="this":o+="self",m||!1===S.schema?o+=" , "+d+" ":o+=" , "+i+" , "+d+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var k=a?"data"+(a-1||""):"parentData",M=a?e.dataPathArr[a]:"parentDataProperty",L=o+=" , "+k+" , "+M+" , rootData ) ";o=D.pop(),!1===S.errors?(o+=" "+h+" = ",I&&(o+="await "),o+=L+"; "):o+=I?" var "+(w="customErrors"+s)+" = null; try { "+h+" = await "+L+"; } catch (e) { "+h+" = false; if (e instanceof ValidationError) "+w+" = e.errors; else throw e; } ":" "+w+" = null; "+h+" = "+L+"; "}if(S.modifying&&(o+=" if ("+k+") "+d+" = "+k+"["+M+"];"),o+=""+v,S.valid)p&&(o+=" if (true) { ");else{var D;o+=" if ( ",S.valid===undefined?(o+=" !",o+=g?""+N:""+h):o+=" "+!S.valid+" ",o+=") { ",n=O.keyword,(D=D||[]).push(o),o="",(D=D||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+O.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+O.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var B=o;o=D.pop(),!e.compositeRule&&p?e.async?o+=" throw new ValidationError(["+B+"]); ":o+=" validate.errors = ["+B+"]; return false; ":o+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var z=o;o=D.pop(),T?S.errors?"full"!=S.errors&&(o+=" for (var "+A+"="+f+"; "+A+"<errors; "+A+"++) { var "+R+" = vErrors["+A+"]; if ("+R+".dataPath === undefined) "+R+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+R+".schemaPath === undefined) { "+R+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(o+=" "+R+".schema = "+i+"; "+R+".data = "+d+"; "),o+=" } "):!1===S.errors?o+=" "+z+" ":(o+=" if ("+f+" == errors) { "+z+" } else { for (var "+A+"="+f+"; "+A+"<errors; "+A+"++) { var "+R+" = vErrors["+A+"]; if ("+R+".dataPath === undefined) "+R+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+R+".schemaPath === undefined) { "+R+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(o+=" "+R+".schema = "+i+"; "+R+".data = "+d+"; "),o+=" } } "):g?(o+=" var err = ",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+O.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+O.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; ")):!1===S.errors?o+=" "+z+" ":(o+=" if (Array.isArray("+w+")) { if (vErrors === null) vErrors = "+w+"; else vErrors = vErrors.concat("+w+"); errors = vErrors.length; for (var "+A+"="+f+"; "+A+"<errors; "+A+"++) { var "+R+" = vErrors["+A+"]; if ("+R+".dataPath === undefined) "+R+".dataPath = (dataPath || '') + "+e.errorPath+"; "+R+'.schemaPath = "'+l+'"; ',e.opts.verbose&&(o+=" "+R+".schema = "+i+"; "+R+".data = "+d+"; "),o+=" } } else { "+z+" } "),o+=" } ",p&&(o+=" else { ")}return o}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/custom.js"}],[385,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/iterableToArray.js"}],[3850,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="errs__"+i,d=e.util.copy(e),h="";d.level++;var f="valid"+d.level,y={},m={},T=e.opts.ownProperties;for(O in s)if("__proto__"!=O){var g=s[O],b=Array.isArray(g)?m:y;b[O]=g}n+="var "+p+" = errors;";var _=e.errorPath;for(var O in n+="var missing"+i+";",m)if((b=m[O]).length){if(n+=" if ( "+l+e.util.getProperty(O)+" !== undefined ",T&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),u){n+=" && ( ";var E=b;if(E)for(var S=-1,v=E.length-1;S<v;){P=E[S+=1],S&&(n+=" || "),n+=" ( ( "+(k=l+(j=e.util.getProperty(P)))+" === undefined ",T&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(P)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?P:j)+") ) "}n+=")) { ";var x="missing"+i,w="' + "+x+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(_,x,!0):_+" + "+x);var A=A||[];A.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(O)+"', missingProperty: '"+w+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(O)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var R=n;n=A.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+R+"]); ":n+=" validate.errors = ["+R+"]; return false; ":n+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var I=b;if(I)for(var P,N=-1,C=I.length-1;N<C;){P=I[N+=1];var j=e.util.getProperty(P),k=(w=e.util.escapeQuotes(P),l+j);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(_,P,e.opts.jsonPointers)),n+=" if ( "+k+" === undefined ",T&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(P)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(O)+"', missingProperty: '"+w+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(O)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",u&&(h+="}",n+=" else { ")}e.errorPath=_;var M=d.baseId;for(var O in y){g=y[O];(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all))&&(n+=" "+f+" = true; if ( "+l+e.util.getProperty(O)+" !== undefined ",T&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") { ",d.schema=g,d.schemaPath=a+e.util.getProperty(O),d.errSchemaPath=c+"/"+e.util.escapeFragment(O),n+=" "+e.validate(d)+" ",d.baseId=M,n+=" } ",u&&(n+=" if ("+f+") { ",h+="}"))}return u&&(n+=" "+h+" if ("+p+" == errors) {"),n}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/dependencies.js"}],[3851,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+i,d=e.opts.$data&&s&&s.$data;d&&(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ");var h="i"+i,f="schema"+i;d||(n+=" var "+f+" = validate.schema"+a+";"),n+="var "+p+";",d&&(n+=" if (schema"+i+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+i+")) "+p+" = false; else {"),n+=p+" = false;for (var "+h+"=0; "+h+"<"+f+".length; "+h+"++) if (equal("+l+", "+f+"["+h+"])) { "+p+" = true; break; }",d&&(n+=" } "),n+=" if (!"+p+") { ";var y=y||[];y.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var m=n;return n=y.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/enum.js"}],[3852,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||"");if(!1===e.opts.format)return u&&(n+=" if (true) { "),n;var p,d=e.opts.$data&&s&&s.$data;d?(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",p="schema"+i):p=s;var h=e.opts.unknownFormats,f=Array.isArray(h);if(d){n+=" var "+(y="format"+i)+" = formats["+p+"]; var "+(m="isObject"+i)+" = typeof "+y+" == 'object' && !("+y+" instanceof RegExp) && "+y+".validate; var "+(T="formatType"+i)+" = "+m+" && "+y+".type || 'string'; if ("+m+") { ",e.async&&(n+=" var async"+i+" = "+y+".async; "),n+=" "+y+" = "+y+".validate; } if ( ",d&&(n+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),n+=" (","ignore"!=h&&(n+=" ("+p+" && !"+y+" ",f&&(n+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),n+=") || "),n+=" ("+y+" && "+T+" == '"+r+"' && !(typeof "+y+" == 'function' ? ",e.async?n+=" (async"+i+" ? await "+y+"("+l+") : "+y+"("+l+")) ":n+=" "+y+"("+l+") ",n+=" : "+y+".test("+l+"))))) {"}else{var y;if(!(y=e.formats[s])){if("ignore"==h)return e.logger.warn('unknown format "'+s+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(n+=" if (true) { "),n;if(f&&h.indexOf(s)>=0)return u&&(n+=" if (true) { "),n;throw new Error('unknown format "'+s+'" is used in schema at path "'+e.errSchemaPath+'"')}var m,T=(m="object"==typeof y&&!(y instanceof RegExp)&&y.validate)&&y.type||"string";if(m){var g=!0===y.async;y=y.validate}if(T!=r)return u&&(n+=" if (true) { "),n;if(g){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(s)+".validate")+"("+l+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(s);m&&(b+=".validate"),n+="function"==typeof y?" "+b+"("+l+") ":" "+b+".test("+l+") ",n+=") { "}}var _=_||[];_.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",n+=d?""+p:""+e.util.toQuotedString(s),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=d?"' + "+p+" + '":""+e.util.escapeQuotes(s),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=d?"validate.schema"+a:""+e.util.toQuotedString(s),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var O=n;return n=_.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+O+"]); ":n+=" validate.errors = ["+O+"]; return false; ":n+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u&&(n+=" else { "),n}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/format.js"}],[3853,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+i,d="errs__"+i,h=e.util.copy(e);h.level++;var f="valid"+h.level,y=e.schema.then,m=e.schema.else,T=y!==undefined&&(e.opts.strictKeywords?"object"==typeof y&&Object.keys(y).length>0||!1===y:e.util.schemaHasRules(y,e.RULES.all)),g=m!==undefined&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),b=h.baseId;if(T||g){var _;h.createErrors=!1,h.schema=s,h.schemaPath=a,h.errSchemaPath=c,n+=" var "+d+" = errors; var "+p+" = true; ";var O=e.compositeRule;e.compositeRule=h.compositeRule=!0,n+=" "+e.validate(h)+" ",h.baseId=b,h.createErrors=!0,n+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=O,T?(n+=" if ("+f+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(h)+" ",h.baseId=b,n+=" "+p+" = "+f+"; ",T&&g?n+=" var "+(_="ifClause"+i)+" = 'then'; ":_="'then'",n+=" } ",g&&(n+=" else { ")):n+=" if (!"+f+") { ",g&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(h)+" ",h.baseId=b,n+=" "+p+" = "+f+"; ",T&&g?n+=" var "+(_="ifClause"+i)+" = 'else'; ":_="'else'",n+=" } "),n+=" if (!"+p+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+_+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+_+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",u&&(n+=" else { ")}else u&&(n+=" if (true) { ");return n}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/if.js"}],[3854,{"./_limit":3840,"./_limitItems":3841,"./_limitLength":3842,"./_limitProperties":3843,"./allOf":3844,"./anyOf":3845,"./comment":3846,"./const":3847,"./contains":3848,"./dependencies":3850,"./enum":3851,"./format":3852,"./if":3853,"./items":3855,"./multipleOf":3856,"./not":3857,"./oneOf":3858,"./pattern":3859,"./properties":3860,"./propertyNames":3861,"./ref":3862,"./required":3863,"./uniqueItems":3864,"./validate":3865},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={$ref:e("./ref"),allOf:e("./allOf"),anyOf:e("./anyOf"),$comment:e("./comment"),const:e("./const"),contains:e("./contains"),dependencies:e("./dependencies"),enum:e("./enum"),format:e("./format"),if:e("./if"),items:e("./items"),maximum:e("./_limit"),minimum:e("./_limit"),maxItems:e("./_limitItems"),minItems:e("./_limitItems"),maxLength:e("./_limitLength"),minLength:e("./_limitLength"),maxProperties:e("./_limitProperties"),minProperties:e("./_limitProperties"),multipleOf:e("./multipleOf"),not:e("./not"),oneOf:e("./oneOf"),pattern:e("./pattern"),properties:e("./properties"),propertyNames:e("./propertyNames"),required:e("./required"),uniqueItems:e("./uniqueItems"),validate:e("./validate")}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/index.js"}],[3855,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+i,d="errs__"+i,h=e.util.copy(e),f="";h.level++;var y="valid"+h.level,m="i"+i,T=h.dataLevel=e.dataLevel+1,g="data"+T,b=e.baseId;if(n+="var "+d+" = errors;var "+p+";",Array.isArray(s)){var _=e.schema.additionalItems;if(!1===_){n+=" "+p+" = "+l+".length <= "+s.length+"; ";var O=c;c=e.errSchemaPath+"/additionalItems",n+=" if (!"+p+") { ";var E=E||[];E.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+s.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+s.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var S=n;n=E.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c=O,u&&(f+="}",n+=" else { ")}var v=s;if(v)for(var x,w=-1,A=v.length-1;w<A;)if(x=v[w+=1],e.opts.strictKeywords?"object"==typeof x&&Object.keys(x).length>0||!1===x:e.util.schemaHasRules(x,e.RULES.all)){n+=" "+y+" = true; if ("+l+".length > "+w+") { ";var R=l+"["+w+"]";h.schema=x,h.schemaPath=a+"["+w+"]",h.errSchemaPath=c+"/"+w,h.errorPath=e.util.getPathExpr(e.errorPath,w,e.opts.jsonPointers,!0),h.dataPathArr[T]=w;var I=e.validate(h);h.baseId=b,e.util.varOccurences(I,g)<2?n+=" "+e.util.varReplace(I,g,R)+" ":n+=" var "+g+" = "+R+"; "+I+" ",n+=" } ",u&&(n+=" if ("+y+") { ",f+="}")}if("object"==typeof _&&(e.opts.strictKeywords?"object"==typeof _&&Object.keys(_).length>0||!1===_:e.util.schemaHasRules(_,e.RULES.all))){h.schema=_,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+y+" = true; if ("+l+".length > "+s.length+") { for (var "+m+" = "+s.length+"; "+m+" < "+l+".length; "+m+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);R=l+"["+m+"]";h.dataPathArr[T]=m;I=e.validate(h);h.baseId=b,e.util.varOccurences(I,g)<2?n+=" "+e.util.varReplace(I,g,R)+" ":n+=" var "+g+" = "+R+"; "+I+" ",u&&(n+=" if (!"+y+") break; "),n+=" } } ",u&&(n+=" if ("+y+") { ",f+="}")}}else if(e.opts.strictKeywords?"object"==typeof s&&Object.keys(s).length>0||!1===s:e.util.schemaHasRules(s,e.RULES.all)){h.schema=s,h.schemaPath=a,h.errSchemaPath=c,n+=" for (var "+m+" = 0; "+m+" < "+l+".length; "+m+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);R=l+"["+m+"]";h.dataPathArr[T]=m;I=e.validate(h);h.baseId=b,e.util.varOccurences(I,g)<2?n+=" "+e.util.varReplace(I,g,R)+" ":n+=" var "+g+" = "+R+"; "+I+" ",u&&(n+=" if (!"+y+") break; "),n+=" }"}return u&&(n+=" "+f+" if ("+d+" == errors) {"),n}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/items.js"}],[3856,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(s||""),d=e.opts.$data&&a&&a.$data;if(d?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+o):n=a,!d&&"number"!=typeof a)throw new Error(t+" must be number");i+="var division"+o+";if (",d&&(i+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),i+=" (division"+o+" = "+p+" / "+n+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+o+" !== parseInt(division"+o+") ",i+=" ) ",d&&(i+=" ) "),i+=" ) { ";var h=h||[];h.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be multiple of ",i+=d?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+c:""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var f=i;return i=h.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/multipleOf.js"}],[3857,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="errs__"+i,d=e.util.copy(e);d.level++;var h="valid"+d.level;if(e.opts.strictKeywords?"object"==typeof s&&Object.keys(s).length>0||!1===s:e.util.schemaHasRules(s,e.RULES.all)){d.schema=s,d.schemaPath=a,d.errSchemaPath=c,n+=" var "+p+" = errors; ";var f,y=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.createErrors=!1,d.opts.allErrors&&(f=d.opts.allErrors,d.opts.allErrors=!1),n+=" "+e.validate(d)+" ",d.createErrors=!0,f&&(d.opts.allErrors=f),e.compositeRule=d.compositeRule=y,n+=" if ("+h+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var T=n;n=m.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+T+"]); ":n+=" validate.errors = ["+T+"]; return false; ":n+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(n+=" if (false) { ");return n}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/not.js"}],[3858,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+i,d="errs__"+i,h=e.util.copy(e),f="";h.level++;var y="valid"+h.level,m=h.baseId,T="prevValid"+i,g="passingSchemas"+i;n+="var "+d+" = errors , "+T+" = false , "+p+" = false , "+g+" = null; ";var b=e.compositeRule;e.compositeRule=h.compositeRule=!0;var _=s;if(_)for(var O,E=-1,S=_.length-1;E<S;)O=_[E+=1],(e.opts.strictKeywords?"object"==typeof O&&Object.keys(O).length>0||!1===O:e.util.schemaHasRules(O,e.RULES.all))?(h.schema=O,h.schemaPath=a+"["+E+"]",h.errSchemaPath=c+"/"+E,n+=" "+e.validate(h)+" ",h.baseId=m):n+=" var "+y+" = true; ",E&&(n+=" if ("+y+" && "+T+") { "+p+" = false; "+g+" = ["+g+", "+E+"]; } else { ",f+="}"),n+=" if ("+y+") { "+p+" = "+T+" = true; "+g+" = "+E+"; }";return e.compositeRule=h.compositeRule=b,n+=f+"if (!"+p+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+g+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/oneOf.js"}],[3859,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(s||""),d=e.opts.$data&&a&&a.$data;d?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+o):n=a,i+="if ( ",d&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),i+=" !"+(d?"(new RegExp("+n+"))":e.usePattern(a))+".test("+p+") ) { ";var h=h||[];h.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",i+=d?""+n:""+e.util.toQuotedString(a),i+=" } ",!1!==e.opts.messages&&(i+=" , message: 'should match pattern \"",i+=d?"' + "+n+" + '":""+e.util.escapeQuotes(a),i+="\"' "),e.opts.verbose&&(i+=" , schema: ",i+=d?"validate.schema"+c:""+e.util.toQuotedString(a),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var f=i;return i=h.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/pattern.js"}],[386,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"}],[3860,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="errs__"+i,d=e.util.copy(e),h="";d.level++;var f="valid"+d.level,y="key"+i,m="idx"+i,T=d.dataLevel=e.dataLevel+1,g="data"+T,b="dataProperties"+i,_=Object.keys(s||{}).filter(j),O=e.schema.patternProperties||{},E=Object.keys(O).filter(j),S=e.schema.additionalProperties,v=_.length||E.length,x=!1===S,w="object"==typeof S&&Object.keys(S).length,A=e.opts.removeAdditional,R=x||w||A,I=e.opts.ownProperties,P=e.baseId,N=e.schema.required;if(N&&(!e.opts.$data||!N.$data)&&N.length<e.opts.loopRequired)var C=e.util.toHash(N);function j(e){return"__proto__"!==e}if(n+="var "+p+" = errors;var "+f+" = true;",I&&(n+=" var "+b+" = undefined;"),R){if(n+=I?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+y+" = "+b+"["+m+"]; ":" for (var "+y+" in "+l+") { ",v){if(n+=" var isAdditional"+i+" = !(false ",_.length)if(_.length>8)n+=" || validate.schema"+a+".hasOwnProperty("+y+") ";else{var k=_;if(k)for(var M=-1,L=k.length-1;M<L;)Y=k[M+=1],n+=" || "+y+" == "+e.util.toQuotedString(Y)+" "}if(E.length){var D=E;if(D)for(var B=-1,z=D.length-1;B<z;)oe=D[B+=1],n+=" || "+e.usePattern(oe)+".test("+y+") "}n+=" ); if (isAdditional"+i+") { "}if("all"==A)n+=" delete "+l+"["+y+"]; ";else{var U=e.errorPath,F="' + "+y+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers)),x)if(A)n+=" delete "+l+"["+y+"]; ";else{n+=" "+f+" = false; ";var $=c;c=e.errSchemaPath+"/additionalProperties",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+F+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var G=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+G+"]); ":n+=" validate.errors = ["+G+"]; return false; ":n+=" var err = "+G+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=$,u&&(n+=" break; ")}else if(w)if("failing"==A){n+=" var "+p+" = errors; ";var H=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.schema=S,d.schemaPath=e.schemaPath+".additionalProperties",d.errSchemaPath=e.errSchemaPath+"/additionalProperties",d.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var K=l+"["+y+"]";d.dataPathArr[T]=y;var V=e.validate(d);d.baseId=P,e.util.varOccurences(V,g)<2?n+=" "+e.util.varReplace(V,g,K)+" ":n+=" var "+g+" = "+K+"; "+V+" ",n+=" if (!"+f+") { errors = "+p+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+l+"["+y+"]; } ",e.compositeRule=d.compositeRule=H}else{d.schema=S,d.schemaPath=e.schemaPath+".additionalProperties",d.errSchemaPath=e.errSchemaPath+"/additionalProperties",d.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);K=l+"["+y+"]";d.dataPathArr[T]=y;V=e.validate(d);d.baseId=P,e.util.varOccurences(V,g)<2?n+=" "+e.util.varReplace(V,g,K)+" ":n+=" var "+g+" = "+K+"; "+V+" ",u&&(n+=" if (!"+f+") break; ")}e.errorPath=U}v&&(n+=" } "),n+=" } ",u&&(n+=" if ("+f+") { ",h+="}")}var q=e.opts.useDefaults&&!e.compositeRule;if(_.length){var W=_;if(W)for(var Y,Q=-1,X=W.length-1;Q<X;){var J=s[Y=W[Q+=1]];if(e.opts.strictKeywords?"object"==typeof J&&Object.keys(J).length>0||!1===J:e.util.schemaHasRules(J,e.RULES.all)){var Z=e.util.getProperty(Y),ee=(K=l+Z,q&&J.default!==undefined);d.schema=J,d.schemaPath=a+Z,d.errSchemaPath=c+"/"+e.util.escapeFragment(Y),d.errorPath=e.util.getPath(e.errorPath,Y,e.opts.jsonPointers),d.dataPathArr[T]=e.util.toQuotedString(Y);V=e.validate(d);if(d.baseId=P,e.util.varOccurences(V,g)<2){V=e.util.varReplace(V,g,K);var te=K}else{te=g;n+=" var "+g+" = "+K+"; "}if(ee)n+=" "+V+" ";else{if(C&&C[Y]){n+=" if ( "+te+" === undefined ",I&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(Y)+"') "),n+=") { "+f+" = false; ";U=e.errorPath,$=c;var re,ne=e.util.escapeQuotes(Y);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(U,Y,e.opts.jsonPointers)),c=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";G=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+G+"]); ":n+=" validate.errors = ["+G+"]; return false; ":n+=" var err = "+G+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=$,e.errorPath=U,n+=" } else { "}else u?(n+=" if ( "+te+" === undefined ",I&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(Y)+"') "),n+=") { "+f+" = true; } else { "):(n+=" if ("+te+" !== undefined ",I&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(Y)+"') "),n+=" ) { ");n+=" "+V+" } "}}u&&(n+=" if ("+f+") { ",h+="}")}}if(E.length){var ie=E;if(ie)for(var oe,se=-1,ae=ie.length-1;se<ae;){J=O[oe=ie[se+=1]];if(e.opts.strictKeywords?"object"==typeof J&&Object.keys(J).length>0||!1===J:e.util.schemaHasRules(J,e.RULES.all)){d.schema=J,d.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(oe),d.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),n+=I?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+y+" = "+b+"["+m+"]; ":" for (var "+y+" in "+l+") { ",n+=" if ("+e.usePattern(oe)+".test("+y+")) { ",d.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);K=l+"["+y+"]";d.dataPathArr[T]=y;V=e.validate(d);d.baseId=P,e.util.varOccurences(V,g)<2?n+=" "+e.util.varReplace(V,g,K)+" ":n+=" var "+g+" = "+K+"; "+V+" ",u&&(n+=" if (!"+f+") break; "),n+=" } ",u&&(n+=" else "+f+" = true; "),n+=" } ",u&&(n+=" if ("+f+") { ",h+="}")}}}return u&&(n+=" "+h+" if ("+p+" == errors) {"),n}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/properties.js"}],[3861,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="errs__"+i,d=e.util.copy(e);d.level++;var h="valid"+d.level;if(n+="var "+p+" = errors;",e.opts.strictKeywords?"object"==typeof s&&Object.keys(s).length>0||!1===s:e.util.schemaHasRules(s,e.RULES.all)){d.schema=s,d.schemaPath=a,d.errSchemaPath=c;var f="key"+i,y="idx"+i,m="i"+i,T="' + "+f+" + '",g="data"+(d.dataLevel=e.dataLevel+1),b="dataProperties"+i,_=e.opts.ownProperties,O=e.baseId;_&&(n+=" var "+b+" = undefined; "),n+=_?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+y+"=0; "+y+"<"+b+".length; "+y+"++) { var "+f+" = "+b+"["+y+"]; ":" for (var "+f+" in "+l+") { ",n+=" var startErrs"+i+" = errors; ";var E=f,S=e.compositeRule;e.compositeRule=d.compositeRule=!0;var v=e.validate(d);d.baseId=O,e.util.varOccurences(v,g)<2?n+=" "+e.util.varReplace(v,g,E)+" ":n+=" var "+g+" = "+E+"; "+v+" ",e.compositeRule=d.compositeRule=S,n+=" if (!"+h+") { for (var "+m+"=startErrs"+i+"; "+m+"<errors; "+m+"++) { vErrors["+m+"].propertyName = "+f+"; } var err = ",!1!==e.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+T+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+T+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),u&&(n+=" break; "),n+=" } }"}return u&&(n+=" if ("+p+" == errors) {"),n}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/propertyNames.js"}],[3862,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n,i,o=" ",s=e.level,a=e.dataLevel,c=e.schema[t],u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(a||""),d="valid"+s;if("#"==c||"#/"==c)e.isRoot?(n=e.async,i="validate"):(n=!0===e.root.schema.$async,i="root.refVal[0]");else{var h=e.resolveRef(e.baseId,c,e.isRoot);if(h===undefined){var f=e.MissingRefError.message(e.baseId,c);if("fail"==e.opts.missingRefs){e.logger.error(f),(g=g||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",!1!==e.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(o+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),o+=" } "):o+=" {} ";var y=o;o=g.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+y+"]); ":o+=" validate.errors = ["+y+"]; return false; ":o+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,f);e.logger.warn(f),l&&(o+=" if (true) { ")}}else if(h.inline){var m=e.util.copy(e);m.level++;var T="valid"+m.level;m.schema=h.schema,m.schemaPath="",m.errSchemaPath=c,o+=" "+e.validate(m).replace(/validate\.schema/g,h.code)+" ",l&&(o+=" if ("+T+") { ")}else n=!0===h.$async||e.async&&!1!==h.$async,i=h.code}if(i){var g;(g=g||[]).push(o),o="",e.opts.passContext?o+=" "+i+".call(this, ":o+=" "+i+"( ",o+=" "+p+", (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var b=o+=" , "+(a?"data"+(a-1||""):"parentData")+" , "+(a?e.dataPathArr[a]:"parentDataProperty")+", rootData) ";if(o=g.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");l&&(o+=" var "+d+"; "),o+=" try { await "+b+"; ",l&&(o+=" "+d+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",l&&(o+=" "+d+" = false; "),o+=" } ",l&&(o+=" if ("+d+") { ")}else o+=" if (!"+b+") { if (vErrors === null) vErrors = "+i+".errors; else vErrors = vErrors.concat("+i+".errors); errors = vErrors.length; } ",l&&(o+=" else { ")}return o}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/ref.js"}],[3863,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+i,d=e.opts.$data&&s&&s.$data;d&&(n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ");var h="schema"+i;if(!d)if(s.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var f=[],y=s;if(y)for(var m,T=-1,g=y.length-1;T<g;){m=y[T+=1];var b=e.schema.properties[m];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(f[f.length]=m)}}else f=s;if(d||f.length){var _=e.errorPath,O=d||f.length>=e.opts.loopRequired,E=e.opts.ownProperties;if(u)if(n+=" var missing"+i+"; ",O){d||(n+=" var "+h+" = validate.schema"+a+"; ");var S="' + "+(I="schema"+i+"["+(w="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(_,I,e.opts.jsonPointers)),n+=" var "+p+" = true; ",d&&(n+=" if (schema"+i+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+i+")) "+p+" = false; else {"),n+=" for (var "+w+" = 0; "+w+" < "+h+".length; "+w+"++) { "+p+" = "+l+"["+h+"["+w+"]] !== undefined ",E&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", "+h+"["+w+"]) "),n+="; if (!"+p+") break; } ",d&&(n+=" } "),n+=" if (!"+p+") { ",(R=R||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var v=n;n=R.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var x=f;if(x)for(var w=-1,A=x.length-1;w<A;){N=x[w+=1],w&&(n+=" || "),n+=" ( ( "+(M=l+(k=e.util.getProperty(N)))+" === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(N)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?N:k)+") ) "}n+=") { ";var R;S="' + "+(I="missing"+i)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(_,I,!0):_+" + "+I),(R=R||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";v=n;n=R.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(O){d||(n+=" var "+h+" = validate.schema"+a+"; ");var I;S="' + "+(I="schema"+i+"["+(w="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(_,I,e.opts.jsonPointers)),d&&(n+=" if ("+h+" && !Array.isArray("+h+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+h+" !== undefined) { "),n+=" for (var "+w+" = 0; "+w+" < "+h+".length; "+w+"++) { if ("+l+"["+h+"["+w+"]] === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", "+h+"["+w+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",d&&(n+=" } ")}else{var P=f;if(P)for(var N,C=-1,j=P.length-1;C<j;){N=P[C+=1];var k=e.util.getProperty(N),M=(S=e.util.escapeQuotes(N),l+k);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(_,N,e.opts.jsonPointers)),n+=" if ( "+M+" === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(N)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=_}else u&&(n+=" if (true) {");return n}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/required.js"}],[3864,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n,i=" ",o=e.level,s=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(s||""),d="valid"+o,h=e.opts.$data&&a&&a.$data;if(h?(i+=" var schema"+o+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+o):n=a,(a||h)&&!1!==e.opts.uniqueItems){h&&(i+=" var "+d+"; if ("+n+" === false || "+n+" === undefined) "+d+" = true; else if (typeof "+n+" != 'boolean') "+d+" = false; else { "),i+=" var i = "+p+".length , "+d+" = true , j; if (i > 1) { ";var f=e.schema.items&&e.schema.items.type,y=Array.isArray(f);if(!f||"object"==f||"array"==f||y&&(f.indexOf("object")>=0||f.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+d+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var m="checkDataType"+(y?"s":"");i+=" if ("+e.util[m](f,"item",e.opts.strictNumbers,!0)+") continue; ",y&&(i+=" if (typeof item == 'string') item = '\"' + item; "),i+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",h&&(i+=" } "),i+=" if (!"+d+") { ";var T=T||[];T.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+c:""+a,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var g=i;i=T.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { ")}else l&&(i+=" if (true) { ");return i}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/uniqueItems.js"}],[3865,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){var n="",i=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),s=e.self._getId(e.schema);if(e.opts.strictKeywords){var a=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(a){var c="unknown keyword: "+a;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}if(e.isTop&&(n+=" var validate = ",i&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",s&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+s+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){t="false schema";var u=e.level,l=e.dataLevel,p=e.schema[t],d=e.schemaPath+e.util.getProperty(t),h=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,y="data"+(l||""),m="valid"+u;if(!1===e.schema){e.isTop?f=!0:n+=" var "+m+" = false; ",(Q=Q||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),n+=" } "):n+=" {} ";var T=n;n=Q.pop(),!e.compositeRule&&f?e.async?n+=" throw new ValidationError(["+T+"]); ":n+=" validate.errors = ["+T+"]; return false; ":n+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=i?" return data; ":" validate.errors = null; return true; ":n+=" var "+m+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var g=e.isTop;u=e.level=0,l=e.dataLevel=0,y="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==undefined&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{u=e.level,y="data"+((l=e.dataLevel)||"");if(s&&(e.baseId=e.resolve.url(e.baseId,s)),i&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+u+" = errors;"}m="valid"+u,f=!e.opts.allErrors;var _="",O="",E=e.schema.type,S=Array.isArray(E);if(E&&e.opts.nullable&&!0===e.schema.nullable&&(S?-1==E.indexOf("null")&&(E=E.concat("null")):"null"!=E&&(E=[E,"null"],S=!0)),S&&1==E.length&&(E=E[0],S=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),E){if(e.opts.coerceTypes)var v=e.util.coerceToTypes(e.opts.coerceTypes,E);var x=e.RULES.types[E];if(v||S||!0===x||x&&!X(x)){d=e.schemaPath+".type",h=e.errSchemaPath+"/type",d=e.schemaPath+".type",h=e.errSchemaPath+"/type";var w=S?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[w](E,y,e.opts.strictNumbers,!0)+") { ",v){var A="dataType"+u,R="coerced"+u;n+=" var "+A+" = typeof "+y+"; var "+R+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+A+" == 'object' && Array.isArray("+y+") && "+y+".length == 1) { "+y+" = "+y+"[0]; "+A+" = typeof "+y+"; if ("+e.util.checkDataType(e.schema.type,y,e.opts.strictNumbers)+") "+R+" = "+y+"; } "),n+=" if ("+R+" !== undefined) ; ";var I=v;if(I)for(var P,N=-1,C=I.length-1;N<C;)"string"==(P=I[N+=1])?n+=" else if ("+A+" == 'number' || "+A+" == 'boolean') "+R+" = '' + "+y+"; else if ("+y+" === null) "+R+" = ''; ":"number"==P||"integer"==P?(n+=" else if ("+A+" == 'boolean' || "+y+" === null || ("+A+" == 'string' && "+y+" && "+y+" == +"+y+" ","integer"==P&&(n+=" && !("+y+" % 1)"),n+=")) "+R+" = +"+y+"; "):"boolean"==P?n+=" else if ("+y+" === 'false' || "+y+" === 0 || "+y+" === null) "+R+" = false; else if ("+y+" === 'true' || "+y+" === 1) "+R+" = true; ":"null"==P?n+=" else if ("+y+" === '' || "+y+" === 0 || "+y+" === false) "+R+" = null; ":"array"==e.opts.coerceTypes&&"array"==P&&(n+=" else if ("+A+" == 'string' || "+A+" == 'number' || "+A+" == 'boolean' || "+y+" == null) "+R+" = ["+y+"]; ");n+=" else { ",(Q=Q||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",n+=S?""+E.join(","):""+E,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+E.join(","):""+E,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),n+=" } "):n+=" {} ";T=n;n=Q.pop(),!e.compositeRule&&f?e.async?n+=" throw new ValidationError(["+T+"]); ":n+=" validate.errors = ["+T+"]; return false; ":n+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+R+" !== undefined) { ";var j=l?"data"+(l-1||""):"parentData";n+=" "+y+" = "+R+"; ",l||(n+="if ("+j+" !== undefined)"),n+=" "+j+"["+(l?e.dataPathArr[l]:"parentDataProperty")+"] = "+R+"; } "}else{(Q=Q||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",n+=S?""+E.join(","):""+E,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+E.join(","):""+E,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),n+=" } "):n+=" {} ";T=n;n=Q.pop(),!e.compositeRule&&f?e.async?n+=" throw new ValidationError(["+T+"]); ":n+=" validate.errors = ["+T+"]; return false; ":n+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } "}}if(e.schema.$ref&&!o)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",f&&(n+=" } if (errors === ",n+=g?"0":"errs_"+u,n+=") { ",O+="}");else{var k=e.RULES;if(k)for(var M=-1,L=k.length-1;M<L;)if(X(x=k[M+=1])){if(x.type&&(n+=" if ("+e.util.checkDataType(x.type,y,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==x.type&&e.schema.properties){p=e.schema.properties;var D=Object.keys(p);if(D)for(var B,z=-1,U=D.length-1;z<U;){if((G=p[B=D[z+=1]]).default!==undefined){var F=y+e.util.getProperty(B);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+F;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+F+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+F+" === null || "+F+" === '' "),n+=" ) "+F+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(G.default)+" ":n+=" "+JSON.stringify(G.default)+" ",n+="; "}}}else if("array"==x.type&&Array.isArray(e.schema.items)){var $=e.schema.items;if($){N=-1;for(var G,H=$.length-1;N<H;)if((G=$[N+=1]).default!==undefined){F=y+"["+N+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+F;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+F+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+F+" === null || "+F+" === '' "),n+=" ) "+F+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(G.default)+" ":n+=" "+JSON.stringify(G.default)+" ",n+="; "}}}var K=x.rules;if(K)for(var V,q=-1,W=K.length-1;q<W;)if(J(V=K[q+=1])){var Y=V.code(e,V.keyword,x.type);Y&&(n+=" "+Y+" ",f&&(_+="}"))}if(f&&(n+=" "+_+" ",_=""),x.type&&(n+=" } ",E&&E===x.type&&!v)){n+=" else { ";var Q;d=e.schemaPath+".type",h=e.errSchemaPath+"/type";(Q=Q||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",n+=S?""+E.join(","):""+E,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+E.join(","):""+E,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),n+=" } "):n+=" {} ";T=n;n=Q.pop(),!e.compositeRule&&f?e.async?n+=" throw new ValidationError(["+T+"]); ":n+=" validate.errors = ["+T+"]; return false; ":n+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "}f&&(n+=" if (errors === ",n+=g?"0":"errs_"+u,n+=") { ",O+="}")}}function X(e){for(var t=e.rules,r=0;r<t.length;r++)if(J(t[r]))return!0}function J(t){return e.schema[t.keyword]!==undefined||t.implements&&function(t){for(var r=t.implements,n=0;n<r.length;n++)if(e.schema[r[n]]!==undefined)return!0}(t)}return f&&(n+=" "+O+" "),g?(i?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+m+" = errors === errs_"+u+";",n}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/dotjs/validate.js"}],[3866,{"./definition_schema":3839,"./dotjs/custom":3849},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=/^[a-z_$][a-z0-9_$-]*$/i,i=e("./dotjs/custom"),o=e("./definition_schema");t.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var o=t.type;if(Array.isArray(o))for(var s=0;s<o.length;s++)c(e,o[s],t);else c(e,o,t);var a=t.metaSchema;a&&(t.$data&&this._opts.$data&&(a={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(a,!0))}function c(e,t,n){for(var o,s=0;s<r.length;s++){var a=r[s];if(a.type==t){o=a;break}}o||(o={type:t,rules:[]},r.push(o));var c={keyword:e,definition:n,custom:!0,code:i,implements:n.implements};o.rules.push(c),r.custom[e]=c}return r.keywords[e]=r.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var n=t[r].rules,i=0;i<n.length;i++)if(n[i].keyword==e){n.splice(i,1);break}return this},validate:function e(t,r){e.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(o,!0);if(n(t))return!0;if(e.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/keyword.js"}],[3867,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/refs/data.json"}],[3868,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}}},{package:"eslint>ajv",file:"node_modules/ajv/lib/refs/json-schema-draft-07.json"}],[3869,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=t.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),i(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function i(e,t,r,o,s,a,c,u,l,p){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var d in t(o,s,a,c,u,l,p),o){var h=o[d];if(Array.isArray(h)){if(d in n.arrayKeywords)for(var f=0;f<h.length;f++)i(e,t,r,h[f],s+"/"+d+"/"+f,a,s,d,o,f)}else if(d in n.propsKeywords){if(h&&"object"==typeof h)for(var y in h)i(e,t,r,h[y],s+"/"+d+"/"+y.replace(/~/g,"~0").replace(/\//g,"~1"),a,s,d,o,y)}else(d in n.keywords||e.allKeys&&!(d in n.skipKeywords))&&i(e,t,r,h,s+"/"+d,a,s,d,o)}r(o,s,a,c,u,l,p)}}n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},n.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},n.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}}}},{package:"eslint>ajv>json-schema-traverse",file:"node_modules/ajv/node_modules/json-schema-traverse/index.js"}],[387,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/nonIterableRest.js"}],[3870,{"color-convert":4132},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=(e,t)=>(...r)=>`[${e(...r)+t}m`,i=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};5;${n}m`},o=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};2;${n[0]};${n[1]};${n[2]}m`},s=e=>e,a=(e,t,r)=>[e,t,r],c=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{const n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})};let u;const l=(t,r,n,i)=>{u===undefined&&(u=e("color-convert"));const o=i?10:0,s={};for(const[e,i]of Object.entries(u)){const a="ansi16"===e?"ansi":e;e===r?s[a]=t(n,o):"object"==typeof i&&(s[a]=t(i[r],o))}return s};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[r,n]of Object.entries(t)){for(const[r,i]of Object.entries(n))t[r]={open:`[${i[0]}m`,close:`[${i[1]}m`},n[r]=t[r],e.set(i[0],i[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="",t.bgColor.close="",c(t.color,"ansi",(()=>l(n,"ansi16",s,!1))),c(t.color,"ansi256",(()=>l(i,"ansi256",s,!1))),c(t.color,"ansi16m",(()=>l(o,"rgb",a,!1))),c(t.bgColor,"ansi",(()=>l(n,"ansi16",s,!0))),c(t.bgColor,"ansi256",(()=>l(i,"ansi256",s,!0))),c(t.bgColor,"ansi16m",(()=>l(o,"rgb",a,!0))),t}})}}},{package:"chalk>ansi-styles",file:"node_modules/ansi-styles/index.js"}],[3871,{"../apg-conv-api/converter":3883,"../apg-lib/node-exports":3889,"./attributes":3872,"./parser":3873,"./scanner":3879,"./show-rules":3881,buffer:4074},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(t){const{Buffer:r}=e("buffer"),n="api.js: ",i=this,o=e("../apg-lib/node-exports"),s=e("../apg-conv-api/converter"),a=e("./scanner"),c=new(e("./parser")),{attributes:u,showAttributes:l,showAttributeErrors:p,showRuleDependencies:d}=e("./attributes"),h=e("./show-rules"),f=function(e,t,r){const n=`<span class="${o.style.CLASS_CTRLCHAR}">`,i="</span>",s=`<span class="${o.style.CLASS_NOMATCH}">`,a="</span>";let c,u="";for(;Array.isArray(e)&&0!==e.length;){if("number"!=typeof t)throw new Error("abnfToHtml: beg must be type number");if(t>=e.length)break;c="number"!=typeof r||t+r>=e.length?e.length:t+r;let l=0;for(let r=t;r<c;r+=1){const t=e[r];if(t>=32&&t<=126)switch(1===l?(u+=i,l=0):2===l&&(u+=a,l=0),t){case 32:u+="&nbsp;";break;case 60:u+="&lt;";break;case 62:u+="&gt;";break;case 38:u+="&amp;";break;case 34:u+="&quot;";break;case 39:u+="&#039;";break;case 92:u+="&#092;";break;default:u+=String.fromCharCode(t)}else 9===t||10===t||13===t?(0===l?(u+=n,l=1):2===l&&(u+=a+n,l=1),9===t&&(u+="TAB"),10===t&&(u+="LF"),13===t&&(u+="CR")):(0===l?(u+=s,l=2):1===l&&(u+=i+s,l=2),u+=`\\x${o.utils.charToHex(t)}`)}2===l&&(u+=a),1===l&&(u+=i);break}return u},y=function(e,t,r){let n="";for(let i=t;i<t+r;i+=1){const t=e[i];if(t>=32&&t<=126)n+=String.fromCharCode(t);else switch(t){case 9:n+="\\t";break;case 10:n+="\\n";break;case 13:n+="\\r";break;default:n+="\\unknown"}}return n};let m,T=!1,g=!1,b=!1,_=!1,O=0;if(this.errors=[],r.isBuffer(t))this.chars=s.decode("BINARY",t);else if(Array.isArray(t))this.chars=t.slice();else{if("string"!=typeof t)throw new Error(`${n}input source is not a string, byte Buffer or character array`);this.chars=s.decode("STRING",t)}this.sabnf=s.encode("STRING",this.chars),this.scan=function(e,t){this.lines=a(this.chars,this.errors,e,t),T=!0},this.parse=function(e,t,r){if(!T)throw new Error(`${n}grammar not scanned`);c.syntax(this.chars,this.lines,this.errors,e,t,r),g=!0},this.translate=function(){if(!g)throw new Error(`${n}grammar not scanned and parsed`);const e=c.semantic(this.chars,this.lines,this.errors);0===this.errors.length&&(this.rules=e.rules,this.udts=e.udts,m=e.lineMap,b=!0)},this.attributes=function(){if(!b)throw new Error(`${n}grammar not scanned, parsed and translated`);return O=u(this.rules,this.udts,m,this.errors),_=!0,O},this.generate=function(e){if(this.lines=a(this.chars,this.errors,e),this.errors.length)return;if(c.syntax(this.chars,this.lines,this.errors,e),this.errors.length)return;const t=c.semantic(this.chars,this.lines,this.errors);this.errors.length||(this.rules=t.rules,this.udts=t.udts,m=t.lineMap,O=u(this.rules,this.udts,m,this.errors),_=!0)},this.displayRules=function(e="index"){if(!b)throw new Error(`${n}grammar not scanned, parsed and translated`);return h(this.rules,this.udts,e)},this.displayRuleDependencies=function(e="index"){if(!_)throw new Error(`${n}no attributes - must be preceeded by call to attributes()`);return d(e)},this.displayAttributes=function(e="index"){if(!_)throw new Error(`${n}no attributes - must be preceeded by call to attributes()`);return O&&p(e),l(e)},this.displayAttributeErrors=function(){if(!_)throw new Error(`${n}no attributes - must be preceeded by call to attributes()`);return p()},this.toSource=function(e=undefined){if(!_)throw new Error(`${n}can't generate parser source - must be preceeded by call to attributes()`);if(O)throw new Error(`${n}can't generate parser source - attributes have ${O} errors`);return c.generateSource(this.chars,this.lines,this.rules,this.udts,e)},this.toObject=function(){if(!_)throw new Error(`${n}can't generate parser source - must be preceeded by call to attributes()`);if(O)throw new Error(`${n}can't generate parser source - attributes have ${O} errors`);return c.generateObject(this.sabnf,this.rules,this.udts)},this.errorsToAscii=function(){return function(e,t,r){let n,i,o,s;return n="",e.forEach((e=>{i=t[e.line],n+=`${i.lineNo}: `,n+=`${i.beginChar}: `,n+=e.char-i.beginChar+": ",o=i.beginChar,s=e.char-i.beginChar,n+=y(r,o,s),n+=" >> ",o=e.char,s=i.beginChar+i.length-e.char,n+=y(r,o,s),n+="\n",n+=`${i.lineNo}: `,n+=`${i.beginChar}: `,n+=e.char-i.beginChar+": ",n+="error: ",n+=e.msg,n+="\n"})),n}(this.errors,this.lines,this.chars)},this.errorsToHtml=function(e){return function(e,t,r,n){const[i]=o;let s="";const a=`<span class="${i.CLASS_NOMATCH}">&raquo;</span>`;return s+=`<p><table class="${i.CLASS_GRAMMAR}">\n`,n&&"string"==typeof n&&(s+=`<caption>${n}</caption>\n`),s+="<tr><th>line<br>no.</th><th>line<br>offset</th><th>error<br>offset</th><th><br>text</th></tr>\n",e.forEach((e=>{let n,i,c,u,l,p="",d="";0===t.length?(l=a,i=0):(n=t[e.line],c=n.beginChar,e.char>c&&(p=f(r,c,e.char-c)),c=e.char,u=n.beginChar+n.length,c<u&&(d=f(r,c,u-c)),l=p+a+d,i=e.char-n.beginChar,s+="<tr>",s+=`<td>${e.line}</td><td>${n.beginChar}</td><td>${i}</td><td>${l}</td>`,s+="</tr>\n",s+="<tr>",s+=`<td colspan="3"></td><td>&uarr;:&nbsp;${o.utils.stringToAsciiHtml(e.msg)}</td>`,s+="</tr>\n")})),s+="</table></p>\n",s}(this.errors,this.lines,this.chars,e)},this.linesToAscii=function(){return function(e){let t="Annotated Input Grammar";return e.forEach((e=>{t+="\n",t+=`line no: ${e.lineNo}`,t+=` : char index: ${e.beginChar}`,t+=` : length: ${e.length}`,t+=` : abnf: ${y(i.chars,e.beginChar,e.length)}`})),t+="\n",t}(this.lines)},this.linesToHtml=function(){return function(e){let t="";return t+=`<table class="${o.style.CLASS_GRAMMAR}">\n`,t+="<caption>Annotated Input Grammar</caption>\n",t+="<tr>",t+="<th>line<br>no.</th><th>first<br>char</th><th><br>length</th><th><br>text</th>",t+="</tr>\n",e.forEach((e=>{t+="<tr>",t+=`<td>${e.lineNo}`,t+=`</td><td>${e.beginChar}`,t+=`</td><td>${e.length}`,t+=`</td><td>${f(i.chars,e.beginChar,e.length)}`,t+="</td>",t+="</tr>\n"})),t+="</table>\n",t}(this.lines)}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/api.js"}],[3872,{"../apg-lib/identifiers":3888,"./rule-attributes":3874,"./rule-dependencies":3875},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t=e("../apg-lib/identifiers"),{ruleAttributes:r,showAttributes:n,showAttributeErrors:i}=e("./rule-attributes"),{ruleDependencies:o,showRuleDependencies:s}=e("./rule-dependencies");class a{constructor(e,t){this.rules=e,this.udts=t,this.ruleCount=e.length,this.udtCount=t.length,this.startRule=0,this.dependenciesComplete=!1,this.attributesComplete=!1,this.isMutuallyRecursive=!1,this.ruleIndexes=this.indexArray(this.ruleCount),this.ruleAlphaIndexes=this.indexArray(this.ruleCount),this.ruleTypeIndexes=this.indexArray(this.ruleCount),this.udtIndexes=this.indexArray(this.udtCount),this.udtAlphaIndexes=this.indexArray(this.udtCount),this.attrsErrorCount=0,this.attrs=[],this.attrsErrors=[],this.attrsWorking=[],this.ruleDeps=[];for(let t=0;t<this.ruleCount;t+=1)this.attrs.push(this.attrGen(this.rules[t])),this.attrsWorking.push(this.attrGen(this.rules[t])),this.ruleDeps.push(this.rdGen(e[t],this.ruleCount,this.udtCount));this.compRulesAlpha=this.compRulesAlpha.bind(this),this.compUdtsAlpha=this.compUdtsAlpha.bind(this),this.compRulesType=this.compRulesType.bind(this),this.compRulesGroup=this.compRulesGroup.bind(this)}attrGen(e){return{left:!1,nested:!1,right:!1,empty:!1,finite:!1,cyclic:!1,leaf:!1,isOpen:!1,isComplete:!1,rule:e}}attrInit(e){e.left=!1,e.nested=!1,e.right=!1,e.empty=!1,e.finite=!1,e.cyclic=!1,e.leaf=!1,e.isOpen=!1,e.isComplete=!1}attrCopy(e,t){e.left=t.left,e.nested=t.nested,e.right=t.right,e.empty=t.empty,e.finite=t.finite,e.cyclic=t.cyclic,e.leaf=t.leaf,e.isOpen=t.isOpen,e.isComplete=t.isComplete,e.rule=t.rule}rdGen(e,r,n){return{rule:e,recursiveType:t.ATTR_N,groupNumber:-1,refersTo:this.falseArray(r),refersToUdt:this.falseArray(n),referencedBy:this.falseArray(r)}}typeToString(e){switch(e){case t.ATTR_N:return" N";case t.ATTR_R:return" R";case t.ATTR_MR:return"MR";default:return"UNKNOWN"}}falseArray(e){const t=[];if(e>0)for(let r=0;r<e;r+=1)t.push(!1);return t}falsifyArray(e){for(let t=0;t<e.length;t+=1)e[t]=!1}indexArray(e){const t=[];if(e>0)for(let r=0;r<e;r+=1)t.push(r);return t}compRulesAlpha(e,t){return this.rules[e].lower<this.rules[t].lower?-1:this.rules[e].lower>this.rules[t].lower?1:0}compUdtsAlpha(e,t){return this.udts[e].lower<this.udts[t].lower?-1:this.udts[e].lower>this.udts[t].lower?1:0}compRulesType(e,t){return this.ruleDeps[e].recursiveType<this.ruleDeps[t].recursiveType?-1:this.ruleDeps[e].recursiveType>this.ruleDeps[t].recursiveType?1:0}compRulesGroup(e,r){if(this.ruleDeps[e].recursiveType===t.ATTR_MR&&this.ruleDeps[r].recursiveType===t.ATTR_MR){if(this.ruleDeps[e].groupNumber<this.ruleDeps[r].groupNumber)return-1;if(this.ruleDeps[e].groupNumber>this.ruleDeps[r].groupNumber)return 1}return 0}}return{attributes:function(e=[],t=[],n=[],i=[]){const s=new a(e,t);return o(s),r(s),s.attrsErrorCount&&i.push({line:0,char:0,msg:`${s.attrsErrorCount} attribute errors`}),s.attrsErrorCount},showAttributes:n,showAttributeErrors:i,showRuleDependencies:s}}()}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/attributes.js"}],[3873,{"../apg-lib/node-exports":3889,"./sabnf-grammar":3876,"./semantic-callbacks":3880,"./syntax-callbacks":3882},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t=e("../apg-lib/node-exports"),r=t.ids,n=new(e("./syntax-callbacks")),i=new(e("./semantic-callbacks")),o=new(e("./sabnf-grammar")),s=new t.parser;s.ast=new t.ast,s.callbacks=n.callbacks,s.ast.callbacks=i.callbacks;const a=function(e,t,r){if(t<0||t>=r)return-1;for(let r=0;r<e.length;r+=1)if(t>=e[r].beginChar&&t<e[r].beginChar+e[r].length)return r;return-1},c=function(e,t){let r=-1;if(t<e.length)for(let n=t;n<e.length;n+=1)if(null!==e[n]){r=e[n];break}return r};this.syntax=function(e,t,r,n,i,c){if(c){if("traceObject"!==c.traceObject)throw new TypeError("parser: trace argument is not a trace object");s.trace=c}const u={};u.errors=r,u.strict=!!n,u.lite=!!i,u.lines=t,u.findLine=a,u.charsLength=e.length,u.ruleCount=0;s.parse(o,"file",e,u).success||r.push({line:0,char:0,msg:"syntax analysis of input grammar failed"})},this.semantic=function(e,t,n){const i={};return i.errors=n,i.lines=t,i.findLine=a,i.charsLength=e.length,s.ast.translate(i),n.length?null:(i.rules.forEach((e=>{const t=[],n=[];let i=0;e.opcodes.forEach((e=>{e.type===r.ALT&&1===e.children.length||e.type===r.CAT&&1===e.children.length||e.type===r.REP&&1===e.min&&1===e.max?n.push(null):(n.push(i),t.push(e),i+=1)})),n.push(i),t.forEach((e=>{if(e.type===r.ALT||e.type===r.CAT)for(let t=0;t<e.children.length;t+=1)e.children[t]=c(n,e.children[t])})),e.opcodes=t})),{rules:i.rules,udts:i.udts,lineMap:i.rulesLineMap})},this.generateSource=function(e,t,n,i,o){let s,a,c,u="",l=!1,p=!1;o&&(o.typescript?(l=!0,p=!1):o.lite&&(l=!1,p=!0));let d=0,h=Infinity,f=0;const y=[],m=[];let T,g=0,b=0,_=0,O=0,E=0,S=0,v=0,x=0,w=0,A=0,R=0,I=0,P=0,N=0,C=0;return n.forEach((e=>{y.push(e.lower),d+=e.opcodes.length,e.opcodes.forEach((e=>{switch(e.type){case r.ALT:g+=1;break;case r.CAT:b+=1;break;case r.RNM:_+=1;break;case r.UDT:O+=1;break;case r.REP:E+=1;break;case r.AND:S+=1;break;case r.NOT:v+=1;break;case r.BKA:I+=1;break;case r.BKN:P+=1;break;case r.BKR:R+=1;break;case r.ABG:N+=1;break;case r.AEN:C+=1;break;case r.TLS:for(x+=1,s=0;s<e.string.length;s+=1)e.string[s]<h&&(h=e.string[s]),e.string[s]>f&&(f=e.string[s]);break;case r.TBS:for(w+=1,s=0;s<e.string.length;s+=1)e.string[s]<h&&(h=e.string[s]),e.string[s]>f&&(f=e.string[s]);break;case r.TRG:A+=1,e.min<h&&(h=e.min),e.max>f&&(f=e.max);break;default:throw new Error("generateSource: unrecognized opcode")}}))})),y.sort(),i.length>0&&(i.forEach((e=>{m.push(e.lower)})),m.sort()),u+="// copyright: Copyright (c) 2024 Lowell D. Thomas, all rights reserved<br>\n",u+="// license: BSD-2-Clause (https://opensource.org/licenses/BSD-2-Clause)<br>\n",u+="//\n",u+="// Generated by apg-js, Version 4.4.0 [apg-js](https://github.com/ldthomas/apg-js)\n",o?o.funcName?u+=`const ${o.funcName} = function grammar(){\n`:u+=l?"export function grammar(){\n":p?"export default function grammar(){\n":"module.exports = function grammar(){\n":u+="module.exports = function grammar(){\n",u+=" // ```\n",u+=" // SUMMARY\n",u+=` // rules = ${n.length}\n`,u+=` // udts = ${i.length}\n`,u+=` // opcodes = ${d}\n`,u+=" // --- ABNF original opcodes\n",u+=` // ALT = ${g}\n`,u+=` // CAT = ${b}\n`,u+=` // REP = ${E}\n`,u+=` // RNM = ${_}\n`,u+=` // TLS = ${x}\n`,u+=` // TBS = ${w}\n`,u+=` // TRG = ${A}\n`,u+=" // --- SABNF superset opcodes\n",u+=` // UDT = ${O}\n`,u+=` // AND = ${S}\n`,u+=` // NOT = ${v}\n`,p||(u+=` // BKA = ${I}\n`,u+=` // BKN = ${P}\n`,u+=` // BKR = ${R}\n`,u+=` // ABG = ${N}\n`,u+=` // AEN = ${C}\n`),u+=" // characters = [",u+=x+w+A===0?" none defined ]":`${h} - ${f}]`,O>0&&(u+=" + user defined"),u+="\n",u+=" // ```\n",u+=" /* OBJECT IDENTIFIER (for internal parser use) */\n",u+=" this.grammarObject = 'grammarObject';\n",u+="\n",u+=" /* RULES */\n",u+=" this.rules = [];\n",n.forEach(((e,t)=>{let r=" this.rules[";r+=t,r+="] = { name: '",r+=e.name,r+="', lower: '",r+=e.lower,r+="', index: ",r+=e.index,r+=", isBkr: ",r+=e.isBkr,r+=" };\n",u+=r})),u+="\n",u+=" /* UDTS */\n",u+=" this.udts = [];\n",i.length>0&&i.forEach(((e,t)=>{let r=" this.udts[";r+=t,r+="] = { name: '",r+=e.name,r+="', lower: '",r+=e.lower,r+="', index: ",r+=e.index,r+=", empty: ",r+=e.empty,r+=", isBkr: ",r+=e.isBkr,r+=" };\n",u+=r})),u+="\n",u+=" /* OPCODES */\n",n.forEach(((e,t)=>{t>0&&(u+="\n"),u+=` /* ${e.name} */\n`,u+=` this.rules[${t}].opcodes = [];\n`,e.opcodes.forEach(((e,o)=>{let s;switch(e.type){case r.ALT:u+=` this.rules[${t}].opcodes[${o}] = { type: ${e.type}, children: [${e.children.toString()}] };// ALT\n`;break;case r.CAT:u+=` this.rules[${t}].opcodes[${o}] = { type: ${e.type}, children: [${e.children.toString()}] };// CAT\n`;break;case r.RNM:u+=` this.rules[${t}].opcodes[${o}] = { type: ${e.type}, index: ${e.index} };// RNM(${n[e.index].name})\n`;break;case r.BKR:e.index>=n.length?(a=i[e.index-n.length].name,c=i[e.index-n.length].lower):(a=n[e.index].name,c=n[e.index].lower),s="%i",e.bkrCase===r.BKR_MODE_CS&&(s="%s"),e.bkrMode===r.BKR_MODE_UM?s+="%u":s+="%p",a=s+a,u+=` this.rules[${t}].opcodes[${o}] = { type: ${e.type}, index: ${e.index}, lower: '${c}', bkrCase: ${e.bkrCase}, bkrMode: ${e.bkrMode} };// BKR(\\${a})\n`;break;case r.UDT:u+=` this.rules[${t}].opcodes[${o}] = { type: ${e.type}, empty: ${e.empty}, index: ${e.index} };// UDT(${i[e.index].name})\n`;break;case r.REP:u+=` this.rules[${t}].opcodes[${o}] = { type: ${e.type}, min: ${e.min}, max: ${e.max} };// REP\n`;break;case r.AND:u+=` this.rules[${t}].opcodes[${o}] = { type: ${e.type} };// AND\n`;break;case r.NOT:u+=` this.rules[${t}].opcodes[${o}] = { type: ${e.type} };// NOT\n`;break;case r.ABG:u+=` this.rules[${t}].opcodes[${o}] = { type: ${e.type} };// ABG(%^)\n`;break;case r.AEN:u+=` this.rules[${t}].opcodes[${o}] = { type: ${e.type} };// AEN(%$)\n`;break;case r.BKA:u+=` this.rules[${t}].opcodes[${o}] = { type: ${e.type} };// BKA\n`;break;case r.BKN:u+=` this.rules[${t}].opcodes[${o}] = { type: ${e.type} };// BKN\n`;break;case r.TLS:u+=` this.rules[${t}].opcodes[${o}] = { type: ${e.type}, string: [${e.string.toString()}] };// TLS\n`;break;case r.TBS:u+=` this.rules[${t}].opcodes[${o}] = { type: ${e.type}, string: [${e.string.toString()}] };// TBS\n`;break;case r.TRG:u+=` this.rules[${t}].opcodes[${o}] = { type: ${e.type}, min: ${e.min}, max: ${e.max} };// TRG\n`;break;default:throw new Error("parser.js: ~143: unrecognized opcode")}}))})),u+="\n",u+=" // The `toString()` function will display the original grammar file(s) that produced these opcodes.\n",u+=" this.toString = function toString(){\n",u+=' let str = "";\n',t.forEach((t=>{const r=t.beginChar+t.length;T="",u+=' str += "';for(let n=t.beginChar;n<r;n+=1){switch(e[n]){case 9:T=" ";break;case 10:T="\\n";break;case 13:T="\\r";break;case 34:T='\\"';break;case 92:T="\\\\";break;default:T=String.fromCharCode(e[n])}u+=T}u+='";\n'})),u+=" return str;\n",u+=" }\n",u+="}\n",u},this.generateObject=function(e,t,r){const n={},i=[],o=[],s=e.slice(0);return n.grammarObject="grammarObject",t.forEach((e=>{i.push(e.lower)})),i.sort(),r.length>0&&(r.forEach((e=>{o.push(e.lower)})),o.sort()),n.callbacks=[],i.forEach((e=>{n.callbacks[e]=!1})),r.length>0&&o.forEach((e=>{n.callbacks[e]=!1})),n.rules=t,n.udts=r,n.toString=function(){return s},n}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/parser.js"}],[3874,{"../apg-lib/identifiers":3888},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t=e("../apg-lib/identifiers");let r=null;function n(e){return!(e.left||e.nested||e.right||e.cyclic)&&e.empty}function i(e){return!!(e.left||e.nested||e.right||e.cyclic)}function o(e,t,r,o){let a=0;const c=t[r],u=c.children.length,l=[];for(a=0;a<u;a+=1)l.push(e.attrGen());for(a=0;a<u;a+=1)s(e,t,c.children[a],l[a]);o.left=function(e,t){for(let r=0;r<t;r+=1){if(e[r].left)return!0;if(!e[r].empty)return!1}return!1}(l,u),o.right=function(e,t){for(let r=t-1;r>=0;r-=1){if(e[r].right)return!0;if(!e[r].empty)return!1}return!1}(l,u),o.nested=function(e,t){let r=0,o=0,s=0;for(r=0;r<t;r+=1)if(e[r].nested)return!0;for(r=0;r<t;r+=1)if(e[r].right&&!e[r].leaf)for(o=r+1;o<t;o+=1)if(!n(e[o]))return!0;for(r=t-1;r>=0;r-=1)if(e[r].left&&!e[r].leaf)for(o=r-1;o>=0;o-=1)if(!n(e[o]))return!0;for(r=0;r<t;r+=1)if(!e[r].empty&&!i(e[r]))for(o=r+1;o<t;o+=1)if(i(e[o]))for(s=o+1;s<t;s+=1)if(!e[s].empty&&!i(e[s]))return!0;return!1}(l,u),o.empty=function(e,t){for(let r=0;r<t;r+=1)if(!e[r].empty)return!1;return!0}(l,u),o.finite=function(e,t){for(let r=0;r<t;r+=1)if(!e[r].finite)return!1;return!0}(l,u),o.cyclic=function(e,t){for(let r=0;r<t;r+=1)if(!e[r].cyclic)return!1;return!0}(l,u)}function s(e,r,n,i){e.attrInit(i);const c=r[n];switch(c.type){case t.ALT:!function(e,t,r,n){let i=0;const o=t[r],a=o.children.length,c=[];for(i=0;i<a;i+=1)c.push(e.attrGen());for(i=0;i<a;i+=1)s(e,t,o.children[i],c[i]);for(n.left=!1,n.right=!1,n.nested=!1,n.empty=!1,n.finite=!1,n.cyclic=!1,i=0;i<a;i+=1)c[i].left&&(n.left=!0),c[i].nested&&(n.nested=!0),c[i].right&&(n.right=!0),c[i].empty&&(n.empty=!0),c[i].finite&&(n.finite=!0),c[i].cyclic&&(n.cyclic=!0)}(e,r,n,i);break;case t.CAT:o(e,r,n,i);break;case t.REP:s(e,r,n+1,i),0===c.min&&(i.empty=!0,i.finite=!0);break;case t.RNM:a(e,r[n].index,i);break;case t.BKR:!function(e,t,r,n){const i=t[r];i.index>=e.ruleCount?(n.empty=e.udts[i.index-e.ruleCount].empty,n.finite=!0):(a(e,i.index,n),n.left=!1,n.nested=!1,n.right=!1,n.cyclic=!1)}(e,r,n,i);break;case t.AND:case t.NOT:case t.BKA:case t.BKN:s(e,r,n+1,i),i.empty=!0;break;case t.TLS:i.empty=!r[n].string.length,i.finite=!0,i.cyclic=!1;break;case t.TBS:case t.TRG:i.empty=!1,i.finite=!0,i.cyclic=!1;break;case t.UDT:i.empty=c.empty,i.finite=!0,i.cyclic=!1;break;case t.ABG:case t.AEN:i.empty=!0,i.finite=!0,i.cyclic=!1;break;default:throw new Error(`unknown opcode type: ${c}`)}}function a(e,t,r){const n=e.attrsWorking[t];n.isComplete?e.attrCopy(r,n):n.isOpen?t===e.startRule?t===e.startRule&&(r.left=!0,r.right=!0,r.cyclic=!0,r.leaf=!0):r.finite=!0:(n.isOpen=!0,s(e,n.rule.opcodes,0,r),n.left=r.left,n.right=r.right,n.nested=r.nested,n.empty=r.empty,n.finite=r.finite,n.cyclic=r.cyclic,n.leaf=!1,n.isOpen=!1,n.isComplete=!0)}const c=e=>e?"t":"f",u=e=>e?"e":"f",l=(e,n,i,o)=>{let s=`${e}:${n}:`;return s+=`${u(i.left)} `,s+=`${c(i.nested)} `,s+=`${c(i.right)} `,s+=`${u(i.cyclic)} `,s+=(i.finite?"t":"e")+" ",s+=`${c(i.empty)}:`,s+=`${r.typeToString(o.recursiveType)}:`,s+=o.recursiveType===t.ATTR_MR?o.groupNumber:"-",s+=`:${i.rule.name}\n`,s},p=()=>{let e="LEGEND - t=true, f=false, e=error\n";return e+="sequence:rule index:left nested right cyclic finite empty:type:group number:rule name\n","LEGEND - t=true, f=false, e=error\nsequence:rule index:left nested right cyclic finite empty:type:group number:rule name\n"},d=e=>{let t=0,n=0,i=null,o=null,s="",{ruleIndexes:a}=r;for(97===e?a=r.ruleAlphaIndexes:116===e&&(a=r.ruleTypeIndexes),t=0;t<r.ruleCount;t+=1)n=a[t],i=r.attrs[n],o=r.ruleDeps[n],s+=l(t,n,i,o);return s};return{ruleAttributes:e=>{r=e;let t=0,n=0;const i=r.attrGen();for(t=0;t<r.ruleCount;t+=1){for(n=0;n<r.ruleCount;n+=1)r.attrInit(r.attrsWorking[n]);r.startRule=t,a(r,t,i),r.attrCopy(r.attrs[t],r.attrsWorking[t])}r.attributesComplete=!0;let o=null;for(t=0;t<r.ruleCount;t+=1)if(o=r.attrs[t],o.left||!o.finite||o.cyclic){const e=r.attrGen(o.rule);r.attrCopy(e,o),r.attrsErrors.push(e),r.attrsErrorCount+=1}},showAttributes:(e="index")=>{if(!r.attributesComplete)throw new Error("rule-attributes.js:showAttributes: attributes not available");let t="";const n="RULE ATTRIBUTES\n";return 97===e.charCodeAt(0)?(t+="alphabetical by rule name\n",t+=n,t+=p(),t+=d(97)):116===e.charCodeAt(0)?(t+="ordered by rule type\n",t+=n,t+=p(),t+=d(116)):(t+="ordered by rule index\n",t+=n,t+=p(),t+=d()),t},showAttributeErrors:()=>{let e=null,t=null,n="";if(n+="RULE ATTRIBUTES WITH ERRORS\n",n+=p(),r.attrsErrorCount)for(let i=0;i<r.attrsErrorCount;i+=1)e=r.attrsErrors[i],t=r.ruleDeps[e.rule.index],n+=l(i,e.rule.index,e,t);else n+="<none>\n";return n}}}()}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/rule-attributes.js"}],[3875,{"../apg-lib/identifiers":3888},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=(()=>{const t=e("../apg-lib/identifiers");let r=null;const n=(e,r,i,o)=>{let s=0,a=0;const c=r[i];o[i]=!0;const u=c.rule.opcodes;for(s=0;s<u.length;s+=1){const i=u[s];if(i.type===t.RNM)for(c.refersTo[i.index]=!0,o[i.index]||n(e,r,i.index,o),a=0;a<e;a+=1)r[i.index].refersTo[a]&&(c.refersTo[a]=!0);else i.type===t.UDT?c.refersToUdt[i.index]=!0:i.type===t.BKR&&(i.index<e?(c.refersTo[i.index]=!0,o[i.index]||n(e,r,i.index,o)):c.refersToUdt[e-i.index]=!0)}},i=(e=null)=>{let t=0,n=0,i=0,o=0;const s=r.ruleCount-1,a=r.udtCount-1;let c="",u="";const l="=> ";let p=!1,d=null,{ruleIndexes:h}=r,{udtIndexes:f}=r;for(97===e?(h=r.ruleAlphaIndexes,f=r.udtAlphaIndexes):116===e&&(h=r.ruleTypeIndexes,f=r.udtAlphaIndexes),t=0;t<r.ruleCount;t+=1){for(d=r.ruleDeps[h[t]],u=`${h[t]}:${r.typeToString(d.recursiveType)}:`,r.isMutuallyRecursive&&(u+=d.groupNumber>-1?d.groupNumber:"-",u+=":"),u+=" ",c+=`${u+r.rules[h[t]].name}\n`,p=!0,i=0,o=c.length,c+=u,n=0;n<r.ruleCount;n+=1)d.refersTo[h[n]]&&(p?(c+=l,p=!1,c+=r.ruleDeps[h[n]].rule.name):c+=`, ${r.ruleDeps[h[n]].rule.name}`,i+=1),c.length-o>100&&n!==s&&(c+=`\n${u}${l}`,o=c.length);if(r.udtCount)for(n=0;n<r.udtCount;n+=1)d.refersToUdt[f[n]]&&(p?(c+=l,p=!1,c+=r.udts[f[n]].name):c+=`, ${r.udts[f[n]].name}`,i+=1),c.length-o>100&&n!==a&&(c+=`\n${u}${l}`,o=c.length);for(0===i&&(c+="=> <none>\n"),!1===p&&(c+="\n"),p=!0,i=0,o=c.length,c+=u,n=0;n<r.ruleCount;n+=1)d.referencedBy[h[n]]&&(p?(c+="<= ",p=!1,c+=r.ruleDeps[h[n]].rule.name):c+=`, ${r.ruleDeps[h[n]].rule.name}`,i+=1),c.length-o>100&&n!==s&&(c+=`\n${u}${l}`,o=c.length);0===i&&(c+="<= <none>\n"),!1===p&&(c+="\n"),c+="\n"}return c};return{ruleDependencies:e=>{r=e;let i=0,o=0,s=0,a=null,c=null,u=!1;r.dependenciesComplete=!1;const l=r.falseArray(r.ruleCount);for(i=0;i<r.ruleCount;i+=1)r.falsifyArray(l),n(r.ruleCount,r.ruleDeps,i,l);for(i=0;i<r.ruleCount;i+=1)for(o=0;o<r.ruleCount;o+=1)i!==o&&r.ruleDeps[o].refersTo[i]&&(r.ruleDeps[i].referencedBy[o]=!0);for(i=0;i<r.ruleCount;i+=1)r.ruleDeps[i].recursiveType=t.ATTR_N,r.ruleDeps[i].refersTo[i]&&(r.ruleDeps[i].recursiveType=t.ATTR_R);for(s=-1,i=0;i<r.ruleCount;i+=1)if(a=r.ruleDeps[i],a.recursiveType===t.ATTR_R)for(u=!0,o=0;o<r.ruleCount;o+=1)i!==o&&(c=r.ruleDeps[o],c.recursiveType===t.ATTR_R&&a.refersTo[o]&&c.refersTo[i]&&(u&&(s+=1,a.recursiveType=t.ATTR_MR,a.groupNumber=s,u=!1),c.recursiveType=t.ATTR_MR,c.groupNumber=s));r.isMutuallyRecursive=s>-1,r.ruleAlphaIndexes.sort(r.compRulesAlpha),r.ruleTypeIndexes.sort(r.compRulesAlpha),r.ruleTypeIndexes.sort(r.compRulesType),r.isMutuallyRecursive&&r.ruleTypeIndexes.sort(r.compRulesGroup),r.udtCount&&r.udtAlphaIndexes.sort(r.compUdtsAlpha),r.dependenciesComplete=!0},showRuleDependencies:(e="index")=>{let t="RULE DEPENDENCIES(index:type:[group number:])\n";return t+="=> refers to rule names\n",t+="<= referenced by rule names\n",r.dependenciesComplete?(97===e.charCodeAt(0)?(t+="alphabetical by rule name\n",t+=i(97)):116===e.charCodeAt(0)?(t+="ordered by rule type\n",t+=i(116)):(t+="ordered by rule index\n",t+=i(null)),t):t}}})()}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/rule-dependencies.js"}],[3876,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"File",lower:"file",index:0,isBkr:!1},this.rules[1]={name:"BlankLine",lower:"blankline",index:1,isBkr:!1},this.rules[2]={name:"Rule",lower:"rule",index:2,isBkr:!1},this.rules[3]={name:"RuleLookup",lower:"rulelookup",index:3,isBkr:!1},this.rules[4]={name:"RuleNameTest",lower:"rulenametest",index:4,isBkr:!1},this.rules[5]={name:"RuleName",lower:"rulename",index:5,isBkr:!1},this.rules[6]={name:"RuleNameError",lower:"rulenameerror",index:6,isBkr:!1},this.rules[7]={name:"DefinedAsTest",lower:"definedastest",index:7,isBkr:!1},this.rules[8]={name:"DefinedAsError",lower:"definedaserror",index:8,isBkr:!1},this.rules[9]={name:"DefinedAs",lower:"definedas",index:9,isBkr:!1},this.rules[10]={name:"Defined",lower:"defined",index:10,isBkr:!1},this.rules[11]={name:"IncAlt",lower:"incalt",index:11,isBkr:!1},this.rules[12]={name:"RuleError",lower:"ruleerror",index:12,isBkr:!1},this.rules[13]={name:"LineEndError",lower:"lineenderror",index:13,isBkr:!1},this.rules[14]={name:"Alternation",lower:"alternation",index:14,isBkr:!1},this.rules[15]={name:"Concatenation",lower:"concatenation",index:15,isBkr:!1},this.rules[16]={name:"Repetition",lower:"repetition",index:16,isBkr:!1},this.rules[17]={name:"Modifier",lower:"modifier",index:17,isBkr:!1},this.rules[18]={name:"Predicate",lower:"predicate",index:18,isBkr:!1},this.rules[19]={name:"BasicElement",lower:"basicelement",index:19,isBkr:!1},this.rules[20]={name:"BasicElementErr",lower:"basicelementerr",index:20,isBkr:!1},this.rules[21]={name:"Group",lower:"group",index:21,isBkr:!1},this.rules[22]={name:"GroupError",lower:"grouperror",index:22,isBkr:!1},this.rules[23]={name:"GroupOpen",lower:"groupopen",index:23,isBkr:!1},this.rules[24]={name:"GroupClose",lower:"groupclose",index:24,isBkr:!1},this.rules[25]={name:"Option",lower:"option",index:25,isBkr:!1},this.rules[26]={name:"OptionError",lower:"optionerror",index:26,isBkr:!1},this.rules[27]={name:"OptionOpen",lower:"optionopen",index:27,isBkr:!1},this.rules[28]={name:"OptionClose",lower:"optionclose",index:28,isBkr:!1},this.rules[29]={name:"RnmOp",lower:"rnmop",index:29,isBkr:!1},this.rules[30]={name:"BkrOp",lower:"bkrop",index:30,isBkr:!1},this.rules[31]={name:"bkrModifier",lower:"bkrmodifier",index:31,isBkr:!1},this.rules[32]={name:"cs",lower:"cs",index:32,isBkr:!1},this.rules[33]={name:"ci",lower:"ci",index:33,isBkr:!1},this.rules[34]={name:"um",lower:"um",index:34,isBkr:!1},this.rules[35]={name:"pm",lower:"pm",index:35,isBkr:!1},this.rules[36]={name:"bkr-name",lower:"bkr-name",index:36,isBkr:!1},this.rules[37]={name:"rname",lower:"rname",index:37,isBkr:!1},this.rules[38]={name:"uname",lower:"uname",index:38,isBkr:!1},this.rules[39]={name:"ename",lower:"ename",index:39,isBkr:!1},this.rules[40]={name:"UdtOp",lower:"udtop",index:40,isBkr:!1},this.rules[41]={name:"udt-non-empty",lower:"udt-non-empty",index:41,isBkr:!1},this.rules[42]={name:"udt-empty",lower:"udt-empty",index:42,isBkr:!1},this.rules[43]={name:"RepOp",lower:"repop",index:43,isBkr:!1},this.rules[44]={name:"AltOp",lower:"altop",index:44,isBkr:!1},this.rules[45]={name:"CatOp",lower:"catop",index:45,isBkr:!1},this.rules[46]={name:"StarOp",lower:"starop",index:46,isBkr:!1},this.rules[47]={name:"AndOp",lower:"andop",index:47,isBkr:!1},this.rules[48]={name:"NotOp",lower:"notop",index:48,isBkr:!1},this.rules[49]={name:"BkaOp",lower:"bkaop",index:49,isBkr:!1},this.rules[50]={name:"BknOp",lower:"bknop",index:50,isBkr:!1},this.rules[51]={name:"AbgOp",lower:"abgop",index:51,isBkr:!1},this.rules[52]={name:"AenOp",lower:"aenop",index:52,isBkr:!1},this.rules[53]={name:"TrgOp",lower:"trgop",index:53,isBkr:!1},this.rules[54]={name:"TbsOp",lower:"tbsop",index:54,isBkr:!1},this.rules[55]={name:"TlsOp",lower:"tlsop",index:55,isBkr:!1},this.rules[56]={name:"TlsCase",lower:"tlscase",index:56,isBkr:!1},this.rules[57]={name:"TlsOpen",lower:"tlsopen",index:57,isBkr:!1},this.rules[58]={name:"TlsClose",lower:"tlsclose",index:58,isBkr:!1},this.rules[59]={name:"TlsString",lower:"tlsstring",index:59,isBkr:!1},this.rules[60]={name:"StringTab",lower:"stringtab",index:60,isBkr:!1},this.rules[61]={name:"ClsOp",lower:"clsop",index:61,isBkr:!1},this.rules[62]={name:"ClsOpen",lower:"clsopen",index:62,isBkr:!1},this.rules[63]={name:"ClsClose",lower:"clsclose",index:63,isBkr:!1},this.rules[64]={name:"ClsString",lower:"clsstring",index:64,isBkr:!1},this.rules[65]={name:"ProsVal",lower:"prosval",index:65,isBkr:!1},this.rules[66]={name:"ProsValOpen",lower:"prosvalopen",index:66,isBkr:!1},this.rules[67]={name:"ProsValString",lower:"prosvalstring",index:67,isBkr:!1},this.rules[68]={name:"ProsValClose",lower:"prosvalclose",index:68,isBkr:!1},this.rules[69]={name:"rep-min",lower:"rep-min",index:69,isBkr:!1},this.rules[70]={name:"rep-min-max",lower:"rep-min-max",index:70,isBkr:!1},this.rules[71]={name:"rep-max",lower:"rep-max",index:71,isBkr:!1},this.rules[72]={name:"rep-num",lower:"rep-num",index:72,isBkr:!1},this.rules[73]={name:"dString",lower:"dstring",index:73,isBkr:!1},this.rules[74]={name:"xString",lower:"xstring",index:74,isBkr:!1},this.rules[75]={name:"bString",lower:"bstring",index:75,isBkr:!1},this.rules[76]={name:"Dec",lower:"dec",index:76,isBkr:!1},this.rules[77]={name:"Hex",lower:"hex",index:77,isBkr:!1},this.rules[78]={name:"Bin",lower:"bin",index:78,isBkr:!1},this.rules[79]={name:"dmin",lower:"dmin",index:79,isBkr:!1},this.rules[80]={name:"dmax",lower:"dmax",index:80,isBkr:!1},this.rules[81]={name:"bmin",lower:"bmin",index:81,isBkr:!1},this.rules[82]={name:"bmax",lower:"bmax",index:82,isBkr:!1},this.rules[83]={name:"xmin",lower:"xmin",index:83,isBkr:!1},this.rules[84]={name:"xmax",lower:"xmax",index:84,isBkr:!1},this.rules[85]={name:"dnum",lower:"dnum",index:85,isBkr:!1},this.rules[86]={name:"bnum",lower:"bnum",index:86,isBkr:!1},this.rules[87]={name:"xnum",lower:"xnum",index:87,isBkr:!1},this.rules[88]={name:"alphanum",lower:"alphanum",index:88,isBkr:!1},this.rules[89]={name:"owsp",lower:"owsp",index:89,isBkr:!1},this.rules[90]={name:"wsp",lower:"wsp",index:90,isBkr:!1},this.rules[91]={name:"space",lower:"space",index:91,isBkr:!1},this.rules[92]={name:"comment",lower:"comment",index:92,isBkr:!1},this.rules[93]={name:"LineEnd",lower:"lineend",index:93,isBkr:!1},this.rules[94]={name:"LineContinue",lower:"linecontinue",index:94,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:Infinity},this.rules[0].opcodes[1]={type:1,children:[2,3,4]},this.rules[0].opcodes[2]={type:4,index:1},this.rules[0].opcodes[3]={type:4,index:2},this.rules[0].opcodes[4]={type:4,index:12},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,5,7]},this.rules[1].opcodes[1]={type:3,min:0,max:Infinity},this.rules[1].opcodes[2]={type:1,children:[3,4]},this.rules[1].opcodes[3]={type:6,string:[32]},this.rules[1].opcodes[4]={type:6,string:[9]},this.rules[1].opcodes[5]={type:3,min:0,max:1},this.rules[1].opcodes[6]={type:4,index:92},this.rules[1].opcodes[7]={type:4,index:93},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4]},this.rules[2].opcodes[1]={type:4,index:3},this.rules[2].opcodes[2]={type:4,index:89},this.rules[2].opcodes[3]={type:4,index:14},this.rules[2].opcodes[4]={type:1,children:[5,8]},this.rules[2].opcodes[5]={type:2,children:[6,7]},this.rules[2].opcodes[6]={type:4,index:89},this.rules[2].opcodes[7]={type:4,index:93},this.rules[2].opcodes[8]={type:2,children:[9,10]},this.rules[2].opcodes[9]={type:4,index:13},this.rules[2].opcodes[10]={type:4,index:93},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,3]},this.rules[3].opcodes[1]={type:4,index:4},this.rules[3].opcodes[2]={type:4,index:89},this.rules[3].opcodes[3]={type:4,index:7},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:4,index:88},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:3,min:1,max:Infinity},this.rules[6].opcodes[1]={type:1,children:[2,3]},this.rules[6].opcodes[2]={type:5,min:33,max:60},this.rules[6].opcodes[3]={type:5,min:62,max:126},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:4,index:9},this.rules[7].opcodes[2]={type:4,index:8},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:3,min:1,max:2},this.rules[8].opcodes[1]={type:5,min:33,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:11},this.rules[9].opcodes[2]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:6,string:[61]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:6,string:[61,47]},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:2,children:[1,6]},this.rules[12].opcodes[1]={type:3,min:1,max:Infinity},this.rules[12].opcodes[2]={type:1,children:[3,4,5]},this.rules[12].opcodes[3]={type:5,min:32,max:126},this.rules[12].opcodes[4]={type:6,string:[9]},this.rules[12].opcodes[5]={type:4,index:94},this.rules[12].opcodes[6]={type:4,index:93},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:3,min:1,max:Infinity},this.rules[13].opcodes[1]={type:1,children:[2,3,4]},this.rules[13].opcodes[2]={type:5,min:32,max:126},this.rules[13].opcodes[3]={type:6,string:[9]},this.rules[13].opcodes[4]={type:4,index:94},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:2,children:[1,2]},this.rules[14].opcodes[1]={type:4,index:15},this.rules[14].opcodes[2]={type:3,min:0,max:Infinity},this.rules[14].opcodes[3]={type:2,children:[4,5,6]},this.rules[14].opcodes[4]={type:4,index:89},this.rules[14].opcodes[5]={type:4,index:44},this.rules[14].opcodes[6]={type:4,index:15},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:2,children:[1,2]},this.rules[15].opcodes[1]={type:4,index:16},this.rules[15].opcodes[2]={type:3,min:0,max:Infinity},this.rules[15].opcodes[3]={type:2,children:[4,5]},this.rules[15].opcodes[4]={type:4,index:45},this.rules[15].opcodes[5]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:2,children:[1,3]},this.rules[16].opcodes[1]={type:3,min:0,max:1},this.rules[16].opcodes[2]={type:4,index:17},this.rules[16].opcodes[3]={type:1,children:[4,5,6,7]},this.rules[16].opcodes[4]={type:4,index:21},this.rules[16].opcodes[5]={type:4,index:25},this.rules[16].opcodes[6]={type:4,index:19},this.rules[16].opcodes[7]={type:4,index:20},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:1,children:[1,5]},this.rules[17].opcodes[1]={type:2,children:[2,3]},this.rules[17].opcodes[2]={type:4,index:18},this.rules[17].opcodes[3]={type:3,min:0,max:1},this.rules[17].opcodes[4]={type:4,index:43},this.rules[17].opcodes[5]={type:4,index:43},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[18].opcodes[1]={type:4,index:49},this.rules[18].opcodes[2]={type:4,index:50},this.rules[18].opcodes[3]={type:4,index:47},this.rules[18].opcodes[4]={type:4,index:48},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10]},this.rules[19].opcodes[1]={type:4,index:40},this.rules[19].opcodes[2]={type:4,index:29},this.rules[19].opcodes[3]={type:4,index:53},this.rules[19].opcodes[4]={type:4,index:54},this.rules[19].opcodes[5]={type:4,index:55},this.rules[19].opcodes[6]={type:4,index:61},this.rules[19].opcodes[7]={type:4,index:30},this.rules[19].opcodes[8]={type:4,index:51},this.rules[19].opcodes[9]={type:4,index:52},this.rules[19].opcodes[10]={type:4,index:65},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:3,min:1,max:Infinity},this.rules[20].opcodes[1]={type:1,children:[2,3,4,5]},this.rules[20].opcodes[2]={type:5,min:33,max:40},this.rules[20].opcodes[3]={type:5,min:42,max:46},this.rules[20].opcodes[4]={type:5,min:48,max:92},this.rules[20].opcodes[5]={type:5,min:94,max:126},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:2,children:[1,2,3]},this.rules[21].opcodes[1]={type:4,index:23},this.rules[21].opcodes[2]={type:4,index:14},this.rules[21].opcodes[3]={type:1,children:[4,5]},this.rules[21].opcodes[4]={type:4,index:24},this.rules[21].opcodes[5]={type:4,index:22},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:3,min:1,max:Infinity},this.rules[22].opcodes[1]={type:1,children:[2,3,4,5]},this.rules[22].opcodes[2]={type:5,min:33,max:40},this.rules[22].opcodes[3]={type:5,min:42,max:46},this.rules[22].opcodes[4]={type:5,min:48,max:92},this.rules[22].opcodes[5]={type:5,min:94,max:126},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:2,children:[1,2]},this.rules[23].opcodes[1]={type:6,string:[40]},this.rules[23].opcodes[2]={type:4,index:89},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:2,children:[1,2]},this.rules[24].opcodes[1]={type:4,index:89},this.rules[24].opcodes[2]={type:6,string:[41]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:2,children:[1,2,3]},this.rules[25].opcodes[1]={type:4,index:27},this.rules[25].opcodes[2]={type:4,index:14},this.rules[25].opcodes[3]={type:1,children:[4,5]},this.rules[25].opcodes[4]={type:4,index:28},this.rules[25].opcodes[5]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:3,min:1,max:Infinity},this.rules[26].opcodes[1]={type:1,children:[2,3,4,5]},this.rules[26].opcodes[2]={type:5,min:33,max:40},this.rules[26].opcodes[3]={type:5,min:42,max:46},this.rules[26].opcodes[4]={type:5,min:48,max:92},this.rules[26].opcodes[5]={type:5,min:94,max:126},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:6,string:[91]},this.rules[27].opcodes[2]={type:4,index:89},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:2,children:[1,2]},this.rules[28].opcodes[1]={type:4,index:89},this.rules[28].opcodes[2]={type:6,string:[93]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:4,index:88},this.rules[30].opcodes=[],this.rules[30].opcodes[0]={type:2,children:[1,2,4]},this.rules[30].opcodes[1]={type:6,string:[92]},this.rules[30].opcodes[2]={type:3,min:0,max:1},this.rules[30].opcodes[3]={type:4,index:31},this.rules[30].opcodes[4]={type:4,index:36},this.rules[31].opcodes=[],this.rules[31].opcodes[0]={type:1,children:[1,7,13,19]},this.rules[31].opcodes[1]={type:2,children:[2,3]},this.rules[31].opcodes[2]={type:4,index:32},this.rules[31].opcodes[3]={type:3,min:0,max:1},this.rules[31].opcodes[4]={type:1,children:[5,6]},this.rules[31].opcodes[5]={type:4,index:34},this.rules[31].opcodes[6]={type:4,index:35},this.rules[31].opcodes[7]={type:2,children:[8,9]},this.rules[31].opcodes[8]={type:4,index:33},this.rules[31].opcodes[9]={type:3,min:0,max:1},this.rules[31].opcodes[10]={type:1,children:[11,12]},this.rules[31].opcodes[11]={type:4,index:34},this.rules[31].opcodes[12]={type:4,index:35},this.rules[31].opcodes[13]={type:2,children:[14,15]},this.rules[31].opcodes[14]={type:4,index:34},this.rules[31].opcodes[15]={type:3,min:0,max:1},this.rules[31].opcodes[16]={type:1,children:[17,18]},this.rules[31].opcodes[17]={type:4,index:32},this.rules[31].opcodes[18]={type:4,index:33},this.rules[31].opcodes[19]={type:2,children:[20,21]},this.rules[31].opcodes[20]={type:4,index:35},this.rules[31].opcodes[21]={type:3,min:0,max:1},this.rules[31].opcodes[22]={type:1,children:[23,24]},this.rules[31].opcodes[23]={type:4,index:32},this.rules[31].opcodes[24]={type:4,index:33},this.rules[32].opcodes=[],this.rules[32].opcodes[0]={type:6,string:[37,115]},this.rules[33].opcodes=[],this.rules[33].opcodes[0]={type:6,string:[37,105]},this.rules[34].opcodes=[],this.rules[34].opcodes[0]={type:6,string:[37,117]},this.rules[35].opcodes=[],this.rules[35].opcodes[0]={type:6,string:[37,112]},this.rules[36].opcodes=[],this.rules[36].opcodes[0]={type:1,children:[1,2,3]},this.rules[36].opcodes[1]={type:4,index:38},this.rules[36].opcodes[2]={type:4,index:39},this.rules[36].opcodes[3]={type:4,index:37},this.rules[37].opcodes=[],this.rules[37].opcodes[0]={type:4,index:88},this.rules[38].opcodes=[],this.rules[38].opcodes[0]={type:2,children:[1,2]},this.rules[38].opcodes[1]={type:6,string:[117,95]},this.rules[38].opcodes[2]={type:4,index:88},this.rules[39].opcodes=[],this.rules[39].opcodes[0]={type:2,children:[1,2]},this.rules[39].opcodes[1]={type:6,string:[101,95]},this.rules[39].opcodes[2]={type:4,index:88},this.rules[40].opcodes=[],this.rules[40].opcodes[0]={type:1,children:[1,2]},this.rules[40].opcodes[1]={type:4,index:42},this.rules[40].opcodes[2]={type:4,index:41},this.rules[41].opcodes=[],this.rules[41].opcodes[0]={type:2,children:[1,2]},this.rules[41].opcodes[1]={type:6,string:[117,95]},this.rules[41].opcodes[2]={type:4,index:88},this.rules[42].opcodes=[],this.rules[42].opcodes[0]={type:2,children:[1,2]},this.rules[42].opcodes[1]={type:6,string:[101,95]},this.rules[42].opcodes[2]={type:4,index:88},this.rules[43].opcodes=[],this.rules[43].opcodes[0]={type:1,children:[1,5,8,11,12]},this.rules[43].opcodes[1]={type:2,children:[2,3,4]},this.rules[43].opcodes[2]={type:4,index:69},this.rules[43].opcodes[3]={type:4,index:46},this.rules[43].opcodes[4]={type:4,index:71},this.rules[43].opcodes[5]={type:2,children:[6,7]},this.rules[43].opcodes[6]={type:4,index:69},this.rules[43].opcodes[7]={type:4,index:46},this.rules[43].opcodes[8]={type:2,children:[9,10]},this.rules[43].opcodes[9]={type:4,index:46},this.rules[43].opcodes[10]={type:4,index:71},this.rules[43].opcodes[11]={type:4,index:46},this.rules[43].opcodes[12]={type:4,index:70},this.rules[44].opcodes=[],this.rules[44].opcodes[0]={type:2,children:[1,2]},this.rules[44].opcodes[1]={type:6,string:[47]},this.rules[44].opcodes[2]={type:4,index:89},this.rules[45].opcodes=[],this.rules[45].opcodes[0]={type:4,index:90},this.rules[46].opcodes=[],this.rules[46].opcodes[0]={type:6,string:[42]},this.rules[47].opcodes=[],this.rules[47].opcodes[0]={type:6,string:[38]},this.rules[48].opcodes=[],this.rules[48].opcodes[0]={type:6,string:[33]},this.rules[49].opcodes=[],this.rules[49].opcodes[0]={type:6,string:[38,38]},this.rules[50].opcodes=[],this.rules[50].opcodes[0]={type:6,string:[33,33]},this.rules[51].opcodes=[],this.rules[51].opcodes[0]={type:6,string:[37,94]},this.rules[52].opcodes=[],this.rules[52].opcodes[0]={type:6,string:[37,36]},this.rules[53].opcodes=[],this.rules[53].opcodes[0]={type:2,children:[1,2]},this.rules[53].opcodes[1]={type:6,string:[37]},this.rules[53].opcodes[2]={type:1,children:[3,8,13]},this.rules[53].opcodes[3]={type:2,children:[4,5,6,7]},this.rules[53].opcodes[4]={type:4,index:76},this.rules[53].opcodes[5]={type:4,index:79},this.rules[53].opcodes[6]={type:6,string:[45]},this.rules[53].opcodes[7]={type:4,index:80},this.rules[53].opcodes[8]={type:2,children:[9,10,11,12]},this.rules[53].opcodes[9]={type:4,index:77},this.rules[53].opcodes[10]={type:4,index:83},this.rules[53].opcodes[11]={type:6,string:[45]},this.rules[53].opcodes[12]={type:4,index:84},this.rules[53].opcodes[13]={type:2,children:[14,15,16,17]},this.rules[53].opcodes[14]={type:4,index:78},this.rules[53].opcodes[15]={type:4,index:81},this.rules[53].opcodes[16]={type:6,string:[45]},this.rules[53].opcodes[17]={type:4,index:82},this.rules[54].opcodes=[],this.rules[54].opcodes[0]={type:2,children:[1,2]},this.rules[54].opcodes[1]={type:6,string:[37]},this.rules[54].opcodes[2]={type:1,children:[3,10,17]},this.rules[54].opcodes[3]={type:2,children:[4,5,6]},this.rules[54].opcodes[4]={type:4,index:76},this.rules[54].opcodes[5]={type:4,index:73},this.rules[54].opcodes[6]={type:3,min:0,max:Infinity},this.rules[54].opcodes[7]={type:2,children:[8,9]},this.rules[54].opcodes[8]={type:6,string:[46]},this.rules[54].opcodes[9]={type:4,index:73},this.rules[54].opcodes[10]={type:2,children:[11,12,13]},this.rules[54].opcodes[11]={type:4,index:77},this.rules[54].opcodes[12]={type:4,index:74},this.rules[54].opcodes[13]={type:3,min:0,max:Infinity},this.rules[54].opcodes[14]={type:2,children:[15,16]},this.rules[54].opcodes[15]={type:6,string:[46]},this.rules[54].opcodes[16]={type:4,index:74},this.rules[54].opcodes[17]={type:2,children:[18,19,20]},this.rules[54].opcodes[18]={type:4,index:78},this.rules[54].opcodes[19]={type:4,index:75},this.rules[54].opcodes[20]={type:3,min:0,max:Infinity},this.rules[54].opcodes[21]={type:2,children:[22,23]},this.rules[54].opcodes[22]={type:6,string:[46]},this.rules[54].opcodes[23]={type:4,index:75},this.rules[55].opcodes=[],this.rules[55].opcodes[0]={type:2,children:[1,2,3,4]},this.rules[55].opcodes[1]={type:4,index:56},this.rules[55].opcodes[2]={type:4,index:57},this.rules[55].opcodes[3]={type:4,index:59},this.rules[55].opcodes[4]={type:4,index:58},this.rules[56].opcodes=[],this.rules[56].opcodes[0]={type:3,min:0,max:1},this.rules[56].opcodes[1]={type:1,children:[2,3]},this.rules[56].opcodes[2]={type:7,string:[37,105]},this.rules[56].opcodes[3]={type:7,string:[37,115]},this.rules[57].opcodes=[],this.rules[57].opcodes[0]={type:6,string:[34]},this.rules[58].opcodes=[],this.rules[58].opcodes[0]={type:6,string:[34]},this.rules[59].opcodes=[],this.rules[59].opcodes[0]={type:3,min:0,max:Infinity},this.rules[59].opcodes[1]={type:1,children:[2,3,4]},this.rules[59].opcodes[2]={type:5,min:32,max:33},this.rules[59].opcodes[3]={type:5,min:35,max:126},this.rules[59].opcodes[4]={type:4,index:60},this.rules[60].opcodes=[],this.rules[60].opcodes[0]={type:6,string:[9]},this.rules[61].opcodes=[],this.rules[61].opcodes[0]={type:2,children:[1,2,3]},this.rules[61].opcodes[1]={type:4,index:62},this.rules[61].opcodes[2]={type:4,index:64},this.rules[61].opcodes[3]={type:4,index:63},this.rules[62].opcodes=[],this.rules[62].opcodes[0]={type:6,string:[39]},this.rules[63].opcodes=[],this.rules[63].opcodes[0]={type:6,string:[39]},this.rules[64].opcodes=[],this.rules[64].opcodes[0]={type:3,min:0,max:Infinity},this.rules[64].opcodes[1]={type:1,children:[2,3,4]},this.rules[64].opcodes[2]={type:5,min:32,max:38},this.rules[64].opcodes[3]={type:5,min:40,max:126},this.rules[64].opcodes[4]={type:4,index:60},this.rules[65].opcodes=[],this.rules[65].opcodes[0]={type:2,children:[1,2,3]},this.rules[65].opcodes[1]={type:4,index:66},this.rules[65].opcodes[2]={type:4,index:67},this.rules[65].opcodes[3]={type:4,index:68},this.rules[66].opcodes=[],this.rules[66].opcodes[0]={type:6,string:[60]},this.rules[67].opcodes=[],this.rules[67].opcodes[0]={type:3,min:0,max:Infinity},this.rules[67].opcodes[1]={type:1,children:[2,3,4]},this.rules[67].opcodes[2]={type:5,min:32,max:61},this.rules[67].opcodes[3]={type:5,min:63,max:126},this.rules[67].opcodes[4]={type:4,index:60},this.rules[68].opcodes=[],this.rules[68].opcodes[0]={type:6,string:[62]},this.rules[69].opcodes=[],this.rules[69].opcodes[0]={type:4,index:72},this.rules[70].opcodes=[],this.rules[70].opcodes[0]={type:4,index:72},this.rules[71].opcodes=[],this.rules[71].opcodes[0]={type:4,index:72},this.rules[72].opcodes=[],this.rules[72].opcodes[0]={type:3,min:1,max:Infinity},this.rules[72].opcodes[1]={type:5,min:48,max:57},this.rules[73].opcodes=[],this.rules[73].opcodes[0]={type:4,index:85},this.rules[74].opcodes=[],this.rules[74].opcodes[0]={type:4,index:87},this.rules[75].opcodes=[],this.rules[75].opcodes[0]={type:4,index:86},this.rules[76].opcodes=[],this.rules[76].opcodes[0]={type:1,children:[1,2]},this.rules[76].opcodes[1]={type:6,string:[68]},this.rules[76].opcodes[2]={type:6,string:[100]},this.rules[77].opcodes=[],this.rules[77].opcodes[0]={type:1,children:[1,2]},this.rules[77].opcodes[1]={type:6,string:[88]},this.rules[77].opcodes[2]={type:6,string:[120]},this.rules[78].opcodes=[],this.rules[78].opcodes[0]={type:1,children:[1,2]},this.rules[78].opcodes[1]={type:6,string:[66]},this.rules[78].opcodes[2]={type:6,string:[98]},this.rules[79].opcodes=[],this.rules[79].opcodes[0]={type:4,index:85},this.rules[80].opcodes=[],this.rules[80].opcodes[0]={type:4,index:85},this.rules[81].opcodes=[],this.rules[81].opcodes[0]={type:4,index:86},this.rules[82].opcodes=[],this.rules[82].opcodes[0]={type:4,index:86},this.rules[83].opcodes=[],this.rules[83].opcodes[0]={type:4,index:87},this.rules[84].opcodes=[],this.rules[84].opcodes[0]={type:4,index:87},this.rules[85].opcodes=[],this.rules[85].opcodes[0]={type:3,min:1,max:Infinity},this.rules[85].opcodes[1]={type:5,min:48,max:57},this.rules[86].opcodes=[],this.rules[86].opcodes[0]={type:3,min:1,max:Infinity},this.rules[86].opcodes[1]={type:5,min:48,max:49},this.rules[87].opcodes=[],this.rules[87].opcodes[0]={type:3,min:1,max:Infinity},this.rules[87].opcodes[1]={type:1,children:[2,3,4]},this.rules[87].opcodes[2]={type:5,min:48,max:57},this.rules[87].opcodes[3]={type:5,min:65,max:70},this.rules[87].opcodes[4]={type:5,min:97,max:102},this.rules[88].opcodes=[],this.rules[88].opcodes[0]={type:2,children:[1,4]},this.rules[88].opcodes[1]={type:1,children:[2,3]},this.rules[88].opcodes[2]={type:5,min:97,max:122},this.rules[88].opcodes[3]={type:5,min:65,max:90},this.rules[88].opcodes[4]={type:3,min:0,max:Infinity},this.rules[88].opcodes[5]={type:1,children:[6,7,8,9]},this.rules[88].opcodes[6]={type:5,min:97,max:122},this.rules[88].opcodes[7]={type:5,min:65,max:90},this.rules[88].opcodes[8]={type:5,min:48,max:57},this.rules[88].opcodes[9]={type:6,string:[45]},this.rules[89].opcodes=[],this.rules[89].opcodes[0]={type:3,min:0,max:Infinity},this.rules[89].opcodes[1]={type:4,index:91},this.rules[90].opcodes=[],this.rules[90].opcodes[0]={type:3,min:1,max:Infinity},this.rules[90].opcodes[1]={type:4,index:91},this.rules[91].opcodes=[],this.rules[91].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[91].opcodes[1]={type:6,string:[32]},this.rules[91].opcodes[2]={type:6,string:[9]},this.rules[91].opcodes[3]={type:4,index:92},this.rules[91].opcodes[4]={type:4,index:94},this.rules[92].opcodes=[],this.rules[92].opcodes[0]={type:2,children:[1,2]},this.rules[92].opcodes[1]={type:6,string:[59]},this.rules[92].opcodes[2]={type:3,min:0,max:Infinity},this.rules[92].opcodes[3]={type:1,children:[4,5]},this.rules[92].opcodes[4]={type:5,min:32,max:126},this.rules[92].opcodes[5]={type:6,string:[9]},this.rules[93].opcodes=[],this.rules[93].opcodes[0]={type:1,children:[1,2,3]},this.rules[93].opcodes[1]={type:6,string:[13,10]},this.rules[93].opcodes[2]={type:6,string:[10]},this.rules[93].opcodes[3]={type:6,string:[13]},this.rules[94].opcodes=[],this.rules[94].opcodes[0]={type:2,children:[1,5]},this.rules[94].opcodes[1]={type:1,children:[2,3,4]},this.rules[94].opcodes[2]={type:6,string:[13,10]},this.rules[94].opcodes[3]={type:6,string:[10]},this.rules[94].opcodes[4]={type:6,string:[13]},this.rules[94].opcodes[5]={type:1,children:[6,7]},this.rules[94].opcodes[6]={type:6,string:[32]},this.rules[94].opcodes[7]={type:6,string:[9]},this.toString=function(){let e="";return e+=";\n",e+="; ABNF for JavaScript APG 2.0 SABNF\n",e+="; RFC 5234 with some restrictions and additions.\n",e+="; Updated 11/24/2015 for RFC 7405 case-sensitive literal string notation\n",e+='; - accepts %s"string" as a case-sensitive string\n',e+='; - accepts %i"string" as a case-insensitive string\n',e+='; - accepts "string" as a case-insensitive string\n',e+=";\n",e+="; Some restrictions:\n",e+="; 1. Rules must begin at first character of each line.\n",e+="; Indentations on first rule and rules thereafter are not allowed.\n",e+="; 2. Relaxed line endings. CRLF, LF or CR are accepted as valid line ending.\n",e+="; 3. Prose values, i.e. <prose value>, are accepted as valid grammar syntax.\n",e+="; However, a working parser cannot be generated from them.\n",e+=";\n",e+="; Super set (SABNF) additions:\n",e+="; 1. Look-ahead (syntactic predicate) operators are accepted as element prefixes.\n",e+="; & is the positive look-ahead operator, succeeds and backtracks if the look-ahead phrase is found\n",e+="; ! is the negative look-ahead operator, succeeds and backtracks if the look-ahead phrase is NOT found\n",e+="; e.g. &%d13 or &rule or !(A / B)\n",e+="; 2. User-Defined Terminals (UDT) of the form, u_name and e_name are accepted.\n",e+="; 'name' is alpha followed by alpha/num/hyphen just like a rule name.\n",e+="; u_name may be used as an element but no rule definition is given.\n",e+="; e.g. rule = A / u_myUdt\n",e+='; A = "a"\n',e+="; would be a valid grammar.\n",e+="; 3. Case-sensitive, single-quoted strings are accepted.\n",e+="; e.g. 'abc' would be equivalent to %d97.98.99\n",e+='; (kept for backward compatibility, but superseded by %s"abc") \n',e+="; New 12/26/2015\n",e+="; 4. Look-behind operators are accepted as element prefixes.\n",e+="; && is the positive look-behind operator, succeeds and backtracks if the look-behind phrase is found\n",e+="; !! is the negative look-behind operator, succeeds and backtracks if the look-behind phrase is NOT found\n",e+="; e.g. &&%d13 or &&rule or !!(A / B)\n",e+="; 5. Back reference operators, i.e. \\rulename, are accepted.\n",e+="; A back reference operator acts like a TLS or TBS terminal except that the phrase it attempts\n",e+="; to match is a phrase previously matched by the rule 'rulename'.\n",e+="; There are two modes of previous phrase matching - the parent-frame mode and the universal mode.\n",e+="; In universal mode, \\rulename matches the last match to 'rulename' regardless of where it was found.\n",e+="; In parent-frame mode, \\rulename matches only the last match found on the parent's frame or parse tree level.\n",e+="; Back reference modifiers can be used to specify case and mode.\n",e+="; \\A defaults to case-insensitive and universal mode, e.g. \\A === \\%i%uA\n",e+="; Modifiers %i and %s determine case-insensitive and case-sensitive mode, respectively.\n",e+="; Modifiers %u and %p determine universal mode and parent frame mode, respectively.\n",e+="; Case and mode modifiers can appear in any order, e.g. \\%s%pA === \\%p%sA. \n",e+="; 7. String begin anchor, ABG(%^) matches the beginning of the input string location.\n",e+="; Returns EMPTY or NOMATCH. Never consumes any characters.\n",e+="; 8. String end anchor, AEN(%$) matches the end of the input string location.\n",e+="; Returns EMPTY or NOMATCH. Never consumes any characters.\n",e+=";\n",e+="File = *(BlankLine / Rule / RuleError)\n",e+="BlankLine = *(%d32/%d9) [comment] LineEnd\n",e+="Rule = RuleLookup owsp Alternation ((owsp LineEnd)\n",e+=" / (LineEndError LineEnd))\n",e+="RuleLookup = RuleNameTest owsp DefinedAsTest\n",e+="RuleNameTest = RuleName/RuleNameError\n",e+="RuleName = alphanum\n",e+="RuleNameError = 1*(%d33-60/%d62-126)\n",e+="DefinedAsTest = DefinedAs / DefinedAsError\n",e+="DefinedAsError = 1*2%d33-126\n",e+="DefinedAs = IncAlt / Defined\n",e+="Defined = %d61\n",e+="IncAlt = %d61.47\n",e+="RuleError = 1*(%d32-126 / %d9 / LineContinue) LineEnd\n",e+="LineEndError = 1*(%d32-126 / %d9 / LineContinue)\n",e+="Alternation = Concatenation *(owsp AltOp Concatenation)\n",e+="Concatenation = Repetition *(CatOp Repetition)\n",e+="Repetition = [Modifier] (Group / Option / BasicElement / BasicElementErr)\n",e+="Modifier = (Predicate [RepOp])\n",e+=" / RepOp\n",e+="Predicate = BkaOp\n",e+=" / BknOp\n",e+=" / AndOp\n",e+=" / NotOp\n",e+="BasicElement = UdtOp\n",e+=" / RnmOp\n",e+=" / TrgOp\n",e+=" / TbsOp\n",e+=" / TlsOp\n",e+=" / ClsOp\n",e+=" / BkrOp\n",e+=" / AbgOp\n",e+=" / AenOp\n",e+=" / ProsVal\n",e+="BasicElementErr = 1*(%d33-40/%d42-46/%d48-92/%d94-126)\n",e+="Group = GroupOpen Alternation (GroupClose / GroupError)\n",e+="GroupError = 1*(%d33-40/%d42-46/%d48-92/%d94-126) ; same as BasicElementErr\n",e+="GroupOpen = %d40 owsp\n",e+="GroupClose = owsp %d41\n",e+="Option = OptionOpen Alternation (OptionClose / OptionError)\n",e+="OptionError = 1*(%d33-40/%d42-46/%d48-92/%d94-126) ; same as BasicElementErr\n",e+="OptionOpen = %d91 owsp\n",e+="OptionClose = owsp %d93\n",e+="RnmOp = alphanum\n",e+="BkrOp = %d92 [bkrModifier] bkr-name\n",e+="bkrModifier = (cs [um / pm]) / (ci [um / pm]) / (um [cs /ci]) / (pm [cs / ci])\n",e+="cs = '%s'\n",e+="ci = '%i'\n",e+="um = '%u'\n",e+="pm = '%p'\n",e+="bkr-name = uname / ename / rname\n",e+="rname = alphanum\n",e+="uname = %d117.95 alphanum\n",e+="ename = %d101.95 alphanum\n",e+="UdtOp = udt-empty\n",e+=" / udt-non-empty\n",e+="udt-non-empty = %d117.95 alphanum\n",e+="udt-empty = %d101.95 alphanum\n",e+="RepOp = (rep-min StarOp rep-max)\n",e+=" / (rep-min StarOp)\n",e+=" / (StarOp rep-max)\n",e+=" / StarOp\n",e+=" / rep-min-max\n",e+="AltOp = %d47 owsp\n",e+="CatOp = wsp\n",e+="StarOp = %d42\n",e+="AndOp = %d38\n",e+="NotOp = %d33\n",e+="BkaOp = %d38.38\n",e+="BknOp = %d33.33\n",e+="AbgOp = %d37.94\n",e+="AenOp = %d37.36\n",e+="TrgOp = %d37 ((Dec dmin %d45 dmax) / (Hex xmin %d45 xmax) / (Bin bmin %d45 bmax))\n",e+="TbsOp = %d37 ((Dec dString *(%d46 dString)) / (Hex xString *(%d46 xString)) / (Bin bString *(%d46 bString)))\n",e+="TlsOp = TlsCase TlsOpen TlsString TlsClose\n",e+='TlsCase = ["%i" / "%s"]\n',e+="TlsOpen = %d34\n",e+="TlsClose = %d34\n",e+="TlsString = *(%d32-33/%d35-126/StringTab)\n",e+="StringTab = %d9\n",e+="ClsOp = ClsOpen ClsString ClsClose\n",e+="ClsOpen = %d39\n",e+="ClsClose = %d39\n",e+="ClsString = *(%d32-38/%d40-126/StringTab)\n",e+="ProsVal = ProsValOpen ProsValString ProsValClose\n",e+="ProsValOpen = %d60\n",e+="ProsValString = *(%d32-61/%d63-126/StringTab)\n",e+="ProsValClose = %d62\n",e+="rep-min = rep-num\n",e+="rep-min-max = rep-num\n",e+="rep-max = rep-num\n",e+="rep-num = 1*(%d48-57)\n",e+="dString = dnum\n",e+="xString = xnum\n",e+="bString = bnum\n",e+="Dec = (%d68/%d100)\n",e+="Hex = (%d88/%d120)\n",e+="Bin = (%d66/%d98)\n",e+="dmin = dnum\n",e+="dmax = dnum\n",e+="bmin = bnum\n",e+="bmax = bnum\n",e+="xmin = xnum\n",e+="xmax = xnum\n",e+="dnum = 1*(%d48-57)\n",e+="bnum = 1*%d48-49\n",e+="xnum = 1*(%d48-57 / %d65-70 / %d97-102)\n",e+=";\n",e+="; Basics\n",e+="alphanum = (%d97-122/%d65-90) *(%d97-122/%d65-90/%d48-57/%d45)\n",e+="owsp = *space\n",e+="wsp = 1*space\n",e+="space = %d32\n",e+=" / %d9\n",e+=" / comment\n",e+=" / LineContinue\n",e+="comment = %d59 *(%d32-126 / %d9)\n",e+="LineEnd = %d13.10\n",e+=" / %d10\n",e+=" / %d13\n",e+="LineContinue = (%d13.10 / %d10 / %d13) (%d32 / %d9)\n",";\n; ABNF for JavaScript APG 2.0 SABNF\n; RFC 5234 with some restrictions and additions.\n; Updated 11/24/2015 for RFC 7405 case-sensitive literal string notation\n; - accepts %s\"string\" as a case-sensitive string\n; - accepts %i\"string\" as a case-insensitive string\n; - accepts \"string\" as a case-insensitive string\n;\n; Some restrictions:\n; 1. Rules must begin at first character of each line.\n; Indentations on first rule and rules thereafter are not allowed.\n; 2. Relaxed line endings. CRLF, LF or CR are accepted as valid line ending.\n; 3. Prose values, i.e. <prose value>, are accepted as valid grammar syntax.\n; However, a working parser cannot be generated from them.\n;\n; Super set (SABNF) additions:\n; 1. Look-ahead (syntactic predicate) operators are accepted as element prefixes.\n; & is the positive look-ahead operator, succeeds and backtracks if the look-ahead phrase is found\n; ! is the negative look-ahead operator, succeeds and backtracks if the look-ahead phrase is NOT found\n; e.g. &%d13 or &rule or !(A / B)\n; 2. User-Defined Terminals (UDT) of the form, u_name and e_name are accepted.\n; 'name' is alpha followed by alpha/num/hyphen just like a rule name.\n; u_name may be used as an element but no rule definition is given.\n; e.g. rule = A / u_myUdt\n; A = \"a\"\n; would be a valid grammar.\n; 3. Case-sensitive, single-quoted strings are accepted.\n; e.g. 'abc' would be equivalent to %d97.98.99\n; (kept for backward compatibility, but superseded by %s\"abc\") \n; New 12/26/2015\n; 4. Look-behind operators are accepted as element prefixes.\n; && is the positive look-behind operator, succeeds and backtracks if the look-behind phrase is found\n; !! is the negative look-behind operator, succeeds and backtracks if the look-behind phrase is NOT found\n; e.g. &&%d13 or &&rule or !!(A / B)\n; 5. Back reference operators, i.e. \\rulename, are accepted.\n; A back reference operator acts like a TLS or TBS terminal except that the phrase it attempts\n; to match is a phrase previously matched by the rule 'rulename'.\n; There are two modes of previous phrase matching - the parent-frame mode and the universal mode.\n; In universal mode, \\rulename matches the last match to 'rulename' regardless of where it was found.\n; In parent-frame mode, \\rulename matches only the last match found on the parent's frame or parse tree level.\n; Back reference modifiers can be used to specify case and mode.\n; \\A defaults to case-insensitive and universal mode, e.g. \\A === \\%i%uA\n; Modifiers %i and %s determine case-insensitive and case-sensitive mode, respectively.\n; Modifiers %u and %p determine universal mode and parent frame mode, respectively.\n; Case and mode modifiers can appear in any order, e.g. \\%s%pA === \\%p%sA. \n; 7. String begin anchor, ABG(%^) matches the beginning of the input string location.\n; Returns EMPTY or NOMATCH. Never consumes any characters.\n; 8. String end anchor, AEN(%$) matches the end of the input string location.\n; Returns EMPTY or NOMATCH. Never consumes any characters.\n;\nFile = *(BlankLine / Rule / RuleError)\nBlankLine = *(%d32/%d9) [comment] LineEnd\nRule = RuleLookup owsp Alternation ((owsp LineEnd)\n / (LineEndError LineEnd))\nRuleLookup = RuleNameTest owsp DefinedAsTest\nRuleNameTest = RuleName/RuleNameError\nRuleName = alphanum\nRuleNameError = 1*(%d33-60/%d62-126)\nDefinedAsTest = DefinedAs / DefinedAsError\nDefinedAsError = 1*2%d33-126\nDefinedAs = IncAlt / Defined\nDefined = %d61\nIncAlt = %d61.47\nRuleError = 1*(%d32-126 / %d9 / LineContinue) LineEnd\nLineEndError = 1*(%d32-126 / %d9 / LineContinue)\nAlternation = Concatenation *(owsp AltOp Concatenation)\nConcatenation = Repetition *(CatOp Repetition)\nRepetition = [Modifier] (Group / Option / BasicElement / BasicElementErr)\nModifier = (Predicate [RepOp])\n / RepOp\nPredicate = BkaOp\n / BknOp\n / AndOp\n / NotOp\nBasicElement = UdtOp\n / RnmOp\n / TrgOp\n / TbsOp\n / TlsOp\n / ClsOp\n / BkrOp\n / AbgOp\n / AenOp\n / ProsVal\nBasicElementErr = 1*(%d33-40/%d42-46/%d48-92/%d94-126)\nGroup = GroupOpen Alternation (GroupClose / GroupError)\nGroupError = 1*(%d33-40/%d42-46/%d48-92/%d94-126) ; same as BasicElementErr\nGroupOpen = %d40 owsp\nGroupClose = owsp %d41\nOption = OptionOpen Alternation (OptionClose / OptionError)\nOptionError = 1*(%d33-40/%d42-46/%d48-92/%d94-126) ; same as BasicElementErr\nOptionOpen = %d91 owsp\nOptionClose = owsp %d93\nRnmOp = alphanum\nBkrOp = %d92 [bkrModifier] bkr-name\nbkrModifier = (cs [um / pm]) / (ci [um / pm]) / (um [cs /ci]) / (pm [cs / ci])\ncs = '%s'\nci = '%i'\num = '%u'\npm = '%p'\nbkr-name = uname / ename / rname\nrname = alphanum\nuname = %d117.95 alphanum\nename = %d101.95 alphanum\nUdtOp = udt-empty\n / udt-non-empty\nudt-non-empty = %d117.95 alphanum\nudt-empty = %d101.95 alphanum\nRepOp = (rep-min StarOp rep-max)\n / (rep-min StarOp)\n / (StarOp rep-max)\n / StarOp\n / rep-min-max\nAltOp = %d47 owsp\nCatOp = wsp\nStarOp = %d42\nAndOp = %d38\nNotOp = %d33\nBkaOp = %d38.38\nBknOp = %d33.33\nAbgOp = %d37.94\nAenOp = %d37.36\nTrgOp = %d37 ((Dec dmin %d45 dmax) / (Hex xmin %d45 xmax) / (Bin bmin %d45 bmax))\nTbsOp = %d37 ((Dec dString *(%d46 dString)) / (Hex xString *(%d46 xString)) / (Bin bString *(%d46 bString)))\nTlsOp = TlsCase TlsOpen TlsString TlsClose\nTlsCase = [\"%i\" / \"%s\"]\nTlsOpen = %d34\nTlsClose = %d34\nTlsString = *(%d32-33/%d35-126/StringTab)\nStringTab = %d9\nClsOp = ClsOpen ClsString ClsClose\nClsOpen = %d39\nClsClose = %d39\nClsString = *(%d32-38/%d40-126/StringTab)\nProsVal = ProsValOpen ProsValString ProsValClose\nProsValOpen = %d60\nProsValString = *(%d32-61/%d63-126/StringTab)\nProsValClose = %d62\nrep-min = rep-num\nrep-min-max = rep-num\nrep-max = rep-num\nrep-num = 1*(%d48-57)\ndString = dnum\nxString = xnum\nbString = bnum\nDec = (%d68/%d100)\nHex = (%d88/%d120)\nBin = (%d66/%d98)\ndmin = dnum\ndmax = dnum\nbmin = bnum\nbmax = bnum\nxmin = xnum\nxmax = xnum\ndnum = 1*(%d48-57)\nbnum = 1*%d48-49\nxnum = 1*(%d48-57 / %d65-70 / %d97-102)\n;\n; Basics\nalphanum = (%d97-122/%d65-90) *(%d97-122/%d65-90/%d48-57/%d45)\nowsp = *space\nwsp = 1*space\nspace = %d32\n / %d9\n / comment\n / LineContinue\ncomment = %d59 *(%d32-126 / %d9)\nLineEnd = %d13.10\n / %d10\n / %d13\nLineContinue = (%d13.10 / %d10 / %d13) (%d32 / %d9)\n"}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/sabnf-grammar.js"}],[3877,{"../apg-lib/identifiers":3888,"../apg-lib/utilities":3894},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../apg-lib/identifiers"),i=e("../apg-lib/utilities");const o=[];o.line=function(e,t,r,i,o){return e===n.SEM_PRE?(o.endLength=0,o.textLength=0,o.invalidCount=0):o.lines.push({lineNo:o.lines.length,beginChar:r,length:i,textLength:o.textLength,endType:o.endType,invalidChars:o.invalidCount}),n.SEM_OK},o["line-text"]=function(e,t,r,i,o){return e===n.SEM_PRE&&(o.textLength=i),n.SEM_OK},o["last-line"]=function(e,t,r,i,o){return e===n.SEM_PRE?(o.endLength=0,o.textLength=0,o.invalidCount=0):o.strict?(o.lines.push({lineNo:o.lines.length,beginChar:r,length:i,textLength:i,endType:"none",invalidChars:o.invalidCount}),o.errors.push({line:o.lineNo,char:r+i,msg:"no line end on last line - strict ABNF specifies CRLF(\\r\\n, \\x0D\\x0A)"})):(t.push(10),o.lines.push({lineNo:o.lines.length,beginChar:r,length:i+1,textLength:i,endType:"LF",invalidChars:o.invalidCount})),n.SEM_OK},o.invalid=function(e,t,r,o,s){return e===n.SEM_PRE&&s.errors.push({line:s.lineNo,char:r,msg:`invalid character found '\\x${i.charToHex(t[r])}'`}),n.SEM_OK},o.end=function(e,t,r,i,o){return e===n.SEM_POST&&(o.lineNo+=1),n.SEM_OK},o.lf=function(e,t,r,i,o){return e===n.SEM_PRE&&(o.endType="LF",o.strict&&o.errors.push({line:o.lineNo,char:r,msg:"line end character LF(\\n, \\x0A) - strict ABNF specifies CRLF(\\r\\n, \\x0D\\x0A)"})),n.SEM_OK},o.cr=function(e,t,r,i,o){return e===n.SEM_PRE&&(o.endType="CR",o.strict&&o.errors.push({line:o.lineNo,char:r,msg:"line end character CR(\\r, \\x0D) - strict ABNF specifies CRLF(\\r\\n, \\x0D\\x0A)"})),n.SEM_OK},o.crlf=function(e,t,r,i,o){return e===n.SEM_PRE&&(o.endType="CRLF"),n.SEM_OK},r.callbacks=o}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/scanner-callbacks.js"}],[3878,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"file",lower:"file",index:0,isBkr:!1},this.rules[1]={name:"line",lower:"line",index:1,isBkr:!1},this.rules[2]={name:"line-text",lower:"line-text",index:2,isBkr:!1},this.rules[3]={name:"last-line",lower:"last-line",index:3,isBkr:!1},this.rules[4]={name:"valid",lower:"valid",index:4,isBkr:!1},this.rules[5]={name:"invalid",lower:"invalid",index:5,isBkr:!1},this.rules[6]={name:"end",lower:"end",index:6,isBkr:!1},this.rules[7]={name:"CRLF",lower:"crlf",index:7,isBkr:!1},this.rules[8]={name:"LF",lower:"lf",index:8,isBkr:!1},this.rules[9]={name:"CR",lower:"cr",index:9,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,3]},this.rules[0].opcodes[1]={type:3,min:0,max:Infinity},this.rules[0].opcodes[2]={type:4,index:1},this.rules[0].opcodes[3]={type:3,min:0,max:1},this.rules[0].opcodes[4]={type:4,index:3},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:6},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:0,max:Infinity},this.rules[2].opcodes[1]={type:1,children:[2,3]},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:5},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:Infinity},this.rules[3].opcodes[1]={type:1,children:[2,3]},this.rules[3].opcodes[2]={type:4,index:4},this.rules[3].opcodes[3]={type:4,index:5},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:5,min:32,max:126},this.rules[4].opcodes[2]={type:6,string:[9]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[5].opcodes[1]={type:5,min:0,max:8},this.rules[5].opcodes[2]={type:5,min:11,max:12},this.rules[5].opcodes[3]={type:5,min:14,max:31},this.rules[5].opcodes[4]={type:5,min:127,max:4294967295},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:6,string:[13,10]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:6,string:[10]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:6,string:[13]},this.toString=function(){let e="";return e+="file = *line [last-line]\n",e+="line = line-text end\n",e+="line-text = *(valid/invalid)\n",e+="last-line = 1*(valid/invalid)\n",e+="valid = %d32-126 / %d9\n",e+="invalid = %d0-8 / %d11-12 /%d14-31 / %x7f-ffffffff\n",e+="end = CRLF / LF / CR\n",e+="CRLF = %d13.10\n",e+="LF = %d10\n",e+="CR = %d13\n","file = *line [last-line]\nline = line-text end\nline-text = *(valid/invalid)\nlast-line = 1*(valid/invalid)\nvalid = %d32-126 / %d9\ninvalid = %d0-8 / %d11-12 /%d14-31 / %x7f-ffffffff\nend = CRLF / LF / CR\nCRLF = %d13.10\nLF = %d10\nCR = %d13\n"}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/scanner-grammar.js"}],[3879,{"../apg-lib/node-exports":3889,"./scanner-callbacks":3877,"./scanner-grammar":3878},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(t,r,n,i){const o=e("../apg-lib/node-exports"),s=new(e("./scanner-grammar")),{callbacks:a}=e("./scanner-callbacks"),c=[],u=new o.parser;if(u.ast=new o.ast,u.ast.callbacks=a,i){if("traceObject"!==i.traceObject)throw new TypeError("scanner.js: trace argument is not a trace object");u.trace=i}if(!0!==u.parse(s,"file",t).success)return void r.push({line:0,char:0,msg:"syntax analysis error analyzing input SABNF grammar"});const l={lines:c,lineNo:0,errors:r,strict:!!n};return u.ast.translate(l),c}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/scanner.js"}],[388,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/nonIterableSpread.js"}],[3880,{"../apg-lib/node-exports":3889},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t=e("../apg-lib/node-exports"),r=t.ids,n=function(){this.names=[],this.add=function(e){let t=-1;return-1===this.get(e)&&(t={name:e,lower:e.toLowerCase(),index:this.names.length},this.names.push(t)),t},this.get=function(e){let t=-1;const r=e.toLowerCase();for(let e=0;e<this.names.length;e+=1)if(this.names[e].lower===r){t=this.names[e];break}return t}},i=function(e,t,r){let n=0;for(let i=t;i<t+r;i+=1)n=10*n+e[i]-48;return n},o=function(e,t,r){let n=0;for(let i=t;i<t+r;i+=1)n=2*n+e[i]-48;return n},s=function(e,t,r){let n=0;for(let i=t;i<t+r;i+=1){let t=e[i];if(t>=48&&t<=57)t-=48;else if(t>=65&&t<=70)t-=55;else{if(!(t>=97&&t<=102))throw new Error("hexnum out of range");t-=87}n=16*n+t}return n};this.callbacks=[],this.callbacks.abgop=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_POST&&o.opcodes.push({type:r.ABG}),s},this.callbacks.aenop=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_POST&&o.opcodes.push({type:r.AEN}),s},this.callbacks.alternation=function(e,t,n,i,o){let s=r.SEM_OK;if(e===r.SEM_PRE){const e=!0;for(;e;){if(null===o.definedas){s=r.SEM_SKIP;break}if(null===o.topStack){if("="===o.definedas){o.topStack={alt:{type:r.ALT,children:[]},cat:null},o.altStack.push(o.topStack),o.opcodes.push(o.topStack.alt);break}o.topStack={alt:o.opcodes[0],cat:null},o.altStack.push(o.topStack);break}o.topStack={alt:{type:r.ALT,children:[]},cat:null},o.altStack.push(o.topStack),o.opcodes.push(o.topStack.alt);break}}else e===r.SEM_POST&&(o.altStack.pop(),o.altStack.length>0?o.topStack=o.altStack[o.altStack.length-1]:o.topStack=null);return s},this.callbacks.andop=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_POST&&o.opcodes.push({type:r.AND}),s},this.callbacks.bmax=function(e,t,n,i,s){const a=r.SEM_OK;return e===r.SEM_POST&&(s.max=o(t,n,i)),a},this.callbacks.bmin=function(e,t,n,i,s){const a=r.SEM_OK;return e===r.SEM_POST&&(s.min=o(t,n,i)),a},this.callbacks.bkaop=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_POST&&o.opcodes.push({type:r.BKA}),s},this.callbacks.bknop=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_POST&&o.opcodes.push({type:r.BKN}),s},this.callbacks.bkrop=function(e,n,i,o,s){const a=r.SEM_OK;return e===r.SEM_PRE?(s.ci=!0,s.cs=!1,s.um=!0,s.pm=!1):e===r.SEM_POST&&s.opcodes.push({type:r.BKR,bkrCase:!0===s.cs?r.BKR_MODE_CS:r.BKR_MODE_CI,bkrMode:!0===s.pm?r.BKR_MODE_PM:r.BKR_MODE_UM,index:{phraseIndex:s.bkrname.phraseIndex,name:t.utils.charsToString(n,s.bkrname.phraseIndex,s.bkrname.phraseLength)}}),a},this.callbacks["bkr-name"]=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_POST&&(o.bkrname={phraseIndex:n,phraseLength:i}),s},this.callbacks.bstring=function(e,t,n,i,s){const a=r.SEM_OK;return e===r.SEM_POST&&s.tbsstr.push(o(t,n,i)),a},this.callbacks.clsop=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_POST&&(i<=2?o.opcodes.push({type:r.TLS,string:[]}):o.opcodes.push({type:r.TBS,string:t.slice(n+1,n+i-1)})),s},this.callbacks.ci=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_POST&&(o.ci=!0),s},this.callbacks.cs=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_POST&&(o.cs=!0),s},this.callbacks.um=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_POST&&(o.um=!0),s},this.callbacks.pm=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_POST&&(o.pm=!0),s},this.callbacks.concatenation=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_PRE?(o.topStack.alt.children.push(o.opcodes.length),o.topStack.cat={type:r.CAT,children:[]},o.opcodes.push(o.topStack.cat)):e===r.SEM_POST&&(o.topStack.cat=null),s},this.callbacks.defined=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_POST&&(o.definedas="="),s},this.callbacks.dmax=function(e,t,n,o,s){const a=r.SEM_OK;return e===r.SEM_POST&&(s.max=i(t,n,o)),a},this.callbacks.dmin=function(e,t,n,o,s){const a=r.SEM_OK;return e===r.SEM_POST&&(s.min=i(t,n,o)),a},this.callbacks.dstring=function(e,t,n,o,s){const a=r.SEM_OK;return e===r.SEM_POST&&s.tbsstr.push(i(t,n,o)),a},this.callbacks.file=function(e,t,i,o,s){const a=r.SEM_OK;if(e===r.SEM_PRE)s.ruleNames=new n,s.udtNames=new n,s.rules=[],s.udts=[],s.rulesLineMap=[],s.opcodes=[],s.altStack=[],s.topStack=null,s.topRule=null;else if(e===r.SEM_POST){let e;s.rules.forEach((t=>{t.isBkr=!1,t.opcodes.forEach((t=>{t.type===r.RNM&&(e=s.ruleNames.get(t.index.name),-1===e?(s.errors.push({line:s.findLine(s.lines,t.index.phraseIndex,s.charsLength),char:t.index.phraseIndex,msg:`Rule name '${t.index.name}' used but not defined.`}),t.index=-1):t.index=e.index)}))})),s.udts.forEach((e=>{e.isBkr=!1})),s.rules.forEach((t=>{t.opcodes.forEach((n=>{n.type===r.BKR&&(t.hasBkr=!0,e=s.ruleNames.get(n.index.name),-1!==e?(s.rules[e.index].isBkr=!0,n.index=e.index):(e=s.udtNames.get(n.index.name),-1!==e?(s.udts[e.index].isBkr=!0,n.index=s.rules.length+e.index):(s.errors.push({line:s.findLine(s.lines,n.index.phraseIndex,s.charsLength),char:n.index.phraseIndex,msg:`Back reference name '${n.index.name}' refers to undefined rule or unamed UDT.`}),n.index=-1)))}))}))}return a},this.callbacks.incalt=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_POST&&(o.definedas="=/"),s},this.callbacks.notop=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_POST&&o.opcodes.push({type:r.NOT}),s},this.callbacks.optionopen=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_POST&&o.opcodes.push({type:r.REP,min:0,max:1,char:n}),s},this.callbacks["rep-max"]=function(e,t,n,o,s){const a=r.SEM_OK;return e===r.SEM_POST&&(s.max=i(t,n,o)),a},this.callbacks["rep-min"]=function(e,t,n,o,s){const a=r.SEM_OK;return e===r.SEM_POST&&(s.min=i(t,n,o)),a},this.callbacks["rep-min-max"]=function(e,t,n,o,s){const a=r.SEM_OK;return e===r.SEM_POST&&(s.max=i(t,n,o),s.min=s.max),a},this.callbacks.repetition=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_PRE&&o.topStack.cat.children.push(o.opcodes.length),s},this.callbacks.repop=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_PRE?(o.min=0,o.max=Infinity,o.topRep={type:r.REP,min:0,max:Infinity},o.opcodes.push(o.topRep)):e===r.SEM_POST&&(o.min>o.max&&o.errors.push({line:o.findLine(o.lines,n,o.charsLength),char:n,msg:`repetition min cannot be greater than max: min: ${o.min}: max: ${o.max}`}),o.topRep.min=o.min,o.topRep.max=o.max),s},this.callbacks.rnmop=function(e,n,i,o,s){const a=r.SEM_OK;return e===r.SEM_POST&&s.opcodes.push({type:r.RNM,index:{phraseIndex:i,name:t.utils.charsToString(n,i,o)}}),a},this.callbacks.rule=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_PRE&&(o.altStack.length=0,o.topStack=null,o.rulesLineMap.push({line:o.findLine(o.lines,n,o.charsLength),char:n})),s},this.callbacks.rulelookup=function(e,t,n,i,o){const s=r.SEM_OK;if(e===r.SEM_PRE)o.ruleName="",o.definedas="";else if(e===r.SEM_POST){let e;"="===o.definedas?(e=o.ruleNames.add(o.ruleName),-1===e?(o.definedas=null,o.errors.push({line:o.findLine(o.lines,n,o.charsLength),char:n,msg:`Rule name '${o.ruleName}' previously defined.`})):(o.topRule={name:e.name,lower:e.lower,opcodes:[],index:e.index},o.rules.push(o.topRule),o.opcodes=o.topRule.opcodes)):(e=o.ruleNames.get(o.ruleName),-1===e?(o.definedas=null,o.errors.push({line:o.findLine(o.lines,n,o.charsLength),char:n,msg:`Rule name '${o.ruleName}' for incremental alternate not previously defined.`})):(o.topRule=o.rules[e.index],o.opcodes=o.topRule.opcodes))}return s},this.callbacks.rulename=function(e,n,i,o,s){const a=r.SEM_OK;return e===r.SEM_PRE&&(s.ruleName=t.utils.charsToString(n,i,o)),a},this.callbacks.tbsop=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_PRE?o.tbsstr=[]:e===r.SEM_POST&&o.opcodes.push({type:r.TBS,string:o.tbsstr}),s},this.callbacks.tlscase=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_POST&&i>0&&(83===t[n+1]||115===t[n+1])&&(o.tlscase=!1),s},this.callbacks.tlsstring=function(e,t,n,i,o){const s=r.SEM_OK;if(e===r.SEM_POST)if(o.tlscase){const e=t.slice(n,n+i);for(let t=0;t<e.length;t+=1)e[t]>=65&&e[t]<=90&&(e[t]+=32);o.opcodes.push({type:r.TLS,string:e})}else o.opcodes.push({type:r.TBS,string:t.slice(n,n+i)});return s},this.callbacks.tlsop=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_PRE&&(o.tlscase=!0),s},this.callbacks.trgop=function(e,t,n,i,o){const s=r.SEM_OK;return e===r.SEM_PRE?(o.min=0,o.max=0):e===r.SEM_POST&&(o.min>o.max&&o.errors.push({line:o.findLine(o.lines,n,o.charsLength),char:n,msg:`TRG, (%dmin-max), min cannot be greater than max: min: ${o.min}: max: ${o.max}`}),o.opcodes.push({type:r.TRG,min:o.min,max:o.max})),s},this.callbacks["udt-empty"]=function(e,n,i,o,s){const a=r.SEM_OK;if(e===r.SEM_POST){const e=t.utils.charsToString(n,i,o);let a=s.udtNames.add(e);if(-1===a){if(a=s.udtNames.get(e),-1===a)throw new Error("semUdtEmpty: name look up error")}else s.udts.push({name:a.name,lower:a.lower,index:a.index,empty:!0});s.opcodes.push({type:r.UDT,empty:!0,index:a.index})}return a},this.callbacks["udt-non-empty"]=function(e,n,i,o,s){const a=r.SEM_OK;if(e===r.SEM_POST){const e=t.utils.charsToString(n,i,o);let a=s.udtNames.add(e);if(-1===a){if(a=s.udtNames.get(e),-1===a)throw new Error("semUdtNonEmpty: name look up error")}else s.udts.push({name:a.name,lower:a.lower,index:a.index,empty:!1});s.opcodes.push({type:r.UDT,empty:!1,index:a.index,syntax:null,semantic:null})}return a},this.callbacks.xmax=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_POST&&(o.max=s(t,n,i)),a},this.callbacks.xmin=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_POST&&(o.min=s(t,n,i)),a},this.callbacks.xstring=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_POST&&o.tbsstr.push(s(t,n,i)),a}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/semantic-callbacks.js"}],[3881,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const e="show-rules.js";return function(t=[],r=[],n="index"){const i="showRules";let o=[],s=[];const a=[],c=[],u=t,l=r,p=t.length,d=r.length;let h,f="RULE/UDT NAMES";if(!Array.isArray(t)||!t.length)throw new Error(`${e}:${i}: rules arg must be array with length > 0`);if(!Array.isArray(r))throw new Error(`${e}:${i}: udts arg must be array`);for(h=0;h<p;h+=1)a.push(h);if(o=a.slice(0),o.sort((function(e,t){return u[e].lower<u[t].lower?-1:u[e].lower>u[t].lower?1:0})),d){for(h=0;h<d;h+=1)c.push(h);s=c.slice(0),s.sort((function(e,t){return l[e].lower<l[t].lower?-1:l[e].lower>l[t].lower?1:0}))}if(97===n.charCodeAt(0)){for(f+=" - alphabetical by rule/UDT name\n",h=0;h<p;h+=1)f+=`${h}: ${o[h]}: ${u[o[h]].name}\n`;if(d)for(h=0;h<d;h+=1)f+=`${h}: ${s[h]}: ${l[s[h]].name}\n`}else{for(f+=" - ordered by rule/UDT index\n",h=0;h<p;h+=1)f+=`${h}: ${u[h].name}\n`;if(d)for(h=0;h<d;h+=1)f+=`${h}: ${l[h].name}\n`}return f}}()}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/show-rules.js"}],[3882,{"../apg-lib/node-exports":3889},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t="syntax-callbacks.js: ",r=e("../apg-lib/node-exports"),n=r.ids;let i;this.callbacks=[],this.callbacks.andop=function(e,r,i,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:o.strict&&o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"AND operator(&) found - strict ABNF specified."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.basicelementerr=function(e,r,o,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:!1===i.basicError&&s.errors.push({line:s.findLine(s.lines,o,s.charsLength),char:o,msg:"Unrecognized SABNF element."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.clsclose=function(e,r,o,s){switch(e.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:s.errors.push({line:s.findLine(s.lines,i.clsOpen),char:i.clsOpen,msg:"Case-sensitive literal string('...') opened but not closed."}),i.clsOpen=null,i.basicError=!0;break;case n.MATCH:s.strict&&s.errors.push({line:s.findLine(s.lines,i.clsOpen),char:i.clsOpen,msg:"Case-sensitive string operator('...') found - strict ABNF specified."}),i.clsOpen=null;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.clsopen=function(e,r,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.clsOpen=o;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.clsstring=function(e,r,i,o){switch(e.state){case n.ACTIVE:o.stringTabChar=!1;break;case n.EMPTY:case n.NOMATCH:break;case n.MATCH:!1!==o.stringTabChar&&o.errors.push({line:o.findLine(o.lines,o.stringTabChar),char:o.stringTabChar,msg:"Tab character (\\t, x09) not allowed in literal string."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.definedaserror=function(e,r,i,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"Expected '=' or '=/'. Not found."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.file=function(e,r,i,o){switch(e.state){case n.ACTIVE:o.altStack=[],o.repCount=0;break;case n.EMPTY:o.errors.push({line:0,char:0,msg:"grammar file is empty"});break;case n.MATCH:0===o.ruleCount&&o.errors.push({line:0,char:0,msg:"no rules defined"});break;case n.NOMATCH:throw new Error(`${t}synFile: grammar file NOMATCH: design error: should never happen.`);default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.groupclose=function(e,r,o,s){switch(e.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:s.errors.push({line:s.findLine(s.lines,i.groupOpen),char:i.groupOpen,msg:'Group "(...)" opened but not closed.'}),i=s.altStack.pop(),i.groupError=!0;break;case n.MATCH:i=s.altStack.pop();break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.groupopen=function(e,r,o,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i={groupOpen:o,groupError:!1,optionOpen:null,optionError:!1,tlsOpen:null,clsOpen:null,prosValOpen:null,basicError:!1},s.altStack.push(i);break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.lineenderror=function(e,r,i,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"Unrecognized grammar element or characters."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.lineend=function(e,r,i,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:if(1===e.phraseLength&&o.strict){const e=13===r[i]?"CR":"LF";o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:`Line end '${e}' found - strict ABNF specified, only CRLF allowed.`})}break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.notop=function(e,r,i,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:o.strict&&o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"NOT operator(!) found - strict ABNF specified."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.optionclose=function(e,r,o,s){switch(e.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:s.errors.push({line:s.findLine(s.lines,i.optionOpen),char:i.optionOpen,msg:'Option "[...]" opened but not closed.'}),i=s.altStack.pop(),i.optionError=!0;break;case n.MATCH:i=s.altStack.pop();break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.optionopen=function(e,r,o,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i={groupOpen:null,groupError:!1,optionOpen:o,optionError:!1,tlsOpen:null,clsOpen:null,prosValOpen:null,basicError:!1},s.altStack.push(i);break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.prosvalclose=function(e,r,o,s){switch(e.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:s.errors.push({line:s.findLine(s.lines,i.prosValOpen),char:i.prosValOpen,msg:"Prose value operator(<...>) opened but not closed."}),i.basicError=!0,i.prosValOpen=null;break;case n.MATCH:s.errors.push({line:s.findLine(s.lines,i.prosValOpen),char:i.prosValOpen,msg:"Prose value operator(<...>) found. The ABNF syntax is valid, but a parser cannot be generated from this grammar."}),i.prosValOpen=null;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.prosvalopen=function(e,r,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.prosValOpen=o;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.prosvalstring=function(e,r,i,o){switch(e.state){case n.ACTIVE:o.stringTabChar=!1;break;case n.EMPTY:case n.NOMATCH:break;case n.MATCH:!1!==o.stringTabChar&&o.errors.push({line:o.findLine(o.lines,o.stringTabChar),char:o.stringTabChar,msg:"Tab character (\\t, x09) not allowed in prose value string."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.repetition=function(e,r,i,o){switch(e.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:case n.MATCH:o.repCount+=1;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.rule=function(e,r,o,s){switch(e.state){case n.ACTIVE:s.altStack.length=0,i={groupOpen:null,groupError:!1,optionOpen:null,optionError:!1,tlsOpen:null,clsOpen:null,prosValOpen:null,basicError:!1},s.altStack.push(i);break;case n.EMPTY:throw new Error(`${t}synRule: EMPTY: rule cannot be empty`);case n.NOMATCH:break;case n.MATCH:s.ruleCount+=1;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.ruleerror=function(e,r,i,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"Unrecognized SABNF line. Invalid rule, comment or blank line."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.rulenameerror=function(e,r,i,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"Rule names must be alphanum and begin with alphabetic character."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.stringtab=function(e,r,i,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:o.stringTabChar=i;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.tlsclose=function(e,r,o,s){switch(e.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:s.errors.push({line:s.findLine(s.lines,i.tlsOpen),char:i.tlsOpen,msg:'Case-insensitive literal string("...") opened but not closed.'}),i.basicError=!0,i.tlsOpen=null;break;case n.MATCH:i.tlsOpen=null;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.tlsopen=function(e,r,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.tlsOpen=o;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.tlsstring=function(e,r,i,o){switch(e.state){case n.ACTIVE:o.stringTabChar=!1;break;case n.EMPTY:case n.NOMATCH:break;case n.MATCH:!1!==o.stringTabChar&&o.errors.push({line:o.findLine(o.lines,o.stringTabChar),char:o.stringTabChar,msg:"Tab character (\\t, x09) not allowed in literal string (see 'quoted-string' definition, RFC 7405.)"});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.udtop=function(e,i,o,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:if(s.strict){const t=r.utils.charsToString(i,o,e.phraseLength);s.errors.push({line:s.findLine(s.lines,o,s.charsLength),char:o,msg:`UDT operator found(${t}) - strict ABNF specified.`})}break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.bkaop=function(e,r,i,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:o.strict?o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"Positive look-behind operator(&&) found - strict ABNF specified."}):o.lite&&o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"Positive look-behind operator(&&) found - apg-lite specified."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.bknop=function(e,r,i,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:o.strict?o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"Negative look-behind operator(!!) found - strict ABNF specified."}):o.lite&&o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"Negative look-behind operator(!!) found - apg-lite specified."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.bkrop=function(e,i,o,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:if(s.strict){const t=r.utils.charsToString(i,o,e.phraseLength);s.errors.push({line:s.findLine(s.lines,o,s.charsLength),char:o,msg:`Back reference operator(${t}) found - strict ABNF specified.`})}else if(s.lite){const t=r.utils.charsToString(i,o,e.phraseLength);s.errors.push({line:s.findLine(s.lines,o,s.charsLength),char:o,msg:`Back reference operator(${t}) found - apg-lite specified.`})}break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.abgop=function(e,r,i,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:o.strict?o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"Beginning of string anchor(%^) found - strict ABNF specified."}):o.lite&&o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"Beginning of string anchor(%^) found - apg-lite specified."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.aenop=function(e,r,i,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:o.strict?o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"End of string anchor(%$) found - strict ABNF specified."}):o.lite&&o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"End of string anchor(%$) found - apg-lite specified."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/syntax-callbacks.js"}],[3883,{"./transformers":3884,buffer:4074},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{Buffer:n}=e("buffer"),i=e("./transformers"),o="UTF8",s="UTF16",a="UTF16BE",c="UTF16LE",u="UTF32",l="UTF32BE",p="UTF32LE",d="UINT7",h="ASCII",f="BINARY",y="UINT8",m="UINT16",T="UINT16LE",g="UINT16BE",b="UINT32",_="UINT32LE",O="UINT32BE",E="ESCAPED",S="STRING",v=function(e,t){const r=function(e){const t={type:"",base64:!1},r=/^(base64:)?([a-zA-Z0-9]+)$/i.exec(e);return r&&(r[2]&&(t.type=r[2].toUpperCase()),r[1]&&(t.base64=!0)),t}(e.toUpperCase());if(r.base64){if(r.type===S)throw new TypeError(`type: "${e} "BASE64:" prefix not allowed with type ${S}`);if(n.isBuffer(t))r.data=i.base64.decode(t);else{if("string"!=typeof t)throw new TypeError(`type: "${e} unrecognized data type: typeof(data): ${typeof t}`);{const e=n.from(t,"ascii");r.data=i.base64.decode(e)}}}else r.data=t;switch(r.type){case o:!function(e){e.type=o;const t=e.data;e.bom=0,t.length>=3&&239===t[0]&&187===t[1]&&191===t[2]&&(e.bom=3)}(r);break;case s:case a:case c:!function(e){const t=e.data;switch(e.bom=0,e.type){case s:e.type=a,t.length>=2&&(254===t[0]&&255===t[1]?e.bom=2:255===t[0]&&254===t[1]&&(e.type=c,e.bom=2));break;case a:if(e.type=a,t.length>=2)if(254===t[0]&&255===t[1])e.bom=2;else if(255===t[0]&&254===t[1])throw new TypeError(`src type: "${a}" specified but BOM is for "${c}"`);break;case c:if(e.type=c,t.length>=0){if(254===t[0]&&255===t[1])throw new TypeError(`src type: "${c}" specified but BOM is for "${a}"`);255===t[0]&&254===t[1]&&(e.bom=2)}break;default:throw new TypeError(`UTF16 BOM: src type "${e.type}" unrecognized`)}}(r);break;case u:case l:case p:!function(e){const t=e.data;switch(e.bom=0,e.type){case u:e.type=l,t.length>=4&&(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3]&&(e.bom=4),255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]&&(e.type=p,e.bom=4));break;case l:if(e.type=l,t.length>=4&&(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3]&&(e.bom=4),255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]))throw new TypeError(`src type: ${l} specified but BOM is for ${p}"`);break;case p:if(e.type=p,t.length>=4){if(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3])throw new TypeError(`src type: "${p}" specified but BOM is for "${l}"`);255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]&&(e.bom=4)}break;default:throw new TypeError(`UTF32 BOM: src type "${e.type}" unrecognized`)}}(r);break;case m:r.type=g;break;case b:r.type=O;break;case h:r.type=d;break;case f:r.type=y;break;case d:case y:case T:case g:case _:case O:case S:case E:break;default:throw new TypeError(`type: "${e}" not recognized`)}if(r.type===S){if("string"!=typeof r.data)throw new TypeError(`type: "${e}" but data is not a string`)}else if(!n.isBuffer(r.data))throw new TypeError(`type: "${e}" but data is not a Buffer`);return r},x=function(e,t){switch(e){case o:return i.utf8.encode(t);case a:return i.utf16be.encode(t);case c:return i.utf16le.encode(t);case l:return i.utf32be.encode(t);case p:return i.utf32le.encode(t);case d:return i.uint7.encode(t);case y:return i.uint8.encode(t);case g:return i.uint16be.encode(t);case T:return i.uint16le.encode(t);case O:return i.uint32be.encode(t);case _:return i.uint32le.encode(t);case S:return i.string.encode(t);case E:return i.escaped.encode(t);default:throw new TypeError(`encode type "${e}" not recognized`)}};r.decode=function(e,t){return function(e){switch(e.type){case o:return i.utf8.decode(e.data,e.bom);case c:return i.utf16le.decode(e.data,e.bom);case a:return i.utf16be.decode(e.data,e.bom);case l:return i.utf32be.decode(e.data,e.bom);case p:return i.utf32le.decode(e.data,e.bom);case d:return i.uint7.decode(e.data);case y:return i.uint8.decode(e.data);case g:return i.uint16be.decode(e.data);case T:return i.uint16le.decode(e.data);case O:return i.uint32be.decode(e.data);case _:return i.uint32le.decode(e.data);case S:return i.string.decode(e.data);case E:return i.escaped.decode(e.data);default:throw new TypeError(`decode type "${e.type}" not recognized`)}}(v(e,t))},r.encode=function(e,t){let r,n;const v=function(e,t){if(!Array.isArray(t))throw new TypeError('dst chars: not array: "'+typeof t);if("string"!=typeof e)throw new TypeError('dst type: not string: "'+typeof e);const r=function(e){let t,r;const n={crlf:!1,lf:!1,base64:!1,type:""};for(;;){if(r=e,t=e.slice(0,5),"CRLF:"===t){n.crlf=!0,r=e.slice(5);break}if(t=e.slice(0,3),"LF:"===t){n.lf=!0,r=e.slice(3);break}break}return t=r.split(":"),1===t.length?n.type=t[0]:2===t.length&&"BASE64"===t[1]&&(n.base64=!0,n.type=t[0]),n}(e.toUpperCase());switch(r.type){case o:case a:case c:case l:case p:case d:case y:case T:case g:case _:case O:case E:break;case S:if(r.base64)throw new TypeError(`":BASE64" suffix not allowed with type ${S}`);break;case h:r.type=d;break;case f:r.type=y;break;case s:r.type=a;break;case u:r.type=l;break;case m:r.type=g;break;case b:r.type=O;break;default:throw new TypeError(`dst type unrecognized: "${e}" : must have form [crlf:|lf:]type[:base64]`)}return r}(e,t);return v.crlf?(r=i.lineEnds.crlf(t),n=x(v.type,r)):v.lf?(r=i.lineEnds.lf(t),n=x(v.type,r)):n=x(v.type,t),v.base64&&(n=i.base64.encode(n)),n};r.convert=function(e,t,n){return r.encode(n,r.decode(e,t))}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-conv-api/converter.js"}],[3884,{buffer:4074},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{Buffer:n}=e("buffer"),i=4294967292,o=4294967293,s=4294967294,a=4294967295,c=[0,1,3,7,15,31,63,127,255,511,1023],u=["00","01","02","03","04","05","06","07","08","09","0A","0B","0C","0D","0E","0F","10","11","12","13","14","15","16","17","18","19","1A","1B","1C","1D","1E","1F","20","21","22","23","24","25","26","27","28","29","2A","2B","2C","2D","2E","2F","30","31","32","33","34","35","36","37","38","39","3A","3B","3C","3D","3E","3F","40","41","42","43","44","45","46","47","48","49","4A","4B","4C","4D","4E","4F","50","51","52","53","54","55","56","57","58","59","5A","5B","5C","5D","5E","5F","60","61","62","63","64","65","66","67","68","69","6A","6B","6C","6D","6E","6F","70","71","72","73","74","75","76","77","78","79","7A","7B","7C","7D","7E","7F","80","81","82","83","84","85","86","87","88","89","8A","8B","8C","8D","8E","8F","90","91","92","93","94","95","96","97","98","99","9A","9B","9C","9D","9E","9F","A0","A1","A2","A3","A4","A5","A6","A7","A8","A9","AA","AB","AC","AD","AE","AF","B0","B1","B2","B3","B4","B5","B6","B7","B8","B9","BA","BB","BC","BD","BE","BF","C0","C1","C2","C3","C4","C5","C6","C7","C8","C9","CA","CB","CC","CD","CE","CF","D0","D1","D2","D3","D4","D5","D6","D7","D8","D9","DA","DB","DC","DD","DE","DF","E0","E1","E2","E3","E4","E5","E6","E7","E8","E9","EA","EB","EC","ED","EE","EF","F0","F1","F2","F3","F4","F5","F6","F7","F8","F9","FA","FB","FC","FD","FE","FF"],l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),p=[];l.forEach((e=>{p.push(e.charCodeAt(0))})),r.utf8={encode(e){const t=[];return e.forEach((e=>{if(e>=0&&e<=127)t.push(e);else if(e<=2047)t.push(192+(e>>6&c[5])),t.push(128+(e&c[6]));else if(e<55296||e>57343&&e<=65535)t.push(224+(e>>12&c[4])),t.push(128+(e>>6&c[6])),t.push(128+(e&c[6]));else{if(!(e>=65536&&e<=1114111))throw new RangeError(`utf8.encode: character out of range: char: ${e}`);{const r=e>>16&c[5];t.push(240+(r>>2)),t.push(128+((r&c[2])<<4)+(e>>12&c[4])),t.push(128+(e>>6&c[6])),t.push(128+(e&c[6]))}}})),n.from(t)},decode(e,t){function r(e,t){if(128!=(192&t))return o;const r=((e&c[5])<<6)+(t&c[6]);return r<128?i:r}function n(e,t,r){if(128!=(192&r)||128!=(192&t))return o;const n=((e&c[4])<<12)+((t&c[6])<<6)+(r&c[6]);return n<2048?i:n>=55296&&n<=57343?s:n}function u(e,t,r,n){if(128!=(192&n)||128!=(192&r)||128!=(192&t))return o;const a=(((e&c[3])<<2)+(t>>4&c[2])<<16)+((t&c[4])<<12)+((r&c[6])<<6)+(n&c[6]);return a<65536?i:a>1114111?s:a}let l,p,d,h,f,y;const m=e.length;let T=t?3:0;const g=[];for(;T<m;){p=e[T],l=a;const t=!0;for(;t;){if(p>=0&&p<=127){l=p,y=1;break}if(d=T+1,d<m&&p>=194&&p<=223){l=r(p,e[d]),y=2;break}if(h=T+2,h<m&&p>=224&&p<=239){l=n(p,e[d],e[h]),y=3;break}if(f=T+3,f<m&&p>=240&&p<=244){l=u(p,e[d],e[h],e[f]),y=4;break}break}if(l>1114111){const e=`byte[${T}]`;if(l===a)throw new RangeError(`utf8.decode: ill-formed UTF8 byte sequence found at: ${e}`);if(l===o)throw new RangeError(`utf8.decode: illegal trailing byte found at: ${e}`);if(l===s)throw new RangeError(`utf8.decode: code point out of range found at: ${e}`);if(l===i)throw new RangeError(`utf8.decode: non-shortest form found at: ${e}`);throw new RangeError(`utf8.decode: unrecognized error found at: ${e}`)}g.push(l),T+=y}return g}},r.utf16be={encode(e){const t=[];let r,i,o;for(let n=0;n<e.length;n+=1)if(r=e[n],r>=0&&r<=55295||r>=57344&&r<=65535)t.push(r>>8&c[8]),t.push(r&c[8]);else{if(!(r>=65536&&r<=1114111))throw new RangeError(`utf16be.encode: UTF16BE value out of range: char[${n}]: ${r}`);o=r-65536,i=55296+(o>>10),o=56320+(o&c[10]),t.push(i>>8&c[8]),t.push(i&c[8]),t.push(o>>8&c[8]),t.push(o&c[8])}return n.from(t)},decode(e,t){if(e.length%2>0)throw new RangeError(`utf16be.decode: data length must be even multiple of 2: length: ${e.length}`);const r=[],n=e.length;let i,o,s,a,c,u,l=t?2:0,p=0;for(;l<n;){const t=!0;for(;t;){if(s=l+1,s<n){if(c=(e[l]<<8)+e[s],c<55296||c>57343){i=c,o=2;break}if(a=l+3,a<n&&(u=(e[l+2]<<8)+e[a],c<=56319&&u>=56320&&u<=57343)){i=65536+(c-55296<<10)+(u-56320),o=4;break}}throw new RangeError(`utf16be.decode: ill-formed UTF16BE byte sequence found: byte[${l}]`)}r[p++]=i,l+=o}return r}},r.utf16le={encode(e){const t=[];let r,i,o;for(let n=0;n<e.length;n+=1)if(r=e[n],r>=0&&r<=55295||r>=57344&&r<=65535)t.push(r&c[8]),t.push(r>>8&c[8]);else{if(!(r>=65536&&r<=1114111))throw new RangeError(`utf16le.encode: UTF16LE value out of range: char[${n}]: ${r}`);o=r-65536,i=55296+(o>>10),o=56320+(o&c[10]),t.push(i&c[8]),t.push(i>>8&c[8]),t.push(o&c[8]),t.push(o>>8&c[8])}return n.from(t)},decode(e,t){if(e.length%2>0)throw new RangeError(`utf16le.decode: data length must be even multiple of 2: length: ${e.length}`);const r=[],n=e.length;let i,o,s,a,c,u,l=t?2:0,p=0;for(;l<n;){const t=!0;for(;t;){if(s=l+1,s<n){if(c=(e[s]<<8)+e[l],c<55296||c>57343){i=c,o=2;break}if(a=l+3,a<n&&(u=(e[a]<<8)+e[l+2],c<=56319&&u>=56320&&u<=57343)){i=65536+(c-55296<<10)+(u-56320),o=4;break}}throw new RangeError(`utf16le.decode: ill-formed UTF16LE byte sequence found: byte[${l}]`)}r[p++]=i,l+=o}return r}},r.utf32be={encode(e){const t=n.alloc(4*e.length);let r=0;return e.forEach((e=>{if(e>=55296&&e<=57343||e>1114111)throw new RangeError(`utf32be.encode: UTF32BE character code out of range: char[${r/4}]: ${e}`);t[r++]=e>>24&c[8],t[r++]=e>>16&c[8],t[r++]=e>>8&c[8],t[r++]=e&c[8]})),t},decode(e,t){if(e.length%4>0)throw new RangeError(`utf32be.decode: UTF32BE byte length must be even multiple of 4: length: ${e.length}`);const r=[];let n=t?4:0;for(;n<e.length;n+=4){const t=(e[n]<<24)+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3];if(t>=55296&&t<=57343||t>1114111)throw new RangeError(`utf32be.decode: UTF32BE character code out of range: char[${n/4}]: ${t}`);r.push(t)}return r}},r.utf32le={encode(e){const t=n.alloc(4*e.length);let r=0;return e.forEach((e=>{if(e>=55296&&e<=57343||e>1114111)throw new RangeError(`utf32le.encode: UTF32LE character code out of range: char[${r/4}]: ${e}`);t[r++]=e&c[8],t[r++]=e>>8&c[8],t[r++]=e>>16&c[8],t[r++]=e>>24&c[8]})),t},decode(e,t){if(e.length%4>0)throw new RangeError(`utf32be.decode: UTF32LE byte length must be even multiple of 4: length: ${e.length}`);const r=[];let n=t?4:0;for(;n<e.length;n+=4){const t=(e[n+3]<<24)+(e[n+2]<<16)+(e[n+1]<<8)+e[n];if(t>=55296&&t<=57343||t>1114111)throw new RangeError(`utf32le.encode: UTF32LE character code out of range: char[${n/4}]: ${t}`);r.push(t)}return r}},r.uint7={encode(e){const t=n.alloc(e.length);for(let r=0;r<e.length;r+=1){if(e[r]>127)throw new RangeError(`uint7.encode: UINT7 character code out of range: char[${r}]: ${e[r]}`);t[r]=e[r]}return t},decode(e){const t=[];for(let r=0;r<e.length;r+=1){if(e[r]>127)throw new RangeError(`uint7.decode: UINT7 character code out of range: byte[${r}]: ${e[r]}`);t[r]=e[r]}return t}},r.uint8={encode(e){const t=n.alloc(e.length);for(let r=0;r<e.length;r+=1){if(e[r]>255)throw new RangeError(`uint8.encode: UINT8 character code out of range: char[${r}]: ${e[r]}`);t[r]=e[r]}return t},decode(e){const t=[];for(let r=0;r<e.length;r+=1)t[r]=e[r];return t}},r.uint16be={encode(e){const t=n.alloc(2*e.length);let r=0;return e.forEach((e=>{if(e>65535)throw new RangeError(`uint16be.encode: UINT16BE character code out of range: char[${r/2}]: ${e}`);t[r++]=e>>8&c[8],t[r++]=e&c[8]})),t},decode(e){if(e.length%2>0)throw new RangeError(`uint16be.decode: UINT16BE byte length must be even multiple of 2: length: ${e.length}`);const t=[];for(let r=0;r<e.length;r+=2)t.push((e[r]<<8)+e[r+1]);return t}},r.uint16le={encode(e){const t=n.alloc(2*e.length);let r=0;return e.forEach((e=>{if(e>65535)throw new RangeError(`uint16le.encode: UINT16LE character code out of range: char[${r/2}]: ${e}`);t[r++]=e&c[8],t[r++]=e>>8&c[8]})),t},decode(e){if(e.length%2>0)throw new RangeError(`uint16le.decode: UINT16LE byte length must be even multiple of 2: length: ${e.length}`);const t=[];for(let r=0;r<e.length;r+=2)t.push((e[r+1]<<8)+e[r]);return t}},r.uint32be={encode(e){const t=n.alloc(4*e.length);let r=0;return e.forEach((e=>{t[r++]=e>>24&c[8],t[r++]=e>>16&c[8],t[r++]=e>>8&c[8],t[r++]=e&c[8]})),t},decode(e){if(e.length%4>0)throw new RangeError(`uint32be.decode: UINT32BE byte length must be even multiple of 4: length: ${e.length}`);const t=[];for(let r=0;r<e.length;r+=4)t.push((e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3]);return t}},r.uint32le={encode(e){const t=n.alloc(4*e.length);let r=0;return e.forEach((e=>{t[r++]=e&c[8],t[r++]=e>>8&c[8],t[r++]=e>>16&c[8],t[r++]=e>>24&c[8]})),t},decode(e){if(e.length%4>0)throw new RangeError(`uint32le.decode: UINT32LE byte length must be even multiple of 4: length: ${e.length}`);const t=[];for(let r=0;r<e.length;r+=4)t.push((e[r+3]<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]);return t}},r.string={encode:e=>r.utf16le.encode(e).toString("utf16le"),decode:e=>r.utf16le.decode(n.from(e,"utf16le"),0)},r.escaped={encode(e){const t=[];for(let r=0;r<e.length;r+=1){const i=e[r];if(96===i)t.push(i),t.push(i);else if(10===i)t.push(i);else if(i>=32&&i<=126)t.push(i);else{let e="";if(i>=0&&i<=31)e+=`\`x${u[i]}`;else if(i>=127&&i<=255)e+=`\`x${u[i]}`;else if(i>=256&&i<=65535)e+=`\`u${u[i>>8&c[8]]}${u[i&c[8]]}`;else{if(!(i>=65536&&i<=4294967295))throw new Error("escape.encode(char): char > 0xffffffff not allowed");{e+="`u{";const t=i>>24&c[8];t>0&&(e+=u[t]),e+=`${u[i>>16&c[8]]+u[i>>8&c[8]]+u[i&c[8]]}}`}}n.from(e).forEach((e=>{t.push(e)}))}}return n.from(t)},decode(e){function t(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function r(e,r,n){const i={char:null,nexti:e+2,error:!0};if(e+1<r&&t(n[e])&&t(n[e+1])){const t=String.fromCodePoint(n[e],n[e+1]);i.char=parseInt(t,16),Number.isNaN(i.char)||(i.error=!1)}return i}function n(e,r,n){const i={char:null,nexti:e+4,error:!0};if(e+3<r&&t(n[e])&&t(n[e+1])&&t(n[e+2])&&t(n[e+3])){const t=String.fromCodePoint(n[e],n[e+1],n[e+2],n[e+3]);i.char=parseInt(t,16),Number.isNaN(i.char)||(i.error=!1)}return i}function i(e,r,n){const i={char:null,nexti:e+4,error:!0};let o="";for(;e<r&&t(n[e]);)o+=String.fromCodePoint(n[e]),e+=1;return i.char=parseInt(o,16),125!==n[e]||Number.isNaN(i.char)||(i.error=!1),i.nexti=e+1,i}const o=[],s=e.length;let a,c,u,l=0;for(;l<s;){const t=!0;for(;t;){if(u=!0,96!==e[l]){o.push(e[l]),l+=1,u=!1;break}if(a=l+1,a>=s)break;if(96===e[a]){o.push(96),l+=2,u=!1;break}if(120===e[a]){if(c=r(a+1,s,e),c.error)break;o.push(c.char),l=c.nexti,u=!1;break}if(117===e[a]){if(123===e[a+1]){if(c=i(a+2,s,e),c.error)break;o.push(c.char),l=c.nexti,u=!1;break}if(c=n(a+1,s,e),c.error)break;o.push(c.char),l=c.nexti,u=!1;break}break}if(u)throw new Error(`escaped.decode: ill-formed escape sequence at buf[${l}]`)}return o}};const d=10;r.lineEnds={crlf(e){const t=[];let r=0;for(;r<e.length;)switch(e[r]){case 13:r+1<e.length&&e[r+1]===d?r+=2:r+=1,t.push(13),t.push(d);break;case d:t.push(13),t.push(d),r+=1;break;default:t.push(e[r]),r+=1}return t.length>0&&t[t.length-1]!==d&&(t.push(13),t.push(d)),t},lf(e){const t=[];let r=0;for(;r<e.length;)switch(e[r]){case 13:r+1<e.length&&e[r+1]===d?r+=2:r+=1,t.push(d);break;case d:t.push(d),r+=1;break;default:t.push(e[r]),r+=1}return t.length>0&&t[t.length-1]!==d&&t.push(d),t}},r.base64={encode(e){if(0===e.length)return n.alloc(0);let t,r,i,o=e.length%3;o=o>0?3-o:0;let s=(e.length+o)/3;const a=n.alloc(4*s);o>0&&(s-=1),t=0,r=0;for(let n=0;n<s;n+=1)i=e[t++]<<16,i+=e[t++]<<8,i+=e[t++],a[r++]=p[i>>18&c[6]],a[r++]=p[i>>12&c[6]],a[r++]=p[i>>6&c[6]],a[r++]=p[i&c[6]];return 0===o?a:1===o?(i=e[t++]<<16,i+=e[t]<<8,a[r++]=p[i>>18&c[6]],a[r++]=p[i>>12&c[6]],a[r++]=p[i>>6&c[6]],a[r]=p[64],a):2===o?(i=e[t]<<16,a[r++]=p[i>>18&c[6]],a[r++]=p[i>>12&c[6]],a[r++]=p[64],a[r]=p[64],a):undefined},decode(e){if(0===e.length)return n.alloc(0);const t=function(e){const t=[];let r=0;for(let n=0;n<e.length;n+=1){const i=e[n],o=!0;for(;o&&32!==i&&9!==i&&10!==i&&13!==i;){if(i>=65&&i<=90){t.push(i-65);break}if(i>=97&&i<=122){t.push(i-71);break}if(i>=48&&i<=57){t.push(i+4);break}if(43===i){t.push(62);break}if(47===i){t.push(63);break}if(61===i){t.push(64),r+=1;break}throw new RangeError(`base64.decode: invalid character buf[${n}]: ${i}`)}}if(t.length%4>0)throw new RangeError(`base64.decode: string length not integral multiple of 4: ${t.length}`);switch(r){case 0:break;case 1:if(64!==t[t.length-1])throw new RangeError("base64.decode: one tail character found: not last character");break;case 2:if(64!==t[t.length-1]||64!==t[t.length-2])throw new RangeError("base64.decode: two tail characters found: not last characters");break;default:throw new RangeError(`base64.decode: more than two tail characters found: ${r}`)}return{tail:r,buf:n.from(t)}}(e),{tail:r}=t,i=t.buf;let o,s,a,u=i.length/4;const l=n.alloc(3*u-r);r>0&&(u-=1),s=0,o=0;for(let e=0;e<u;e+=1)a=i[o++]<<18,a+=i[o++]<<12,a+=i[o++]<<6,a+=i[o++],l[s++]=a>>16&c[8],l[s++]=a>>8&c[8],l[s++]=a&c[8];return 1===r&&(a=i[o++]<<18,a+=i[o++]<<12,a+=i[o]<<6,l[s++]=a>>16&c[8],l[s]=a>>8&c[8]),2===r&&(a=i[o++]<<18,a+=i[o++]<<12,l[s]=a>>16&c[8]),l},toString(e){if(e.length%4>0)throw new RangeError(`base64.toString: input buffer length not multiple of 4: ${e.length}`);let t="",r=0;function n(e,n,i,o){switch(r){case 76:t+=`\r\n${e}${n}${i}${o}`,r=4;break;case 75:t+=`${e}\r\n${n}${i}${o}`,r=3;break;case 74:t+=`${e+n}\r\n${i}${o}`,r=2;break;case 73:t+=`${e+n+i}\r\n${o}`,r=1;break;default:t+=e+n+i+o,r+=4}}for(let t=0;t<e.length;t+=4){for(let r=t;r<t+4;r+=1)if(!((i=e[r])>=65&&i<=90||i>=97&&i<=122||i>=48&&i<=57||43===i||47===i||61===i))throw new RangeError(`base64.toString: buf[${r}]: ${e[r]} : not valid base64 character code`);n(String.fromCharCode(e[t]),String.fromCharCode(e[t+1]),String.fromCharCode(e[t+2]),String.fromCharCode(e[t+3]))}var i;return t}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-conv-api/transformers.js"}],[3885,{"./identifiers":3888,"./utilities":3894},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t=e("./identifiers"),r=e("./utilities"),n=this;let i=null,o=null,s=null,a=0;const c=[],u=[],l=[],p=[];function d(e){let t="";for(let r=0;r<e;r+=1)t+=" ";return t}this.callbacks=[],this.astObject="astObject",this.init=function(e,t,r){let d;l.length=0,p.length=0,c.length=0,a=0,i=e,o=t,s=r;const h=[];for(d=0;d<i.length;d+=1)h.push(i[d].lower);for(d=0;d<o.length;d+=1)h.push(o[d].lower);for(a=i.length+o.length,d=0;d<a;d+=1)c[d]=!1,u[d]=null;for(const e in n.callbacks){const t=e.toLowerCase();if(d=h.indexOf(t),d<0)throw new Error(`ast.js: init: node '${e}' not a rule or udt name`);"function"==typeof n.callbacks[e]&&(c[d]=!0,u[d]=n.callbacks[e]),!0===n.callbacks[e]&&(c[d]=!0)}},this.ruleDefined=function(e){return!1!==c[e]},this.udtDefined=function(e){return!1!==c[i.length+e]},this.down=function(e,r){const n=p.length;return l.push(n),p.push({name:r,thisIndex:n,thatIndex:null,state:t.SEM_PRE,callbackIndex:e,phraseIndex:null,phraseLength:null,stack:l.length}),n},this.up=function(e,r,n,i){const o=p.length,s=l.pop();return p.push({name:r,thisIndex:o,thatIndex:s,state:t.SEM_POST,callbackIndex:e,phraseIndex:n,phraseLength:i,stack:l.length}),p[s].thatIndex=o,p[s].phraseIndex=n,p[s].phraseLength=i,o},this.translate=function(e){let r,n,i;for(let o=0;o<p.length;o+=1)i=p[o],n=u[i.callbackIndex],i.state===t.SEM_PRE?null!==n&&(r=n(t.SEM_PRE,s,i.phraseIndex,i.phraseLength,e),r===t.SEM_SKIP&&(o=i.thatIndex)):null!==n&&n(t.SEM_POST,s,i.phraseIndex,i.phraseLength,e)},this.setLength=function(e){p.length=e,l.length=e>0?p[e-1].stack:0},this.getLength=function(){return p.length},this.toXml=function(e){let n=r.charsToDec,i="decimal integer character codes";if("string"==typeof e&&e.length>=3){const t=e.slice(0,3).toLowerCase();"asc"===t?(n=r.charsToAscii,i="ASCII for printing characters, hex for non-printing"):"hex"===t?(n=r.charsToHex,i="hexadecimal integer character codes"):"uni"===t&&(n=r.charsToUnicode,i="Unicode UTF-32 integer character codes")}let o="",a=0;return o+='<?xml version="1.0" encoding="utf-8"?>\n',o+=`<root nodes="${p.length/2}" characters="${s.length}">\n`,o+=`< ! -- input string, ${i} -- >\n`,o+=d(a+2),o+=n(s),o+="\n",p.forEach((e=>{e.state===t.SEM_PRE?(a+=1,o+=d(a),o+=`<node name="${e.name}" index="${e.phraseIndex}" length="${e.phraseLength}">\n`,o+=d(a+2),o+=n(s,e.phraseIndex,e.phraseLength),o+="\n"):(o+=d(a),o+=`</node>< ! -- name="${e.name}" -- >\n`,a-=1)})),o+="</root>\n",o},this.phrases=function(){const e={};let r,n;for(r=0;r<p.length;r+=1)n=p[r],n.state===t.SEM_PRE&&(Array.isArray(e[n.name])||(e[n.name]=[]),e[n.name].push({index:n.phraseIndex,length:n.phraseLength}));return e}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/ast.js"}],[3886,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){let e=-1,t=0;this.init=function(r){if("number"!=typeof r||r<=0)throw new Error("circular-buffer.js: init: circular buffer size must an integer > 0");t=Math.ceil(r),e=-1},this.increment=function(){return e+=1,(e+t)%t},this.maxSize=function(){return t},this.items=function(){return e+1},this.getListIndex=function(r){return-1===e||r<0||r>e||e-r>=t?-1:(r+t)%t},this.forEach=function(r){if(-1!==e)if(e<t)for(let t=0;t<=e;t+=1)r(t,t);else for(let n=e-t+1;n<=e;n+=1){r((n+t)%t,n)}}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/circular-buffer.js"}],[3887,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){return"/* This file automatically generated by jsonToless() and LESS. */\n.apg-mono {\n font-family: monospace;\n}\n.apg-active {\n font-weight: bold;\n color: #000000;\n}\n.apg-match {\n font-weight: bold;\n color: #264BFF;\n}\n.apg-empty {\n font-weight: bold;\n color: #0fbd0f;\n}\n.apg-nomatch {\n font-weight: bold;\n color: #FF4000;\n}\n.apg-lh-match {\n font-weight: bold;\n color: #1A97BA;\n}\n.apg-lb-match {\n font-weight: bold;\n color: #5F1687;\n}\n.apg-remainder {\n font-weight: bold;\n color: #999999;\n}\n.apg-ctrl-char {\n font-weight: bolder;\n font-style: italic;\n font-size: 0.6em;\n}\n.apg-line-end {\n font-weight: bold;\n color: #000000;\n}\n.apg-error {\n font-weight: bold;\n color: #FF4000;\n}\n.apg-phrase {\n color: #000000;\n background-color: #8caae6;\n}\n.apg-empty-phrase {\n color: #0fbd0f;\n}\ntable.apg-state {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: left;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-state th,\ntable.apg-state td {\n text-align: left;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-state th:nth-last-child(2),\ntable.apg-state td:nth-last-child(2) {\n text-align: right;\n}\ntable.apg-state caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-stats {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-stats th,\ntable.apg-stats td {\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-stats caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-trace {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-trace caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-trace th,\ntable.apg-trace td {\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-trace th:last-child,\ntable.apg-trace th:nth-last-child(2),\ntable.apg-trace td:last-child,\ntable.apg-trace td:nth-last-child(2) {\n text-align: left;\n}\ntable.apg-grammar {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-grammar caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-grammar th,\ntable.apg-grammar td {\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-grammar th:last-child,\ntable.apg-grammar td:last-child {\n text-align: left;\n}\ntable.apg-rules {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-rules caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-rules th,\ntable.apg-rules td {\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-rules a {\n color: #003399 !important;\n}\ntable.apg-rules a:hover {\n color: #8caae6 !important;\n}\ntable.apg-attrs {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: center;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-attrs caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-attrs th,\ntable.apg-attrs td {\n text-align: center;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-attrs th:nth-child(1),\ntable.apg-attrs th:nth-child(2),\ntable.apg-attrs th:nth-child(3) {\n text-align: right;\n}\ntable.apg-attrs td:nth-child(1),\ntable.apg-attrs td:nth-child(2),\ntable.apg-attrs td:nth-child(3) {\n text-align: right;\n}\ntable.apg-attrs a {\n color: #003399 !important;\n}\ntable.apg-attrs a:hover {\n color: #8caae6 !important;\n}\n"}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/emitcss.js"}],[3888,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,BKR:14,BKA:15,BKN:16,ABG:17,AEN:18,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,SEM_SKIP:301,ATTR_N:400,ATTR_R:401,ATTR_MR:402,LOOKAROUND_NONE:500,LOOKAROUND_AHEAD:501,LOOKAROUND_BEHIND:502,BKR_MODE_UM:601,BKR_MODE_PM:602,BKR_MODE_CS:603,BKR_MODE_CI:604}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/identifiers.js"}],[3889,{"./ast":3885,"./circular-buffer":3886,"./emitcss":3887,"./identifiers":3888,"./parser":3890,"./stats":3891,"./style":3892,"./trace":3893,"./utilities":3894},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={ast:e("./ast"),circular:e("./circular-buffer"),ids:e("./identifiers"),parser:e("./parser"),stats:e("./stats"),trace:e("./trace"),utils:e("./utilities"),emitcss:e("./emitcss"),style:e("./style")}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/node-exports.js"}],[389,{"./defineProperty.js":378},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./defineProperty.js");function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/objectSpread2.js"}],[3890,{"./identifiers":3888,"./utilities":3894},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t=e("./identifiers"),r=e("./utilities"),n="parser.js: ",i=this;let o;this.ast=null,this.stats=null,this.trace=null,this.callbacks=[];let s,a,c,u,l=null,p=null,d=0,h=0,f=0,y=null,m=null,T=null,g=null,b=null,_=0,O=Infinity,E=Infinity;const S=function(e,r,i){const s=`${n}evaluateRule(): `;if(e>=T.length)throw new Error(`${s}rule index: ${e} out of range`);if(r>=c)throw new Error(`${s}phrase index: ${r} out of range`);const{length:a}=l;l.push({type:t.RNM,index:e}),o(a,r,i),l.pop()},v=function(e,r,i){const s=`${n}evaluateUdt(): `;if(e>=g.length)throw new Error(`${s}udt index: ${e} out of range`);if(r>=c)throw new Error(`${s}phrase index: ${r} out of range`);const{length:a}=l;l.push({type:t.UDT,empty:g[e].empty,index:e}),o(a,r,i),l.pop()},x=function(){d=0,h=0,f=0,_=0,u=[{lookAround:t.LOOKAROUND_NONE,anchor:0,charsEnd:0,charsLength:0}],T=null,g=null,p=null,s=0,a=0,c=0,y=null,m=null,b=null,l=null},w=function(){const e=[];this.push=function(){e.push(function(){const t=e[e.length-1],r={};for(const e in t)r[e]=t[e];return r}())},this.pop=function(t){let r=t;if(r||(r=e.length-1),r<1||r>e.length)throw new Error(`${n}backRef.pop(): bad length: ${r}`);return e.length=r,e[e.length-1]},this.length=function(){return e.length},this.savePhrase=function(t,r,n){e[e.length-1][t]={phraseIndex:r,phraseLength:n}},this.getPhrase=function(t){return e[e.length-1][t]},function(){const t={};T.forEach((e=>{e.isBkr&&(t[e.lower]=null)})),g.length>0&&g.forEach((e=>{e.isBkr&&(t[e.lower]=null)})),e.push(t)}()},A=function(){const e=this;this.state=t.ACTIVE,this.phraseLength=0,this.ruleIndex=0,this.udtIndex=0,this.lookAround=u[u.length-1],this.uFrame=new w,this.pFrame=new w,this.evaluateRule=S,this.evaluateUdt=v,this.refresh=function(){e.state=t.ACTIVE,e.phraseLength=0,e.lookAround=u[u.length-1]}},R=function(){return u[u.length-1]},I=function(){return u.length>1},P=function(e,t,i){const o=`${n}initializeInputChars(): `;let u=e,l=t,d=i;if(u===undefined)throw new Error(`${o}input string is undefined`);if(null===u)throw new Error(`${o}input string is null`);if("string"==typeof u)u=r.stringToChars(u);else if(!Array.isArray(u))throw new Error(`${o}input string is not a string or array`);if(u.length>0&&"number"!=typeof u[0])throw new Error(`${o}input string not an array of integers`);if("number"!=typeof l)l=0;else if(l=Math.floor(l),l<0||l>u.length)throw new Error(`${o}input beginning index out of range: ${l}`);if("number"!=typeof d)d=u.length-l;else if(d=Math.floor(d),d<0||d>u.length-l)throw new Error(`${o}input length out of range: ${d}`);p=u,s=l,a=d,c=s+a};this.setMaxTreeDepth=function(e){if("number"!=typeof e)throw new Error(`parser: max tree depth must be integer > 0: ${e}`);if(O=Math.floor(e),O<=0)throw new Error(`parser: max tree depth must be integer > 0: ${e}`)},this.setMaxNodeHits=function(e){if("number"!=typeof e)throw new Error(`parser: max node hits must be integer > 0: ${e}`);if(E=Math.floor(e),E<=0)throw new Error(`parser: max node hits must be integer > 0: ${e}`)};const N=function(e,r,u){let d;const O=`${n}parse(): `;!function(e){const t=`${n}initializeGrammar(): `;if(!e)throw new Error(`${t}grammar object undefined`);if("grammarObject"!==e.grammarObject)throw new Error(`${t}bad grammar object`);T=e.rules,g=e.udts}(e);const E=function(e){const t=`${n}initializeStartRule(): `;let r=null;if("number"==typeof e){if(e>=T.length)throw new Error(`${t}start rule index too large: max: ${T.length}: index: ${e}`);r=e}else{if("string"!=typeof e)throw new Error(`${t}type of start rule '${typeof e}' not recognized`);{const n=e.toLowerCase();for(let e=0;e<T.length;e+=1)if(n===T[e].lower){r=T[e].index;break}if(null===r)throw new Error(`${t}start rule name '${e}' not recognized`)}}return r}(r);!function(){const e=`${n}initializeCallbacks(): `;let t,r;for(y=[],m=[],t=0;t<T.length;t+=1)y[t]=null;for(t=0;t<g.length;t+=1)m[t]=null;const o=[];for(t=0;t<T.length;t+=1)o.push(T[t].lower);for(t=0;t<g.length;t+=1)o.push(g[t].lower);for(const n in i.callbacks){if(t=o.indexOf(n.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${n}' not a rule or udt name`);if(r=i.callbacks[n],r||(r=null),"function"!=typeof r&&null!==r)throw new Error(`${e}syntax callback[${n}] must be function reference or 'false' (false/null/undefined/etc.)`);t<T.length?y[t]=r:m[t-T.length]=r}for(t=0;t<g.length;t+=1)if(null===m[t])throw new Error(`${e}all UDT callbacks must be defined. UDT callback[${g[t].lower}] not a function reference`)}(),function(){const e=`${n}initializeTrace(): `;for(;;){if(i.trace===undefined){i.trace=null;break}if(null===i.trace)break;if("traceObject"!==i.trace.traceObject)throw new Error(`${e}trace object not recognized`);break}null!==i.trace&&i.trace.init(T,g,p)}(),function(){const e=`${n}initializeStats(): `;for(;;){if(i.stats===undefined){i.stats=null;break}if(null===i.stats)break;if("statsObject"!==i.stats.statsObject)throw new Error(`${e}stats object not recognized`);break}null!==i.stats&&i.stats.init(T,g)}(),function(){const e=`${n}initializeAst(): `;for(;;){if(i.ast===undefined){i.ast=null;break}if(null===i.ast)break;if("astObject"!==i.ast.astObject)throw new Error(`${e}ast object not recognized`);break}null!==i.ast&&i.ast.init(T,g,p)}();const S=new A;switch(u!==undefined&&null!==u&&(b=u),l=[{type:t.RNM,index:E}],o(0,s,S),l=null,S.state){case t.ACTIVE:throw new Error(`${O}final state should never be 'ACTIVE'`);case t.NOMATCH:d=!1;break;case t.EMPTY:case t.MATCH:d=S.phraseLength===a;break;default:throw new Error("unrecognized state")}return{success:d,state:S.state,length:a,matched:S.phraseLength,maxMatched:_,maxTreeDepth:h,nodeHits:f,inputLength:p.length,subBegin:s,subEnd:c,subLength:a}};this.parseSubstring=function(e,t,r,n,i,o){return x(),P(r,n,i),N(e,t,o)},this.parse=function(e,t,r,n){return x(),P(r,0,r.length),N(e,t,n)};const C=function(e,r,n){const i=l[e];for(let e=0;e<i.children.length&&(o(i.children[e],r,n),n.state===t.NOMATCH);e+=1);},j=function(e,r,i,o){if(r.phraseLength>i){let t=`${n}opRNM(${e.name}): callback function error: `;throw t+=`sysData.phraseLength: ${r.phraseLength}`,t+=` must be <= remaining chars: ${i}`,new Error(t)}switch(r.state){case t.ACTIVE:if(!0!==o)throw new Error(`${n}opRNM(${e.name}): callback function return error. ACTIVE state not allowed.`);break;case t.EMPTY:r.phraseLength=0;break;case t.MATCH:0===r.phraseLength&&(r.state=t.EMPTY);break;case t.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opRNM(${e.name}): callback function return error. Unrecognized return state: ${r.state}`)}},k=function(e,r,n){let s,a,u,d,h,f;const m=l[e],g=T[m.index],_=y[g.index],O=!I();if(O&&(a=i.ast&&i.ast.ruleDefined(m.index),a&&(s=i.ast.getLength(),i.ast.down(m.index,T[m.index].name)),d=n.uFrame.length(),h=n.pFrame.length(),n.uFrame.push(),n.pFrame.push(),f=n.pFrame,n.pFrame=new w),null===_)u=l,l=g.opcodes,o(0,r,n),l=u;else{const e=c-r;n.ruleIndex=g.index,_(n,p,r,b),j(g,n,e,!0),n.state===t.ACTIVE&&(u=l,l=g.opcodes,o(0,r,n),l=u,n.ruleIndex=g.index,_(n,p,r,b),j(g,n,e,!1))}O&&(a&&(n.state===t.NOMATCH?i.ast.setLength(s):i.ast.up(m.index,g.name,r,n.phraseLength)),n.pFrame=f,n.state===t.NOMATCH?(n.uFrame.pop(d),n.pFrame.pop(h)):g.isBkr&&(n.pFrame.savePhrase(g.lower,r,n.phraseLength),n.uFrame.savePhrase(g.lower,r,n.phraseLength)))},M=function(e,r,o){let s,a,u,d,h,f;const y=l[e],_=g[y.index];o.UdtIndex=_.index;const O=!I();O&&(u=i.ast&&i.ast.udtDefined(y.index),u&&(a=T.length+y.index,s=i.ast.getLength(),i.ast.down(a,_.name)),d=o.uFrame.length(),h=o.pFrame.length(),o.uFrame.push(),o.pFrame.push(),f=o.pFrame,o.pFrame=new w);const E=c-r;m[y.index](o,p,r,b),function(e,r,i){if(r.phraseLength>i){let t=`${n}opUDT(${e.name}): callback function error: `;throw t+=`sysData.phraseLength: ${r.phraseLength}`,t+=` must be <= remaining chars: ${i}`,new Error(t)}switch(r.state){case t.ACTIVE:throw new Error(`${n}opUDT(${e.name}): callback function return error. ACTIVE state not allowed.`);case t.EMPTY:if(!1===e.empty)throw new Error(`${n}opUDT(${e.name}): callback function return error. May not return EMPTY.`);r.phraseLength=0;break;case t.MATCH:if(0===r.phraseLength){if(!1===e.empty)throw new Error(`${n}opUDT(${e.name}): callback function return error. May not return EMPTY.`);r.state=t.EMPTY}break;case t.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opUDT(${e.name}): callback function return error. Unrecognized return state: ${r.state}`)}}(_,o,E),O&&(u&&(o.state===t.NOMATCH?i.ast.setLength(s):i.ast.up(a,_.name,r,o.phraseLength)),o.pFrame=f,o.state===t.NOMATCH?(o.uFrame.pop(d),o.pFrame.pop(h)):_.isBkr&&(o.pFrame.savePhrase(_.lower,r,o.phraseLength),o.uFrame.savePhrase(_.lower,r,o.phraseLength)))},L=function(e,r,n){u.push({lookAround:t.LOOKAROUND_AHEAD,anchor:r,charsEnd:c,charsLength:a}),c=p.length,a=p.length-s,o(e+1,r,n);const i=u.pop();switch(c=i.charsEnd,a=i.charsLength,n.phraseLength=0,n.state){case t.EMPTY:case t.MATCH:n.state=t.EMPTY;break;case t.NOMATCH:n.state=t.NOMATCH;break;default:throw new Error(`opAND: invalid state ${n.state}`)}},D=function(e,r,n){u.push({lookAround:t.LOOKAROUND_AHEAD,anchor:r,charsEnd:c,charsLength:a}),c=p.length,a=p.length-s,o(e+1,r,n);const i=u.pop();switch(c=i.charsEnd,a=i.charsLength,n.phraseLength=0,n.state){case t.EMPTY:case t.MATCH:n.state=t.NOMATCH;break;case t.NOMATCH:n.state=t.EMPTY;break;default:throw new Error(`opNOT: invalid state ${n.state}`)}},B=function(e,r,n){n.state=t.NOMATCH,n.phraseLength=0,n.state=0===r?t.EMPTY:t.NOMATCH},z=function(e,r,n){n.state=t.NOMATCH,n.phraseLength=0,n.state=r===p.length?t.EMPTY:t.NOMATCH},U=function(e,r,n){switch(u.push({lookAround:t.LOOKAROUND_BEHIND,anchor:r}),o(e+1,r,n),u.pop(),n.phraseLength=0,n.state){case t.EMPTY:case t.MATCH:n.state=t.EMPTY;break;case t.NOMATCH:n.state=t.NOMATCH;break;default:throw new Error(`opBKA: invalid state ${n.state}`)}},F=function(e,r,n){switch(u.push({lookAround:t.LOOKAROUND_BEHIND,anchor:r}),o(e+1,r,n),u.pop(),n.phraseLength=0,n.state){case t.EMPTY:case t.MATCH:n.state=t.NOMATCH;break;case t.NOMATCH:n.state=t.EMPTY;break;default:throw new Error(`opBKN: invalid state ${n.state}`)}};o=function(e,r,n){let s=!0;const a=l[e];if(f+=1,f>E)throw new Error(`parser: maximum number of node hits exceeded: ${E}`);if(d+=1,d>h&&(h=d,h>O))throw new Error(`parser: maximum parse tree depth exceeded: ${O}`);if(n.refresh(),null!==i.trace){const e=R();i.trace.down(a,n.state,r,n.phraseLength,e.anchor,e.lookAround)}if(u[u.length-1].lookAround===t.LOOKAROUND_BEHIND)switch(a.type){case t.ALT:C(e,r,n);break;case t.CAT:!function(e,r,n){let s,a,c,u;const p=l[e],d=n.uFrame.length(),h=n.pFrame.length();i.ast&&(a=i.ast.getLength()),s=!0,c=r,u=0;for(let e=p.children.length-1;e>=0;e-=1)if(o(p.children[e],c,n),c-=n.phraseLength,u+=n.phraseLength,n.state===t.NOMATCH){s=!1;break}s?(n.state=0===u?t.EMPTY:t.MATCH,n.phraseLength=u):(n.state=t.NOMATCH,n.phraseLength=0,n.uFrame.pop(d),n.pFrame.pop(h),i.ast&&i.ast.setLength(a))}(e,r,n);break;case t.REP:!function(e,r,n){let s,a,c,u;const p=l[e];a=r,c=0,u=0;const d=n.uFrame.length(),h=n.pFrame.length();for(i.ast&&(s=i.ast.getLength());!(a<=0)&&(o(e+1,a,n),n.state!==t.NOMATCH)&&n.state!==t.EMPTY&&(u+=1,c+=n.phraseLength,a-=n.phraseLength,u!==p.max););n.state===t.EMPTY||u>=p.min?(n.state=0===c?t.EMPTY:t.MATCH,n.phraseLength=c):(n.state=t.NOMATCH,n.phraseLength=0,n.uFrame.pop(d),n.pFrame.pop(h),i.ast&&i.ast.setLength(s))}(e,r,n);break;case t.RNM:k(e,r,n);break;case t.UDT:M(e,r,n);break;case t.AND:L(e,r,n);break;case t.NOT:D(e,r,n);break;case t.TRG:!function(e,r,n){const i=l[e];if(n.state=t.NOMATCH,n.phraseLength=0,r>0){const e=p[r-1];i.min<=e&&e<=i.max&&(n.state=t.MATCH,n.phraseLength=1)}}(e,r,n);break;case t.TBS:!function(e,r,n){let i;const o=l[e];n.state=t.NOMATCH;const s=o.string.length,a=r-s;if(a>=0){for(i=0;i<s;i+=1)if(p[a+i]!==o.string[i])return;n.state=t.MATCH,n.phraseLength=s}}(e,r,n);break;case t.TLS:!function(e,r,n){let i;const o=l[e];n.state=t.NOMATCH;const s=o.string.length;if(0===s)return void(n.state=t.EMPTY);const a=r-s;if(a>=0){for(let e=0;e<s;e+=1)if(i=p[a+e],i>=65&&i<=90&&(i+=32),i!==o.string[e])return;n.state=t.MATCH,n.phraseLength=s}}(e,r,n);break;case t.BKR:!function(e,r,n){let i,o,s,a;const c=l[e];n.state=t.NOMATCH,n.phraseLength=0,a=c.index<T.length?T[c.index].lower:g[c.index-T.length].lower;const u=c.bkrMode===t.BKR_MODE_PM?n.pFrame.getPhrase(a):n.uFrame.getPhrase(a),d=c.bkrCase===t.BKR_MODE_CI;if(null===u)return;const h=u.phraseIndex,f=u.phraseLength;if(0===f)return n.state=t.EMPTY,void(n.phraseLength=0);const y=r-f;if(y>=0){if(d){for(i=0;i<f;i+=1)if(o=p[y+i],s=p[h+i],o>=65&&o<=90&&(o+=32),s>=65&&s<=90&&(s+=32),o!==s)return;n.state=t.MATCH,n.phraseLength=f}else for(i=0;i<f;i+=1)if(o=p[y+i],s=p[h+i],o!==s)return;n.state=t.MATCH,n.phraseLength=f}}(e,r,n);break;case t.BKA:U(e,r,n);break;case t.BKN:F(e,r,n);break;case t.ABG:B(0,r,n);break;case t.AEN:z(0,r,n);break;default:s=!1}else switch(a.type){case t.ALT:C(e,r,n);break;case t.CAT:!function(e,r,n){let s,a,c,u;const p=l[e],d=n.uFrame.length(),h=n.pFrame.length();i.ast&&(a=i.ast.getLength()),s=!0,c=r,u=0;for(let e=0;e<p.children.length;e+=1){if(o(p.children[e],c,n),n.state===t.NOMATCH){s=!1;break}c+=n.phraseLength,u+=n.phraseLength}s?(n.state=0===u?t.EMPTY:t.MATCH,n.phraseLength=u):(n.state=t.NOMATCH,n.phraseLength=0,n.uFrame.pop(d),n.pFrame.pop(h),i.ast&&i.ast.setLength(a))}(e,r,n);break;case t.REP:!function(e,r,n){let s,a,u,p;const d=l[e];if(0===d.max)return n.state=t.EMPTY,void(n.phraseLength=0);a=r,u=0,p=0;const h=n.uFrame.length(),f=n.pFrame.length();for(i.ast&&(s=i.ast.getLength());!(a>=c)&&(o(e+1,a,n),n.state!==t.NOMATCH)&&n.state!==t.EMPTY&&(p+=1,u+=n.phraseLength,a+=n.phraseLength,p!==d.max););n.state===t.EMPTY||p>=d.min?(n.state=0===u?t.EMPTY:t.MATCH,n.phraseLength=u):(n.state=t.NOMATCH,n.phraseLength=0,n.uFrame.pop(h),n.pFrame.pop(f),i.ast&&i.ast.setLength(s))}(e,r,n);break;case t.RNM:k(e,r,n);break;case t.UDT:M(e,r,n);break;case t.AND:L(e,r,n);break;case t.NOT:D(e,r,n);break;case t.TRG:!function(e,r,n){const i=l[e];n.state=t.NOMATCH,r<c&&i.min<=p[r]&&p[r]<=i.max&&(n.state=t.MATCH,n.phraseLength=1)}(e,r,n);break;case t.TBS:!function(e,r,n){let i;const o=l[e],s=o.string.length;if(n.state=t.NOMATCH,r+s<=c){for(i=0;i<s;i+=1)if(p[r+i]!==o.string[i])return;n.state=t.MATCH,n.phraseLength=s}}(e,r,n);break;case t.TLS:!function(e,r,n){let i,o;const s=l[e];n.state=t.NOMATCH;const a=s.string.length;if(0!==a){if(r+a<=c){for(i=0;i<a;i+=1)if(o=p[r+i],o>=65&&o<=90&&(o+=32),o!==s.string[i])return;n.state=t.MATCH,n.phraseLength=a}}else n.state=t.EMPTY}(e,r,n);break;case t.BKR:!function(e,r,n){let i,o,s,a;const u=l[e];n.state=t.NOMATCH,a=u.index<T.length?T[u.index].lower:g[u.index-T.length].lower;const d=u.bkrMode===t.BKR_MODE_PM?n.pFrame.getPhrase(a):n.uFrame.getPhrase(a),h=u.bkrCase===t.BKR_MODE_CI;if(null===d)return;const f=d.phraseIndex,y=d.phraseLength;if(0!==y){if(r+y<=c){if(h){for(i=0;i<y;i+=1)if(o=p[r+i],s=p[f+i],o>=65&&o<=90&&(o+=32),s>=65&&s<=90&&(s+=32),o!==s)return;n.state=t.MATCH,n.phraseLength=y}else for(i=0;i<y;i+=1)if(o=p[r+i],s=p[f+i],o!==s)return;n.state=t.MATCH,n.phraseLength=y}}else n.state=t.EMPTY}(e,r,n);break;case t.BKA:U(e,r,n);break;case t.BKN:F(e,r,n);break;case t.ABG:B(0,r,n);break;case t.AEN:z(0,r,n);break;default:s=!1}if(!I()&&r+n.phraseLength>_&&(_=r+n.phraseLength),null!==i.stats&&i.stats.collect(a,n),null!==i.trace){const e=R();i.trace.up(a,n.state,r,n.phraseLength,e.anchor,e.lookAround)}return d-=1,s}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/parser.js"}],[3891,{"./identifiers":3888,"./style":3892,"./utilities":3894},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t=e("./identifiers"),r=e("./utilities"),n=e("./style");let i=[],o=[];const s=[];let a;const c=[],u=[];this.statsObject="statsObject";const l=function(e,t){return e.lower<t.lower?-1:e.lower>t.lower?1:0},p=function(e,t){return e.total<t.total?1:e.total>t.total?-1:l(e,t)},d=function(e,t){return e.index<t.index?-1:e.index>t.index?1:0},h=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},f=function(e,r){switch(e.total+=1,r){case t.EMPTY:e.empty+=1;break;case t.MATCH:e.match+=1;break;case t.NOMATCH:e.nomatch+=1;break;default:throw new Error(`stats.js: collect(): incStat(): unrecognized state: ${r}`)}},y=function(e,t){let r="";return r+="<tr>",r+=`<td class="${n.CLASS_ACTIVE}">${e}</td>`,r+=`<td class="${n.CLASS_EMPTY}">${t.empty}</td>`,r+=`<td class="${n.CLASS_MATCH}">${t.match}</td>`,r+=`<td class="${n.CLASS_NOMATCH}">${t.nomatch}</td>`,r+=`<td class="${n.CLASS_ACTIVE}">${t.total}</td>`,r+="</tr>\n",r},m=function(){let e="";return e+=y("ALT",s[t.ALT]),e+=y("CAT",s[t.CAT]),e+=y("REP",s[t.REP]),e+=y("RNM",s[t.RNM]),e+=y("TRG",s[t.TRG]),e+=y("TBS",s[t.TBS]),e+=y("TLS",s[t.TLS]),e+=y("UDT",s[t.UDT]),e+=y("AND",s[t.AND]),e+=y("NOT",s[t.NOT]),e+=y("BKR",s[t.BKR]),e+=y("BKA",s[t.BKA]),e+=y("BKN",s[t.BKN]),e+=y("ABG",s[t.ABG]),e+=y("AEN",s[t.AEN]),e+=y("totals",a),e},T=function(){let e="";e+="<tr><th></th><th></th><th></th><th></th><th></th></tr>\n",e+="<tr><th>rules</th><th></th><th></th><th></th><th></th></tr>\n";for(let t=0;t<i.length;t+=1)c[t].total>0&&(e+="<tr>",e+=`<td class="${n.CLASS_ACTIVE}">${c[t].name}</td>`,e+=`<td class="${n.CLASS_EMPTY}">${c[t].empty}</td>`,e+=`<td class="${n.CLASS_MATCH}">${c[t].match}</td>`,e+=`<td class="${n.CLASS_NOMATCH}">${c[t].nomatch}</td>`,e+=`<td class="${n.CLASS_ACTIVE}">${c[t].total}</td>`,e+="</tr>\n");if(o.length>0){e+="<tr><th></th><th></th><th></th><th></th><th></th></tr>\n",e+="<tr><th>udts</th><th></th><th></th><th></th><th></th></tr>\n";for(let t=0;t<o.length;t+=1)u[t].total>0&&(e+="<tr>",e+=`<td class="${n.CLASS_ACTIVE}">${u[t].name}</td>`,e+=`<td class="${n.CLASS_EMPTY}">${u[t].empty}</td>`,e+=`<td class="${n.CLASS_MATCH}">${u[t].match}</td>`,e+=`<td class="${n.CLASS_NOMATCH}">${u[t].nomatch}</td>`,e+=`<td class="${n.CLASS_ACTIVE}">${u[t].total}</td>`,e+="</tr>\n")}return e};this.validate=function(e){let t=!1;return"string"==typeof e&&"stats"===e&&(t=!0),t},this.init=function(e,r){i=e,o=r,function(){s.length=0,a=new h,s[t.ALT]=new h,s[t.CAT]=new h,s[t.REP]=new h,s[t.RNM]=new h,s[t.TRG]=new h,s[t.TBS]=new h,s[t.TLS]=new h,s[t.UDT]=new h,s[t.AND]=new h,s[t.NOT]=new h,s[t.BKR]=new h,s[t.BKA]=new h,s[t.BKN]=new h,s[t.ABG]=new h,s[t.AEN]=new h,c.length=0;for(let e=0;e<i.length;e+=1)c.push({empty:0,match:0,nomatch:0,total:0,name:i[e].name,lower:i[e].lower,index:i[e].index});if(o.length>0){u.length=0;for(let e=0;e<o.length;e+=1)u.push({empty:0,match:0,nomatch:0,total:0,name:o[e].name,lower:o[e].lower,index:o[e].index})}}()},this.collect=function(e,r){f(a,r.state,r.phraseLength),f(s[e.type],r.state,r.phraseLength),e.type===t.RNM&&f(c[e.index],r.state,r.phraseLength),e.type===t.UDT&&f(u[e.index],r.state,r.phraseLength)},this.toHtml=function(e,t){let r="";r+=`<table class="${n.CLASS_STATS}">\n`,"string"==typeof t&&(r+=`<caption>${t}</caption>\n`),r+=`<tr><th class="${n.CLASS_ACTIVE}">ops</th>\n`,r+=`<th class="${n.CLASS_EMPTY}">EMPTY</th>\n`,r+=`<th class="${n.CLASS_MATCH}">MATCH</th>\n`,r+=`<th class="${n.CLASS_NOMATCH}">NOMATCH</th>\n`,r+=`<th class="${n.CLASS_ACTIVE}">totals</th></tr>\n`;for(;;){if(e===undefined){r+=m();break}if(null===e){r+=m();break}if("ops"===e){r+=m();break}if("index"===e){c.sort(d),u.length>0&&u.sort(d),r+=m(),r+=T();break}if("hits"===e){c.sort(p),u.length>0&&u.sort(d),r+=m(),r+=T();break}if("alpha"===e){c.sort(l),u.length>0&&u.sort(l),r+=m(),r+=T();break}break}return r+="</table>\n",r},this.toHtmlPage=function(e,t,n){return r.htmlToPage(this.toHtml(e,t),n)}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/stats.js"}],[3892,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={CLASS_MONOSPACE:"apg-mono",CLASS_ACTIVE:"apg-active",CLASS_EMPTY:"apg-empty",CLASS_MATCH:"apg-match",CLASS_NOMATCH:"apg-nomatch",CLASS_LOOKAHEAD:"apg-lh-match",CLASS_LOOKBEHIND:"apg-lb-match",CLASS_REMAINDER:"apg-remainder",CLASS_CTRLCHAR:"apg-ctrl-char",CLASS_LINEEND:"apg-line-end",CLASS_ERROR:"apg-error",CLASS_PHRASE:"apg-phrase",CLASS_EMPTYPHRASE:"apg-empty-phrase",CLASS_STATE:"apg-state",CLASS_STATS:"apg-stats",CLASS_TRACE:"apg-trace",CLASS_GRAMMAR:"apg-grammar",CLASS_RULES:"apg-rules",CLASS_RULESLINK:"apg-rules-link",CLASS_ATTRIBUTES:"apg-attrs"}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/style.js"}],[3893,{"./circular-buffer":3886,"./identifiers":3888,"./style":3892,"./utilities":3894},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t=e("./utilities"),r=e("./style"),n=new(e("./circular-buffer")),i=e("./identifiers"),o="trace.js: ",s=this,a=16,c=80,u=[];let l=5e3,p=-1,d=0,h=0;const f=[];let y=null,m=null,T=null;const g=[],b=[],_=`<span class="${r.CLASS_LINEEND}">&bull;</span>`,O=`<span class="${r.CLASS_LINEEND}">&hellip;</span>`,E=`<span class="${r.CLASS_EMPTY}">&#120634;</span>`;this.traceObject="traceObject",this.filter={operators:[],rules:[]},this.setMaxRecords=function(e,t){p=-1,"number"==typeof e&&e>0?(l=Math.ceil(e),"number"==typeof t&&(p=Math.floor(t),p<0&&(p=-1))):l=0},this.getMaxRecords=function(){return l},this.getLastRecord=function(){return p},this.init=function(e,t,r){u.length=0,f.length=0,d=0,h=0,y=r,m=e,T=t,function(){const e=function(e){g[i.ALT]=e,g[i.CAT]=e,g[i.REP]=e,g[i.TLS]=e,g[i.TBS]=e,g[i.TRG]=e,g[i.AND]=e,g[i.NOT]=e,g[i.BKR]=e,g[i.BKA]=e,g[i.BKN]=e,g[i.ABG]=e,g[i.AEN]=e};let t=0;for(const e in s.filter.operators)t+=1;if(0!==t){for(const t in s.filter.operators){const r=t.toUpperCase();if("<ALL>"===r)return void e(!0);if("<NONE>"===r)return void e(!1)}e(!1);for(const e in s.filter.operators){const t=e.toUpperCase();if("ALT"===t)g[i.ALT]=!0===s.filter.operators[e];else if("CAT"===t)g[i.CAT]=!0===s.filter.operators[e];else if("REP"===t)g[i.REP]=!0===s.filter.operators[e];else if("AND"===t)g[i.AND]=!0===s.filter.operators[e];else if("NOT"===t)g[i.NOT]=!0===s.filter.operators[e];else if("TLS"===t)g[i.TLS]=!0===s.filter.operators[e];else if("TBS"===t)g[i.TBS]=!0===s.filter.operators[e];else if("TRG"===t)g[i.TRG]=!0===s.filter.operators[e];else if("BKR"===t)g[i.BKR]=!0===s.filter.operators[e];else if("BKA"===t)g[i.BKA]=!0===s.filter.operators[e];else if("BKN"===t)g[i.BKN]=!0===s.filter.operators[e];else if("ABG"===t)g[i.ABG]=!0===s.filter.operators[e];else{if("AEN"!==t)throw new Error(`${o}initOpratorFilter: '${e}' not a valid operator name. Must be <all>, <none>, alt, cat, rep, tls, tbs, trg, and, not, bkr, bka or bkn`);g[i.AEN]=!0===s.filter.operators[e]}}}else e(!1)}(),function(){const e=function(e){g[i.RNM]=e,g[i.UDT]=e;const t=m.length+T.length;b.length=0;for(let r=0;r<t;r+=1)b.push(e)};let t,r;const n=[];for(r=0;r<m.length;r+=1)n.push(m[r].lower);for(r=0;r<T.length;r+=1)n.push(T[r].lower);b.length=0,t=0;for(const e in s.filter.rules)t+=1;if(0!==t){for(const t in s.filter.rules){const r=t.toLowerCase();if("<all>"===r)return void e(!0);if("<none>"===r)return void e(!1)}e(!1),g[i.RNM]=!0,g[i.UDT]=!0;for(const e in s.filter.rules){const t=e.toLowerCase();if(r=n.indexOf(t),r<0)throw new Error(`${o}initRuleFilter: '${e}' not a valid rule or udt name`);b[r]=!0===s.filter.rules[e]}}else e(!0)}(),n.init(l)};const S=function(e){let t=!1;return t=e.type===i.RNM?!(!g[e.type]||!b[e.index]):e.type===i.UDT?!(!g[e.type]||!b[m.length+e.index]):g[e.type],t},v=function(e){return-1===p||e<=p};this.down=function(e,t,r,i,o,s){v(d)&&S(e)&&(f.push(d),u[n.increment()]={dirUp:!1,depth:h,thisLine:d,thatLine:undefined,opcode:e,state:t,phraseIndex:r,phraseLength:i,lookAnchor:o,lookAround:s},d+=1,h+=1)},this.up=function(e,t,r,i,o,s){if(v(d)&&S(e)){const a=d,c=f.pop(),l=n.getListIndex(c);-1!==l&&(u[l].thatLine=a),h-=1,u[n.increment()]={dirUp:!0,depth:h,thisLine:a,thatLine:c,opcode:e,state:t,phraseIndex:r,phraseLength:i,lookAnchor:o,lookAround:s},d+=1}};this.toTree=function(e){const r=function(){function e(e,r){let n,o,s;if(r)switch(e.op={id:r.type,name:t.opcodeToString(r.type)},e.opData=undefined,r.type){case i.RNM:e.opData=m[r.index].name;break;case i.UDT:e.opData=T[r.index].name;break;case i.BKR:n=r.index<m.length?m[r.index].name:T[r.index-m.length].name,o=r.bkrCase===i.BKR_MODE_CI?"%i":"%s",s=r.bkrMode===i.BKR_MODE_UM?"%u":"%p",e.opData=`\\\\${o}${s}${n}`;break;case i.TLS:e.opData=[];for(let t=0;t<r.string.length;t+=1)e.opData.push(r.string[t]);break;case i.TBS:e.opData=[];for(let t=0;t<r.string.length;t+=1)e.opData.push(r.string[t]);break;case i.TRG:case i.REP:e.opData=[r.min,r.max];break;default:throw new Error("unrecognized opcode")}else e.op={id:undefined,name:undefined},e.opData=undefined}function r(e,t,r){return e===i.MATCH?{index:t,length:r}:e===i.NOMATCH||e===i.EMPTY?{index:t,length:0}:null}let o=-1;function s(n,i,s){const a={id:o++,branch:-1,parent:n,up:!1,down:!1,depth:s,children:[]};return i?(a.down=!0,a.state={id:i.state,name:t.stateToString(i.state)},a.phrase=null,e(a,i.opcode)):(a.state={id:undefined,name:undefined},a.phrase=r(),e(a,undefined)),a}function a(n,i){i&&(n.up=!0,n.state={id:i.state,name:t.stateToString(i.state)},n.phrase=r(i.state,i.phraseIndex,i.phraseLength),n.down||e(n,i.opcode))}let c=0,l=-1,p=1;const d=[];let f,g,b,_,O=!0;const E=s(null,null,-1);for(d.push(E),g=E,n.forEach((e=>{if(_=u[e],O&&(O=!1,_.depth>0)){const e=_.dirUp?_.depth+1:_.depth;for(let t=0;t<e;t+=1)b=g,g=s(g,null,t),d.push(g),b.children.push(g)}_.dirUp?(g=d.pop(),a(g,_),g=d[d.length-1]):(b=g,g=s(g,_,_.depth),d.push(g),b.children.push(g))}));d.length>1;)g=d.pop(),a(g,null);if(0===E.children.length)throw new Error("trace.toTree(): parse tree has no nodes");if(0===d.length)throw new Error("trace.toTree(): integrity check: dummy root node disappeared?");f=E.children[0];let S=f;for(;f&&!f.down&&!f.up;)S=f,f=f.children[0];f=S,f.leftMost=!0,f.rightMost=!0,function e(t){if(l+=1,t.branch=p,l>h&&(h=l),0===t.children.length)c+=1;else for(let r=0;r<t.children.length;r+=1)r>0&&(p+=1),t.children[r].leftMost=!1,t.children[r].rightMost=!1,t.leftMost&&(t.children[r].leftMost=0===r),t.rightMost&&(t.children[r].rightMost=r===t.children.length-1),e(t.children[r]);l-=1}(f),f.branch=0;const v={string:[]};for(let e=0;e<y.length;e+=1)v.string[e]=y[e];v.rules=[];for(let e=0;e<m.length;e+=1)v.rules[e]=m[e].name;v.udts=[];for(let e=0;e<T.length;e+=1)v.udts[e]=T[e].name;let x;return v.id={},v.id.ALT={id:i.ALT,name:"ALT"},v.id.CAT={id:i.CAT,name:"CAT"},v.id.REP={id:i.REP,name:"REP"},v.id.RNM={id:i.RNM,name:"RNM"},v.id.TLS={id:i.TLS,name:"TLS"},v.id.TBS={id:i.TBS,name:"TBS"},v.id.TRG={id:i.TRG,name:"TRG"},v.id.UDT={id:i.UDT,name:"UDT"},v.id.AND={id:i.AND,name:"AND"},v.id.NOT={id:i.NOT,name:"NOT"},v.id.BKR={id:i.BKR,name:"BKR"},v.id.BKA={id:i.BKA,name:"BKA"},v.id.BKN={id:i.BKN,name:"BKN"},v.id.ABG={id:i.ABG,name:"ABG"},v.id.AEN={id:i.AEN,name:"AEN"},v.id.ACTIVE={id:i.ACTIVE,name:"ACTIVE"},v.id.MATCH={id:i.MATCH,name:"MATCH"},v.id.EMPTY={id:i.EMPTY,name:"EMPTY"},v.id.NOMATCH={id:i.NOMATCH,name:"NOMATCH"},v.treeDepth=h,v.leafNodes=c,x=f.down?f.up?"none":"right":f.up?"left":"both",v.branchesIncomplete=x,v.tree=function e(t,r){let n;const i={};if(i.id=t.id,i.branch=t.branch,i.leftMost=t.leftMost,i.rightMost=t.rightMost,n=t.state.name?t.state.name:"ACTIVE",i.state={id:t.state.id,name:n},n=t.op.name?t.op.name:"?",i.op={id:t.op.id,name:n},"string"==typeof t.opData)i.opData=t.opData;else if(Array.isArray(t.opData)){i.opData=[];for(let e=0;e<t.opData.length;e+=1)i.opData[e]=t.opData[e]}else i.opData=undefined;t.phrase?i.phrase={index:t.phrase.index,length:t.phrase.length}:i.phrase=null,i.depth=t.depth,i.children=[];for(let n=0;n<t.children.length;n+=1)t.children.length,i.children[n]=e(t.children[n],r);return i}(f,f.depth),v}();return e?JSON.stringify(r):r},this.toHtmlPage=function(e,r,n){return t.htmlToPage(this.toHtml(e,r),n)};this.indent=function(e){let t="";for(let r=0;r<e;r+=1)t+=".";return t};const x=function(e,r,n,i,o){if(0===i)return"";let s="";const c=o?",":"";switch(e){case a:s=c+t.charsToHex(r,n,i);break;case 10:if(o)return`,${t.charsToDec(r,n,i)}`;s=c+t.charsToDec(r,n,i);break;case 32:s=t.charsToUnicode(r,n,i);break;default:s=t.charsToAsciiHtml(r,n,i)}return s},w=function(e,t,n,o,s,a){let u,l,p,d,h="",f=_;const y=`<span class="${r.CLASS_REMAINDER}">`,m="</span>";let T=!1;switch(n){case i.EMPTY:h+=E;case i.NOMATCH:case i.ACTIVE:u=o,l=0,p=o,d=t.length-p;break;case i.MATCH:u=o,l=s,p=o+l,d=t.length-p;break;default:throw new Error("unrecognized state")}return f=_,l>c?(l=c,f=O,d=0):l+d>c&&(f=O,d=c-l),l>0&&(h+=a,h+=x(e,t,u,l,T),h+=m,T=!0),d>0&&(h+=y,h+=x(e,t,p,d,T),h+=m),h+f},A=function(e){if(null===m)return"";let o,l,p,d,h,f,g="";return g+="<tr><th>(a)</th><th>(b)</th><th>(c)</th><th>(d)</th><th>(e)</th><th>(f)</th>",g+="<th>operator</th><th>phrase</th></tr>\n",n.forEach((n=>{const b=u[n];switch(o=b.thisLine,l=b.thatLine!==undefined?b.thatLine:"--",p=!1,d=!1,h=!1,b.lookAround===i.LOOKAROUND_AHEAD&&(p=!0,h=!0,f=b.lookAnchor),b.opcode.type!==i.AND&&b.opcode.type!==i.NOT||(p=!0,h=!0,f=b.phraseIndex),b.lookAround===i.LOOKAROUND_BEHIND&&(d=!0,h=!0,f=b.lookAnchor),b.opcode.type!==i.BKA&&b.opcode.type!==i.BKN||(d=!0,h=!0,f=b.phraseIndex),g+="<tr>",g+=`<td>${o}</td><td>${l}</td>`,g+=`<td>${b.phraseIndex}</td>`,g+=`<td>${b.phraseLength}</td>`,g+=`<td>${b.depth}</td>`,g+="<td>",b.state){case i.ACTIVE:g+=`<span class="${r.CLASS_ACTIVE}">&darr;&nbsp;</span>`;break;case i.MATCH:g+=`<span class="${r.CLASS_MATCH}">&uarr;M</span>`;break;case i.NOMATCH:g+=`<span class="${r.CLASS_NOMATCH}">&uarr;N</span>`;break;case i.EMPTY:g+=`<span class="${r.CLASS_EMPTY}">&uarr;E</span>`;break;default:g+=`<span class="${r.CLASS_ACTIVE}">--</span>`}if(g+="</td>",g+="<td>",g+=s.indent(b.depth),p?g+=`<span class="${r.CLASS_LOOKAHEAD}">`:d&&(g+=`<span class="${r.CLASS_LOOKBEHIND}">`),g+=t.opcodeToString(b.opcode.type),b.opcode.type===i.RNM&&(g+=`(${m[b.opcode.index].name}) `),b.opcode.type===i.BKR){const e=b.opcode.bkrCase===i.BKR_MODE_CI?"%i":"%s",t=b.opcode.bkrMode===i.BKR_MODE_UM?"%u":"%p";g+=`(\\${e}${t}${m[b.opcode.index].name}) `}b.opcode.type===i.UDT&&(g+=`(${T[b.opcode.index].name}) `),b.opcode.type===i.TRG&&(g+=`(${function(e,t){let r="";if(t.type===i.TRG)if(e===a||32===e){let n=t.min.toString(16).toUpperCase();n.length%2!=0&&(n=`0${n}`),r+=e===a?"%x":"U+",r+=n,n=t.max.toString(16).toUpperCase(),n.length%2!=0&&(n=`0${n}`),r+=`&ndash;${n}`}else r=`%d${t.min.toString(10)}&ndash;${t.max.toString(10)}`;return r}(e,b.opcode)}) `),b.opcode.type===i.TBS&&(g+=`(${function(e,t){let r="";if(t.type===i.TBS){const n=Math.min(t.string.length,10);if(e===a||32===e){r+=e===a?"%x":"U+";for(let e=0;e<n;e+=1){let n;e>0&&(r+="."),n=t.string[e].toString(16).toUpperCase(),n.length%2!=0&&(n=`0${n}`),r+=n}}else{r="%d";for(let e=0;e<n;e+=1)e>0&&(r+="."),r+=t.string[e].toString(10)}n<t.string.length&&(r+=O)}return r}(e,b.opcode)}) `),b.opcode.type===i.TLS&&(g+=`(${function(e,r){let n="";if(r.type===i.TLS){const i=Math.min(r.string.length,5);if(e===a||10===e){let t,o,s;e===a?(n="%x",s=16):(n="%d",s=10);for(let e=0;e<i;e+=1)e>0&&(n+="."),o=r.string[e],o>=97&&o<=122?(t=o-32,n+=`${t.toString(s)}/${o.toString(s)}`.toUpperCase()):o>=65&&o<=90?(t=o,o+=32,n+=`${t.toString(s)}/${o.toString(s)}`.toUpperCase()):n+=o.toString(s).toUpperCase();i<r.string.length&&(n+=O)}else{n='"';for(let e=0;e<i;e+=1)n+=t.asciiChars[r.string[e]];i<r.string.length&&(n+=O),n+='"'}}return n}(e,b.opcode)}) `),b.opcode.type===i.REP&&(g+=`(${function(e,t){let r="";if(t.type===i.REP)if(e===a){let e=t.min.toString(16).toUpperCase();e.length%2!=0&&(e=`0${e}`),r=`x${e}`,t.max<Infinity?(e=t.max.toString(16).toUpperCase(),e.length%2!=0&&(e=`0${e}`)):e="inf",r+=`&ndash;${e}`}else r=t.max<Infinity?`${t.min.toString(10)}&ndash;${t.max.toString(10)}`:`${t.min.toString(10)}&ndash;inf`;return r}(e,b.opcode)}) `),h&&(g+="</span>"),g+="</td>",g+="<td>",g+=d?function(e,t,n,o,s,a){let u,l,p,d,h="",f=_;const y=`<span class="${r.CLASS_LOOKBEHIND}">`,m=`<span class="${r.CLASS_REMAINDER}">`,T="</span>";let g=!1;switch(n){case i.EMPTY:h+=E;case i.NOMATCH:case i.MATCH:case i.ACTIVE:u=o-s,l=a-u,p=a,d=t.length-p;break;default:throw new Error("unrecognized state")}return f=_,l>c?(l=c,f=O,d=0):l+d>c&&(f=O,d=c-l),l>0&&(h+=y,h+=x(e,t,u,l,g),h+=T,g=!0),d>0&&(h+=m,h+=x(e,t,p,d,g),h+=T),h+f}(e,y,b.state,b.phraseIndex,b.phraseLength,f):p?function(e,t,n,i,o){const s=`<span class="${r.CLASS_LOOKAHEAD}">`;return w(e,t,n,i,o,s)}(e,y,b.state,b.phraseIndex,b.phraseLength):function(e,t,n,i,o){const s=`<span class="${r.CLASS_MATCH}">`;return w(e,t,n,i,o,s)}(e,y,b.state,b.phraseIndex,b.phraseLength),g+="</td></tr>\n"})),g+="<tr><th>(a)</th><th>(b)</th><th>(c)</th><th>(d)</th><th>(e)</th><th>(f)</th>",g+="<th>operator</th><th>phrase</th></tr>\n",g+="</table>\n",g};this.toHtml=function(e,t){let n=8;if("string"==typeof e&&e.length>=3){const t=e.toLowerCase().slice(0,3);"hex"===t?n=a:"dec"===t?n=10:"uni"===t&&(n=32)}let i="";return i+=function(e,t){let n;switch(e){case a:n="hexadecimal";break;case 10:n="decimal";break;case 8:n="ASCII";break;case 32:n="UNICODE";break;default:throw new Error(`${o}htmlHeader: unrecognized mode: ${e}`)}let i="";return i+=`<p>display mode: ${n}</p>\n`,i+=`<table class="${r.CLASS_TRACE}">\n`,"string"==typeof t&&(i+=`<caption>${t}</caption>`),i}(n,t),i+=A(n),i+=function(){let e="";return e+="</table>\n",e+=`<p class="${r.CLASS_MONOSPACE}">legend:<br>\n`,e+="(a)&nbsp;-&nbsp;line number<br>\n",e+="(b)&nbsp;-&nbsp;matching line number<br>\n",e+="(c)&nbsp;-&nbsp;phrase offset<br>\n",e+="(d)&nbsp;-&nbsp;phrase length<br>\n",e+="(e)&nbsp;-&nbsp;tree depth<br>\n",e+="(f)&nbsp;-&nbsp;operator state<br>\n",e+=`&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_ACTIVE}">&darr;</span>&nbsp;&nbsp;phrase opened<br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_MATCH}">&uarr;M</span> phrase matched<br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_EMPTY}">&uarr;E</span> empty phrase matched<br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_NOMATCH}">&uarr;N</span> phrase not matched<br>\n`,e+="operator&nbsp;-&nbsp;ALT, CAT, REP, RNM, TRG, TLS, TBS<sup>&dagger;</sup>, UDT, AND, NOT, BKA, BKN, BKR, ABG, AEN<sup>&Dagger;</sup><br>\n",e+="phrase&nbsp;&nbsp;&nbsp;-&nbsp;up to 80 characters of the phrase being matched<br>\n",e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_MATCH}">matched characters</span><br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_LOOKAHEAD}">matched characters in look ahead mode</span><br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_LOOKBEHIND}">matched characters in look behind mode</span><br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_REMAINDER}">remainder characters(not yet examined by parser)</span><br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_CTRLCHAR}">control characters, TAB, LF, CR, etc. (ASCII mode only)</span><br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;${E} empty string<br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;${_} end of input string<br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;${O} input string display truncated<br>\n`,e+="</p>\n",e+=`<p class="${r.CLASS_MONOSPACE}">\n`,e+="<sup>&dagger;</sup>original ABNF operators:<br>\n",e+="ALT - alternation<br>\n",e+="CAT - concatenation<br>\n",e+="REP - repetition<br>\n",e+="RNM - rule name<br>\n",e+="TRG - terminal range<br>\n",e+="TLS - terminal literal string (case insensitive)<br>\n",e+="TBS - terminal binary string (case sensitive)<br>\n",e+="<br>\n",e+="<sup>&Dagger;</sup>super set SABNF operators:<br>\n",e+="UDT - user-defined terminal<br>\n",e+="AND - positive look ahead<br>\n",e+="NOT - negative look ahead<br>\n",e+="BKA - positive look behind<br>\n",e+="BKN - negative look behind<br>\n",e+="BKR - back reference<br>\n",e+="ABG - anchor - begin of input string<br>\n",e+="AEN - anchor - end of input string<br>\n",e+="</p>\n",e}(),i}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/trace.js"}],[3894,{"../apg-conv-api/converter":3883,"./emitcss":3887,"./identifiers":3888,"./style":3892},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./style"),i=e("../apg-conv-api/converter"),o=e("./emitcss"),s=e("./identifiers"),a="utilities.js: ",c=function(e,t,r){let n,i=t;for(;;){if(e<=0){i=0,n=0;break}if("number"!=typeof i){i=0,n=e;break}if(i>=e){i=e,n=e;break}if("number"!=typeof r){n=e;break}if(n=i+r,n>e){n=e;break}break}return{beg:i,end:n}};r.htmlToPage=function(e,t){let r;if("string"!=typeof e)throw new Error(`${a}htmlToPage: input HTML is not a string`);r="string"!=typeof t?"htmlToPage":t;let n="";return n+="<!DOCTYPE html>\n",n+='<html lang="en">\n',n+="<head>\n",n+='<meta charset="utf-8">\n',n+=`<title>${r}</title>\n`,n+="<style>\n",n+=o(),n+="</style>\n",n+="</head>\n<body>\n",n+=`<p>${new Date}</p>\n`,n+=e,n+="</body>\n</html>\n",n},r.parserResultToHtml=function(e,t){let r,i,o=null;"string"==typeof t&&""!==t&&(o=t),r=!0===e.success?`<span class="${n.CLASS_MATCH}">true</span>`:`<span class="${n.CLASS_NOMATCH}">false</span>`,i=e.state===s.EMPTY?`<span class="${n.CLASS_EMPTY}">EMPTY</span>`:e.state===s.MATCH?`<span class="${n.CLASS_MATCH}">MATCH</span>`:e.state===s.NOMATCH?`<span class="${n.CLASS_NOMATCH}">NOMATCH</span>`:`<span class="${n.CLASS_NOMATCH}">unrecognized</span>`;let a="";return a+=`<table class="${n.CLASS_STATE}">\n`,o&&(a+=`<caption>${o}</caption>\n`),a+="<tr><th>state item</th><th>value</th><th>description</th></tr>\n",a+=`<tr><td>parser success</td><td>${r}</td>\n`,a+=`<td><span class="${n.CLASS_MATCH}">true</span> if the parse succeeded,\n`,a+=` <span class="${n.CLASS_NOMATCH}">false</span> otherwise`,a+="<br><i>NOTE: for success, entire string must be matched</i></td></tr>\n",a+=`<tr><td>parser state</td><td>${i}</td>\n`,a+=`<td><span class="${n.CLASS_EMPTY}">EMPTY</span>, `,a+=`<span class="${n.CLASS_MATCH}">MATCH</span> or \n`,a+=`<span class="${n.CLASS_NOMATCH}">NOMATCH</span></td></tr>\n`,a+=`<tr><td>string length</td><td>${e.length}</td><td>length of the input (sub)string</td></tr>\n`,a+=`<tr><td>matched length</td><td>${e.matched}</td><td>number of input string characters matched</td></tr>\n`,a+=`<tr><td>max matched</td><td>${e.maxMatched}</td><td>maximum number of input string characters matched</td></tr>\n`,a+=`<tr><td>max tree depth</td><td>${e.maxTreeDepth}</td><td>maximum depth of the parse tree reached</td></tr>\n`,a+=`<tr><td>node hits</td><td>${e.nodeHits}</td><td>number of parse tree node hits (opcode function calls)</td></tr>\n`,a+=`<tr><td>input length</td><td>${e.inputLength}</td><td>length of full input string</td></tr>\n`,a+=`<tr><td>sub-string begin</td><td>${e.subBegin}</td><td>sub-string first character index</td></tr>\n`,a+=`<tr><td>sub-string end</td><td>${e.subEnd}</td><td>sub-string end-of-string index</td></tr>\n`,a+=`<tr><td>sub-string length</td><td>${e.subLength}</td><td>sub-string length</td></tr>\n`,a+="</table>\n",a},r.charsToString=function(e,t,r){let n,o;if("number"==typeof t){if(t>=e.length)return"";n=t<0?0:t}else n=0;if("number"==typeof r){if(r<=0)return"";o=r>e.length-n?e.length:n+r}else o=e.length;return n<o?i.encode("UTF16LE",e.slice(n,o)).toString("utf16le"):""},r.stringToChars=function(e){return i.decode("STRING",e)},r.opcodeToString=function(e){let t="unknown";switch(e){case s.ALT:t="ALT";break;case s.CAT:t="CAT";break;case s.RNM:t="RNM";break;case s.UDT:t="UDT";break;case s.AND:t="AND";break;case s.NOT:t="NOT";break;case s.REP:t="REP";break;case s.TRG:t="TRG";break;case s.TBS:t="TBS";break;case s.TLS:t="TLS";break;case s.BKR:t="BKR";break;case s.BKA:t="BKA";break;case s.BKN:t="BKN";break;case s.ABG:t="ABG";break;case s.AEN:t="AEN";break;default:throw new Error("unrecognized opcode")}return t},r.stateToString=function(e){let t="unknown";switch(e){case s.ACTIVE:t="ACTIVE";break;case s.MATCH:t="MATCH";break;case s.EMPTY:t="EMPTY";break;case s.NOMATCH:t="NOMATCH";break;default:throw new Error("unrecognized state")}return t},r.asciiChars=["NUL","SOH","STX","ETX","EOT","ENQ","ACK","BEL","BS","TAB","LF","VT","FF","CR","SO","SI","DLE","DC1","DC2","DC3","DC4","NAK","SYN","ETB","CAN","EM","SUB","ESC","FS","GS","RS","US","&nbsp;","!","&#34;","#","$","%","&#38;","&#39;","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&#60;","=","&#62;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","&#92;","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","DEL"],r.charToHex=function(e){let t=e.toString(16).toUpperCase();switch(t.length){case 1:case 3:case 7:t=`0${t}`;break;case 2:case 6:t=`00${t}`;break;case 4:break;case 5:t=`000${t}`;break;default:throw new Error("unrecognized option")}return t},r.charsToDec=function(e,t,r){let n="";if(!Array.isArray(e))throw new Error(`${a}charsToDec: input must be an array of integers`);const i=c(e.length,t,r);if(i.end>i.beg){n+=e[i.beg];for(let t=i.beg+1;t<i.end;t+=1)n+=`,${e[t]}`}return n},r.charsToHex=function(e,t,n){let i="";if(!Array.isArray(e))throw new Error(`${a}charsToHex: input must be an array of integers`);const o=c(e.length,t,n);if(o.end>o.beg){i+=`\\x${r.charToHex(e[o.beg])}`;for(let t=o.beg+1;t<o.end;t+=1)i+=`,\\x${r.charToHex(e[t])}`}return i},r.charsToHtmlEntities=function(e,t,r){let n="";if(!Array.isArray(e))throw new Error(`${a}charsToHex: input must be an array of integers`);const i=c(e.length,t,r);if(i.end>i.beg)for(let t=i.beg;t<i.end;t+=1)n+=`&#x${e[t].toString(16)};`;return n},r.charsToUnicode=function(e,t,n){let i="";if(!Array.isArray(e))throw new Error(`${a}charsToUnicode: input must be an array of integers`);const o=c(e.length,t,n);if(o.end>o.beg)for(let t=o.beg;t<o.end;t+=1)i+=(s=e[t])>=55296&&s<=57343||s>1114111?` U+${r.charToHex(e[t])}`:`&#${e[t]};`;var s;return i},r.charsToJsUnicode=function(e,t,n){let i="";if(!Array.isArray(e))throw new Error(`${a}charsToJsUnicode: input must be an array of integers`);const o=c(e.length,t,n);if(o.end>o.beg){i+=`\\u${r.charToHex(e[o.beg])}`;for(let t=o.beg+1;t<o.end;t+=1)i+=`,\\u${r.charToHex(e[t])}`}return i},r.charsToAscii=function(e,t,n){let i="";if(!Array.isArray(e))throw new Error(`${a}charsToAscii: input must be an array of integers`);const o=c(e.length,t,n);for(let t=o.beg;t<o.end;t+=1){const n=e[t];i+=n>=32&&n<=126?String.fromCharCode(n):`\\x${r.charToHex(n)}`}return i},r.charsToAsciiHtml=function(e,t,i){if(!Array.isArray(e))throw new Error(`${a}charsToAsciiHtml: input must be an array of integers`);let o,s="";const u=c(e.length,t,i);for(let t=u.beg;t<u.end;t+=1)o=e[t],s+=o<32||127===o?`<span class="${n.CLASS_CTRLCHAR}">${r.asciiChars[o]}</span>`:o>127?`<span class="${n.CLASS_CTRLCHAR}">U+${r.charToHex(o)}</span>`:r.asciiChars[o];return s},r.stringToAsciiHtml=function(e){const t=i.decode("STRING",e);return this.charsToAsciiHtml(t)}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/utilities.js"}],[3896,{"./asn1/api":3897,"./asn1/base":3899,"./asn1/constants":3903,"./asn1/decoders":3905,"./asn1/encoders":3908,"bn.js":4026},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r;n.bignum=e("bn.js"),n.define=e("./asn1/api").define,n.base=e("./asn1/base"),n.constants=e("./asn1/constants"),n.decoders=e("./asn1/decoders"),n.encoders=e("./asn1/encoders")}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1.js"}],[3897,{"../asn1":3896,inherits:4650,vm:5693},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../asn1"),i=e("inherits");function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}r.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(t){var r;try{r=e("vm").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){r=function(e){this._initNamed(e)}}return i(r,t),r.prototype._initNamed=function(e){t.call(this,e)},new r(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/api.js"}],[3898,{"../base":3899,buffer:4074,inherits:4650},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),i=e("../base").Reporter,o=e("buffer").Buffer;function s(e,t){i.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function a(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof a||(e=new a(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(s,i),r.DecoderBuffer=s,s.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},s.prototype.restore=function(e){var t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},r.EncoderBuffer=a,a.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(e,t),t+=r.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/base/buffer.js"}],[3899,{"./buffer":3898,"./node":3900,"./reporter":3901},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r;n.Reporter=e("./reporter").Reporter,n.DecoderBuffer=e("./buffer").DecoderBuffer,n.EncoderBuffer=e("./buffer").EncoderBuffer,n.Node=e("./node")}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/base/index.js"}],[390,{"./objectWithoutPropertiesLoose.js":391},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./objectWithoutPropertiesLoose.js");t.exports=function(e,t){if(null==e)return{};var r,i,o=n(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/objectWithoutProperties.js"}],[3900,{"../base":3899,"minimalistic-assert":4912},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../base").Reporter,i=e("../base").EncoderBuffer,o=e("../base").DecoderBuffer,s=e("minimalistic-assert"),a=["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"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function u(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=u;var l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var e=this._baseState,t={};l.forEach((function(r){t[r]=e[r]}));var r=new this.constructor(t.parent);return r._baseState=t,r},u.prototype._wrap=function(){var e=this._baseState;c.forEach((function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},u.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),s.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){var t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(s(null===t.children),t.children=r,r.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);var n=e[r];t[n]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),a.forEach((function(e){u.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(r),this}})),u.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},u.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){var r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));var n,i=r.default,s=!0,a=null;if(null!==r.key&&(a=e.enterKey(r.key)),r.optional){var c=null;if(null!==r.explicit?c=r.explicit:null!==r.implicit?c=r.implicit:null!==r.tag&&(c=r.tag),null!==c||r.any){if(s=this._peekTag(e,c,r.any),e.isError(s))return s}else{var u=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),s=!0}catch(e){s=!1}e.restore(u)}}if(r.obj&&s&&(n=e.enterObject()),s){if(null!==r.explicit){var l=this._decodeTag(e,r.explicit);if(e.isError(l))return l;e=l}var p=e.offset;if(null===r.use&&null===r.choice){if(r.any)u=e.save();var d=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(d))return d;r.any?i=e.raw(u):e=d}if(t&&t.track&&null!==r.tag&&t.track(e.path(),p,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(e,t)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var h=new o(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(h,t)}}return r.obj&&s&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==s?null!==a&&e.exitKey(a):e.leaveKey(a,r.key,i),i},u.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},u.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some((function(o){var s=e.save(),a=r.choice[o];try{var c=a._decode(e,t);if(e.isError(c))return!1;n={type:o,value:c},i=!0}catch(t){return e.restore(s),!1}return!0}),this),i?n:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},u.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(i!==undefined&&!this._skipDefault(i,t,r))return i}},u.prototype._encodeValue=function(e,t,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);var o=null;if(this.reporter=t,i.optional&&e===undefined){if(null===i.default)return;e=i.default}var s=null,a=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)s=this._getUse(i.contains,r)._encode(e,t),a=!0;else if(i.children)s=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i}),this).filter((function(e){return e})),s=this._createEncoderBuffer(s);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,s=this._createEncoderBuffer(e.map((function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)}),c))}else null!==i.use?o=this._getUse(i.use,r)._encode(e,t):(s=this._encodePrimitive(i.tag,e),a=!0);if(!i.any&&null===i.choice){var u=null!==i.implicit?i.implicit:i.tag,l=null===i.implicit?"universal":"context";null===u?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(u,a,l,s))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},u.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/base/node.js"}],[3901,{inherits:4650},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}r.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/base/reporter.js"}],[3902,{"../constants":3903},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../constants");r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=n._reverse(r.tagClass),r.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"},r.tagByName=n._reverse(r.tag)}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/constants/der.js"}],[3903,{"./der":3902},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r;n._reverse=function(e){var t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r})),t},n.der=e("./der")}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/constants/index.js"}],[3904,{"../../asn1":3896,inherits:4650},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),i=e("../../asn1"),o=i.base,s=i.bignum,a=i.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){o.Node.call(this,"der",e)}function l(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=a.tagClass[r>>6],i=!(32&r);if(31&~r)r&=31;else{var o=r;for(r=0;!(128&~o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}return{cls:n,primitive:i,tag:r,tagStr:a.tag[r]}}function p(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(!(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var s=e.readUInt8(r);if(e.isError(s))return s;n|=s}return n}t.exports=c,c.prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(u,o.Node),u.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=l(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},u.prototype._decodeTag=function(e,t,r){var n=l(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=p(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var o=e.save(),s=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(s)?s:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},u.prototype._skipUntilEnd=function(e,t){for(;;){var r=l(e,t);if(e.isError(r))return r;var n,i=p(e,r.primitive,t);if(e.isError(i))return i;if(n=r.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===r.tagStr)break}},u.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,"end");if(e.isError(o))return o;var s=r.decode(e,"der",n);if(e.isError(s)&&o)break;i.push(s)}return i},u.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===t){var s=e.raw().toString("ascii");return this._isNumstr(s)?s:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var a=e.raw().toString("ascii");return this._isPrintstr(a)?a:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},u.prototype._decodeObjid=function(e,t,r){for(var n,i=[],o=0;!e.isEmpty();){var s=e.readUInt8();o<<=7,o|=127&s,128&s||(i.push(o),o=0)}128&s&&i.push(o);var a=i[0]/40|0,c=i[0]%40;if(n=r?i:[a,c].concat(i.slice(1)),t){var u=t[n.join(" ")];u===undefined&&(u=t[n.join(".")]),u!==undefined&&(n=u)}return n},u.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),s=0|r.slice(8,10),a=0|r.slice(10,12),c=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),s=0|r.slice(6,8),a=0|r.slice(8,10),c=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,s,a,c,0)},u.prototype._decodeNull=function(e){return null},u.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},u.prototype._decodeInt=function(e,t){var r=e.raw(),n=new s(r);return t&&(n=t[n.toString(10)]||n),n},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/decoders/der.js"}],[3905,{"./der":3904,"./pem":3906},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r;n.der=e("./der"),n.pem=e("./pem")}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/decoders/index.js"}],[3906,{"./der":3904,buffer:4074,inherits:4650},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),i=e("buffer").Buffer,o=e("./der");function s(e){o.call(this,e),this.enc="pem"}n(s,o),t.exports=s,s.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,c=-1,u=0;u<r.length;u++){var l=r[u].match(s);if(null!==l&&l[2]===n){if(-1!==a){if("END"!==l[1])break;c=u;break}if("BEGIN"!==l[1])break;a=u}}if(-1===a||-1===c)throw new Error("PEM section not found for: "+n);var p=r.slice(a+1,c).join("");p.replace(/[^a-z0-9\+\/=]+/gi,"");var d=new i(p,"base64");return o.prototype.decode.call(this,d,t)}}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/decoders/pem.js"}],[3907,{"../../asn1":3896,buffer:4074,inherits:4650},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),i=e("buffer").Buffer,o=e("../../asn1"),s=o.base,a=o.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){s.Node.call(this,"der",e)}function l(e){return e<10?"0"+e:e}t.exports=c,c.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(u,s.Node),u.prototype._encodeComposite=function(e,t,r,n){var o,s=function(e,t,r,n){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(a.tagByName.hasOwnProperty(e))i=a.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(i>=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=a.tagClassByName[r||"universal"]<<6,i}(e,t,r,this.reporter);if(n.length<128)return(o=new i(2))[0]=s,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var c=1,u=n.length;u>=256;u>>=8)c++;(o=new i(2+c))[0]=s,o[1]=128|c;u=1+c;for(var l=n.length;l>0;u--,l>>=8)o[u]=255&l;return this._createEncoderBuffer([o,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):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(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},u.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n<e.length;n++){var s=e[n];for(o++;s>=128;s>>=7)o++}var a=new i(o),c=a.length-1;for(n=e.length-1;n>=0;n--){s=e[n];for(a[c--]=127&s;(s>>=7)>0;)a[c--]=128|127&s}return this._createEncoderBuffer(a)},u.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[l(n.getFullYear()),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[l(n.getFullYear()%100),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var s=e;s>=256;s>>=8)n++;for(s=(o=new Array(n)).length-1;s>=0;s--)o[s]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(i.defaultBuffer===undefined&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/encoders/der.js"}],[3908,{"./der":3907,"./pem":3909},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r;n.der=e("./der"),n.pem=e("./pem")}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/encoders/index.js"}],[3909,{"./der":3907,inherits:4650},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),i=e("./der");function o(e){i.call(this,e),this.enc="pem"}n(o,i),t.exports=o,o.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/encoders/pem.js"}],[391,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"}],[3910,{"./Semaphore":3911,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("./Semaphore"),o=function(){function e(e){this._semaphore=new i.default(1,e)}return e.prototype.acquire=function(){return n.__awaiter(this,arguments,void 0,(function(e){var t;return void 0===e&&(e=0),n.__generator(this,(function(r){switch(r.label){case 0:return[4,this._semaphore.acquire(1,e)];case 1:return t=r.sent(),[2,t[1]]}}))}))},e.prototype.runExclusive=function(e,t){return void 0===t&&(t=0),this._semaphore.runExclusive((function(){return e()}),1,t)},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.waitForUnlock=function(e){return void 0===e&&(e=0),this._semaphore.waitForUnlock(1,e)},e.prototype.release=function(){this._semaphore.isLocked()&&this._semaphore.release()},e.prototype.cancel=function(){return this._semaphore.cancel()},e}();r.default=o}}},{package:"@metamask/name-controller>async-mutex",file:"node_modules/async-mutex/lib/Mutex.js"}],[3911,{"./errors":3912,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("./errors"),o=function(){function e(e,t){void 0===t&&(t=i.E_CANCELED),this._value=e,this._cancelError=t,this._queue=[],this._weightedWaiters=[]}return e.prototype.acquire=function(e,t){var r=this;if(void 0===e&&(e=1),void 0===t&&(t=0),e<=0)throw new Error("invalid weight ".concat(e,": must be positive"));return new Promise((function(n,i){var o={resolve:n,reject:i,weight:e,priority:t},a=s(r._queue,(function(e){return t<=e.priority}));-1===a&&e<=r._value?r._dispatchItem(o):r._queue.splice(a+1,0,o)}))},e.prototype.runExclusive=function(e){return n.__awaiter(this,arguments,void 0,(function(e,t,r){var i,o,s;return void 0===t&&(t=1),void 0===r&&(r=0),n.__generator(this,(function(n){switch(n.label){case 0:return[4,this.acquire(t,r)];case 1:i=n.sent(),o=i[0],s=i[1],n.label=2;case 2:return n.trys.push([2,,4,5]),[4,e(o)];case 3:return[2,n.sent()];case 4:return s(),[7];case 5:return[2]}}))}))},e.prototype.waitForUnlock=function(e,t){var r=this;if(void 0===e&&(e=1),void 0===t&&(t=0),e<=0)throw new Error("invalid weight ".concat(e,": must be positive"));return this._couldLockImmediately(e,t)?Promise.resolve():new Promise((function(n){var i,o,a;r._weightedWaiters[e-1]||(r._weightedWaiters[e-1]=[]),i=r._weightedWaiters[e-1],o={resolve:n,priority:t},a=s(i,(function(e){return o.priority<=e.priority})),i.splice(a+1,0,o)}))},e.prototype.isLocked=function(){return this._value<=0},e.prototype.getValue=function(){return this._value},e.prototype.setValue=function(e){this._value=e,this._dispatchQueue()},e.prototype.release=function(e){if(void 0===e&&(e=1),e<=0)throw new Error("invalid weight ".concat(e,": must be positive"));this._value+=e,this._dispatchQueue()},e.prototype.cancel=function(){var e=this;this._queue.forEach((function(t){return t.reject(e._cancelError)})),this._queue=[]},e.prototype._dispatchQueue=function(){for(this._drainUnlockWaiters();this._queue.length>0&&this._queue[0].weight<=this._value;)this._dispatchItem(this._queue.shift()),this._drainUnlockWaiters()},e.prototype._dispatchItem=function(e){var t=this._value;this._value-=e.weight,e.resolve([t,this._newReleaser(e.weight)])},e.prototype._newReleaser=function(e){var t=this,r=!1;return function(){r||(r=!0,t.release(e))}},e.prototype._drainUnlockWaiters=function(){if(0===this._queue.length)for(var e=this._value;e>0;e--){(r=this._weightedWaiters[e-1])&&(r.forEach((function(e){return e.resolve()})),this._weightedWaiters[e-1]=[])}else{var t=this._queue[0].priority;for(e=this._value;e>0;e--){var r;if(r=this._weightedWaiters[e-1]){var n=r.findIndex((function(e){return e.priority<=t}));(-1===n?r:r.splice(0,n)).forEach((function(e){return e.resolve()}))}}}},e.prototype._couldLockImmediately=function(e,t){return(0===this._queue.length||this._queue[0].priority<t)&&e<=this._value},e}();function s(e,t){for(var r=e.length-1;r>=0;r--)if(t(e[r]))return r;return-1}r.default=o}}},{package:"@metamask/name-controller>async-mutex",file:"node_modules/async-mutex/lib/Semaphore.js"}],[3912,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.E_CANCELED=r.E_ALREADY_LOCKED=r.E_TIMEOUT=void 0,r.E_TIMEOUT=new Error("timeout while waiting for mutex to become available"),r.E_ALREADY_LOCKED=new Error("mutex already locked"),r.E_CANCELED=new Error("request for lock canceled")}}},{package:"@metamask/name-controller>async-mutex",file:"node_modules/async-mutex/lib/errors.js"}],[3913,{"./Mutex":3910,"./Semaphore":3911,"./errors":3912,"./tryAcquire":3914,"./withTimeout":3915,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.tryAcquire=r.withTimeout=r.Semaphore=r.Mutex=void 0;var n=e("tslib"),i=e("./Mutex");Object.defineProperty(r,"Mutex",{enumerable:!0,get:function(){return i.default}});var o=e("./Semaphore");Object.defineProperty(r,"Semaphore",{enumerable:!0,get:function(){return o.default}});var s=e("./withTimeout");Object.defineProperty(r,"withTimeout",{enumerable:!0,get:function(){return s.withTimeout}});var a=e("./tryAcquire");Object.defineProperty(r,"tryAcquire",{enumerable:!0,get:function(){return a.tryAcquire}}),n.__exportStar(e("./errors"),r)}}},{package:"@metamask/name-controller>async-mutex",file:"node_modules/async-mutex/lib/index.js"}],[3914,{"./errors":3912,"./withTimeout":3915},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.tryAcquire=void 0;var n=e("./errors"),i=e("./withTimeout");r.tryAcquire=function(e,t){return void 0===t&&(t=n.E_ALREADY_LOCKED),(0,i.withTimeout)(e,0,t)}}}},{package:"@metamask/name-controller>async-mutex",file:"node_modules/async-mutex/lib/tryAcquire.js"}],[3915,{"./errors":3912,tslib:5615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.withTimeout=void 0;var n=e("tslib"),i=e("./errors");function o(e){return e.getValue!==undefined}r.withTimeout=function(e,t,r){var s=this;return void 0===r&&(r=i.E_TIMEOUT),{acquire:function(i,a){var c;if(o(e)?c=i:(c=undefined,a=i),c!==undefined&&c<=0)throw new Error("invalid weight ".concat(c,": must be positive"));return new Promise((function(i,u){return n.__awaiter(s,void 0,void 0,(function(){var s,l,p,d;return n.__generator(this,(function(n){switch(n.label){case 0:s=!1,l=setTimeout((function(){s=!0,u(r)}),t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,o(e)?e.acquire(c,a):e.acquire(a)];case 2:return p=n.sent(),s?(Array.isArray(p)?p[1]:p)():(clearTimeout(l),i(p)),[3,4];case 3:return d=n.sent(),s||(clearTimeout(l),u(d)),[3,4];case 4:return[2]}}))}))}))},runExclusive:function(e,t,r){return n.__awaiter(this,void 0,void 0,(function(){var i,o;return n.__generator(this,(function(n){switch(n.label){case 0:i=function(){return undefined},n.label=1;case 1:return n.trys.push([1,,7,8]),[4,this.acquire(t,r)];case 2:return o=n.sent(),Array.isArray(o)?(i=o[1],[4,e(o[0])]):[3,4];case 3:return[2,n.sent()];case 4:return i=o,[4,e()];case 5:return[2,n.sent()];case 6:return[3,8];case 7:return i(),[7];case 8:return[2]}}))}))},release:function(t){e.release(t)},cancel:function(){return e.cancel()},waitForUnlock:function(n,i){var s;if(o(e)?s=n:(s=undefined,i=n),s!==undefined&&s<=0)throw new Error("invalid weight ".concat(s,": must be positive"));return new Promise((function(n,a){var c=setTimeout((function(){return a(r)}),t);(o(e)?e.waitForUnlock(s,i):e.waitForUnlock(i)).then((function(){clearTimeout(c),n()}))}))},isLocked:function(){return e.isLocked()},getValue:function(){return e.getValue()},setValue:function(t){return e.setValue(t)}}}}}},{package:"@metamask/name-controller>async-mutex",file:"node_modules/async-mutex/lib/withTimeout.js"}],[3916,{"possible-typed-array-names":5007},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("possible-typed-array-names"),i="undefined"==typeof globalThis?global:globalThis;t.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}}}},{package:"string.prototype.matchall>es-abstract>available-typed-arrays",file:"node_modules/available-typed-arrays/index.js"}],[393,{"./typeof.js":400},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./typeof.js").default;function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
t.exports=i=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var e,r={},o=Object.prototype,s=o.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",p=c.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof _?t:_,o=Object.create(i.prototype),s=new j(n||[]);return a(o,"_invoke",{value:I(e,r,s)}),o}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=h;var y="suspendedStart",m="suspendedYield",T="executing",g="completed",b={};function _(){}function O(){}function E(){}var S={};d(S,u,(function(){return this}));var v=Object.getPrototypeOf,x=v&&v(v(k([])));x&&x!==o&&s.call(x,u)&&(S=x);var w=E.prototype=_.prototype=Object.create(S);function A(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function r(i,o,a,c){var u=f(e[i],e,o);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==n(p)&&s.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}})}function I(t,r,n){var i=y;return function(o,s){if(i===T)throw Error("Generator is already running");if(i===g){if("throw"===o)throw s;return{value:e,done:!0}}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var c=P(a,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===y)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=T;var u=f(t,r,n);if("normal"===u.type){if(i=n.done?g:m,u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function P(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=f(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var s=o.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function k(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(s.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(n(t)+" is not iterable")}return O.prototype=E,a(w,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:O,configurable:!0}),O.displayName=d(E,p,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===O||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,d(e,p,"GeneratorFunction")),e.prototype=Object.create(w),e},r.awrap=function(e){return{__await:e}},A(R.prototype),d(R.prototype,l,(function(){return this})),r.AsyncIterator=R,r.async=function(e,t,n,i,o){void 0===o&&(o=Promise);var s=new R(h(e,t,n,i),o);return r.isGeneratorFunction(t)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},A(w),d(w,p,"Generator"),d(w,u,(function(){return this})),d(w,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return a.type="throw",a.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=s.call(o,"catchLoc"),u=s.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},r}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/regeneratorRuntime.js"}],[394,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,r){return t.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e,r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/setPrototypeOf.js"}],[395,{"./arrayWithHoles.js":372,"./iterableToArrayLimit.js":386,"./nonIterableRest.js":387,"./unsupportedIterableToArray.js":401},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./arrayWithHoles.js"),i=e("./iterableToArrayLimit.js"),o=e("./unsupportedIterableToArray.js"),s=e("./nonIterableRest.js");t.exports=function(e,t){return n(e)||i(e,t)||o(e,t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/slicedToArray.js"}],[397,{"./arrayWithoutHoles.js":373,"./iterableToArray.js":385,"./nonIterableSpread.js":388,"./unsupportedIterableToArray.js":401},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./arrayWithoutHoles.js"),i=e("./iterableToArray.js"),o=e("./unsupportedIterableToArray.js"),s=e("./nonIterableSpread.js");t.exports=function(e){return n(e)||i(e)||o(e)||s()},t.exports.__esModule=!0,t.exports.default=t.exports}}},{package:"@babel/runtime",file:"node_modules/@babel/runtime/helpers/toConsumableArray.js"}],[3974,{"safe-buffer":5514},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer;t.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(255!==t[s])throw new TypeError(o+" is ambiguous");t[s]=i}var a=e.length,c=e.charAt(0),u=Math.log(a)/Math.log(256),l=Math.log(256)/Math.log(a);function p(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return n.alloc(0);for(var r=0,i=0,o=0;e[r]===c;)i++,r++;for(var s=(e.length-r)*u+1>>>0,l=new Uint8Array(s);r<e.length;){var p=t[e.charCodeAt(r)];if(255===p)return;for(var d=0,h=s-1;(0!==p||d<o)&&-1!==h;h--,d++)p+=a*l[h]>>>0,l[h]=p%256>>>0,p=p/256>>>0;if(0!==p)throw new Error("Non-zero carry");o=d,r++}for(var f=s-o;f!==s&&0===l[f];)f++;var y=n.allocUnsafe(i+(s-f));y.fill(0,0,i);for(var m=i;f!==s;)y[m++]=l[f++];return y}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,o=0,s=t.length;o!==s&&0===t[o];)o++,r++;for(var u=(s-o)*l+1>>>0,p=new Uint8Array(u);o!==s;){for(var d=t[o],h=0,f=u-1;(0!==d||h<i)&&-1!==f;f--,h++)d+=256*p[f]>>>0,p[f]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");i=h,o++}for(var y=u-i;y!==u&&0===p[y];)y++;for(var m=c.repeat(r);y<u;++y)m+=e.charAt(p[y]);return m},decodeUnsafe:p,decode:function(e){var t=p(e);if(t)return t;throw new Error("Non-base"+a+" character")}}}}}},{package:"@ensdomains/content-hash>multihashes>multibase>base-x",file:"node_modules/base-x/src/index.js"}],[3976,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){r.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=c(e),s=n[0],a=n[1],u=new o(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),l=0,p=a>0?s-4:s;for(r=0;r<p;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,u[l++]=255&t);1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=16383,a=0,c=r-i;a<c;a+=s)o.push(u(e,a,a+s>c?c:a+s));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=s[a],i[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,r){for(var i,o,s=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63}}},{package:"base64-js",file:"node_modules/base64-js/index.js"}]],[],{});