UNPKG

satori

Version:

Enlightened library to convert HTML and CSS to SVG.

2 lines 241 kB
var xc=Object.create;var Dn=Object.defineProperty;var wc=Object.getOwnPropertyDescriptor;var Sc=Object.getOwnPropertyNames;var _c=Object.getPrototypeOf,Tc=Object.prototype.hasOwnProperty;var rr=(e,t)=>()=>(e&&(t=e(e=0)),t);var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Nr=(e,t)=>{for(var n in t)Dn(e,n,{get:t[n],enumerable:!0})},fa=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Sc(t))!Tc.call(e,i)&&i!==n&&Dn(e,i,{get:()=>t[i],enumerable:!(r=wc(t,i))||r.enumerable});return e};var Pt=(e,t,n)=>(n=e!=null?xc(_c(e)):{},fa(t||!e||!e.__esModule?Dn(n,"default",{value:e,enumerable:!0}):n,e)),Wr=e=>fa(Dn({},"__esModule",{value:!0}),e);var Ft,Ea,Oa,Br,Ri,Dt,vr,Fc,Un,Ci,yr,xr,Li,Pa,Mi,Ni,wt,Wi,Dc,Aa,Gn=rr(()=>{Ft=function(e){return e[e.Auto=0]="Auto",e[e.FlexStart=1]="FlexStart",e[e.Center=2]="Center",e[e.FlexEnd=3]="FlexEnd",e[e.Stretch=4]="Stretch",e[e.Baseline=5]="Baseline",e[e.SpaceBetween=6]="SpaceBetween",e[e.SpaceAround=7]="SpaceAround",e[e.SpaceEvenly=8]="SpaceEvenly",e}({}),Ea=function(e){return e[e.BorderBox=0]="BorderBox",e[e.ContentBox=1]="ContentBox",e}({}),Oa=function(e){return e[e.Width=0]="Width",e[e.Height=1]="Height",e}({}),Br=function(e){return e[e.Inherit=0]="Inherit",e[e.LTR=1]="LTR",e[e.RTL=2]="RTL",e}({}),Ri=function(e){return e[e.Flex=0]="Flex",e[e.None=1]="None",e[e.Contents=2]="Contents",e}({}),Dt=function(e){return e[e.Left=0]="Left",e[e.Top=1]="Top",e[e.Right=2]="Right",e[e.Bottom=3]="Bottom",e[e.Start=4]="Start",e[e.End=5]="End",e[e.Horizontal=6]="Horizontal",e[e.Vertical=7]="Vertical",e[e.All=8]="All",e}({}),vr=function(e){return e[e.None=0]="None",e[e.StretchFlexBasis=1]="StretchFlexBasis",e[e.AbsolutePositionWithoutInsetsExcludesPadding=2]="AbsolutePositionWithoutInsetsExcludesPadding",e[e.AbsolutePercentAgainstInnerSize=4]="AbsolutePercentAgainstInnerSize",e[e.All=2147483647]="All",e[e.Classic=2147483646]="Classic",e}({}),Fc=function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e}({}),Un=function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e}({}),Ci=function(e){return e[e.Column=0]="Column",e[e.Row=1]="Row",e[e.All=2]="All",e}({}),yr=function(e){return e[e.FlexStart=0]="FlexStart",e[e.Center=1]="Center",e[e.FlexEnd=2]="FlexEnd",e[e.SpaceBetween=3]="SpaceBetween",e[e.SpaceAround=4]="SpaceAround",e[e.SpaceEvenly=5]="SpaceEvenly",e}({}),xr=function(e){return e[e.Error=0]="Error",e[e.Warn=1]="Warn",e[e.Info=2]="Info",e[e.Debug=3]="Debug",e[e.Verbose=4]="Verbose",e[e.Fatal=5]="Fatal",e}({}),Li=function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e}({}),Pa=function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e}({}),Mi=function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e}({}),Ni=function(e){return e[e.Static=0]="Static",e[e.Relative=1]="Relative",e[e.Absolute=2]="Absolute",e}({}),wt=function(e){return e[e.Undefined=0]="Undefined",e[e.Point=1]="Point",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto",e}({}),Wi=function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e}({}),Dc={ALIGN_AUTO:Ft.Auto,ALIGN_FLEX_START:Ft.FlexStart,ALIGN_CENTER:Ft.Center,ALIGN_FLEX_END:Ft.FlexEnd,ALIGN_STRETCH:Ft.Stretch,ALIGN_BASELINE:Ft.Baseline,ALIGN_SPACE_BETWEEN:Ft.SpaceBetween,ALIGN_SPACE_AROUND:Ft.SpaceAround,ALIGN_SPACE_EVENLY:Ft.SpaceEvenly,BOX_SIZING_BORDER_BOX:Ea.BorderBox,BOX_SIZING_CONTENT_BOX:Ea.ContentBox,DIMENSION_WIDTH:Oa.Width,DIMENSION_HEIGHT:Oa.Height,DIRECTION_INHERIT:Br.Inherit,DIRECTION_LTR:Br.LTR,DIRECTION_RTL:Br.RTL,DISPLAY_FLEX:Ri.Flex,DISPLAY_NONE:Ri.None,DISPLAY_CONTENTS:Ri.Contents,EDGE_LEFT:Dt.Left,EDGE_TOP:Dt.Top,EDGE_RIGHT:Dt.Right,EDGE_BOTTOM:Dt.Bottom,EDGE_START:Dt.Start,EDGE_END:Dt.End,EDGE_HORIZONTAL:Dt.Horizontal,EDGE_VERTICAL:Dt.Vertical,EDGE_ALL:Dt.All,ERRATA_NONE:vr.None,ERRATA_STRETCH_FLEX_BASIS:vr.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:vr.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:vr.AbsolutePercentAgainstInnerSize,ERRATA_ALL:vr.All,ERRATA_CLASSIC:vr.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:Fc.WebFlexBasis,FLEX_DIRECTION_COLUMN:Un.Column,FLEX_DIRECTION_COLUMN_REVERSE:Un.ColumnReverse,FLEX_DIRECTION_ROW:Un.Row,FLEX_DIRECTION_ROW_REVERSE:Un.RowReverse,GUTTER_COLUMN:Ci.Column,GUTTER_ROW:Ci.Row,GUTTER_ALL:Ci.All,JUSTIFY_FLEX_START:yr.FlexStart,JUSTIFY_CENTER:yr.Center,JUSTIFY_FLEX_END:yr.FlexEnd,JUSTIFY_SPACE_BETWEEN:yr.SpaceBetween,JUSTIFY_SPACE_AROUND:yr.SpaceAround,JUSTIFY_SPACE_EVENLY:yr.SpaceEvenly,LOG_LEVEL_ERROR:xr.Error,LOG_LEVEL_WARN:xr.Warn,LOG_LEVEL_INFO:xr.Info,LOG_LEVEL_DEBUG:xr.Debug,LOG_LEVEL_VERBOSE:xr.Verbose,LOG_LEVEL_FATAL:xr.Fatal,MEASURE_MODE_UNDEFINED:Li.Undefined,MEASURE_MODE_EXACTLY:Li.Exactly,MEASURE_MODE_AT_MOST:Li.AtMost,NODE_TYPE_DEFAULT:Pa.Default,NODE_TYPE_TEXT:Pa.Text,OVERFLOW_VISIBLE:Mi.Visible,OVERFLOW_HIDDEN:Mi.Hidden,OVERFLOW_SCROLL:Mi.Scroll,POSITION_TYPE_STATIC:Ni.Static,POSITION_TYPE_RELATIVE:Ni.Relative,POSITION_TYPE_ABSOLUTE:Ni.Absolute,UNIT_UNDEFINED:wt.Undefined,UNIT_POINT:wt.Point,UNIT_PERCENT:wt.Percent,UNIT_AUTO:wt.Auto,WRAP_NO_WRAP:Wi.NoWrap,WRAP_WRAP:Wi.Wrap,WRAP_WRAP_REVERSE:Wi.WrapReverse},Aa=Dc});function Fi(e){function t(i,o,s){let a=i[o];i[o]=function(){for(var u=arguments.length,f=new Array(u),l=0;l<u;l++)f[l]=arguments[l];return s.call(this,a,...f)}}for(let i of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){let o={[wt.Point]:e.Node.prototype[i],[wt.Percent]:e.Node.prototype[`${i}Percent`],[wt.Auto]:e.Node.prototype[`${i}Auto`]};t(e.Node.prototype,i,function(s){for(var a=arguments.length,u=new Array(a>1?a-1:0),f=1;f<a;f++)u[f-1]=arguments[f];let l=u.pop(),p,h;if(l==="auto")p=wt.Auto,h=void 0;else if(typeof l=="object")p=l.unit,h=l.valueOf();else if(p=typeof l=="string"&&l.endsWith("%")?wt.Percent:wt.Point,h=parseFloat(l),l!==void 0&&!Number.isNaN(l)&&Number.isNaN(h))throw new Error(`Invalid value ${l} for ${i}`);if(!o[p])throw new Error(`Failed to execute "${i}": Unsupported unit '${l}'`);return h!==void 0?o[p].call(this,...u,h):o[p].call(this,...u)})}function n(i){return e.MeasureCallback.implement({measure:function(){let{width:o,height:s}=i(...arguments);return{width:o??NaN,height:s??NaN}}})}t(e.Node.prototype,"setMeasureFunc",function(i,o){return o?i.call(this,n(o)):this.unsetMeasureFunc()});function r(i){return e.DirtiedCallback.implement({dirtied:i})}return t(e.Node.prototype,"setDirtiedFunc",function(i,o){i.call(this,r(o))}),t(e.Config.prototype,"free",function(){e.Config.destroy(this)}),t(e.Node,"create",(i,o)=>o?e.Node.createWithConfig(o):e.Node.createDefault()),t(e.Node.prototype,"free",function(){e.Node.destroy(this)}),t(e.Node.prototype,"freeRecursive",function(){for(let i=0,o=this.getChildCount();i<o;++i)this.getChild(0).freeRecursive();this.free()}),t(e.Node.prototype,"calculateLayout",function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Br.LTR;return i.call(this,o,s,a)}),{Config:e.Config,Node:e.Node,...Aa}}var Ia=rr(()=>{Gn();Gn()});var Ca={};Nr(Ca,{default:()=>Bc});function Bc(e){e=e||{};var t;t||(t=typeof e<"u"?e:{});var n,r;t.ready=new Promise(function(c,d){n=c,r=d});var i=Object.assign({},t),o="";typeof document<"u"&&document.currentScript&&(o=document.currentScript.src),Ra&&(o=Ra),o.indexOf("blob:")!==0?o=o.substr(0,o.replace(/[?#].*/,"").lastIndexOf("/")+1):o="";var s=t.print||console.log.bind(console),a=t.printErr||console.warn.bind(console);Object.assign(t,i),i=null;var u;t.wasmBinary&&(u=t.wasmBinary);var f=t.noExitRuntime||!0;typeof WebAssembly!="object"&&Z("no native wasm support detected");var l,p=!1;function h(c,d,g){g=d+g;for(var v="";!(d>=g);){var x=c[d++];if(!x)break;if(x&128){var E=c[d++]&63;if((x&224)==192)v+=String.fromCharCode((x&31)<<6|E);else{var A=c[d++]&63;x=(x&240)==224?(x&15)<<12|E<<6|A:(x&7)<<18|E<<12|A<<6|c[d++]&63,65536>x?v+=String.fromCharCode(x):(x-=65536,v+=String.fromCharCode(55296|x>>10,56320|x&1023))}}else v+=String.fromCharCode(x)}return v}var m,b,y,T,k,P,w,S,O;function I(){var c=l.buffer;m=c,t.HEAP8=b=new Int8Array(c),t.HEAP16=T=new Int16Array(c),t.HEAP32=P=new Int32Array(c),t.HEAPU8=y=new Uint8Array(c),t.HEAPU16=k=new Uint16Array(c),t.HEAPU32=w=new Uint32Array(c),t.HEAPF32=S=new Float32Array(c),t.HEAPF64=O=new Float64Array(c)}var F,q=[],V=[],de=[];function Ae(){var c=t.preRun.shift();q.unshift(c)}var me=0,ue=null,Ie=null;function Z(c){throw t.onAbort&&t.onAbort(c),c="Aborted("+c+")",a(c),p=!0,c=new WebAssembly.RuntimeError(c+". Build with -sASSERTIONS for more info."),r(c),c}function ne(c){return c.startsWith("data:application/octet-stream;base64,")}var ke="";if(!ne(ke)){var ve=ke;ke=t.locateFile?t.locateFile(ve,o):o+ve}function Re(){var c=ke;try{if(c==ke&&u)return new Uint8Array(u);if(ne(c))try{var d=vc(c.slice(37)),g=new Uint8Array(d.length);for(c=0;c<d.length;++c)g[c]=d.charCodeAt(c);var v=g}catch{throw Error("Converting base64 string to bytes failed.")}else v=void 0;var x=v;if(x)return x;throw"both async and sync fetching of the wasm failed"}catch(E){Z(E)}}function Ee(){return u||typeof fetch!="function"?Promise.resolve().then(function(){return Re()}):fetch(ke,{credentials:"same-origin"}).then(function(c){if(!c.ok)throw"failed to load wasm binary file at '"+ke+"'";return c.arrayBuffer()}).catch(function(){return Re()})}function Ye(c){for(;0<c.length;)c.shift()(t)}function Me(c){if(c===void 0)return"_unknown";c=c.replace(/[^a-zA-Z0-9_]/g,"$");var d=c.charCodeAt(0);return 48<=d&&57>=d?"_"+c:c}function Oe(c,d){return c=Me(c),function(){return d.apply(this,arguments)}}var le=[{},{value:void 0},{value:null},{value:!0},{value:!1}],H=[];function J(c){var d=Error,g=Oe(c,function(v){this.name=c,this.message=v,v=Error(v).stack,v!==void 0&&(this.stack=this.toString()+` `+v.replace(/^Error(:[^\n]*)?\n/,""))});return g.prototype=Object.create(d.prototype),g.prototype.constructor=g,g.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},g}var pe=void 0;function G(c){throw new pe(c)}var Le=c=>(c||G("Cannot use deleted val. handle = "+c),le[c].value),De=c=>{switch(c){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var d=H.length?H.pop():le.length;return le[d]={ga:1,value:c},d}},Ue=void 0,$e=void 0;function ie(c){for(var d="";y[c];)d+=$e[y[c++]];return d}var Tt=[];function Ut(){for(;Tt.length;){var c=Tt.pop();c.M.$=!1,c.delete()}}var kt=void 0,Ne={};function cr(c,d){for(d===void 0&&G("ptr should not be undefined");c.R;)d=c.ba(d),c=c.R;return d}var Et={};function Ir(c){c=sa(c);var d=ie(c);return Mt(c),d}function Kt(c,d){var g=Et[c];return g===void 0&&G(d+" has unknown type "+Ir(c)),g}function dr(){}var pr=!1;function Jt(c){--c.count.value,c.count.value===0&&(c.T?c.U.W(c.T):c.P.N.W(c.O))}function Ot(c,d,g){return d===g?c:g.R===void 0?null:(c=Ot(c,d,g.R),c===null?null:g.na(c))}var pt={};function nt(c,d){return d=cr(c,d),Ne[d]}var Zt=void 0;function Xe(c){throw new Zt(c)}function ht(c,d){return d.P&&d.O||Xe("makeClassHandle requires ptr and ptrType"),!!d.U!=!!d.T&&Xe("Both smartPtrType and smartPtr must be specified"),d.count={value:1},mt(Object.create(c,{M:{value:d}}))}function mt(c){return typeof FinalizationRegistry>"u"?(mt=d=>d,c):(pr=new FinalizationRegistry(d=>{Jt(d.M)}),mt=d=>{var g=d.M;return g.T&&pr.register(d,{M:g},d),d},dr=d=>{pr.unregister(d)},mt(c))}var er={};function Gt(c){for(;c.length;){var d=c.pop();c.pop()(d)}}function Ge(c){return this.fromWireType(P[c>>2])}var it={},Ze={};function gt(c,d,g){function v(R){R=g(R),R.length!==c.length&&Xe("Mismatched type converter count");for(var N=0;N<c.length;++N)j(c[N],R[N])}c.forEach(function(R){Ze[R]=d});var x=Array(d.length),E=[],A=0;d.forEach((R,N)=>{Et.hasOwnProperty(R)?x[N]=Et[R]:(E.push(R),it.hasOwnProperty(R)||(it[R]=[]),it[R].push(()=>{x[N]=Et[R],++A,A===E.length&&v(x)}))}),E.length===0&&v(x)}function Y(c){switch(c){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+c)}}function j(c,d,g={}){if(!("argPackAdvance"in d))throw new TypeError("registerType registeredInstance requires argPackAdvance");var v=d.name;if(c||G('type "'+v+'" must have a positive integer typeid pointer'),Et.hasOwnProperty(c)){if(g.ua)return;G("Cannot register type '"+v+"' twice")}Et[c]=d,delete Ze[c],it.hasOwnProperty(c)&&(d=it[c],delete it[c],d.forEach(x=>x()))}function fe(c){G(c.M.P.N.name+" instance already deleted")}function K(){}function ye(c,d,g){if(c[d].S===void 0){var v=c[d];c[d]=function(){return c[d].S.hasOwnProperty(arguments.length)||G("Function '"+g+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+c[d].S+")!"),c[d].S[arguments.length].apply(this,arguments)},c[d].S=[],c[d].S[v.Z]=v}}function ae(c,d){t.hasOwnProperty(c)?(G("Cannot register public name '"+c+"' twice"),ye(t,c,c),t.hasOwnProperty(void 0)&&G("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),t[c].S[void 0]=d):t[c]=d}function xe(c,d,g,v,x,E,A,R){this.name=c,this.constructor=d,this.X=g,this.W=v,this.R=x,this.pa=E,this.ba=A,this.na=R,this.ja=[]}function ee(c,d,g){for(;d!==g;)d.ba||G("Expected null or instance of "+g.name+", got an instance of "+d.name),c=d.ba(c),d=d.R;return c}function te(c,d){return d===null?(this.ea&&G("null is not a valid "+this.name),0):(d.M||G('Cannot pass "'+et(d)+'" as a '+this.name),d.M.O||G("Cannot pass deleted object as a pointer of type "+this.name),ee(d.M.O,d.M.P.N,this.N))}function ot(c,d){if(d===null){if(this.ea&&G("null is not a valid "+this.name),this.da){var g=this.fa();return c!==null&&c.push(this.W,g),g}return 0}if(d.M||G('Cannot pass "'+et(d)+'" as a '+this.name),d.M.O||G("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&d.M.P.ca&&G("Cannot convert argument of type "+(d.M.U?d.M.U.name:d.M.P.name)+" to parameter type "+this.name),g=ee(d.M.O,d.M.P.N,this.N),this.da)switch(d.M.T===void 0&&G("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:d.M.U===this?g=d.M.T:G("Cannot convert argument of type "+(d.M.U?d.M.U.name:d.M.P.name)+" to parameter type "+this.name);break;case 1:g=d.M.T;break;case 2:if(d.M.U===this)g=d.M.T;else{var v=d.clone();g=this.xa(g,De(function(){v.delete()})),c!==null&&c.push(this.W,g)}break;default:G("Unsupporting sharing policy")}return g}function Q(c,d){return d===null?(this.ea&&G("null is not a valid "+this.name),0):(d.M||G('Cannot pass "'+et(d)+'" as a '+this.name),d.M.O||G("Cannot pass deleted object as a pointer of type "+this.name),d.M.P.ca&&G("Cannot convert argument of type "+d.M.P.name+" to parameter type "+this.name),ee(d.M.O,d.M.P.N,this.N))}function We(c,d,g,v){this.name=c,this.N=d,this.ea=g,this.ca=v,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,d.R!==void 0?this.toWireType=ot:(this.toWireType=v?te:Q,this.V=null)}function ze(c,d){t.hasOwnProperty(c)||Xe("Replacing nonexistant public symbol"),t[c]=d,t[c].Z=void 0}function Rr(c,d){var g=[];return function(){if(g.length=0,Object.assign(g,arguments),c.includes("j")){var v=t["dynCall_"+c];v=g&&g.length?v.apply(null,[d].concat(g)):v.call(null,d)}else v=F.get(d).apply(null,g);return v}}function Pe(c,d){c=ie(c);var g=c.includes("j")?Rr(c,d):F.get(d);return typeof g!="function"&&G("unknown function pointer with signature "+c+": "+d),g}var tr=void 0;function qe(c,d){function g(E){x[E]||Et[E]||(Ze[E]?Ze[E].forEach(g):(v.push(E),x[E]=!0))}var v=[],x={};throw d.forEach(g),new tr(c+": "+v.map(Ir).join([", "]))}function Lt(c,d,g,v,x){var E=d.length;2>E&&G("argTypes array size mismatch! Must at least get return value and 'this' types!");var A=d[1]!==null&&g!==null,R=!1;for(g=1;g<d.length;++g)if(d[g]!==null&&d[g].V===void 0){R=!0;break}var N=d[0].name!=="void",L=E-2,D=Array(L),z=[],re=[];return function(){if(arguments.length!==L&&G("function "+c+" called with "+arguments.length+" arguments, expected "+L+" args!"),re.length=0,z.length=A?2:1,z[0]=x,A){var Ce=d[1].toWireType(re,this);z[1]=Ce}for(var ce=0;ce<L;++ce)D[ce]=d[ce+2].toWireType(re,arguments[ce]),z.push(D[ce]);if(ce=v.apply(null,z),R)Gt(re);else for(var rt=A?1:2;rt<d.length;rt++){var yt=rt===1?Ce:D[rt-2];d[rt].V!==null&&d[rt].V(yt)}return Ce=N?d[0].fromWireType(ce):void 0,Ce}}function we(c,d){for(var g=[],v=0;v<c;v++)g.push(w[d+4*v>>2]);return g}function Te(c){4<c&&--le[c].ga===0&&(le[c]=void 0,H.push(c))}function et(c){if(c===null)return"null";var d=typeof c;return d==="object"||d==="array"||d==="function"?c.toString():""+c}function tt(c,d){switch(d){case 2:return function(g){return this.fromWireType(S[g>>2])};case 3:return function(g){return this.fromWireType(O[g>>3])};default:throw new TypeError("Unknown float type: "+c)}}function bt(c,d,g){switch(d){case 0:return g?function(v){return b[v]}:function(v){return y[v]};case 1:return g?function(v){return T[v>>1]}:function(v){return k[v>>1]};case 2:return g?function(v){return P[v>>2]}:function(v){return w[v>>2]};default:throw new TypeError("Unknown integer type: "+c)}}function vt(c,d){for(var g="",v=0;!(v>=d/2);++v){var x=T[c+2*v>>1];if(x==0)break;g+=String.fromCharCode(x)}return g}function je(c,d,g){if(g===void 0&&(g=2147483647),2>g)return 0;g-=2;var v=d;g=g<2*c.length?g/2:c.length;for(var x=0;x<g;++x)T[d>>1]=c.charCodeAt(x),d+=2;return T[d>>1]=0,d-v}function st(c){return 2*c.length}function Cr(c,d){for(var g=0,v="";!(g>=d/4);){var x=P[c+4*g>>2];if(x==0)break;++g,65536<=x?(x-=65536,v+=String.fromCharCode(55296|x>>10,56320|x&1023)):v+=String.fromCharCode(x)}return v}function hr(c,d,g){if(g===void 0&&(g=2147483647),4>g)return 0;var v=d;g=v+g-4;for(var x=0;x<c.length;++x){var E=c.charCodeAt(x);if(55296<=E&&57343>=E){var A=c.charCodeAt(++x);E=65536+((E&1023)<<10)|A&1023}if(P[d>>2]=E,d+=4,d+4>g)break}return P[d>>2]=0,d-v}function Ln(c){for(var d=0,g=0;g<c.length;++g){var v=c.charCodeAt(g);55296<=v&&57343>=v&&++g,d+=4}return d}var Mn={};function Lr(c){var d=Mn[c];return d===void 0?ie(c):d}var Nn=[];function mc(c){var d=Nn.length;return Nn.push(c),d}function gc(c,d){for(var g=Array(c),v=0;v<c;++v)g[v]=Kt(w[d+4*v>>2],"parameter "+v);return g}var ia=[],bc=[null,[],[]];pe=t.BindingError=J("BindingError"),t.count_emval_handles=function(){for(var c=0,d=5;d<le.length;++d)le[d]!==void 0&&++c;return c},t.get_first_emval=function(){for(var c=5;c<le.length;++c)if(le[c]!==void 0)return le[c];return null},Ue=t.PureVirtualError=J("PureVirtualError");for(var oa=Array(256),Wn=0;256>Wn;++Wn)oa[Wn]=String.fromCharCode(Wn);$e=oa,t.getInheritedInstanceCount=function(){return Object.keys(Ne).length},t.getLiveInheritedInstances=function(){var c=[],d;for(d in Ne)Ne.hasOwnProperty(d)&&c.push(Ne[d]);return c},t.flushPendingDeletes=Ut,t.setDelayFunction=function(c){kt=c,Tt.length&&kt&&kt(Ut)},Zt=t.InternalError=J("InternalError"),K.prototype.isAliasOf=function(c){if(!(this instanceof K&&c instanceof K))return!1;var d=this.M.P.N,g=this.M.O,v=c.M.P.N;for(c=c.M.O;d.R;)g=d.ba(g),d=d.R;for(;v.R;)c=v.ba(c),v=v.R;return d===v&&g===c},K.prototype.clone=function(){if(this.M.O||fe(this),this.M.aa)return this.M.count.value+=1,this;var c=mt,d=Object,g=d.create,v=Object.getPrototypeOf(this),x=this.M;return c=c(g.call(d,v,{M:{value:{count:x.count,$:x.$,aa:x.aa,O:x.O,P:x.P,T:x.T,U:x.U}}})),c.M.count.value+=1,c.M.$=!1,c},K.prototype.delete=function(){this.M.O||fe(this),this.M.$&&!this.M.aa&&G("Object already scheduled for deletion"),dr(this),Jt(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},K.prototype.isDeleted=function(){return!this.M.O},K.prototype.deleteLater=function(){return this.M.O||fe(this),this.M.$&&!this.M.aa&&G("Object already scheduled for deletion"),Tt.push(this),Tt.length===1&&kt&&kt(Ut),this.M.$=!0,this},We.prototype.qa=function(c){return this.ka&&(c=this.ka(c)),c},We.prototype.ha=function(c){this.W&&this.W(c)},We.prototype.argPackAdvance=8,We.prototype.readValueFromPointer=Ge,We.prototype.deleteObject=function(c){c!==null&&c.delete()},We.prototype.fromWireType=function(c){function d(){return this.da?ht(this.N.X,{P:this.wa,O:g,U:this,T:c}):ht(this.N.X,{P:this,O:c})}var g=this.qa(c);if(!g)return this.ha(c),null;var v=nt(this.N,g);if(v!==void 0)return v.M.count.value===0?(v.M.O=g,v.M.T=c,v.clone()):(v=v.clone(),this.ha(c),v);if(v=this.N.pa(g),v=pt[v],!v)return d.call(this);v=this.ca?v.la:v.pointerType;var x=Ot(g,this.N,v.N);return x===null?d.call(this):this.da?ht(v.N.X,{P:v,O:x,U:this,T:c}):ht(v.N.X,{P:v,O:x})},tr=t.UnboundTypeError=J("UnboundTypeError");var vc=typeof atob=="function"?atob:function(c){var d="",g=0;c=c.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(g++)),x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(g++)),E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(g++)),A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(g++));v=v<<2|x>>4,x=(x&15)<<4|E>>2;var R=(E&3)<<6|A;d+=String.fromCharCode(v),E!==64&&(d+=String.fromCharCode(x)),A!==64&&(d+=String.fromCharCode(R))}while(g<c.length);return d},yc={l:function(c,d,g,v){Z("Assertion failed: "+(c?h(y,c):"")+", at: "+[d?d?h(y,d):"":"unknown filename",g,v?v?h(y,v):"":"unknown function"])},q:function(c,d,g){c=ie(c),d=Kt(d,"wrapper"),g=Le(g);var v=[].slice,x=d.N,E=x.X,A=x.R.X,R=x.R.constructor;c=Oe(c,function(){x.R.ja.forEach(function(L){if(this[L]===A[L])throw new Ue("Pure virtual function "+L+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:E}),this.__construct.apply(this,v.call(arguments))}),E.__construct=function(){this===E&&G("Pass correct 'this' to __construct");var L=R.implement.apply(void 0,[this].concat(v.call(arguments)));dr(L);var D=L.M;L.notifyOnDestruction(),D.aa=!0,Object.defineProperties(this,{M:{value:D}}),mt(this),L=D.O,L=cr(x,L),Ne.hasOwnProperty(L)?G("Tried to register registered instance: "+L):Ne[L]=this},E.__destruct=function(){this===E&&G("Pass correct 'this' to __destruct"),dr(this);var L=this.M.O;L=cr(x,L),Ne.hasOwnProperty(L)?delete Ne[L]:G("Tried to unregister unregistered instance: "+L)},c.prototype=Object.create(E);for(var N in g)c.prototype[N]=g[N];return De(c)},j:function(c){var d=er[c];delete er[c];var g=d.fa,v=d.W,x=d.ia,E=x.map(A=>A.ta).concat(x.map(A=>A.za));gt([c],E,A=>{var R={};return x.forEach((N,L)=>{var D=A[L],z=N.ra,re=N.sa,Ce=A[L+x.length],ce=N.ya,rt=N.Aa;R[N.oa]={read:yt=>D.fromWireType(z(re,yt)),write:(yt,Mr)=>{var Nt=[];ce(rt,yt,Ce.toWireType(Nt,Mr)),Gt(Nt)}}}),[{name:d.name,fromWireType:function(N){var L={},D;for(D in R)L[D]=R[D].read(N);return v(N),L},toWireType:function(N,L){for(var D in R)if(!(D in L))throw new TypeError('Missing field: "'+D+'"');var z=g();for(D in R)R[D].write(z,L[D]);return N!==null&&N.push(v,z),z},argPackAdvance:8,readValueFromPointer:Ge,V:v}]})},v:function(){},B:function(c,d,g,v,x){var E=Y(g);d=ie(d),j(c,{name:d,fromWireType:function(A){return!!A},toWireType:function(A,R){return R?v:x},argPackAdvance:8,readValueFromPointer:function(A){if(g===1)var R=b;else if(g===2)R=T;else if(g===4)R=P;else throw new TypeError("Unknown boolean type size: "+d);return this.fromWireType(R[A>>E])},V:null})},f:function(c,d,g,v,x,E,A,R,N,L,D,z,re){D=ie(D),E=Pe(x,E),R&&(R=Pe(A,R)),L&&(L=Pe(N,L)),re=Pe(z,re);var Ce=Me(D);ae(Ce,function(){qe("Cannot construct "+D+" due to unbound types",[v])}),gt([c,d,g],v?[v]:[],function(ce){if(ce=ce[0],v)var rt=ce.N,yt=rt.X;else yt=K.prototype;ce=Oe(Ce,function(){if(Object.getPrototypeOf(this)!==Mr)throw new pe("Use 'new' to construct "+D);if(Nt.Y===void 0)throw new pe(D+" has no accessible constructor");var la=Nt.Y[arguments.length];if(la===void 0)throw new pe("Tried to invoke ctor of "+D+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Nt.Y).toString()+") parameters instead!");return la.apply(this,arguments)});var Mr=Object.create(yt,{constructor:{value:ce}});ce.prototype=Mr;var Nt=new xe(D,ce,Mr,re,rt,E,R,L);rt=new We(D,Nt,!0,!1),yt=new We(D+"*",Nt,!1,!1);var ua=new We(D+" const*",Nt,!1,!0);return pt[c]={pointerType:yt,la:ua},ze(Ce,ce),[rt,yt,ua]})},d:function(c,d,g,v,x,E,A){var R=we(g,v);d=ie(d),E=Pe(x,E),gt([],[c],function(N){function L(){qe("Cannot call "+D+" due to unbound types",R)}N=N[0];var D=N.name+"."+d;d.startsWith("@@")&&(d=Symbol[d.substring(2)]);var z=N.N.constructor;return z[d]===void 0?(L.Z=g-1,z[d]=L):(ye(z,d,D),z[d].S[g-1]=L),gt([],R,function(re){return re=Lt(D,[re[0],null].concat(re.slice(1)),null,E,A),z[d].S===void 0?(re.Z=g-1,z[d]=re):z[d].S[g-1]=re,[]}),[]})},p:function(c,d,g,v,x,E){0<d||Z();var A=we(d,g);x=Pe(v,x),gt([],[c],function(R){R=R[0];var N="constructor "+R.name;if(R.N.Y===void 0&&(R.N.Y=[]),R.N.Y[d-1]!==void 0)throw new pe("Cannot register multiple constructors with identical number of parameters ("+(d-1)+") for class '"+R.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return R.N.Y[d-1]=()=>{qe("Cannot construct "+R.name+" due to unbound types",A)},gt([],A,function(L){return L.splice(1,0,null),R.N.Y[d-1]=Lt(N,L,null,x,E),[]}),[]})},a:function(c,d,g,v,x,E,A,R){var N=we(g,v);d=ie(d),E=Pe(x,E),gt([],[c],function(L){function D(){qe("Cannot call "+z+" due to unbound types",N)}L=L[0];var z=L.name+"."+d;d.startsWith("@@")&&(d=Symbol[d.substring(2)]),R&&L.N.ja.push(d);var re=L.N.X,Ce=re[d];return Ce===void 0||Ce.S===void 0&&Ce.className!==L.name&&Ce.Z===g-2?(D.Z=g-2,D.className=L.name,re[d]=D):(ye(re,d,z),re[d].S[g-2]=D),gt([],N,function(ce){return ce=Lt(z,ce,L,E,A),re[d].S===void 0?(ce.Z=g-2,re[d]=ce):re[d].S[g-2]=ce,[]}),[]})},A:function(c,d){d=ie(d),j(c,{name:d,fromWireType:function(g){var v=Le(g);return Te(g),v},toWireType:function(g,v){return De(v)},argPackAdvance:8,readValueFromPointer:Ge,V:null})},n:function(c,d,g){g=Y(g),d=ie(d),j(c,{name:d,fromWireType:function(v){return v},toWireType:function(v,x){return x},argPackAdvance:8,readValueFromPointer:tt(d,g),V:null})},e:function(c,d,g,v,x){d=ie(d),x===-1&&(x=4294967295),x=Y(g);var E=R=>R;if(v===0){var A=32-8*g;E=R=>R<<A>>>A}g=d.includes("unsigned")?function(R,N){return N>>>0}:function(R,N){return N},j(c,{name:d,fromWireType:E,toWireType:g,argPackAdvance:8,readValueFromPointer:bt(d,x,v!==0),V:null})},b:function(c,d,g){function v(E){E>>=2;var A=w;return new x(m,A[E+1],A[E])}var x=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][d];g=ie(g),j(c,{name:g,fromWireType:v,argPackAdvance:8,readValueFromPointer:v},{ua:!0})},o:function(c,d){d=ie(d);var g=d==="std::string";j(c,{name:d,fromWireType:function(v){var x=w[v>>2],E=v+4;if(g)for(var A=E,R=0;R<=x;++R){var N=E+R;if(R==x||y[N]==0){if(A=A?h(y,A,N-A):"",L===void 0)var L=A;else L+=String.fromCharCode(0),L+=A;A=N+1}}else{for(L=Array(x),R=0;R<x;++R)L[R]=String.fromCharCode(y[E+R]);L=L.join("")}return Mt(v),L},toWireType:function(v,x){x instanceof ArrayBuffer&&(x=new Uint8Array(x));var E,A=typeof x=="string";if(A||x instanceof Uint8Array||x instanceof Uint8ClampedArray||x instanceof Int8Array||G("Cannot pass non-string to std::string"),g&&A){var R=0;for(E=0;E<x.length;++E){var N=x.charCodeAt(E);127>=N?R++:2047>=N?R+=2:55296<=N&&57343>=N?(R+=4,++E):R+=3}E=R}else E=x.length;if(R=Ti(4+E+1),N=R+4,w[R>>2]=E,g&&A){if(A=N,N=E+1,E=y,0<N){N=A+N-1;for(var L=0;L<x.length;++L){var D=x.charCodeAt(L);if(55296<=D&&57343>=D){var z=x.charCodeAt(++L);D=65536+((D&1023)<<10)|z&1023}if(127>=D){if(A>=N)break;E[A++]=D}else{if(2047>=D){if(A+1>=N)break;E[A++]=192|D>>6}else{if(65535>=D){if(A+2>=N)break;E[A++]=224|D>>12}else{if(A+3>=N)break;E[A++]=240|D>>18,E[A++]=128|D>>12&63}E[A++]=128|D>>6&63}E[A++]=128|D&63}}E[A]=0}}else if(A)for(A=0;A<E;++A)L=x.charCodeAt(A),255<L&&(Mt(N),G("String has UTF-16 code units that do not fit in 8 bits")),y[N+A]=L;else for(A=0;A<E;++A)y[N+A]=x[A];return v!==null&&v.push(Mt,R),R},argPackAdvance:8,readValueFromPointer:Ge,V:function(v){Mt(v)}})},i:function(c,d,g){if(g=ie(g),d===2)var v=vt,x=je,E=st,A=()=>k,R=1;else d===4&&(v=Cr,x=hr,E=Ln,A=()=>w,R=2);j(c,{name:g,fromWireType:function(N){for(var L=w[N>>2],D=A(),z,re=N+4,Ce=0;Ce<=L;++Ce){var ce=N+4+Ce*d;(Ce==L||D[ce>>R]==0)&&(re=v(re,ce-re),z===void 0?z=re:(z+=String.fromCharCode(0),z+=re),re=ce+d)}return Mt(N),z},toWireType:function(N,L){typeof L!="string"&&G("Cannot pass non-string to C++ string type "+g);var D=E(L),z=Ti(4+D+d);return w[z>>2]=D>>R,x(L,z+4,D+d),N!==null&&N.push(Mt,z),z},argPackAdvance:8,readValueFromPointer:Ge,V:function(N){Mt(N)}})},k:function(c,d,g,v,x,E){er[c]={name:ie(d),fa:Pe(g,v),W:Pe(x,E),ia:[]}},h:function(c,d,g,v,x,E,A,R,N,L){er[c].ia.push({oa:ie(d),ta:g,ra:Pe(v,x),sa:E,za:A,ya:Pe(R,N),Aa:L})},C:function(c,d){d=ie(d),j(c,{va:!0,name:d,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(c,d,g,v,x){c=Nn[c],d=Le(d),g=Lr(g);var E=[];return w[v>>2]=De(E),c(d,g,E,x)},t:function(c,d,g,v){c=Nn[c],d=Le(d),g=Lr(g),c(d,g,null,v)},g:Te,m:function(c,d){var g=gc(c,d),v=g[0];d=v.name+"_$"+g.slice(1).map(function(A){return A.name}).join("_")+"$";var x=ia[d];if(x!==void 0)return x;var E=Array(c-1);return x=mc((A,R,N,L)=>{for(var D=0,z=0;z<c-1;++z)E[z]=g[z+1].readValueFromPointer(L+D),D+=g[z+1].argPackAdvance;for(A=A[R].apply(A,E),z=0;z<c-1;++z)g[z+1].ma&&g[z+1].ma(E[z]);if(!v.va)return v.toWireType(N,A)}),ia[d]=x},D:function(c){4<c&&(le[c].ga+=1)},r:function(c){var d=Le(c);Gt(d),Te(c)},c:function(){Z("")},x:function(c,d,g){y.copyWithin(c,d,d+g)},w:function(c){var d=y.length;if(c>>>=0,2147483648<c)return!1;for(var g=1;4>=g;g*=2){var v=d*(1+.2/g);v=Math.min(v,c+100663296);var x=Math;v=Math.max(c,v),x=x.min.call(x,2147483648,v+(65536-v%65536)%65536);e:{try{l.grow(x-m.byteLength+65535>>>16),I();var E=1;break e}catch{}E=void 0}if(E)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(c,d,g,v){for(var x=0,E=0;E<g;E++){var A=w[d>>2],R=w[d+4>>2];d+=8;for(var N=0;N<R;N++){var L=y[A+N],D=bc[c];L===0||L===10?((c===1?s:a)(h(D,0)),D.length=0):D.push(L)}x+=R}return w[v>>2]=x,0}};(function(){function c(x){t.asm=x.exports,l=t.asm.E,I(),F=t.asm.J,V.unshift(t.asm.F),me--,t.monitorRunDependencies&&t.monitorRunDependencies(me),me==0&&(ue!==null&&(clearInterval(ue),ue=null),Ie&&(x=Ie,Ie=null,x()))}function d(x){c(x.instance)}function g(x){return Ee().then(function(E){return E instanceof WebAssembly.Instance?E:WebAssembly.instantiate(E,v)}).then(function(E){return E}).then(x,function(E){a("failed to asynchronously prepare wasm: "+E),Z(E)})}var v={a:yc};if(me++,t.monitorRunDependencies&&t.monitorRunDependencies(me),t.instantiateWasm)try{return t.instantiateWasm(v,c)}catch(x){a("Module.instantiateWasm callback failed with error: "+x),r(x)}return function(){return u||typeof WebAssembly.instantiateStreaming!="function"||ne(ke)||typeof fetch!="function"?g(d):fetch(ke,{credentials:"same-origin"}).then(function(x){return WebAssembly.instantiateStreaming(x,v).then(d,function(E){return a("wasm streaming compile failed: "+E),a("falling back to ArrayBuffer instantiation"),g(d)})})}().catch(r),{}})(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.F).apply(null,arguments)};var sa=t.___getTypeName=function(){return(sa=t.___getTypeName=t.asm.G).apply(null,arguments)};t.__embind_initialize_bindings=function(){return(t.__embind_initialize_bindings=t.asm.H).apply(null,arguments)};var Ti=t._malloc=function(){return(Ti=t._malloc=t.asm.I).apply(null,arguments)},Mt=t._free=function(){return(Mt=t._free=t.asm.K).apply(null,arguments)};t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.L).apply(null,arguments)};var Fn;Ie=function c(){Fn||aa(),Fn||(Ie=c)};function aa(){function c(){if(!Fn&&(Fn=!0,t.calledRun=!0,!p)){if(Ye(V),n(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;){var d=t.postRun.shift();de.unshift(d)}Ye(de)}}if(!(0<me)){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)Ae();Ye(q),0<me||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),c()},1)):c())}}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();return aa(),e.ready}var Ra,La=rr(()=>{Ra=""});async function Ma(e){let{default:t}=await Promise.resolve().then(()=>(La(),Ca));return Fi(await t(e))}var Na=rr(()=>{Ia();Gn()});var Bi={};Nr(Bi,{getYoga:()=>zc,init:()=>Gc});async function Uc(e,t){let n;if(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL?n=await fetch(e):n=await e,typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(o){n.headers.get("Content-Type")!=="application/wasm"&&console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o)}let i=await n.arrayBuffer();return await WebAssembly.instantiate(i,t)}let r=await WebAssembly.instantiate("buffer"in n?n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength):n,t);return r instanceof WebAssembly.Instance?{instance:r,module:n}:r}function Gc(e){$c({instantiateWasm(t,n){return Uc(e,t).then(({instance:r})=>{n(r)}).catch(Di),{}}}).then(Wa).catch(Di)}function zc(){return qc}var $c,Wa,Di,qc,$i=rr(()=>{Na();$c=Ma,qc=new Promise((e,t)=>{Wa=e,Di=t})});var go=U(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});Object.defineProperty(mo,"default",{enumerable:!0,get:()=>jd});function jd(e){if(e=`${e}`,e==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(e))return e.replace(/^[+-]?/,t=>t==="-"?"":"-");if(e.includes("var(")||e.includes("calc("))return`calc(${e} * -1)`}});var Lu=U(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});Object.defineProperty(bo,"default",{enumerable:!0,get:()=>Vd});var Vd=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","whitespace","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content"]});var Mu=U(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});Object.defineProperty(vo,"default",{enumerable:!0,get:()=>Hd});function Hd(e,t){return e===void 0?t:Array.isArray(e)?e:[...new Set(t.filter(r=>e!==!1&&e[r]!==!1).concat(Object.keys(e).filter(r=>e[r]!==!1)))]}});var yo=U((Ax,Nu)=>{Nu.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:e})=>({inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:e.slate,gray:e.gray,zinc:e.zinc,neutral:e.neutral,stone:e.stone,red:e.red,orange:e.orange,amber:e.amber,yellow:e.yellow,lime:e.lime,green:e.green,emerald:e.emerald,teal:e.teal,cyan:e.cyan,sky:e.sky,blue:e.blue,indigo:e.indigo,violet:e.violet,purple:e.purple,fuchsia:e.fuchsia,pink:e.pink,rose:e.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>e("brightness"),backdropContrast:({theme:e})=>e("contrast"),backdropGrayscale:({theme:e})=>e("grayscale"),backdropHueRotate:({theme:e})=>e("hueRotate"),backdropInvert:({theme:e})=>e("invert"),backdropOpacity:({theme:e})=>e("opacity"),backdropSaturate:({theme:e})=>e("saturate"),backdropSepia:({theme:e})=>e("sepia"),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},borderColor:({theme:e})=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>({...e("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),caretColor:({theme:e})=>e("colors"),accentColor:({theme:e})=>({...e("colors"),auto:"auto"}),contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},container:{},content:{none:"none"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>e("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),grayscale:{0:"0",DEFAULT:"100%"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{0:"0",DEFAULT:"100%"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),inset:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({...e("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:e,breakpoints:t})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...t(e("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringColor:({theme:e})=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},scrollMargin:({theme:e})=>({...e("spacing")}),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:e})=>({...e("spacing")}),stroke:({theme:e})=>e("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:e})=>({...e("spacing")}),textOpacity:({theme:e})=>e("opacity"),transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200m