publishimo-webpack-plugin
Version:
Webpack plugin that creates a publishimo-enhanced package.json in the output folder.
7 lines • 4.17 MB
JavaScript
/*!
*** publishimo-webpack-plugin 4.0.0
*** Copyright © 2021, Jaid <jaid.jsx@gmail.com> (https://github.com/Jaid)
*** @license MIT
*** See https://github.com/Jaid/publishimo-webpack-plugin
!*/
var root,factory;root=global,factory=function(){return(()=>{var __webpack_modules__={22031:(e,t,n)=>{function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){return function(t){return t.type===e}}function o(e){return function(t){return function(){if(t.type!==e)throw new Error("n.type === t error: unknown")}()}}function i(e,t,n){if(null!=e&&"string"!=typeof e)throw new Error('typeof id === "string" error: '+("Argument id must be of type string, given: "+r(e)||0));if("object"!==r(t)||void 0===t.length)throw new Error('typeof fields === "object" && typeof fields.length !== "undefined" error: unknown');var s={type:"Module",id:e,fields:t};return void 0!==n&&(s.metadata=n),s}function a(e,t,n,s){if("object"!==r(e)||void 0===e.length)throw new Error('typeof sections === "object" && typeof sections.length !== "undefined" error: unknown');if(null!=t&&("object"!==r(t)||void 0===t.length))throw new Error('typeof functionNames === "object" && typeof functionNames.length !== "undefined" error: unknown');if(null!=n&&("object"!==r(n)||void 0===n.length))throw new Error('typeof localNames === "object" && typeof localNames.length !== "undefined" error: unknown');if(null!=s&&("object"!==r(s)||void 0===s.length))throw new Error('typeof producers === "object" && typeof producers.length !== "undefined" error: unknown');var o={type:"ModuleMetadata",sections:e};return void 0!==t&&t.length>0&&(o.functionNames=t),void 0!==n&&n.length>0&&(o.localNames=n),void 0!==s&&s.length>0&&(o.producers=s),o}function B(e){if("string"!=typeof e)throw new Error('typeof value === "string" error: '+("Argument value must be of type string, given: "+r(e)||0));return{type:"ModuleNameMetadata",value:e}}function l(e,t){if("string"!=typeof e)throw new Error('typeof value === "string" error: '+("Argument value must be of type string, given: "+r(e)||0));if("number"!=typeof t)throw new Error('typeof index === "number" error: '+("Argument index must be of type number, given: "+r(t)||0));return{type:"FunctionNameMetadata",value:e,index:t}}function c(e,t,n){if("string"!=typeof e)throw new Error('typeof value === "string" error: '+("Argument value must be of type string, given: "+r(e)||0));if("number"!=typeof t)throw new Error('typeof localIndex === "number" error: '+("Argument localIndex must be of type number, given: "+r(t)||0));if("number"!=typeof n)throw new Error('typeof functionIndex === "number" error: '+("Argument functionIndex must be of type number, given: "+r(n)||0));return{type:"LocalNameMetadata",value:e,localIndex:t,functionIndex:n}}function u(e,t){if(null!=e&&"string"!=typeof e)throw new Error('typeof id === "string" error: '+("Argument id must be of type string, given: "+r(e)||0));if("object"!==r(t)||void 0===t.length)throw new Error('typeof blob === "object" && typeof blob.length !== "undefined" error: unknown');return{type:"BinaryModule",id:e,blob:t}}function p(e,t){if(null!=e&&"string"!=typeof e)throw new Error('typeof id === "string" error: '+("Argument id must be of type string, given: "+r(e)||0));if("object"!==r(t)||void 0===t.length)throw new Error('typeof string === "object" && typeof string.length !== "undefined" error: unknown');return{type:"QuoteModule",id:e,string:t}}function d(e,t,n,s){if("number"!=typeof t)throw new Error('typeof startOffset === "number" error: '+("Argument startOffset must be of type number, given: "+r(t)||0));return{type:"SectionMetadata",section:e,startOffset:t,size:n,vectorOfSize:s}}function h(e){if("object"!==r(e)||void 0===e.length)throw new Error('typeof producers === "object" && typeof producers.length !== "undefined" error: unknown');return{type:"ProducersSectionMetadata",producers:e}}function f(e,t,n){if("object"!==r(e)||void 0===e.length)throw new Error('typeof language === "object" && typeof language.length !== "undefined" error: unknown');if("object"!==r(t)||void 0===t.length)throw new Error('typeof processedBy === "object" && typeof processedBy.length !== "undefined" error: unknown');if("object"!==r(n)||void 0===n.length)throw new Error('typeof sdk === "object" && typeof sdk.length !== "undefined" error: unknown');return{type:"ProducerMetadata",language:e,processedBy:t,sdk:n}}function m(e,t){if("string"!=typeof e)throw new Error('typeof name === "string" error: '+("Argument name must be of type string, given: "+r(e)||0));if("string"!=typeof t)throw new Error('typeof version === "string" error: '+("Argument version must be of type string, given: "+r(t)||0));return{type:"ProducerMetadataVersionedName",name:e,version:t}}function C(e,t,n){if("object"!==r(n)||void 0===n.length)throw new Error('typeof instr === "object" && typeof instr.length !== "undefined" error: unknown');return{type:"LoopInstruction",id:"loop",label:e,resulttype:t,instr:n}}function g(e,t,n,s){if("string"!=typeof e)throw new Error('typeof id === "string" error: '+("Argument id must be of type string, given: "+r(e)||0));if("object"!==r(n)||void 0===n.length)throw new Error('typeof args === "object" && typeof args.length !== "undefined" error: unknown');var o={type:"Instr",id:e,args:n};return void 0!==t&&(o.object=t),void 0!==s&&0!==Object.keys(s).length&&(o.namedArgs=s),o}function y(e,t,n,s,o){if("object"!==r(t)||void 0===t.length)throw new Error('typeof test === "object" && typeof test.length !== "undefined" error: unknown');if("object"!==r(s)||void 0===s.length)throw new Error('typeof consequent === "object" && typeof consequent.length !== "undefined" error: unknown');if("object"!==r(o)||void 0===o.length)throw new Error('typeof alternate === "object" && typeof alternate.length !== "undefined" error: unknown');return{type:"IfInstruction",id:"if",testLabel:e,test:t,result:n,consequent:s,alternate:o}}function v(e){if("string"!=typeof e)throw new Error('typeof value === "string" error: '+("Argument value must be of type string, given: "+r(e)||0));return{type:"StringLiteral",value:e}}function b(e,t){if("number"!=typeof e)throw new Error('typeof value === "number" error: '+("Argument value must be of type number, given: "+r(e)||0));if("string"!=typeof t)throw new Error('typeof raw === "string" error: '+("Argument raw must be of type string, given: "+r(t)||0));return{type:"NumberLiteral",value:e,raw:t}}function E(e,t){if("string"!=typeof t)throw new Error('typeof raw === "string" error: '+("Argument raw must be of type string, given: "+r(t)||0));return{type:"LongNumberLiteral",value:e,raw:t}}function A(e,t,n,s){if("number"!=typeof e)throw new Error('typeof value === "number" error: '+("Argument value must be of type number, given: "+r(e)||0));if(null!=t&&"boolean"!=typeof t)throw new Error('typeof nan === "boolean" error: '+("Argument nan must be of type boolean, given: "+r(t)||0));if(null!=n&&"boolean"!=typeof n)throw new Error('typeof inf === "boolean" error: '+("Argument inf must be of type boolean, given: "+r(n)||0));if("string"!=typeof s)throw new Error('typeof raw === "string" error: '+("Argument raw must be of type string, given: "+r(s)||0));var o={type:"FloatLiteral",value:e,raw:s};return!0===t&&(o.nan=!0),!0===n&&(o.inf=!0),o}function x(e,t,n){if("object"!==r(t)||void 0===t.length)throw new Error('typeof offset === "object" && typeof offset.length !== "undefined" error: unknown');if("object"!==r(n)||void 0===n.length)throw new Error('typeof funcs === "object" && typeof funcs.length !== "undefined" error: unknown');return{type:"Elem",table:e,offset:t,funcs:n}}function S(e){return{type:"IndexInFuncSection",index:e}}function _(e){return{type:"ValtypeLiteral",name:e}}function k(e,t){return{type:"TypeInstruction",id:e,functype:t}}function w(e){return{type:"Start",index:e}}function D(e,t){return{type:"GlobalType",valtype:e,mutability:t}}function M(e){if("string"!=typeof e)throw new Error('typeof value === "string" error: '+("Argument value must be of type string, given: "+r(e)||0));return{type:"LeadingComment",value:e}}function P(e){if("string"!=typeof e)throw new Error('typeof value === "string" error: '+("Argument value must be of type string, given: "+r(e)||0));return{type:"BlockComment",value:e}}function I(e,t,n){return{type:"Data",memoryIndex:e,offset:t,init:n}}function O(e,t,n){if("object"!==r(t)||void 0===t.length)throw new Error('typeof init === "object" && typeof init.length !== "undefined" error: unknown');return{type:"Global",globalType:e,init:t,name:n}}function R(e,t,n,s){if("Limit"!==t.type)throw new Error('limits.type === "Limit" error: '+("Argument limits must be of type Limit, given: "+t.type||0));if(null!=s&&("object"!==r(s)||void 0===s.length))throw new Error('typeof elements === "object" && typeof elements.length !== "undefined" error: unknown');var o={type:"Table",elementType:e,limits:t,name:n};return void 0!==s&&s.length>0&&(o.elements=s),o}function F(e,t){return{type:"Memory",limits:e,id:t}}function T(e,t){return{type:"FuncImportDescr",id:e,signature:t}}function N(e,t,n){if("string"!=typeof e)throw new Error('typeof module === "string" error: '+("Argument module must be of type string, given: "+r(e)||0));if("string"!=typeof t)throw new Error('typeof name === "string" error: '+("Argument name must be of type string, given: "+r(t)||0));return{type:"ModuleImport",module:e,name:t,descr:n}}function L(e,t){return{type:"ModuleExportDescr",exportType:e,id:t}}function G(e,t){if("string"!=typeof e)throw new Error('typeof name === "string" error: '+("Argument name must be of type string, given: "+r(e)||0));return{type:"ModuleExport",name:e,descr:t}}function H(e,t,n){if("number"!=typeof e)throw new Error('typeof min === "number" error: '+("Argument min must be of type number, given: "+r(e)||0));if(null!=t&&"number"!=typeof t)throw new Error('typeof max === "number" error: '+("Argument max must be of type number, given: "+r(t)||0));if(null!=n&&"boolean"!=typeof n)throw new Error('typeof shared === "boolean" error: '+("Argument shared must be of type boolean, given: "+r(n)||0));var s={type:"Limit",min:e};return void 0!==t&&(s.max=t),!0===n&&(s.shared=!0),s}function j(e,t){if("object"!==r(e)||void 0===e.length)throw new Error('typeof params === "object" && typeof params.length !== "undefined" error: unknown');if("object"!==r(t)||void 0===t.length)throw new Error('typeof results === "object" && typeof results.length !== "undefined" error: unknown');return{type:"Signature",params:e,results:t}}function U(e){if("object"!==r(e)||void 0===e.length)throw new Error('typeof body === "object" && typeof body.length !== "undefined" error: unknown');return{type:"Program",body:e}}function K(e,t){if("string"!=typeof e)throw new Error('typeof value === "string" error: '+("Argument value must be of type string, given: "+r(e)||0));if(null!=t&&"string"!=typeof t)throw new Error('typeof raw === "string" error: '+("Argument raw must be of type string, given: "+r(t)||0));var n={type:"Identifier",value:e};return void 0!==t&&(n.raw=t),n}function Q(e,t,n){if("object"!==r(t)||void 0===t.length)throw new Error('typeof instr === "object" && typeof instr.length !== "undefined" error: unknown');return{type:"BlockInstruction",id:"block",label:e,instr:t,result:n}}function J(e,t,n){if(null!=t&&("object"!==r(t)||void 0===t.length))throw new Error('typeof instrArgs === "object" && typeof instrArgs.length !== "undefined" error: unknown');var s={type:"CallInstruction",id:"call",index:e};return void 0!==t&&t.length>0&&(s.instrArgs=t),void 0!==n&&(s.numeric=n),s}function W(e,t){if(null!=t&&("object"!==r(t)||void 0===t.length))throw new Error('typeof intrs === "object" && typeof intrs.length !== "undefined" error: unknown');var n={type:"CallIndirectInstruction",id:"call_indirect",signature:e};return void 0!==t&&t.length>0&&(n.intrs=t),n}function V(e){if("object"!==r(e)||void 0===e.length)throw new Error('typeof values === "object" && typeof values.length !== "undefined" error: unknown');return{type:"ByteArray",values:e}}function z(e,t,n,s,o){if("object"!==r(n)||void 0===n.length)throw new Error('typeof body === "object" && typeof body.length !== "undefined" error: unknown');if(null!=s&&"boolean"!=typeof s)throw new Error('typeof isExternal === "boolean" error: '+("Argument isExternal must be of type boolean, given: "+r(s)||0));var i={type:"Func",name:e,signature:t,body:n};return!0===s&&(i.isExternal=!0),void 0!==o&&(i.metadata=o),i}function q(e){if("number"!=typeof e)throw new Error('typeof target === "number" error: '+("Argument target must be of type number, given: "+r(e)||0));return{type:"InternalBrUnless",target:e}}function $(e){if("number"!=typeof e)throw new Error('typeof target === "number" error: '+("Argument target must be of type number, given: "+r(e)||0));return{type:"InternalGoto",target:e}}function X(e){if("number"!=typeof e)throw new Error('typeof target === "number" error: '+("Argument target must be of type number, given: "+r(e)||0));return{type:"InternalCallExtern",target:e}}function Y(){return{type:"InternalEndAndReturn"}}n.r(t),n.d(t,{assertBinaryModule:()=>st,assertBlockComment:()=>xt,assertBlockInstruction:()=>Nt,assertByteArray:()=>Ht,assertCallIndirectInstruction:()=>Gt,assertCallInstruction:()=>Lt,assertData:()=>St,assertElem:()=>Ct,assertFloatLiteral:()=>mt,assertFunc:()=>jt,assertFuncImportDescr:()=>Dt,assertFunctionNameMetadata:()=>nt,assertGlobal:()=>_t,assertGlobalType:()=>Et,assertHasLoc:()=>Xn,assertIdentifier:()=>Tt,assertIfInstruction:()=>pt,assertIndexInFuncSection:()=>gt,assertInstr:()=>ut,assertInternalBrUnless:()=>Ut,assertInternalCallExtern:()=>Qt,assertInternalEndAndReturn:()=>Jt,assertInternalGoto:()=>Kt,assertLeadingComment:()=>At,assertLimit:()=>Ot,assertLocalNameMetadata:()=>rt,assertLongNumberLiteral:()=>ft,assertLoopInstruction:()=>ct,assertMemory:()=>wt,assertModule:()=>Ze,assertModuleExport:()=>It,assertModuleExportDescr:()=>Pt,assertModuleImport:()=>Mt,assertModuleMetadata:()=>et,assertModuleNameMetadata:()=>tt,assertNumberLiteral:()=>ht,assertProducerMetadata:()=>Bt,assertProducerMetadataVersionedName:()=>lt,assertProducersSectionMetadata:()=>at,assertProgram:()=>Ft,assertQuoteModule:()=>ot,assertSectionMetadata:()=>it,assertSignature:()=>Rt,assertStart:()=>bt,assertStringLiteral:()=>dt,assertTable:()=>kt,assertTypeInstruction:()=>vt,assertValtypeLiteral:()=>yt,binaryModule:()=>u,blockComment:()=>P,blockInstruction:()=>Q,byteArray:()=>V,callIndirectInstruction:()=>W,callInstruction:()=>J,cloneNode:()=>Br,data:()=>I,elem:()=>x,floatLiteral:()=>A,func:()=>z,funcImportDescr:()=>T,funcParam:()=>fn,functionNameMetadata:()=>l,getEndBlockByteOffset:()=>ir,getEndByteOffset:()=>sr,getEndOfSection:()=>Yn,getFunctionBeginingByteOffset:()=>or,getSectionMetadata:()=>Vn,getSectionMetadatas:()=>zn,getStartBlockByteOffset:()=>ar,getStartByteOffset:()=>rr,getUniqueNameGenerator:()=>nr,global:()=>O,globalType:()=>D,identifier:()=>K,ifInstruction:()=>y,indexInFuncSection:()=>S,indexLiteral:()=>mn,instr:()=>g,instruction:()=>un,internalBrUnless:()=>q,internalCallExtern:()=>X,internalEndAndReturn:()=>Y,internalGoto:()=>$,isAnonymous:()=>Wn,isBinaryModule:()=>se,isBlock:()=>Ve,isBlockComment:()=>xe,isBlockInstruction:()=>Ne,isByteArray:()=>He,isCallIndirectInstruction:()=>Ge,isCallInstruction:()=>Le,isData:()=>Se,isElem:()=>Ce,isExpression:()=>qe,isFloatLiteral:()=>me,isFunc:()=>je,isFuncImportDescr:()=>De,isFunctionNameMetadata:()=>ne,isGlobal:()=>_e,isGlobalType:()=>Ee,isIdentifier:()=>Te,isIfInstruction:()=>pe,isImportDescr:()=>Xe,isIndexInFuncSection:()=>ge,isInstr:()=>ue,isInstruction:()=>ze,isInternalBrUnless:()=>Ue,isInternalCallExtern:()=>Qe,isInternalEndAndReturn:()=>Je,isInternalGoto:()=>Ke,isIntrinsic:()=>Ye,isLeadingComment:()=>Ae,isLimit:()=>Oe,isLocalNameMetadata:()=>re,isLongNumberLiteral:()=>fe,isLoopInstruction:()=>ce,isMemory:()=>we,isModule:()=>Z,isModuleExport:()=>Ie,isModuleExportDescr:()=>Pe,isModuleImport:()=>Me,isModuleMetadata:()=>ee,isModuleNameMetadata:()=>te,isNode:()=>We,isNumberLiteral:()=>he,isNumericLiteral:()=>$e,isProducerMetadata:()=>Be,isProducerMetadataVersionedName:()=>le,isProducersSectionMetadata:()=>ae,isProgram:()=>Fe,isQuoteModule:()=>oe,isSectionMetadata:()=>ie,isSignature:()=>Re,isStart:()=>be,isStringLiteral:()=>de,isTable:()=>ke,isTypeInstruction:()=>ve,isValtypeLiteral:()=>ye,leadingComment:()=>M,limit:()=>H,localNameMetadata:()=>c,longNumberLiteral:()=>E,loopInstruction:()=>C,memIndexLiteral:()=>Cn,memory:()=>F,module:()=>i,moduleContextFromModuleAST:()=>lr,moduleExport:()=>G,moduleExportDescr:()=>L,moduleImport:()=>N,moduleMetadata:()=>a,moduleNameMetadata:()=>B,nodeAndUnionTypes:()=>Vt,numberLiteral:()=>b,numberLiteralFromRaw:()=>cn,objectInstruction:()=>pn,orderedInsertNode:()=>$n,producerMetadata:()=>f,producerMetadataVersionedName:()=>m,producersSectionMetadata:()=>h,program:()=>U,quoteModule:()=>p,sectionMetadata:()=>d,shiftLoc:()=>Zn,shiftSection:()=>er,signature:()=>j,signatureForOpcode:()=>tr,signatures:()=>Un,sortSectionMetadata:()=>qn,start:()=>w,stringLiteral:()=>v,table:()=>R,traverse:()=>Dn,typeInstruction:()=>k,unionTypesMap:()=>Wt,valtypeLiteral:()=>_,withLoc:()=>dn,withRaw:()=>hn});var Z=s("Module"),ee=s("ModuleMetadata"),te=s("ModuleNameMetadata"),ne=s("FunctionNameMetadata"),re=s("LocalNameMetadata"),se=s("BinaryModule"),oe=s("QuoteModule"),ie=s("SectionMetadata"),ae=s("ProducersSectionMetadata"),Be=s("ProducerMetadata"),le=s("ProducerMetadataVersionedName"),ce=s("LoopInstruction"),ue=s("Instr"),pe=s("IfInstruction"),de=s("StringLiteral"),he=s("NumberLiteral"),fe=s("LongNumberLiteral"),me=s("FloatLiteral"),Ce=s("Elem"),ge=s("IndexInFuncSection"),ye=s("ValtypeLiteral"),ve=s("TypeInstruction"),be=s("Start"),Ee=s("GlobalType"),Ae=s("LeadingComment"),xe=s("BlockComment"),Se=s("Data"),_e=s("Global"),ke=s("Table"),we=s("Memory"),De=s("FuncImportDescr"),Me=s("ModuleImport"),Pe=s("ModuleExportDescr"),Ie=s("ModuleExport"),Oe=s("Limit"),Re=s("Signature"),Fe=s("Program"),Te=s("Identifier"),Ne=s("BlockInstruction"),Le=s("CallInstruction"),Ge=s("CallIndirectInstruction"),He=s("ByteArray"),je=s("Func"),Ue=s("InternalBrUnless"),Ke=s("InternalGoto"),Qe=s("InternalCallExtern"),Je=s("InternalEndAndReturn"),We=function(e){return Z(e)||ee(e)||te(e)||ne(e)||re(e)||se(e)||oe(e)||ie(e)||ae(e)||Be(e)||le(e)||ce(e)||ue(e)||pe(e)||de(e)||he(e)||fe(e)||me(e)||Ce(e)||ge(e)||ye(e)||ve(e)||be(e)||Ee(e)||Ae(e)||xe(e)||Se(e)||_e(e)||ke(e)||we(e)||De(e)||Me(e)||Pe(e)||Ie(e)||Oe(e)||Re(e)||Fe(e)||Te(e)||Ne(e)||Le(e)||Ge(e)||He(e)||je(e)||Ue(e)||Ke(e)||Qe(e)||Je(e)},Ve=function(e){return ce(e)||Ne(e)||je(e)},ze=function(e){return ce(e)||ue(e)||pe(e)||ve(e)||Ne(e)||Le(e)||Ge(e)},qe=function(e){return ue(e)||de(e)||he(e)||fe(e)||me(e)||ye(e)||Te(e)},$e=function(e){return he(e)||fe(e)||me(e)},Xe=function(e){return Ee(e)||ke(e)||we(e)||De(e)},Ye=function(e){return Ue(e)||Ke(e)||Qe(e)||Je(e)},Ze=o("Module"),et=o("ModuleMetadata"),tt=o("ModuleNameMetadata"),nt=o("FunctionNameMetadata"),rt=o("LocalNameMetadata"),st=o("BinaryModule"),ot=o("QuoteModule"),it=o("SectionMetadata"),at=o("ProducersSectionMetadata"),Bt=o("ProducerMetadata"),lt=o("ProducerMetadataVersionedName"),ct=o("LoopInstruction"),ut=o("Instr"),pt=o("IfInstruction"),dt=o("StringLiteral"),ht=o("NumberLiteral"),ft=o("LongNumberLiteral"),mt=o("FloatLiteral"),Ct=o("Elem"),gt=o("IndexInFuncSection"),yt=o("ValtypeLiteral"),vt=o("TypeInstruction"),bt=o("Start"),Et=o("GlobalType"),At=o("LeadingComment"),xt=o("BlockComment"),St=o("Data"),_t=o("Global"),kt=o("Table"),wt=o("Memory"),Dt=o("FuncImportDescr"),Mt=o("ModuleImport"),Pt=o("ModuleExportDescr"),It=o("ModuleExport"),Ot=o("Limit"),Rt=o("Signature"),Ft=o("Program"),Tt=o("Identifier"),Nt=o("BlockInstruction"),Lt=o("CallInstruction"),Gt=o("CallIndirectInstruction"),Ht=o("ByteArray"),jt=o("Func"),Ut=o("InternalBrUnless"),Kt=o("InternalGoto"),Qt=o("InternalCallExtern"),Jt=o("InternalEndAndReturn"),Wt={Module:["Node"],ModuleMetadata:["Node"],ModuleNameMetadata:["Node"],FunctionNameMetadata:["Node"],LocalNameMetadata:["Node"],BinaryModule:["Node"],QuoteModule:["Node"],SectionMetadata:["Node"],ProducersSectionMetadata:["Node"],ProducerMetadata:["Node"],ProducerMetadataVersionedName:["Node"],LoopInstruction:["Node","Block","Instruction"],Instr:["Node","Expression","Instruction"],IfInstruction:["Node","Instruction"],StringLiteral:["Node","Expression"],NumberLiteral:["Node","NumericLiteral","Expression"],LongNumberLiteral:["Node","NumericLiteral","Expression"],FloatLiteral:["Node","NumericLiteral","Expression"],Elem:["Node"],IndexInFuncSection:["Node"],ValtypeLiteral:["Node","Expression"],TypeInstruction:["Node","Instruction"],Start:["Node"],GlobalType:["Node","ImportDescr"],LeadingComment:["Node"],BlockComment:["Node"],Data:["Node"],Global:["Node"],Table:["Node","ImportDescr"],Memory:["Node","ImportDescr"],FuncImportDescr:["Node","ImportDescr"],ModuleImport:["Node"],ModuleExportDescr:["Node"],ModuleExport:["Node"],Limit:["Node"],Signature:["Node"],Program:["Node"],Identifier:["Node","Expression"],BlockInstruction:["Node","Block","Instruction"],CallInstruction:["Node","Instruction"],CallIndirectInstruction:["Node","Instruction"],ByteArray:["Node"],Func:["Node","Block"],InternalBrUnless:["Node","Intrinsic"],InternalGoto:["Node","Intrinsic"],InternalCallExtern:["Node","Intrinsic"],InternalEndAndReturn:["Node","Intrinsic"]},Vt=["Module","ModuleMetadata","ModuleNameMetadata","FunctionNameMetadata","LocalNameMetadata","BinaryModule","QuoteModule","SectionMetadata","ProducersSectionMetadata","ProducerMetadata","ProducerMetadataVersionedName","LoopInstruction","Instr","IfInstruction","StringLiteral","NumberLiteral","LongNumberLiteral","FloatLiteral","Elem","IndexInFuncSection","ValtypeLiteral","TypeInstruction","Start","GlobalType","LeadingComment","BlockComment","Data","Global","Table","Memory","FuncImportDescr","ModuleImport","ModuleExportDescr","ModuleExport","Limit","Signature","Program","Identifier","BlockInstruction","CallInstruction","CallIndirectInstruction","ByteArray","Func","InternalBrUnless","InternalGoto","InternalCallExtern","InternalEndAndReturn","Node","Block","Instruction","Expression","NumericLiteral","ImportDescr","Intrinsic"],zt=n(68122),qt=n.n(zt);function $t(e){var t,n,r=(e=e.toUpperCase()).indexOf("P");-1!==r?(t=e.substring(0,r),n=parseInt(e.substring(r+1))):(t=e,n=0);var s=t.indexOf(".");if(-1!==s){var o=parseInt(t.substring(0,s),16),i=Math.sign(o);o*=i;var a=t.length-s-1,B=parseInt(t.substring(s+1),16),l=a>0?B/Math.pow(16,a):0;t=0===i?0===l?i:Object.is(i,-0)?-l:l:i*(o+l)}else t=parseInt(t,16);return t*(-1!==r?Math.pow(2,n):1)}var Xt=n(70436);function Yt(e){return ln(e)?$t(e):on(e)?"-"===e[0]?-1:1:an(e)?("-"===e[0]?-1:1)*(e.includes(":")?parseInt(e.substring(e.indexOf(":")+1),16):4194304):parseFloat(e)}function Zt(e){return ln(e)?$t(e):on(e)?"-"===e[0]?-1:1:an(e)?("-"===e[0]?-1:1)*(e.includes(":")?parseInt(e.substring(e.indexOf(":")+1),16):0x8000000000000):ln(e)?$t(e):parseFloat(e)}function en(e){var t=0;if(ln(e))t=~~parseInt(e,16);else{if(Bn(e))throw new Error("This number literal format is yet to be implemented.");t=parseInt(e,10)}return t}function tn(e){var t=en(e);if(0>t)throw new Xt.Hn("Illegal value for u32: "+e);return t}function nn(e){var t;if(ln(e))t=qt().fromString(e,!1,16);else{if(Bn(e))throw new Error("This number literal format is yet to be implemented.");t=qt().fromString(e)}return{high:t.high,low:t.low}}var rn=/^\+?-?nan/,sn=/^\+?-?inf/;function on(e){return sn.test(e.toLowerCase())}function an(e){return rn.test(e.toLowerCase())}function Bn(e){return!ln(e)&&e.toUpperCase().includes("E")}function ln(e){return"0X"===e.substring(0,2).toUpperCase()||"-0X"===e.substring(0,3).toUpperCase()}function cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"i32",n=e;if("string"==typeof e&&(e=e.replace(/_/g,"")),"number"==typeof e)return b(e,String(n));switch(t){case"i32":return b(en(e),String(n));case"u32":return b(tn(e),String(n));case"i64":return E(nn(e),String(n));case"f32":return A(Yt(e),an(e),on(e),String(n));default:return A(Zt(e),an(e),on(e),String(n))}}function un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return g(e,void 0,t,n)}function pn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return g(e,t,n,r)}function dn(e,t,n){var r={start:n,end:t};return e.loc=r,e}function hn(e,t){return e.raw=t,e}function fn(e,t){return{id:t,valtype:e}}function mn(e){return cn(e,"u32")}function Cn(e){return cn(e,"u32")}function gn(){return(gn=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function yn(e,t){var n=e.parentPath;if(null==n)throw new Error("node is root");for(var r=n;!1!==t(r);){if(null==r.parentPath)return null;r=r.parentPath}return r.node}function vn(e,t){return En(e,t)}function bn(e,t){return En(e,t,1)}function En(e,t){var n=e.node,r=e.inList,s=e.parentPath,o=e.parentKey,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!r)throw new Error("inList error: insert can only be used for nodes that are within lists");if(null==s)throw new Error("parentPath != null error: Can not remove root node");var a=s.node[o],B=a.findIndex((function(e){return e===n}));a.splice(B+i,0,t)}function An(e){var t=e.node,n=e.parentKey,r=e.parentPath;if(null==r)throw new Error("parentPath != null error: Can not remove root node");var s=r.node,o=s[n];Array.isArray(o)?s[n]=o.filter((function(e){return e!==t})):delete s[n],t._deleted=!0}function xn(e){e.shouldStop=!0}function Sn(e,t){var n=e.parentPath.node,r=n[e.parentKey];if(Array.isArray(r)){var s=r.findIndex((function(t){return t===e.node}));r.splice(s,1,t)}else n[e.parentKey]=t;e.node._deleted=!0,e.node=t}function _n(e){return function(e,t){var n=Object.keys(e),r={};return n.forEach((function(n){r[n]=e[n].bind(null,t)})),r}({findParent:yn,replaceWith:Sn,remove:An,insertBefore:vn,insertAfter:bn,stop:xn},e)}function kn(e,t){var n=!1;!function e(t,r){if(!n){var s=t.node;if(void 0!==s){if(!0!==s._deleted){var o=function(e){var t=gn({},e);return Object.assign(t,_n(t)),t}(t);r(s.type,o),o.shouldStop?n=!0:Object.keys(s).forEach((function(t){var n=s[t];null!=n&&(Array.isArray(n)?n:[n]).forEach((function(s){"string"==typeof s.type&&e({node:s,parentKey:t,parentPath:o,shouldStop:!1,inList:Array.isArray(n)},r)}))}))}}else console.warn("traversing with an empty context")}}(e,t)}var wn=function(){};function Dn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wn,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:wn;Object.keys(t).forEach((function(e){if(!Vt.includes(e))throw new Error("Unexpected visitor ".concat(e))}));var s={node:e,inList:!1,shouldStop:!1,parentPath:null,parentKey:null};kn(s,(function(e,s){"function"==typeof t[e]&&(n(e,s),t[e](s),r(e,s));var o=Wt[e];if(!o)throw new Error("Unexpected node type ".concat(e));o.forEach((function(e){"function"==typeof t[e]&&(n(e,s),t[e](s),r(e,s))}))}))}function Mn(e,t){return[e,t]}var Pn,In="u32",On="i32",Rn="i64",Fn="f32",Tn="f64",Nn={unreachable:Mn([],[]),nop:Mn([],[]),br:Mn([In],[]),br_if:Mn([In],[]),br_table:Mn((Pn=["u32"],Pn.vector=!0,Pn),[]),return:Mn([],[]),call:Mn([In],[]),call_indirect:Mn([In],[])},Ln={drop:Mn([],[]),select:Mn([],[])},Gn={get_local:Mn([In],[]),set_local:Mn([In],[]),tee_local:Mn([In],[]),get_global:Mn([In],[]),set_global:Mn([In],[])},Hn={"i32.load":Mn([In,In],[On]),"i64.load":Mn([In,In],[]),"f32.load":Mn([In,In],[]),"f64.load":Mn([In,In],[]),"i32.load8_s":Mn([In,In],[On]),"i32.load8_u":Mn([In,In],[On]),"i32.load16_s":Mn([In,In],[On]),"i32.load16_u":Mn([In,In],[On]),"i64.load8_s":Mn([In,In],[Rn]),"i64.load8_u":Mn([In,In],[Rn]),"i64.load16_s":Mn([In,In],[Rn]),"i64.load16_u":Mn([In,In],[Rn]),"i64.load32_s":Mn([In,In],[Rn]),"i64.load32_u":Mn([In,In],[Rn]),"i32.store":Mn([In,In],[]),"i64.store":Mn([In,In],[]),"f32.store":Mn([In,In],[]),"f64.store":Mn([In,In],[]),"i32.store8":Mn([In,In],[]),"i32.store16":Mn([In,In],[]),"i64.store8":Mn([In,In],[]),"i64.store16":Mn([In,In],[]),"i64.store32":Mn([In,In],[]),current_memory:Mn([],[]),grow_memory:Mn([],[])},jn={"i32.const":Mn([On],[On]),"i64.const":Mn([Rn],[Rn]),"f32.const":Mn([Fn],[Fn]),"f64.const":Mn([Tn],[Tn]),"i32.eqz":Mn([On],[On]),"i32.eq":Mn([On,On],[On]),"i32.ne":Mn([On,On],[On]),"i32.lt_s":Mn([On,On],[On]),"i32.lt_u":Mn([On,On],[On]),"i32.gt_s":Mn([On,On],[On]),"i32.gt_u":Mn([On,On],[On]),"i32.le_s":Mn([On,On],[On]),"i32.le_u":Mn([On,On],[On]),"i32.ge_s":Mn([On,On],[On]),"i32.ge_u":Mn([On,On],[On]),"i64.eqz":Mn([Rn],[Rn]),"i64.eq":Mn([Rn,Rn],[On]),"i64.ne":Mn([Rn,Rn],[On]),"i64.lt_s":Mn([Rn,Rn],[On]),"i64.lt_u":Mn([Rn,Rn],[On]),"i64.gt_s":Mn([Rn,Rn],[On]),"i64.gt_u":Mn([Rn,Rn],[On]),"i64.le_s":Mn([Rn,Rn],[On]),"i64.le_u":Mn([Rn,Rn],[On]),"i64.ge_s":Mn([Rn,Rn],[On]),"i64.ge_u":Mn([Rn,Rn],[On]),"f32.eq":Mn([Fn,Fn],[On]),"f32.ne":Mn([Fn,Fn],[On]),"f32.lt":Mn([Fn,Fn],[On]),"f32.gt":Mn([Fn,Fn],[On]),"f32.le":Mn([Fn,Fn],[On]),"f32.ge":Mn([Fn,Fn],[On]),"f64.eq":Mn([Tn,Tn],[On]),"f64.ne":Mn([Tn,Tn],[On]),"f64.lt":Mn([Tn,Tn],[On]),"f64.gt":Mn([Tn,Tn],[On]),"f64.le":Mn([Tn,Tn],[On]),"f64.ge":Mn([Tn,Tn],[On]),"i32.clz":Mn([On],[On]),"i32.ctz":Mn([On],[On]),"i32.popcnt":Mn([On],[On]),"i32.add":Mn([On,On],[On]),"i32.sub":Mn([On,On],[On]),"i32.mul":Mn([On,On],[On]),"i32.div_s":Mn([On,On],[On]),"i32.div_u":Mn([On,On],[On]),"i32.rem_s":Mn([On,On],[On]),"i32.rem_u":Mn([On,On],[On]),"i32.and":Mn([On,On],[On]),"i32.or":Mn([On,On],[On]),"i32.xor":Mn([On,On],[On]),"i32.shl":Mn([On,On],[On]),"i32.shr_s":Mn([On,On],[On]),"i32.shr_u":Mn([On,On],[On]),"i32.rotl":Mn([On,On],[On]),"i32.rotr":Mn([On,On],[On]),"i64.clz":Mn([Rn],[Rn]),"i64.ctz":Mn([Rn],[Rn]),"i64.popcnt":Mn([Rn],[Rn]),"i64.add":Mn([Rn,Rn],[Rn]),"i64.sub":Mn([Rn,Rn],[Rn]),"i64.mul":Mn([Rn,Rn],[Rn]),"i64.div_s":Mn([Rn,Rn],[Rn]),"i64.div_u":Mn([Rn,Rn],[Rn]),"i64.rem_s":Mn([Rn,Rn],[Rn]),"i64.rem_u":Mn([Rn,Rn],[Rn]),"i64.and":Mn([Rn,Rn],[Rn]),"i64.or":Mn([Rn,Rn],[Rn]),"i64.xor":Mn([Rn,Rn],[Rn]),"i64.shl":Mn([Rn,Rn],[Rn]),"i64.shr_s":Mn([Rn,Rn],[Rn]),"i64.shr_u":Mn([Rn,Rn],[Rn]),"i64.rotl":Mn([Rn,Rn],[Rn]),"i64.rotr":Mn([Rn,Rn],[Rn]),"f32.abs":Mn([Fn],[Fn]),"f32.neg":Mn([Fn],[Fn]),"f32.ceil":Mn([Fn],[Fn]),"f32.floor":Mn([Fn],[Fn]),"f32.trunc":Mn([Fn],[Fn]),"f32.nearest":Mn([Fn],[Fn]),"f32.sqrt":Mn([Fn],[Fn]),"f32.add":Mn([Fn,Fn],[Fn]),"f32.sub":Mn([Fn,Fn],[Fn]),"f32.mul":Mn([Fn,Fn],[Fn]),"f32.div":Mn([Fn,Fn],[Fn]),"f32.min":Mn([Fn,Fn],[Fn]),"f32.max":Mn([Fn,Fn],[Fn]),"f32.copysign":Mn([Fn,Fn],[Fn]),"f64.abs":Mn([Tn],[Tn]),"f64.neg":Mn([Tn],[Tn]),"f64.ceil":Mn([Tn],[Tn]),"f64.floor":Mn([Tn],[Tn]),"f64.trunc":Mn([Tn],[Tn]),"f64.nearest":Mn([Tn],[Tn]),"f64.sqrt":Mn([Tn],[Tn]),"f64.add":Mn([Tn,Tn],[Tn]),"f64.sub":Mn([Tn,Tn],[Tn]),"f64.mul":Mn([Tn,Tn],[Tn]),"f64.div":Mn([Tn,Tn],[Tn]),"f64.min":Mn([Tn,Tn],[Tn]),"f64.max":Mn([Tn,Tn],[Tn]),"f64.copysign":Mn([Tn,Tn],[Tn]),"i32.wrap/i64":Mn([Rn],[On]),"i32.trunc_s/f32":Mn([Fn],[On]),"i32.trunc_u/f32":Mn([Fn],[On]),"i32.trunc_s/f64":Mn([Fn],[On]),"i32.trunc_u/f64":Mn([Tn],[On]),"i64.extend_s/i32":Mn([On],[Rn]),"i64.extend_u/i32":Mn([On],[Rn]),"i64.trunc_s/f32":Mn([Fn],[Rn]),"i64.trunc_u/f32":Mn([Fn],[Rn]),"i64.trunc_s/f64":Mn([Tn],[Rn]),"i64.trunc_u/f64":Mn([Tn],[Rn]),"f32.convert_s/i32":Mn([On],[Fn]),"f32.convert_u/i32":Mn([On],[Fn]),"f32.convert_s/i64":Mn([Rn],[Fn]),"f32.convert_u/i64":Mn([Rn],[Fn]),"f32.demote/f64":Mn([Tn],[Fn]),"f64.convert_s/i32":Mn([On],[Tn]),"f64.convert_u/i32":Mn([On],[Tn]),"f64.convert_s/i64":Mn([Rn],[Tn]),"f64.convert_u/i64":Mn([Rn],[Tn]),"f64.promote/f32":Mn([Fn],[Tn]),"i32.reinterpret/f32":Mn([Fn],[On]),"i64.reinterpret/f64":Mn([Tn],[Rn]),"f32.reinterpret/i32":Mn([On],[Fn]),"f64.reinterpret/i64":Mn([Rn],[Tn])},Un=Object.assign({},Nn,Ln,Gn,Hn,jn),Kn=n(61447);function Qn(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,s=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(s)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Jn(e){return(Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wn(e){return""===e.raw}function Vn(e,t){var n;return Dn(e,{SectionMetadata:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var r=e.node;r.section===t&&(n=r)}))}),n}function zn(e,t){var n=[];return Dn(e,{SectionMetadata:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var r=e.node;r.section===t&&n.push(r)}))}),n}function qn(e){null!=e.metadata?e.metadata.sections.sort((function(e,t){var n=Kn.default.sections[e.section],r=Kn.default.sections[t.section];if("number"!=typeof n||"number"!=typeof r)throw new Error("Section id not found");return n-r})):console.warn("sortSectionMetadata: no metadata to sort")}function $n(e,t){Xn(t);var n=!1;"ModuleExport"!==t.type?(e.fields=e.fields.reduce((function(e,r){var s=1/0;return null!=r.loc&&(s=r.loc.end.column),!1===n&&t.loc.start.column<s&&(n=!0,e.push(t)),e.push(r),e}),[]),!1===n&&e.fields.push(t)):e.fields.push(t)}function Xn(e){if(null==e.loc||null==e.loc.start||null==e.loc.end)throw new Error("Internal failure: node (".concat(JSON.stringify(e.type),") has no location information"))}function Yn(e){return Xn(e.size),e.startOffset+e.size.value+(e.size.loc.end.column-e.size.loc.start.column)}function Zn(e,t){e.loc.start.column+=t,e.loc.end.column+=t}function er(e,t,n){if("SectionMetadata"!==t.type)throw new Error("Can not shift node "+JSON.stringify(t.type));t.startOffset+=n,"object"===Jn(t.size.loc)&&Zn(t.size,n),"object"===Jn(t.vectorOfSize)&&"object"===Jn(t.vectorOfSize.loc)&&Zn(t.vectorOfSize,n);var r=t.section;Dn(e,{Node:function(e){var t=e.node;(0,Kn.getSectionForNode)(t)===r&&"object"===Jn(t.loc)&&Zn(t,n)}})}function tr(e,t){var n=t;void 0!==e&&""!==e&&(n=e+"."+t);var r=Un[n];return null==r?[e,e]:r[0]}function nr(){var e={};return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"temp";return e[t]=t in e?e[t]+1:0,t+"_"+e[t]}}function rr(e){if(void 0===e.loc||void 0===e.loc.start)throw new Error("Can not get byte offset without loc informations, node: "+String(e.id));return e.loc.start.column}function sr(e){if(void 0===e.loc||void 0===e.loc.end)throw new Error("Can not get byte offset without loc informations, node: "+e.type);return e.loc.end.column}function or(e){if(0>=e.body.length)throw new Error("n.body.length > 0 error: unknown");return rr(Qn(e.body,1)[0])}function ir(e){if(0>=e.instr.length&&0>=e.body.length)throw new Error("n.instr.length > 0 || n.body.length > 0 error: unknown");var t;if(e.instr&&(t=e.instr[e.instr.length-1]),e.body&&(t=e.body[e.body.length-1]),"object"!==Jn(t))throw new Error('typeof lastInstruction === "object" error: unknown');return rr(t)}function ar(e){if(0>=e.instr.length&&0>=e.body.length)throw new Error("n.instr.length > 0 || n.body.length > 0 error: unknown");var t;if(e.instr&&(t=Qn(e.instr,1)[0]),e.body&&(t=Qn(e.body,1)[0]),"object"!==Jn(t))throw new Error('typeof fistInstruction === "object" error: unknown');return rr(t)}function Br(e){return Object.assign({},e)}function lr(e){var t=new cr;if("Module"!==e.type)throw new Error('m.type === "Module" error: unknown');return e.fields.forEach((function(e){switch(e.type){case"Start":t.setStart(e.index);break;case"TypeInstruction":t.addType(e);break;case"Func":t.addFunction(e);break;case"Global":t.defineGlobal(e);break;case"ModuleImport":switch(e.descr.type){case"GlobalType":t.importGlobal(e.descr.valtype,e.descr.mutability);break;case"Memory":t.addMemory(e.descr.limits.min,e.descr.limits.max);break;case"FuncImportDescr":t.importFunction(e.descr);break;case"Table":break;default:throw new Error("Unsupported ModuleImport of type "+JSON.stringify(e.descr.type))}break;case"Memory":t.addMemory(e.limits.min,e.limits.max)}})),t}var cr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.funcs=[],this.funcsOffsetByIdentifier=[],this.types=[],this.globals=[],this.globalsOffsetByIdentifier=[],this.mems=[],this.locals=[],this.labels=[],this.return=[],this.debugName="unknown",this.start=null}var t;return(t=[{key:"setStart",value:function(e){this.start=e.value}},{key:"getStart",value:function(){return this.start}},{key:"newContext",value:function(e,t){this.locals=[],this.labels=[t],this.return=t,this.debugName=e}},{key:"addFunction",value:function(e){var t=e.signature||{},n=t.params,r=void 0===n?[]:n,s=t.results,o=void 0===s?[]:s;r=r.map((function(e){return e.valtype})),this.funcs.push({args:r,result:o}),void 0!==e.name&&(this.funcsOffsetByIdentifier[e.name.value]=this.funcs.length-1)}},{key:"importFunction",value:function(e){if(Re(e.signature)){var t=e.signature,n=t.params,r=t.results;n=n.map((function(e){return e.valtype})),this.funcs.push({args:n,result:r})}else{if(!he(e.signature))throw new Error("isNumberLiteral(funcimport.signature) error: unknown");var s=e.signature.value;if(!this.hasType(s))throw new Error("this.hasType(typeId) error: unknown");var o=this.getType(s);this.funcs.push({args:o.params.map((function(e){return e.valtype})),result:o.results})}void 0!==e.id&&(this.funcsOffsetByIdentifier[e.id.value]=this.funcs.length-1)}},{key:"hasFunction",value:function(e){return void 0!==this.getFunction(e)}},{key:"getFunction",value:function(e){if("number"!=typeof e)throw new Error("getFunction only supported for number index");return this.funcs[e]}},{key:"getFunctionOffsetByIdentifier",value:function(e){if("string"!=typeof e)throw new Error('typeof name === "string" error: unknown');return this.funcsOffsetByIdentifier[e]}},{key:"addLabel",value:function(e){this.labels.unshift(e)}},{key:"hasLabel",value:function(e){return this.labels.length>e&&e>=0}},{key:"getLabel",value:function(e){return this.labels[e]}},{key:"popLabel",value:function(){this.labels.shift()}},{key:"hasLocal",value:function(e){return void 0!==this.getLocal(e)}},{key:"getLocal",value:function(e){return this.locals[e]}},{key:"addLocal",value:function(e){this.locals.push(e)}},{key:"addType",value:function(e){if("Signature"!==e.functype.type)throw new Error('type.functype.type === "Signature" error: unknown');this.types.push(e.functype)}},{key:"hasType",value:function(e){return void 0!==this.types[e]}},{key:"getType",value:function(e){return this.types[e]}},{key:"hasGlobal",value:function(e){return this.globals.length>e&&e>=0}},{key:"getGlobal",value:function(e){return this.globals[e].type}},{key:"getGlobalOffsetByIdentifier",value:function(e){if("string"!=typeof e)throw new Error('typeof name === "string" error: unknown');return this.globalsOffsetByIdentifier[e]}},{key:"defineGlobal",value:function(e){var t=e.globalType.valtype,n=e.globalType.mutability;this.globals.push({type:t,mutability:n}),void 0!==e.name&&(this.globalsOffsetByIdentifier[e.name.value]=this.globals.length-1)}},{key:"importGlobal",value:function(e,t){this.globals.push({type:e,mutability:t})}},{key:"isMutableGlobal",value:function(e){return"var"===this.globals[e].mutability}},{key:"isImmutableGlobal",value:function(e){return"const"===this.globals[e].mutability}},{key:"hasMemory",value:function(e){return this.mems.length>e&&e>=0}},{key:"addMemory",value:function(e,t){this.mems.push({min:e,max:t})}},{key:"getMemory",value:function(e){return this.mems[e]}}])&&function(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}()},20610:(e,t)=>{t.s=function(e){return Object.assign({},e)}},70436:(e,t,n)=>{function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Hn:()=>i});var i=function(e){function t(){return s(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Error),t}()},61447:(e,t,n)=>{function r(e){switch(e.type){case"ModuleImport":return"import";case"CallInstruction":case"CallIndirectInstruction":case"Func":case"Instr":return"code";case"ModuleExport":return"export";case"Start":return"start";case"TypeInstruction":return"type";case"IndexInFuncSection":return"func";case"Global":return"global";default:return}}n.r(t),n.d(t,{default:()=>m,getSectionForNode:()=>r});var s="illegal";function o(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n={},r=Object.keys(e),s=0,o=r.length;o>s;s++)n[t(e[r[s]])]=r[s];return n}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return{name:e,object:t,numberOfArgs:n}}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{name:e,numberOfArgs:t}}var B={0:"Func",1:"Table",2:"Mem",3:"Global"},l=o(B),c={127:"i32",126:"i64",125:"f32",124:"f64",123:"v128"},u=o(c),p=Object.assign({},c,{64:null,127:"i32",126:"i64",125:"f32",124:"f64"}),d={0:"const",1:"var"},h=o(d),f={0:a("unreachable"),1:a("nop"),2:a("block"),3:a("loop"),4:a("if"),5:a("else"),6:s,7:s,8:s,9:s,10:s,11:a("end"),12:a("br",1),13:a("br_if",1),14:a("br_table"),15:a("return"),16:a("call",1),17:a("call_indirect",2),18:s,19:s,20:s,21:s,22:s,23:s,24:s,25:s,26:a("drop"),27:a("select"),28:s,29:s,30:s,31:s,32:a("get_local",1),33:a("set_local",1),34:a("tee_local",1),35:a("get_global",1),36:a("set_global",1),37:s,38:s,39:s,40:i("load","u32",1),41:i("load","u64",1),42:i("load","f32",1),43:i("load","f64",1),44:i("load8_s","u32",1),45:i("load8_u","u32",1),46:i("load16_s","u32",1),47:i("load16_u","u32",1),48:i("load8_s","u64",1),49:i("load8_u","u64",1),50:i("load16_s","u64",1),51:i("load16_u","u64",1),52:i("load32_s","u64",1),53:i("load32_u","u64",1),54:i("store","u32",1),55:i("store","u64",1),56:i("store","f32",1),57:i("store","f64",1),58:i("store8","u32",1),59:i("store16","u32",1),60:i("store8","u64",1),61:i("store16","u64",1),62:i("store32","u64",1),63:i("current_memory"),64:i("grow_memory"),65:i("const","i32",1),66:i("const","i64",1),67:i("const","f32",1),68:i("const","f64",1),69:i("eqz","i32"),70:i("eq","i32"),71:i("ne","i32"),72:i("lt_s","i32"),73:i("lt_u","i32"),74:i("gt_s","i32"),75:i("gt_u","i32"),76:i("le_s","i32"),77:i("le_u","i32"),78:i("ge_s","i32"),79:i("ge_u","i32"),80:i("eqz","i64"),81:i("eq","i64"),82:i("ne","i64"),83:i("lt_s","i64"),84:i("lt_u","i64"),85:i("gt_s","i64"),86:i("gt_u","i64"),87:i("le_s","i64"),88:i("le_u","i64"),89:i("ge_s","i64"),90:i("ge_u","i64"),91:i("eq","f32"),92:i("ne","f32"),93:i("lt","f32"),94:i("gt","f32"),95:i("le","f32"),96:i("ge","f32"),97:i("eq","f64"),98:i("ne","f64"),99:i("lt","f64"),100:i("gt","f64"),101:i("le","f64"),102:i("ge","f64"),103:i("clz","i32"),104:i("ctz","i32"),105:i("popcnt","i32"),106:i("add","i32"),107:i("sub","i32"),108:i("mul","i32"),109:i("div_s","i32"),110:i("div_u","i32"),111:i("rem_s","i32"),112:i("rem_u","i32"),113:i("and","i32"),114:i("or","i32"),115:i("xor","i32"),116:i("shl","i32"),117:i("shr_s","i32"),118:i("shr_u","i32"),119:i("rotl","i32"),120:i("rotr","i32"),121:i("clz","i64"),122:i("ctz","i64"),123:i("popcnt","i64"),124:i("add","i64"),125:i("sub","i64"),126:i("mul","i64"),127:i("div_s","i64"),128:i("div_u","i64"),129:i("rem_s","i64"),130:i("rem_u","i64"),131:i("and","i64"),132:i("or","i64"),133:i("xor","i64"),134:i("shl","i64"),135:i("shr_s","i64"),136:i("shr_u","i64"),137:i("rotl","i64"),138:i("rotr","i64"),139:i("abs","f32"),140:i("neg","f32"),141:i("ceil","f32"),142:i("floor","f32"),143:i("trunc","f32"),144:i("nearest","f32"),145:i("sqrt","f32"),146:i("add","f32"),147:i("sub","f32"),148:i("mul","f32"),149:i("div","f32"),150:i("min","f32"),151:i("max","f32"),152:i("copysign","f32"),153:i("abs","f64"),154:i("neg","f64"),155:i("ceil","f64"),156:i("floor","f64"),157:i("trunc","f64"),158:i("nearest","f64"),159:i("sqrt","f64"),160:i("add","f64"),161:i("sub","f64"),162:i("mul","f64"),163:i("div","f64"),164:i("min","f64"),165:i("max","f64"),166:i("copysign","f64"),167:i("wrap/i64","i32"),168:i("trunc_s/f32","i32"),169:i("trunc_u/f32","i32"),170:i("trunc_s/f64","i32"),171:i("trunc_u/f64","i32"),172:i("extend_s/i32","i64"),173:i("extend_u/i32","i64"),174:i("trunc_s/f32","i64"),175:i("trunc_u/f32","i64"),176:i("trunc_s/f64","i64"),177:i("trunc_u/f64","i64"),178:i("convert_s/i32","f32"),179:i("convert_u/i32","f32"),180:i("convert_s/i64","f32"),181:i("convert_u/i64","f32"),182:i("demote/f64","f32"),183:i("convert_s/i32","f64"),184:i("convert_u/i32","f64"),185:i("convert_s/i64","f64"),186:i("convert_u/i64","f64"),187:i("promote/f32","f64"),188:i("reinterpret/f32","i32"),189:i("reinterpret/f64","i64"),190:i("reinterpret/i32","f32"),191:i("reinterpret/i64","f64"),65024:a("memory.atomic.notify",1),65025:a("memory.atomic.wait32",1),65026:a("memory.atomic.wait64",1),65040:i("atomic.load","i32",1),65041:i("atomic.load","i64",1),65042:i("atomic.load8_u","i32",1),65043:i("atomic.load16_u","i32",1),65044:i("atomic.load8_u","i64",1),65045:i("atomic.load16_u","i64",1),65046:i("atomic.load32_u","i64",1),65047:i("atomic.store","i32",1),65048:i("atomic.store","i64",1),65049:i("atomic.store8_u","i32",1),65050:i("atomic.store16_u","i32",1),65051:i("atomic.store8_u","i64",1),65052:i("atomic.store16_u","i64",1),65053:i("atomic.store32_u","i64",1),65054:i("atomic.rmw.add","i32",1),65055:i("atomic.rmw.add","i64",1),65056:i("atomic.rmw8_u.add_u","i32",1),65057:i("atomic.rmw16_u.add_u","i32",1),65058:i("atomic.rmw8_u.add_u","i64",1),65059:i("atomic.rmw16_u.add_u","i64",1),65060:i("atomic.rmw32_u.add_u","i64",1),65061:i("atomic.rmw.sub","i32",1),65062:i("atomic.rmw.sub","i64",1),65063:i("atomic.rmw8_u.sub_u","i32",1),65064:i("atomic.rmw16_u.sub_u","i32",1),65065:i("atomic.rmw8_u.sub_u","i64",1),65066:i("atomic.rmw16_u.sub_u","i64",1),65067:i("atomic.rmw32_u.sub_u","i64",1),65068:i("atomic.rmw.and","i32",1),65069:i("atomic.rmw.and","i64",1),65070:i("atomic.rmw8_u.and_u","i32",1),65071:i("atomic.rmw16_u.and_u","i32",1),65072:i("atomic.rmw8_u.and_u","i64",1),65073:i("atomic.rmw16_u.and_u","i64",1),65074:i("atomic.rmw32_u.and_u","i64",1),65075:i("atomic.rmw.or","i32",1),65076:i("atomic.rmw.or","i64",1),65077:i("atomic.rmw8_u.or_u","i32",1),65078:i("atomic.rmw16_u.or_u","i32",1),65079:i("atomic.rmw8_u.or_u","i64",1),65080:i("atomic.rmw16_u.or_u","i64",1),65081:i("atomic.rmw32_u.or_u","i64",1),65082:i("atomic.rmw.xor","i32",1),65083:i("atomic.rmw.xor","i64",1),65084:i("atomic.rmw8_u.xor_u","i32",1),65085:i("atomic.rmw16_u.xor_u","i32",1),65086:i("atomic.rmw8_u.xor_u","i64",1),65087:i("atomic.rmw16_u.xor_u","i64",1),65088:i("atomic.rmw32_u.xor_u","i64",1),65089:i("atomic.rmw.xchg","i32",1),65090:i("atomic.rmw.xchg","i64",1),65091:i("atomic.rmw8_u.xchg_u","i32",1),65092:i("atomic.rmw16_u.xchg_u","i32",1),65093:i("atomic.rmw8_u.xchg_u","i64",1),65094:i("atomic.rmw16_u.xchg_u","i64",1),65095:i("atomic.rmw32_u.xchg_u","i64",1),65096:i("atomic.rmw.cmpxchg","i32",1),65097:i("atomic.rmw.cmpxchg","i64",1),65098:i("atomic.rmw8_u.cmpxchg_u","i32",1),65099:i("atomic.rmw16_u.cmpxchg_u","i32",1),65100:i("atomic.rmw8_u.cmpxchg_u","i64",1),65101:i("atomic.rmw16_u.cmpxchg_u","i64",1),65102:i("atomic.rmw32_u.cmpxchg_u","i64",1)};const m={symbolsByByte:f,sections:{custom:0,type:1,import:2,func:3,table:4,memory:5,global:6,export:7,start:8,element:9,code:10,data:11},magicModuleHeader:[0,97,115,109],moduleVersion:[1,0,0,0],types:{func:96,result:64},valtypes:c,exportTypes:B,blockTypes:p,tableTypes:{112:"anyfunc"},globalTypes:d,importTypes:{0:"func",1:"table",2:"mem",3:"global"},valtypesByString:u,globalTypesByString:h,exportTypesByName:l,symbolsByName:o(f,(function(e){return"string"==typeof e.object?"".concat(e.object,".").concat(e.name):e.name}))}},50962:(e,t,n)=>{function r(e,t,n,r,s){var o,i,a=8*s-r-1,B=(1<<a)-1,l=B>>1,c=-7,u=n?s-1:0,p=n?-1:1,d=e[t+u];for(u+=p,o=d&(1<<-c)-1,d>>=-c,c+=a;c>0;o=256*o+e[t+u],u+=p,c-=8);for(i=o&(1<<-c)-1,o>>=-c,c+=r;c>0;i=256*i+e[t+u],u+=p,c-=8);if(0===o)o=1-l;else{if(o===B)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,r),o-=l}return(d?-1:1)*i*Math.pow(2,o-r)}function s(e,t,n,r,s,o){var i,a,B,l=8*o-s-1,c=(1<<l)-1,u=c>>1,p=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,f=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),1>t*(B=Math.pow(2,-i))&&(i--,B*=2),2>(t+=1>i+u?p*Math.pow(2,1-u):p/B)*B||(i++,B/=2),c>i+u?1>i+u?(a=t*Math.pow(2,u-1)*Math.pow(2,s),i=0):(a=(t*B-1)*Math.pow(2,s),i+=u):(a=0,i=c));s>=8;e[n+d]=255&a,d+=h,a/=256,s-=8);for(i=i<<s|a,l+=s;l>0;e[n+d]=255&i,d+=h,i/=256,l-=8);e[n+d-h]|=128*f}n.r(t),n.d(t,{DOUBLE_PRECISION_MANTISSA:()=>B,NUMBER_OF_BYTE_F32:()=>o,NUMBER_OF_BYTE_F64:()=>i,SINGLE_PRECISION_MANTISSA:()=>a,decodeF32:()=>u,decodeF64:()=>p,encodeF32:()=>l,encodeF64:()=>c});var o=4,i=8,a=23,B=52;function l(e){var t=[];return s(t,e,0,!0,a,o