Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yoga-wasm-web

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yoga-wasm-web - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

index.d.ts

3

dist/index.js

@@ -1,1 +0,2 @@

import i from"./entry.js";import o from"./yoga.mjs";function s(e,t){return t}async function c(e){let t=await o({instantiateWasm(r,a){return WebAssembly.instantiate(e,r).then(n=>{a(n.instance||n)}),{}},locateFile(){return""}});return i(s,t)}async function l(e){let t=await o({instantiateWasm(r,a){return WebAssembly.instantiateStreaming(e,r).then(n=>{a(n.instance||n)}),{}},locateFile(){return""}});return i(s,t)}export{c as default,l as initStreaming};
var Un=Object.create;var mt=Object.defineProperty;var Ln=Object.getOwnPropertyDescriptor;var Dn=Object.getOwnPropertyNames;var Wn=Object.getPrototypeOf,Vn=Object.prototype.hasOwnProperty;var Et=(T,l)=>()=>(l||T((l={exports:{}}).exports,l),l.exports);var Hn=(T,l,f,y)=>{if(l&&typeof l=="object"||typeof l=="function")for(let g of Dn(l))!Vn.call(T,g)&&g!==f&&mt(T,g,{get:()=>l[g],enumerable:!(y=Ln(l,g))||y.enumerable});return T};var Pt=(T,l,f)=>(f=T!=null?Un(Wn(T)):{},Hn(l||!T||!T.__esModule?mt(f,"default",{value:T,enumerable:!0}):f,T));var bt=Et((Bn,Ct)=>{var kn={ALIGN_COUNT:8,ALIGN_AUTO:0,ALIGN_FLEX_START:1,ALIGN_CENTER:2,ALIGN_FLEX_END:3,ALIGN_STRETCH:4,ALIGN_BASELINE:5,ALIGN_SPACE_BETWEEN:6,ALIGN_SPACE_AROUND:7,DIMENSION_COUNT:2,DIMENSION_WIDTH:0,DIMENSION_HEIGHT:1,DIRECTION_COUNT:3,DIRECTION_INHERIT:0,DIRECTION_LTR:1,DIRECTION_RTL:2,DISPLAY_COUNT:2,DISPLAY_FLEX:0,DISPLAY_NONE:1,EDGE_COUNT:9,EDGE_LEFT:0,EDGE_TOP:1,EDGE_RIGHT:2,EDGE_BOTTOM:3,EDGE_START:4,EDGE_END:5,EDGE_HORIZONTAL:6,EDGE_VERTICAL:7,EDGE_ALL:8,EXPERIMENTAL_FEATURE_COUNT:1,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:0,FLEX_DIRECTION_COUNT:4,FLEX_DIRECTION_COLUMN:0,FLEX_DIRECTION_COLUMN_REVERSE:1,FLEX_DIRECTION_ROW:2,FLEX_DIRECTION_ROW_REVERSE:3,GUTTER_COUNT:3,GUTTER_COLUMN:0,GUTTER_ROW:1,GUTTER_ALL:2,JUSTIFY_COUNT:6,JUSTIFY_FLEX_START:0,JUSTIFY_CENTER:1,JUSTIFY_FLEX_END:2,JUSTIFY_SPACE_BETWEEN:3,JUSTIFY_SPACE_AROUND:4,JUSTIFY_SPACE_EVENLY:5,LOG_LEVEL_COUNT:6,LOG_LEVEL_ERROR:0,LOG_LEVEL_WARN:1,LOG_LEVEL_INFO:2,LOG_LEVEL_DEBUG:3,LOG_LEVEL_VERBOSE:4,LOG_LEVEL_FATAL:5,MEASURE_MODE_COUNT:3,MEASURE_MODE_UNDEFINED:0,MEASURE_MODE_EXACTLY:1,MEASURE_MODE_AT_MOST:2,NODE_TYPE_COUNT:2,NODE_TYPE_DEFAULT:0,NODE_TYPE_TEXT:1,OVERFLOW_COUNT:3,OVERFLOW_VISIBLE:0,OVERFLOW_HIDDEN:1,OVERFLOW_SCROLL:2,POSITION_TYPE_COUNT:3,POSITION_TYPE_STATIC:0,POSITION_TYPE_RELATIVE:1,POSITION_TYPE_ABSOLUTE:2,PRINT_OPTIONS_COUNT:3,PRINT_OPTIONS_LAYOUT:1,PRINT_OPTIONS_STYLE:2,PRINT_OPTIONS_CHILDREN:4,UNIT_COUNT:4,UNIT_UNDEFINED:0,UNIT_POINT:1,UNIT_PERCENT:2,UNIT_AUTO:3,WRAP_COUNT:3,WRAP_NO_WRAP:0,WRAP_WRAP:1,WRAP_WRAP_REVERSE:2};Ct.exports=kn});var At=Et((Yn,wt)=>{var $=Pt(bt()),Me=class{left;right;top;bottom;width;height;constructor(l,f,y,g,Y,W){this.left=l,this.right=f,this.top=y,this.bottom=g,this.width=Y,this.height=W}fromJS(l){l(this.left,this.right,this.top,this.bottom,this.width,this.height)}toString(){return`<Layout#${this.left}:${this.right};${this.top}:${this.bottom};${this.width}:${this.height}>`}},oe=class{static fromJS({width:l,height:f}){return new oe(l,f)}width;height;constructor(l,f){this.width=l,this.height=f}fromJS(l){l(this.width,this.height)}toString(){return`<Size#${this.width}x${this.height}>`}},Pe=class{unit;value;constructor(l,f){this.unit=l,this.value=f}fromJS(l){l(this.unit,this.value)}toString(){switch(this.unit){case $.default.UNIT_POINT:return String(this.value);case $.default.UNIT_PERCENT:return`${this.value}%`;case $.default.UNIT_AUTO:return"auto";default:return`${this.value}?`}}valueOf(){return this.value}};function z(T,l,f){let y=T[l];T[l]=function(...g){return f.call(this,y,...g)}}wt.exports=(T,l)=>{for(let y of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding"]){let g={[$.default.UNIT_POINT]:l.Node.prototype[y],[$.default.UNIT_PERCENT]:l.Node.prototype[`${y}Percent`],[$.default.UNIT_AUTO]:l.Node.prototype[`${y}Auto`]};z(l.Node.prototype,y,function(Y,...W){let I=W.pop(),R,b;if(I==="auto")R=$.default.UNIT_AUTO,b=void 0;else if(I instanceof Pe)R=I.unit,b=I.valueOf();else if(R=typeof I=="string"&&I.endsWith("%")?$.default.UNIT_PERCENT:$.default.UNIT_POINT,b=parseFloat(I),!Number.isNaN(I)&&Number.isNaN(b))throw new Error(`Invalid value ${I} for ${y}`);if(!g[R])throw new Error(`Failed to execute "${y}": Unsupported unit '${I}'`);return b!==void 0?g[R].call(this,...W,b):g[R].call(this,...W)})}z(l.Config.prototype,"free",function(){l.Config.destroy(this)}),z(l.Node,"create",function(y,g){return g?l.Node.createWithConfig(g):l.Node.createDefault()}),z(l.Node.prototype,"free",function(){l.Node.destroy(this)}),z(l.Node.prototype,"freeRecursive",function(){for(let y=0,g=this.getChildCount();y<g;++y)this.getChild(0).freeRecursive();this.free()});function f(y){return l.MeasureCallback.implement({measure:y})}return z(l.Node.prototype,"setMeasureFunc",function(y,g){y.call(this,f(g))}),z(l.Node.prototype,"calculateLayout",function(y,g=NaN,Y=NaN,W=$.default.DIRECTION_LTR){return y.call(this,g,Y,W)}),{Config:l.Config,Node:l.Node,Layout:T("Layout",Me),Size:T("Size",oe),Value:T("Value",Pe),...$.default}}});var Ge=Pt(At(),1);var Mn=(()=>{var T=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(l){l=l||{};var f;f||(f=typeof l<"u"?l:{});var y,g;f.ready=new Promise(function(t,e){y=t,g=e});var Y=Object.assign({},f),W=[],I=!0,R=!1,b="";function It(t){return f.locateFile?f.locateFile(t,b):b+t}var $t,Rt,Ce,Nt;(I||R)&&(R?b=self.location.href:typeof document<"u"&&document.currentScript&&(b=document.currentScript.src),T&&(b=T),b.indexOf("blob:")!==0?b=b.substr(0,b.replace(/[?#].*/,"").lastIndexOf("/")+1):b="",$t=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},R&&(Ce=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),Rt=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{if(n.status==200||n.status==0&&n.response){e(n.response);return}r()},n.onerror=r,n.send(null)},Nt=t=>document.title=t);var St=console.log.bind(console),q=console.warn.bind(console);Object.assign(f,Y),Y=null;var Ft=4,se;typeof WebAssembly!="object"&&re("no native wasm support detected");var ue,Be=!1,Ut;function Lt(t,e){t||re(e)}function Ye(t,e,r){for(var n=e+r,i="";!(e>=n);){var o=t[e++];if(!o)return i;if(!(o&128)){i+=String.fromCharCode(o);continue}var s=t[e++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|s);continue}var a=t[e++]&63;if((o&240)==224?o=(o&15)<<12|s<<6|a:o=(o&7)<<18|s<<12|a<<6|t[e++]&63,o<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|u&1023)}}return i}function xe(t,e){return t?Ye(A,t,e):""}function Dt(t,e,r,n){if(!(n>0))return 0;for(var i=r,o=r+n-1,s=0;s<t.length;++s){var a=t.charCodeAt(s);if(a>=55296&&a<=57343){var u=t.charCodeAt(++s);a=65536+((a&1023)<<10)|u&1023}if(a<=127){if(r>=o)break;e[r++]=a}else if(a<=2047){if(r+1>=o)break;e[r++]=192|a>>6,e[r++]=128|a&63}else if(a<=65535){if(r+2>=o)break;e[r++]=224|a>>12,e[r++]=128|a>>6&63,e[r++]=128|a&63}else{if(r+3>=o)break;e[r++]=240|a>>18,e[r++]=128|a>>12&63,e[r++]=128|a>>6&63,e[r++]=128|a&63}}return e[r]=0,r-i}function Wt(t,e,r){return Dt(t,A,e,r)}function Vt(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++r):e+=3}return e}var be,j,A,x,fe,O,m,Xe,Je;function ze(t){be=t,f.HEAP8=j=new Int8Array(t),f.HEAP16=x=new Int16Array(t),f.HEAP32=O=new Int32Array(t),f.HEAPU8=A=new Uint8Array(t),f.HEAPU16=fe=new Uint16Array(t),f.HEAPU32=m=new Uint32Array(t),f.HEAPF32=Xe=new Float32Array(t),f.HEAPF64=Je=new Float64Array(t)}var qe,Ht=[],Ze=[],kt=[],Mt=!1;function jt(){Ae(Ht)}function Gt(){Mt=!0,Ae(Ze)}function Bt(){Ae(kt)}function Yt(t){Ze.unshift(t)}var ee=0,we=null,te=null;function xt(t){ee++}function Xt(t){if(ee--,ee==0&&(we!==null&&(clearInterval(we),we=null),te)){var e=te;te=null,e()}}function re(t){t="Aborted("+t+")",q(t),Be=!0,Ut=1,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw g(e),e}var Jt="data:application/octet-stream;base64,";function Ke(t){return t.startsWith(Jt)}var N;N="yoga.wasm",Ke(N)||(N=It(N));function Qe(t){try{if(t==N&&se)return new Uint8Array(se);if(Ce)return Ce(t);throw"both async and sync fetching of the wasm failed"}catch(e){re(e)}}function zt(){return!se&&(I||R)&&typeof fetch=="function"?fetch(N,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+N+"'";return t.arrayBuffer()}).catch(function(){return Qe(N)}):Promise.resolve().then(function(){return Qe(N)})}function qt(){var t={a:Rn};function e(s,a){var u=s.exports;f.asm=u,ue=f.asm.H,ze(ue.buffer),qe=f.asm.M,Yt(f.asm.I),Xt("wasm-instantiate")}xt("wasm-instantiate");function r(s){e(s.instance)}function n(s){return zt().then(function(a){return WebAssembly.instantiate(a,t)}).then(function(a){return a}).then(s,function(a){q("failed to asynchronously prepare wasm: "+a),re(a)})}function i(){return!se&&typeof WebAssembly.instantiateStreaming=="function"&&!Ke(N)&&typeof fetch=="function"?fetch(N,{credentials:"same-origin"}).then(function(s){var a=WebAssembly.instantiateStreaming(s,t);return a.then(r,function(u){return q("wasm streaming compile failed: "+u),q("falling back to ArrayBuffer instantiation"),n(r)})}):n(r)}if(f.instantiateWasm)try{var o=f.instantiateWasm(t,e);return o}catch(s){q("Module.instantiateWasm callback failed with error: "+s),g(s)}return i().catch(g),{}}function Ae(t){for(;t.length>0;)t.shift()(f)}function Zt(t){return me(t+24)+24}function Kt(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(e){m[this.ptr+4>>2]=e},this.get_type=function(){return m[this.ptr+4>>2]},this.set_destructor=function(e){m[this.ptr+8>>2]=e},this.get_destructor=function(){return m[this.ptr+8>>2]},this.set_refcount=function(e){O[this.ptr>>2]=e},this.set_caught=function(e){e=e?1:0,j[this.ptr+12>>0]=e},this.get_caught=function(){return j[this.ptr+12>>0]!=0},this.set_rethrown=function(e){e=e?1:0,j[this.ptr+13>>0]=e},this.get_rethrown=function(){return j[this.ptr+13>>0]!=0},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var e=O[this.ptr>>2];O[this.ptr>>2]=e+1},this.release_ref=function(){var e=O[this.ptr>>2];return O[this.ptr>>2]=e-1,e===1},this.set_adjusted_ptr=function(e){m[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return m[this.ptr+16>>2]},this.get_exception_ptr=function(){var e=pt(this.get_type());if(e)return m[this.excPtr>>2];var r=this.get_adjusted_ptr();return r!==0?r:this.excPtr}}var Qt=0,er=0;function tr(t,e,r){var n=new Kt(t);throw n.init(e,r),Qt=t,er++,t}var rr=48,nr=57;function et(t){if(t===void 0)return"_unknown";t=t.replace(/[^a-zA-Z0-9_]/g,"$");var e=t.charCodeAt(0);return e>=rr&&e<=nr?"_"+t:t}function ce(t,e){return t=et(t),function(){"use strict";return e.apply(this,arguments)}}var S=[{},{value:void 0},{value:null},{value:!0},{value:!1}],Oe=[];function le(t,e){var r=ce(e,function(n){this.name=e,this.message=n;var i=new Error(n).stack;i!==void 0&&(this.stack=this.toString()+`
`+i.replace(/^Error(:[^\n]*)?\n/,""))});return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},r}var Z=void 0;function h(t){throw new Z(t)}function ir(){for(var t=0,e=5;e<S.length;++e)S[e]!==void 0&&++t;return t}function ar(){for(var t=5;t<S.length;++t)if(S[t]!==void 0)return S[t];return null}function or(){f.count_emval_handles=ir,f.get_first_emval=ar}var V={toValue:t=>(t||h("Cannot use deleted val. handle = "+t),S[t].value),toHandle:t=>{switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:{var e=Oe.length?Oe.pop():S.length;return S[e]={refcount:1,value:t},e}}}},tt=void 0;function sr(){for(var t=new Array(256),e=0;e<256;++e)t[e]=String.fromCharCode(e);rt=t}var rt=void 0;function P(t){for(var e="",r=t;A[r];)e+=rt[A[r++]];return e}function ur(){return Object.keys(H).length}function fr(){var t=[];for(var e in H)H.hasOwnProperty(e)&&t.push(H[e]);return t}var ne=[];function Ie(){for(;ne.length;){var t=ne.pop();t.$$.deleteScheduled=!1,t.delete()}}var ie=void 0;function cr(t){ie=t,ne.length&&ie&&ie(Ie)}function lr(){f.getInheritedInstanceCount=ur,f.getLiveInheritedInstances=fr,f.flushPendingDeletes=Ie,f.setDelayFunction=cr}var H={};function $e(t,e){for(e===void 0&&h("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e}function dr(t,e,r){e=$e(t,e),H.hasOwnProperty(e)?h("Tried to register registered instance: "+e):H[e]=r}var X={};function nt(t){var e=vt(t),r=P(e);return M(e),r}function Re(t,e){var r=X[t];return r===void 0&&h(e+" has unknown type "+nt(t)),r}function _r(t,e){e=$e(t,e),H.hasOwnProperty(e)?delete H[e]:h("Tried to unregister unregistered instance: "+e)}function de(t){}var Ne=!1;function vr(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)}function it(t){t.count.value-=1;var e=t.count.value===0;e&&vr(t)}function at(t,e,r){if(e===r)return t;if(r.baseClass===void 0)return null;var n=at(t,e,r.baseClass);return n===null?null:r.downcast(n)}var ot={};function pr(t,e){return e=$e(t,e),H[e]}var st=void 0;function _e(t){throw new st(t)}function ve(t,e){(!e.ptrType||!e.ptr)&&_e("makeClassHandle requires ptr and ptrType");var r=!!e.smartPtrType,n=!!e.smartPtr;return r!==n&&_e("Both smartPtrType and smartPtr must be specified"),e.count={value:1},K(Object.create(t,{$$:{value:e}}))}function hr(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=pr(this.registeredClass,e);if(r!==void 0){if(r.$$.count.value===0)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var n=r.clone();return this.destructor(t),n}function i(){return this.isSmartPointer?ve(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):ve(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var o=this.registeredClass.getActualType(e),s=ot[o];if(!s)return i.call(this);var a;this.isConst?a=s.constPointerType:a=s.pointerType;var u=at(e,this.registeredClass,a.registeredClass);return u===null?i.call(this):this.isSmartPointer?ve(a.registeredClass.instancePrototype,{ptrType:a,ptr:u,smartPtrType:this,smartPtr:t}):ve(a.registeredClass.instancePrototype,{ptrType:a,ptr:u})}function K(t){return typeof FinalizationRegistry>"u"?(K=e=>e,t):(Ne=new FinalizationRegistry(e=>{it(e.$$)}),K=e=>{var r=e.$$,n=!!r.smartPtr;if(n){var i={$$:r};Ne.register(e,i,e)}return e},de=e=>Ne.unregister(e),K(t))}function gr(t,e,r){t=P(t),e=Re(e,"wrapper"),r=V.toValue(r);var n=[].slice,i=e.registeredClass,o=i.instancePrototype,s=i.baseClass,a=s.instancePrototype,u=i.baseClass.constructor,c=ce(t,function(){i.baseClass.pureVirtualFunctions.forEach(function(_){if(this[_]===a[_])throw new tt("Pure virtual function "+_+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:o}),this.__construct.apply(this,n.call(arguments))});o.__construct=function(){this===o&&h("Pass correct 'this' to __construct");var v=u.implement.apply(void 0,[this].concat(n.call(arguments)));de(v);var p=v.$$;v.notifyOnDestruction(),p.preservePointerOnDelete=!0,Object.defineProperties(this,{$$:{value:p}}),K(this),dr(i,p.ptr,this)},o.__destruct=function(){this===o&&h("Pass correct 'this' to __destruct"),de(this),_r(i,this.$$.ptr)},c.prototype=Object.create(o);for(var d in r)c.prototype[d]=r[d];return V.toHandle(c)}var pe={};function Se(t){for(;t.length;){var e=t.pop(),r=t.pop();r(e)}}function ae(t){return this.fromWireType(O[t>>2])}var Q={},he={};function G(t,e,r){t.forEach(function(a){he[a]=e});function n(a){var u=r(a);u.length!==t.length&&_e("Mismatched type converter count");for(var c=0;c<t.length;++c)U(t[c],u[c])}var i=new Array(e.length),o=[],s=0;e.forEach((a,u)=>{X.hasOwnProperty(a)?i[u]=X[a]:(o.push(a),Q.hasOwnProperty(a)||(Q[a]=[]),Q[a].push(()=>{i[u]=X[a],++s,s===o.length&&n(i)}))}),o.length===0&&n(i)}function yr(t){var e=pe[t];delete pe[t];var r=e.rawConstructor,n=e.rawDestructor,i=e.fields,o=i.map(s=>s.getterReturnType).concat(i.map(s=>s.setterArgumentType));G([t],o,s=>{var a={};return i.forEach((u,c)=>{var d=u.fieldName,_=s[c],v=u.getter,p=u.getterContext,E=s[c+i.length],C=u.setter,L=u.setterContext;a[d]={read:D=>_.fromWireType(v(p,D)),write:(D,J)=>{var w=[];C(L,D,E.toWireType(w,J)),Se(w)}}}),[{name:e.name,fromWireType:function(u){var c={};for(var d in a)c[d]=a[d].read(u);return n(u),c},toWireType:function(u,c){for(var d in a)if(!(d in c))throw new TypeError('Missing field: "'+d+'"');var _=r();for(d in a)a[d].write(_,c[d]);return u!==null&&u.push(n,_),_},argPackAdvance:8,readValueFromPointer:ae,destructorFunction:n}]})}function Tr(t,e,r,n,i){}function ge(t){switch(t){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+t)}}function U(t,e,r={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=e.name;if(t||h('type "'+n+'" must have a positive integer typeid pointer'),X.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;h("Cannot register type '"+n+"' twice")}if(X[t]=e,delete he[t],Q.hasOwnProperty(t)){var i=Q[t];delete Q[t],i.forEach(o=>o())}}function mr(t,e,r,n,i){var o=ge(r);e=P(e),U(t,{name:e,fromWireType:function(s){return!!s},toWireType:function(s,a){return a?n:i},argPackAdvance:8,readValueFromPointer:function(s){var a;if(r===1)a=j;else if(r===2)a=x;else if(r===4)a=O;else throw new TypeError("Unknown boolean type size: "+e);return this.fromWireType(a[s>>o])},destructorFunction:null})}function Er(t){if(!(this instanceof B)||!(t instanceof B))return!1;for(var e=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=t.$$.ptrType.registeredClass,i=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return e===n&&r===i}function Pr(t){return{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}}function Fe(t){function e(r){return r.$$.ptrType.registeredClass.name}h(e(t)+" instance already deleted")}function Cr(){if(this.$$.ptr||Fe(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=K(Object.create(Object.getPrototypeOf(this),{$$:{value:Pr(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t}function br(){this.$$.ptr||Fe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&h("Object already scheduled for deletion"),de(this),it(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function wr(){return!this.$$.ptr}function Ar(){return this.$$.ptr||Fe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&h("Object already scheduled for deletion"),ne.push(this),ne.length===1&&ie&&ie(Ie),this.$$.deleteScheduled=!0,this}function Or(){B.prototype.isAliasOf=Er,B.prototype.clone=Cr,B.prototype.delete=br,B.prototype.isDeleted=wr,B.prototype.deleteLater=Ar}function B(){}function Ue(t,e,r){if(t[e].overloadTable===void 0){var n=t[e];t[e]=function(){return t[e].overloadTable.hasOwnProperty(arguments.length)||h("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+t[e].overloadTable+")!"),t[e].overloadTable[arguments.length].apply(this,arguments)},t[e].overloadTable=[],t[e].overloadTable[n.argCount]=n}}function ut(t,e,r){f.hasOwnProperty(t)?((r===void 0||f[t].overloadTable!==void 0&&f[t].overloadTable[r]!==void 0)&&h("Cannot register public name '"+t+"' twice"),Ue(f,t,t),f.hasOwnProperty(r)&&h("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),f[t].overloadTable[r]=e):(f[t]=e,r!==void 0&&(f[t].numArguments=r))}function Ir(t,e,r,n,i,o,s,a){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=i,this.getActualType=o,this.upcast=s,this.downcast=a,this.pureVirtualFunctions=[]}function Le(t,e,r){for(;e!==r;)e.upcast||h("Expected null or instance of "+r.name+", got an instance of "+e.name),t=e.upcast(t),e=e.baseClass;return t}function $r(t,e){if(e===null)return this.isReference&&h("null is not a valid "+this.name),0;e.$$||h('Cannot pass "'+He(e)+'" as a '+this.name),e.$$.ptr||h("Cannot pass deleted object as a pointer of type "+this.name);var r=e.$$.ptrType.registeredClass,n=Le(e.$$.ptr,r,this.registeredClass);return n}function Rr(t,e){var r;if(e===null)return this.isReference&&h("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),t!==null&&t.push(this.rawDestructor,r),r):0;e.$$||h('Cannot pass "'+He(e)+'" as a '+this.name),e.$$.ptr||h("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&h("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);var n=e.$$.ptrType.registeredClass;if(r=Le(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&h("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:h("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var i=e.clone();r=this.rawShare(r,V.toHandle(function(){i.delete()})),t!==null&&t.push(this.rawDestructor,r)}break;default:h("Unsupporting sharing policy")}return r}function Nr(t,e){if(e===null)return this.isReference&&h("null is not a valid "+this.name),0;e.$$||h('Cannot pass "'+He(e)+'" as a '+this.name),e.$$.ptr||h("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&h("Cannot convert argument of type "+e.$$.ptrType.name+" to parameter type "+this.name);var r=e.$$.ptrType.registeredClass,n=Le(e.$$.ptr,r,this.registeredClass);return n}function Sr(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t}function Fr(t){this.rawDestructor&&this.rawDestructor(t)}function Ur(t){t!==null&&t.delete()}function Lr(){k.prototype.getPointee=Sr,k.prototype.destructor=Fr,k.prototype.argPackAdvance=8,k.prototype.readValueFromPointer=ae,k.prototype.deleteObject=Ur,k.prototype.fromWireType=hr}function k(t,e,r,n,i,o,s,a,u,c,d){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=n,this.isSmartPointer=i,this.pointeeType=o,this.sharingPolicy=s,this.rawGetPointee=a,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=d,!i&&e.baseClass===void 0?n?(this.toWireType=$r,this.destructorFunction=null):(this.toWireType=Nr,this.destructorFunction=null):this.toWireType=Rr}function Dr(t,e,r){f.hasOwnProperty(t)||_e("Replacing nonexistant public symbol"),f[t].overloadTable!==void 0&&r!==void 0?f[t].overloadTable[r]=e:(f[t]=e,f[t].argCount=r)}function Wr(t,e,r){var n=f["dynCall_"+t];return r&&r.length?n.apply(null,[e].concat(r)):n.call(null,e)}function ft(t){return qe.get(t)}function Vr(t,e,r){if(t.includes("j"))return Wr(t,e,r);var n=ft(e).apply(null,r);return n}function Hr(t,e){var r=[];return function(){return r.length=0,Object.assign(r,arguments),Vr(t,e,r)}}function F(t,e){t=P(t);function r(){return t.includes("j")?Hr(t,e):ft(e)}var n=r();return typeof n!="function"&&h("unknown function pointer with signature "+t+": "+e),n}var ct=void 0;function ye(t,e){var r=[],n={};function i(o){if(!n[o]&&!X[o]){if(he[o]){he[o].forEach(i);return}r.push(o),n[o]=!0}}throw e.forEach(i),new ct(t+": "+r.map(nt).join([", "]))}function kr(t,e,r,n,i,o,s,a,u,c,d,_,v){d=P(d),o=F(i,o),a&&(a=F(s,a)),c&&(c=F(u,c)),v=F(_,v);var p=et(d);ut(p,function(){ye("Cannot construct "+d+" due to unbound types",[n])}),G([t,e,r],n?[n]:[],function(E){E=E[0];var C,L;n?(C=E.registeredClass,L=C.instancePrototype):L=B.prototype;var D=ce(p,function(){if(Object.getPrototypeOf(this)!==J)throw new Z("Use 'new' to construct "+d);if(w.constructor_body===void 0)throw new Z(d+" has no accessible constructor");var Tt=w.constructor_body[arguments.length];if(Tt===void 0)throw new Z("Tried to invoke ctor of "+d+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(w.constructor_body).toString()+") parameters instead!");return Tt.apply(this,arguments)}),J=Object.create(L,{constructor:{value:D}});D.prototype=J;var w=new Ir(d,D,J,v,C,o,a,c),ke=new k(d,w,!0,!1,!1),gt=new k(d+"*",w,!1,!1,!1),yt=new k(d+" const*",w,!1,!0,!1);return ot[t]={pointerType:gt,constPointerType:yt},Dr(p,D),[ke,gt,yt]})}function De(t,e,r,n,i){var o=e.length;o<2&&h("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=e[1]!==null&&r!==null,a=!1,u=1;u<e.length;++u)if(e[u]!==null&&e[u].destructorFunction===void 0){a=!0;break}var c=e[0].name!=="void",d=o-2,_=new Array(d),v=[],p=[];return function(){arguments.length!==d&&h("function "+t+" called with "+arguments.length+" arguments, expected "+d+" args!"),p.length=0;var E;v.length=s?2:1,v[0]=i,s&&(E=e[1].toWireType(p,this),v[1]=E);for(var C=0;C<d;++C)_[C]=e[C+2].toWireType(p,arguments[C]),v.push(_[C]);var L=n.apply(null,v);function D(J){if(a)Se(p);else for(var w=s?1:2;w<e.length;w++){var ke=w===1?E:_[w-2];e[w].destructorFunction!==null&&e[w].destructorFunction(ke)}if(c)return e[0].fromWireType(J)}return D(L)}}function We(t,e){for(var r=[],n=0;n<t;n++)r.push(m[e+n*4>>2]);return r}function Mr(t,e,r,n,i,o,s){var a=We(r,n);e=P(e),o=F(i,o),G([],[t],function(u){u=u[0];var c=u.name+"."+e;function d(){ye("Cannot call "+c+" due to unbound types",a)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]);var _=u.registeredClass.constructor;return _[e]===void 0?(d.argCount=r-1,_[e]=d):(Ue(_,e,c),_[e].overloadTable[r-1]=d),G([],a,function(v){var p=[v[0],null].concat(v.slice(1)),E=De(c,p,null,o,s);return _[e].overloadTable===void 0?(E.argCount=r-1,_[e]=E):_[e].overloadTable[r-1]=E,[]}),[]})}function jr(t,e,r,n,i,o){Lt(e>0);var s=We(e,r);i=F(n,i),G([],[t],function(a){a=a[0];var u="constructor "+a.name;if(a.registeredClass.constructor_body===void 0&&(a.registeredClass.constructor_body=[]),a.registeredClass.constructor_body[e-1]!==void 0)throw new Z("Cannot register multiple constructors with identical number of parameters ("+(e-1)+") for class '"+a.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return a.registeredClass.constructor_body[e-1]=()=>{ye("Cannot construct "+a.name+" due to unbound types",s)},G([],s,function(c){return c.splice(1,0,null),a.registeredClass.constructor_body[e-1]=De(u,c,null,i,o),[]}),[]})}function Gr(t,e,r,n,i,o,s,a){var u=We(r,n);e=P(e),o=F(i,o),G([],[t],function(c){c=c[0];var d=c.name+"."+e;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),a&&c.registeredClass.pureVirtualFunctions.push(e);function _(){ye("Cannot call "+d+" due to unbound types",u)}var v=c.registeredClass.instancePrototype,p=v[e];return p===void 0||p.overloadTable===void 0&&p.className!==c.name&&p.argCount===r-2?(_.argCount=r-2,_.className=c.name,v[e]=_):(Ue(v,e,d),v[e].overloadTable[r-2]=_),G([],u,function(E){var C=De(d,E,c,o,s);return v[e].overloadTable===void 0?(C.argCount=r-2,v[e]=C):v[e].overloadTable[r-2]=C,[]}),[]})}function Ve(t){t>4&&--S[t].refcount===0&&(S[t]=void 0,Oe.push(t))}function Br(t,e){e=P(e),U(t,{name:e,fromWireType:function(r){var n=V.toValue(r);return Ve(r),n},toWireType:function(r,n){return V.toHandle(n)},argPackAdvance:8,readValueFromPointer:ae,destructorFunction:null})}function Yr(t,e,r){switch(e){case 0:return function(n){var i=r?j:A;return this.fromWireType(i[n])};case 1:return function(n){var i=r?x:fe;return this.fromWireType(i[n>>1])};case 2:return function(n){var i=r?O:m;return this.fromWireType(i[n>>2])};default:throw new TypeError("Unknown integer type: "+t)}}function xr(t,e,r,n){var i=ge(r);e=P(e);function o(){}o.values={},U(t,{name:e,constructor:o,fromWireType:function(s){return this.constructor.values[s]},toWireType:function(s,a){return a.value},argPackAdvance:8,readValueFromPointer:Yr(e,i,n),destructorFunction:null}),ut(e,o)}function Xr(t,e,r){var n=Re(t,"enum");e=P(e);var i=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:r},constructor:{value:ce(n.name+"_"+e,function(){})}});i.values[r]=o,i[e]=o}function He(t){if(t===null)return"null";var e=typeof t;return e==="object"||e==="array"||e==="function"?t.toString():""+t}function Jr(t,e){switch(e){case 2:return function(r){return this.fromWireType(Xe[r>>2])};case 3:return function(r){return this.fromWireType(Je[r>>3])};default:throw new TypeError("Unknown float type: "+t)}}function zr(t,e,r){var n=ge(r);e=P(e),U(t,{name:e,fromWireType:function(i){return i},toWireType:function(i,o){return o},argPackAdvance:8,readValueFromPointer:Jr(e,n),destructorFunction:null})}function qr(t,e,r){switch(e){case 0:return r?function(i){return j[i]}:function(i){return A[i]};case 1:return r?function(i){return x[i>>1]}:function(i){return fe[i>>1]};case 2:return r?function(i){return O[i>>2]}:function(i){return m[i>>2]};default:throw new TypeError("Unknown integer type: "+t)}}function Zr(t,e,r,n,i){e=P(e),i===-1&&(i=4294967295);var o=ge(r),s=_=>_;if(n===0){var a=32-8*r;s=_=>_<<a>>>a}var u=e.includes("unsigned"),c=(_,v)=>{},d;u?d=function(_,v){return c(v,this.name),v>>>0}:d=function(_,v){return c(v,this.name),v},U(t,{name:e,fromWireType:s,toWireType:d,argPackAdvance:8,readValueFromPointer:qr(e,o,n!==0),destructorFunction:null})}function Kr(t,e,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=n[e];function o(s){s=s>>2;var a=m,u=a[s],c=a[s+1];return new i(be,c,u)}r=P(r),U(t,{name:r,fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})}function Qr(t,e){e=P(e);var r=e==="std::string";U(t,{name:e,fromWireType:function(n){var i=m[n>>2],o=n+4,s;if(r)for(var a=o,u=0;u<=i;++u){var c=o+u;if(u==i||A[c]==0){var d=c-a,_=xe(a,d);s===void 0?s=_:(s+=String.fromCharCode(0),s+=_),a=c+1}}else{for(var v=new Array(i),u=0;u<i;++u)v[u]=String.fromCharCode(A[o+u]);s=v.join("")}return M(n),s},toWireType:function(n,i){i instanceof ArrayBuffer&&(i=new Uint8Array(i));var o,s=typeof i=="string";s||i instanceof Uint8Array||i instanceof Uint8ClampedArray||i instanceof Int8Array||h("Cannot pass non-string to std::string"),r&&s?o=Vt(i):o=i.length;var a=me(4+o+1),u=a+4;if(m[a>>2]=o,r&&s)Wt(i,u,o+1);else if(s)for(var c=0;c<o;++c){var d=i.charCodeAt(c);d>255&&(M(u),h("String has UTF-16 code units that do not fit in 8 bits")),A[u+c]=d}else for(var c=0;c<o;++c)A[u+c]=i[c];return n!==null&&n.push(M,a),a},argPackAdvance:8,readValueFromPointer:ae,destructorFunction:function(n){M(n)}})}function en(t,e){for(var r="",n=0;!(n>=e/2);++n){var i=x[t+n*2>>1];if(i==0)break;r+=String.fromCharCode(i)}return r}function tn(t,e,r){if(r===void 0&&(r=2147483647),r<2)return 0;r-=2;for(var n=e,i=r<t.length*2?r/2:t.length,o=0;o<i;++o){var s=t.charCodeAt(o);x[e>>1]=s,e+=2}return x[e>>1]=0,e-n}function rn(t){return t.length*2}function nn(t,e){for(var r=0,n="";!(r>=e/4);){var i=O[t+r*4>>2];if(i==0)break;if(++r,i>=65536){var o=i-65536;n+=String.fromCharCode(55296|o>>10,56320|o&1023)}else n+=String.fromCharCode(i)}return n}function an(t,e,r){if(r===void 0&&(r=2147483647),r<4)return 0;for(var n=e,i=n+r-4,o=0;o<t.length;++o){var s=t.charCodeAt(o);if(s>=55296&&s<=57343){var a=t.charCodeAt(++o);s=65536+((s&1023)<<10)|a&1023}if(O[e>>2]=s,e+=4,e+4>i)break}return O[e>>2]=0,e-n}function on(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&++r,e+=4}return e}function sn(t,e,r){r=P(r);var n,i,o,s,a;e===2?(n=en,i=tn,s=rn,o=()=>fe,a=1):e===4&&(n=nn,i=an,s=on,o=()=>m,a=2),U(t,{name:r,fromWireType:function(u){for(var c=m[u>>2],d=o(),_,v=u+4,p=0;p<=c;++p){var E=u+4+p*e;if(p==c||d[E>>a]==0){var C=E-v,L=n(v,C);_===void 0?_=L:(_+=String.fromCharCode(0),_+=L),v=E+e}}return M(u),_},toWireType:function(u,c){typeof c!="string"&&h("Cannot pass non-string to C++ string type "+r);var d=s(c),_=me(4+d+e);return m[_>>2]=d>>a,i(c,_+4,d+e),u!==null&&u.push(M,_),_},argPackAdvance:8,readValueFromPointer:ae,destructorFunction:function(u){M(u)}})}function un(t,e,r,n,i,o){pe[t]={name:P(e),rawConstructor:F(r,n),rawDestructor:F(i,o),fields:[]}}function fn(t,e,r,n,i,o,s,a,u,c){pe[t].fields.push({fieldName:P(e),getterReturnType:r,getter:F(n,i),getterContext:o,setterArgumentType:s,setter:F(a,u),setterContext:c})}function cn(t,e){e=P(e),U(t,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:function(){},toWireType:function(r,n){}})}function ln(t){var e=[];return m[t>>2]=V.toHandle(e),e}var dn={};function lt(t){var e=dn[t];return e===void 0?P(t):e}var Te=[];function _n(t,e,r,n,i){return t=Te[t],e=V.toValue(e),r=lt(r),t(e,r,ln(n),i)}function vn(t,e,r,n){t=Te[t],e=V.toValue(e),r=lt(r),t(e,r,null,n)}function pn(t){var e=Te.length;return Te.push(t),e}function hn(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=Re(m[e+n*Ft>>2],"parameter "+n);return r}var dt=[];function gn(t,e){var r=hn(t,e),n=r[0],i=n.name+"_$"+r.slice(1).map(function(u){return u.name}).join("_")+"$",o=dt[i];if(o!==void 0)return o;var s=new Array(t-1),a=(u,c,d,_)=>{for(var v=0,p=0;p<t-1;++p)s[p]=r[p+1].readValueFromPointer(_+v),v+=r[p+1].argPackAdvance;for(var E=u[c].apply(u,s),p=0;p<t-1;++p)r[p+1].deleteObject&&r[p+1].deleteObject(s[p]);if(!n.isVoid)return n.toWireType(d,E)};return o=pn(a),dt[i]=o,o}function yn(t){t>4&&(S[t].refcount+=1)}function Tn(t){var e=V.toValue(t);Se(e),Ve(t)}function mn(){re("")}function En(t,e,r){A.copyWithin(t,e,e+r)}function Pn(){return 2147483648}function Cn(t){try{return ue.grow(t-be.byteLength+65535>>>16),ze(ue.buffer),1}catch{}}function bn(t){var e=A.length;t=t>>>0;var r=Pn();if(t>r)return!1;let n=(u,c)=>u+(c-u%c)%c;for(var i=1;i<=4;i*=2){var o=e*(1+.2/i);o=Math.min(o,t+100663296);var s=Math.min(r,n(Math.max(t,o),65536)),a=Cn(s);if(a)return!0}return!1}var _t={varargs:void 0,get:function(){_t.varargs+=4;var t=O[_t.varargs-4>>2];return t},getStr:function(t){var e=xe(t);return e}};function wn(t){return 52}function An(t,e,r,n,i){return 70}var On=[null,[],[]];function In(t,e){var r=On[t];e===0||e===10?((t===1?St:q)(Ye(r,0)),r.length=0):r.push(e)}function $n(t,e,r,n){for(var i=0,o=0;o<r;o++){var s=m[e>>2],a=m[e+4>>2];e+=8;for(var u=0;u<a;u++)In(t,A[s+u]);i+=a}return m[n>>2]=i,0}Z=f.BindingError=le(Error,"BindingError"),or(),tt=f.PureVirtualError=le(Error,"PureVirtualError"),sr(),lr(),st=f.InternalError=le(Error,"InternalError"),Or(),Lr(),ct=f.UnboundTypeError=le(Error,"UnboundTypeError");var Rn={j:Zt,i:tr,s:gr,n:yr,v:Tr,B:mr,f:kr,e:Mr,o:jr,a:Gr,A:Br,m:xr,c:Xr,q:zr,d:Zr,b:Kr,r:Qr,l:sn,k:un,h:fn,C:cn,F:_n,G:vn,g:Ve,t:gn,D:yn,E:Tn,p:mn,x:En,w:bn,z:wn,u:An,y:$n},jn=qt(),Nn=f.___wasm_call_ctors=function(){return(Nn=f.___wasm_call_ctors=f.asm.I).apply(null,arguments)},vt=f.___getTypeName=function(){return(vt=f.___getTypeName=f.asm.J).apply(null,arguments)},Sn=f.__embind_initialize_bindings=function(){return(Sn=f.__embind_initialize_bindings=f.asm.K).apply(null,arguments)},me=f._malloc=function(){return(me=f._malloc=f.asm.L).apply(null,arguments)},M=f._free=function(){return(M=f._free=f.asm.N).apply(null,arguments)},pt=f.___cxa_is_pointer_type=function(){return(pt=f.___cxa_is_pointer_type=f.asm.O).apply(null,arguments)},Fn=f.dynCall_jiji=function(){return(Fn=f.dynCall_jiji=f.asm.P).apply(null,arguments)},Ee;te=function t(){Ee||ht(),Ee||(te=t)};function ht(t){if(t=t||W,ee>0||(jt(),ee>0))return;function e(){Ee||(Ee=!0,f.calledRun=!0,!Be&&(Gt(),y(f),Bt()))}e()}return ht(),l.ready}})(),je=Mn;function Ot(T,l){return l}async function Jn(T){let l=await je({instantiateWasm(f,y){return WebAssembly.instantiate(T,f).then(g=>{y(g.instance||g)}),{}},locateFile(){return""}});return(0,Ge.default)(Ot,l)}async function zn(T){let l=await je({instantiateWasm(f,y){return WebAssembly.instantiateStreaming(T,f).then(g=>{y(g.instance||g)}),{}},locateFile(){return""}});return(0,Ge.default)(Ot,l)}export{Jn as default,zn as initStreaming};
{
"name": "yoga-wasm-web",
"version": "0.1.2",
"version": "0.2.0",
"main": "dist/index.js",

@@ -16,2 +16,3 @@ "types": "index.d.ts",

"package.json",
"index.d.ts",
"LICENSE"

@@ -18,0 +19,0 @@ ],

@@ -5,3 +5,3 @@ # yoga-wasm-web

- Stick to bdc37b07971b645718d2d7400afa19d47056ef0f of Yoga that matches the `yoga-layout-prebuilt` package.
- Stick to commit 5dd33acc of Yoga, which supports `gap`.
- Fix missing `YGMeasureMode` binding.

@@ -17,2 +17,1 @@ - Fix missing `YGUnit` binding.

- Enable SIMD128.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc