satori 0.29.1 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/standalone.cjs +7 -7
- package/dist/standalone.cjs.map +1 -1
- package/dist/standalone.js +7 -7
- package/dist/standalone.js.map +1 -1
- package/package.json +1 -1
package/dist/standalone.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var Rc=Object.create;var $n=Object.defineProperty;var Cc=Object.getOwnPropertyDescriptor;var Lc=Object.getOwnPropertyNames;var Mc=Object.getPrototypeOf,Nc=Object.prototype.hasOwnProperty;var rr=(e,t)=>()=>(e&&(t=e(e=0)),t);var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Wr=(e,t)=>{for(var n in t)$n(e,n,{get:t[n],enumerable:!0})},ma=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Lc(t))!Nc.call(e,i)&&i!==n&&$n(e,i,{get:()=>t[i],enumerable:!(r=Cc(t,i))||r.enumerable});return e};var Pt=(e,t,n)=>(n=e!=null?Rc(Mc(e)):{},ma(t||!e||!e.__esModule?$n(n,"default",{value:e,enumerable:!0}):n,e)),Fr=e=>ma($n({},"__esModule",{value:!0}),e);var Ft,Ra,Ca,Br,Wi,Dt,vr,Yc,zn,Fi,yr,xr,Di,La,$i,Bi,wt,Ui,Xc,Ma,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}({}),Ra=function(e){return e[e.BorderBox=0]="BorderBox",e[e.ContentBox=1]="ContentBox",e}({}),Ca=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}({}),Wi=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}({}),Yc=function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e}({}),zn=function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e}({}),Fi=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}({}),Di=function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e}({}),La=function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e}({}),$i=function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e}({}),Bi=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}({}),Ui=function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e}({}),Xc={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:Ra.BorderBox,BOX_SIZING_CONTENT_BOX:Ra.ContentBox,DIMENSION_WIDTH:Ca.Width,DIMENSION_HEIGHT:Ca.Height,DIRECTION_INHERIT:Br.Inherit,DIRECTION_LTR:Br.LTR,DIRECTION_RTL:Br.RTL,DISPLAY_FLEX:Wi.Flex,DISPLAY_NONE:Wi.None,DISPLAY_CONTENTS:Wi.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:Yc.WebFlexBasis,FLEX_DIRECTION_COLUMN:zn.Column,FLEX_DIRECTION_COLUMN_REVERSE:zn.ColumnReverse,FLEX_DIRECTION_ROW:zn.Row,FLEX_DIRECTION_ROW_REVERSE:zn.RowReverse,GUTTER_COLUMN:Fi.Column,GUTTER_ROW:Fi.Row,GUTTER_ALL:Fi.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:Di.Undefined,MEASURE_MODE_EXACTLY:Di.Exactly,MEASURE_MODE_AT_MOST:Di.AtMost,NODE_TYPE_DEFAULT:La.Default,NODE_TYPE_TEXT:La.Text,OVERFLOW_VISIBLE:$i.Visible,OVERFLOW_HIDDEN:$i.Hidden,OVERFLOW_SCROLL:$i.Scroll,POSITION_TYPE_STATIC:Bi.Static,POSITION_TYPE_RELATIVE:Bi.Relative,POSITION_TYPE_ABSOLUTE:Bi.Absolute,UNIT_UNDEFINED:wt.Undefined,UNIT_POINT:wt.Point,UNIT_PERCENT:wt.Percent,UNIT_AUTO:wt.Auto,WRAP_NO_WRAP:Ui.NoWrap,WRAP_WRAP:Ui.Wrap,WRAP_WRAP_REVERSE:Ui.WrapReverse},Ma=Xc});function qi(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,...Ma}}var Na=rr(()=>{Gn();Gn()});var Fa={};Wr(Fa,{default:()=>Qc});function Qc(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),Wa&&(o=Wa),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 k=c[d++]&63;if((x&224)==192)v+=String.fromCharCode((x&31)<<6|k);else{var A=c[d++]&63;x=(x&240)==224?(x&15)<<12|k<<6|A:(x&7)<<18|k<<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,E,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=E=new Uint16Array(c),t.HEAPU32=w=new Uint32Array(c),t.HEAPF32=S=new Float32Array(c),t.HEAPF64=O=new Float64Array(c)}var F,U=[],V=[],de=[];function Ae(){var c=t.preRun.shift();U.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 Ee="";if(!ne(Ee)){var ve=Ee;Ee=t.locateFile?t.locateFile(ve,o):o+ve}function Re(){var c=Ee;try{if(c==Ee&&u)return new Uint8Array(u);if(ne(c))try{var d=Ac(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(k){Z(k)}}function ke(){return u||typeof fetch!="function"?Promise.resolve().then(function(){return Re()}):fetch(Ee,{credentials:"same-origin"}).then(function(c){if(!c.ok)throw"failed to load wasm binary file at '"+Ee+"'";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}],Y=[];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()+`
|
|
2
|
-
`+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 z(c){throw new pe(c)}var Le=c=>(c||z("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=Y.length?Y.pop():le.length;return le[d]={ga:1,value:c},d}},qe=void 0,Be=void 0;function ie(c){for(var d="";y[c];)d+=Be[y[c++]];return d}var Tt=[];function qt(){for(;Tt.length;){var c=Tt.pop();c.M.$=!1,c.delete()}}var Et=void 0,Ne={};function cr(c,d){for(d===void 0&&z("ptr should not be undefined");c.R;)d=c.ba(d),c=c.R;return d}var kt={};function Rr(c){c=ca(c);var d=ie(c);return Mt(c),d}function Kt(c,d){var g=kt[c];return g===void 0&&z(d+" has unknown type "+Rr(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 zt(c){for(;c.length;){var d=c.pop();c.pop()(d)}}function ze(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),k=[],A=0;d.forEach((R,N)=>{kt.hasOwnProperty(R)?x[N]=kt[R]:(k.push(R),it.hasOwnProperty(R)||(it[R]=[]),it[R].push(()=>{x[N]=kt[R],++A,A===k.length&&v(x)}))}),k.length===0&&v(x)}function H(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||z('type "'+v+'" must have a positive integer typeid pointer'),kt.hasOwnProperty(c)){if(g.ua)return;z("Cannot register type '"+v+"' twice")}kt[c]=d,delete Ze[c],it.hasOwnProperty(c)&&(d=it[c],delete it[c],d.forEach(x=>x()))}function fe(c){z(c.M.P.N.name+" instance already deleted")}function Q(){}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)||z("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)?(z("Cannot register public name '"+c+"' twice"),ye(t,c,c),t.hasOwnProperty(void 0)&&z("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,k,A,R){this.name=c,this.constructor=d,this.X=g,this.W=v,this.R=x,this.pa=k,this.ba=A,this.na=R,this.ja=[]}function ee(c,d,g){for(;d!==g;)d.ba||z("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&&z("null is not a valid "+this.name),0):(d.M||z('Cannot pass "'+et(d)+'" as a '+this.name),d.M.O||z("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&&z("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||z('Cannot pass "'+et(d)+'" as a '+this.name),d.M.O||z("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&d.M.P.ca&&z("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&&z("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:d.M.U===this?g=d.M.T:z("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:z("Unsupporting sharing policy")}return g}function K(c,d){return d===null?(this.ea&&z("null is not a valid "+this.name),0):(d.M||z('Cannot pass "'+et(d)+'" as a '+this.name),d.M.O||z("Cannot pass deleted object as a pointer of type "+this.name),d.M.P.ca&&z("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:K,this.V=null)}function Ge(c,d){t.hasOwnProperty(c)||Xe("Replacing nonexistant public symbol"),t[c]=d,t[c].Z=void 0}function Cr(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")?Cr(c,d):F.get(d);return typeof g!="function"&&z("unknown function pointer with signature "+c+": "+d),g}var tr=void 0;function Ue(c,d){function g(k){x[k]||kt[k]||(Ze[k]?Ze[k].forEach(g):(v.push(k),x[k]=!0))}var v=[],x={};throw d.forEach(g),new tr(c+": "+v.map(Rr).join([", "]))}function Lt(c,d,g,v,x){var k=d.length;2>k&&z("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=k-2,D=Array(L),G=[],re=[];return function(){if(arguments.length!==L&&z("function "+c+" called with "+arguments.length+" arguments, expected "+L+" args!"),re.length=0,G.length=A?2:1,G[0]=x,A){var Ce=d[1].toWireType(re,this);G[1]=Ce}for(var ce=0;ce<L;++ce)D[ce]=d[ce+2].toWireType(re,arguments[ce]),G.push(D[ce]);if(ce=v.apply(null,G),R)zt(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,Y.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 E[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 Lr(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 k=c.charCodeAt(x);if(55296<=k&&57343>=k){var A=c.charCodeAt(++x);k=65536+((k&1023)<<10)|A&1023}if(P[d>>2]=k,d+=4,d+4>g)break}return P[d>>2]=0,d-v}function Mn(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 Nn={};function Mr(c){var d=Nn[c];return d===void 0?ie(c):d}var Wn=[];function kc(c){var d=Wn.length;return Wn.push(c),d}function Oc(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 la=[],Pc=[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},qe=t.PureVirtualError=J("PureVirtualError");for(var fa=Array(256),Fn=0;256>Fn;++Fn)fa[Fn]=String.fromCharCode(Fn);Be=fa,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=qt,t.setDelayFunction=function(c){Et=c,Tt.length&&Et&&Et(qt)},Zt=t.InternalError=J("InternalError"),Q.prototype.isAliasOf=function(c){if(!(this instanceof Q&&c instanceof Q))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},Q.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},Q.prototype.delete=function(){this.M.O||fe(this),this.M.$&&!this.M.aa&&z("Object already scheduled for deletion"),dr(this),Jt(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},Q.prototype.isDeleted=function(){return!this.M.O},Q.prototype.deleteLater=function(){return this.M.O||fe(this),this.M.$&&!this.M.aa&&z("Object already scheduled for deletion"),Tt.push(this),Tt.length===1&&Et&&Et(qt),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=ze,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 Ac=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++)),k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(g++)),A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(g++));v=v<<2|x>>4,x=(x&15)<<4|k>>2;var R=(k&3)<<6|A;d+=String.fromCharCode(v),k!==64&&(d+=String.fromCharCode(x)),A!==64&&(d+=String.fromCharCode(R))}while(g<c.length);return d},Ic={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,k=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 qe("Pure virtual function "+L+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:k}),this.__construct.apply(this,v.call(arguments))}),k.__construct=function(){this===k&&z("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)?z("Tried to register registered instance: "+L):Ne[L]=this},k.__destruct=function(){this===k&&z("Pass correct 'this' to __destruct"),dr(this);var L=this.M.O;L=cr(x,L),Ne.hasOwnProperty(L)?delete Ne[L]:z("Tried to unregister unregistered instance: "+L)},c.prototype=Object.create(k);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,k=x.map(A=>A.ta).concat(x.map(A=>A.za));gt([c],k,A=>{var R={};return x.forEach((N,L)=>{var D=A[L],G=N.ra,re=N.sa,Ce=A[L+x.length],ce=N.ya,rt=N.Aa;R[N.oa]={read:yt=>D.fromWireType(G(re,yt)),write:(yt,Nr)=>{var Nt=[];ce(rt,yt,Ce.toWireType(Nt,Nr)),zt(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 G=g();for(D in R)R[D].write(G,L[D]);return N!==null&&N.push(v,G),G},argPackAdvance:8,readValueFromPointer:ze,V:v}]})},v:function(){},B:function(c,d,g,v,x){var k=H(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>>k])},V:null})},f:function(c,d,g,v,x,k,A,R,N,L,D,G,re){D=ie(D),k=Pe(x,k),R&&(R=Pe(A,R)),L&&(L=Pe(N,L)),re=Pe(G,re);var Ce=Me(D);ae(Ce,function(){Ue("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=Q.prototype;ce=Oe(Ce,function(){if(Object.getPrototypeOf(this)!==Nr)throw new pe("Use 'new' to construct "+D);if(Nt.Y===void 0)throw new pe(D+" has no accessible constructor");var ha=Nt.Y[arguments.length];if(ha===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 ha.apply(this,arguments)});var Nr=Object.create(yt,{constructor:{value:ce}});ce.prototype=Nr;var Nt=new xe(D,ce,Nr,re,rt,k,R,L);rt=new We(D,Nt,!0,!1),yt=new We(D+"*",Nt,!1,!1);var pa=new We(D+" const*",Nt,!1,!0);return pt[c]={pointerType:yt,la:pa},Ge(Ce,ce),[rt,yt,pa]})},d:function(c,d,g,v,x,k,A){var R=we(g,v);d=ie(d),k=Pe(x,k),gt([],[c],function(N){function L(){Ue("Cannot call "+D+" due to unbound types",R)}N=N[0];var D=N.name+"."+d;d.startsWith("@@")&&(d=Symbol[d.substring(2)]);var G=N.N.constructor;return G[d]===void 0?(L.Z=g-1,G[d]=L):(ye(G,d,D),G[d].S[g-1]=L),gt([],R,function(re){return re=Lt(D,[re[0],null].concat(re.slice(1)),null,k,A),G[d].S===void 0?(re.Z=g-1,G[d]=re):G[d].S[g-1]=re,[]}),[]})},p:function(c,d,g,v,x,k){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]=()=>{Ue("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,k),[]}),[]})},a:function(c,d,g,v,x,k,A,R){var N=we(g,v);d=ie(d),k=Pe(x,k),gt([],[c],function(L){function D(){Ue("Cannot call "+G+" due to unbound types",N)}L=L[0];var G=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,G),re[d].S[g-2]=D),gt([],N,function(ce){return ce=Lt(G,ce,L,k,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:ze,V:null})},n:function(c,d,g){g=H(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=H(g);var k=R=>R;if(v===0){var A=32-8*g;k=R=>R<<A>>>A}g=d.includes("unsigned")?function(R,N){return N>>>0}:function(R,N){return N},j(c,{name:d,fromWireType:k,toWireType:g,argPackAdvance:8,readValueFromPointer:bt(d,x,v!==0),V:null})},b:function(c,d,g){function v(k){k>>=2;var A=w;return new x(m,A[k+1],A[k])}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],k=v+4;if(g)for(var A=k,R=0;R<=x;++R){var N=k+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[k+R]);L=L.join("")}return Mt(v),L},toWireType:function(v,x){x instanceof ArrayBuffer&&(x=new Uint8Array(x));var k,A=typeof x=="string";if(A||x instanceof Uint8Array||x instanceof Uint8ClampedArray||x instanceof Int8Array||z("Cannot pass non-string to std::string"),g&&A){var R=0;for(k=0;k<x.length;++k){var N=x.charCodeAt(k);127>=N?R++:2047>=N?R+=2:55296<=N&&57343>=N?(R+=4,++k):R+=3}k=R}else k=x.length;if(R=Ai(4+k+1),N=R+4,w[R>>2]=k,g&&A){if(A=N,N=k+1,k=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 G=x.charCodeAt(++L);D=65536+((D&1023)<<10)|G&1023}if(127>=D){if(A>=N)break;k[A++]=D}else{if(2047>=D){if(A+1>=N)break;k[A++]=192|D>>6}else{if(65535>=D){if(A+2>=N)break;k[A++]=224|D>>12}else{if(A+3>=N)break;k[A++]=240|D>>18,k[A++]=128|D>>12&63}k[A++]=128|D>>6&63}k[A++]=128|D&63}}k[A]=0}}else if(A)for(A=0;A<k;++A)L=x.charCodeAt(A),255<L&&(Mt(N),z("String has UTF-16 code units that do not fit in 8 bits")),y[N+A]=L;else for(A=0;A<k;++A)y[N+A]=x[A];return v!==null&&v.push(Mt,R),R},argPackAdvance:8,readValueFromPointer:ze,V:function(v){Mt(v)}})},i:function(c,d,g){if(g=ie(g),d===2)var v=vt,x=je,k=st,A=()=>E,R=1;else d===4&&(v=Lr,x=hr,k=Mn,A=()=>w,R=2);j(c,{name:g,fromWireType:function(N){for(var L=w[N>>2],D=A(),G,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),G===void 0?G=re:(G+=String.fromCharCode(0),G+=re),re=ce+d)}return Mt(N),G},toWireType:function(N,L){typeof L!="string"&&z("Cannot pass non-string to C++ string type "+g);var D=k(L),G=Ai(4+D+d);return w[G>>2]=D>>R,x(L,G+4,D+d),N!==null&&N.push(Mt,G),G},argPackAdvance:8,readValueFromPointer:ze,V:function(N){Mt(N)}})},k:function(c,d,g,v,x,k){er[c]={name:ie(d),fa:Pe(g,v),W:Pe(x,k),ia:[]}},h:function(c,d,g,v,x,k,A,R,N,L){er[c].ia.push({oa:ie(d),ta:g,ra:Pe(v,x),sa:k,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=Wn[c],d=Le(d),g=Mr(g);var k=[];return w[v>>2]=De(k),c(d,g,k,x)},t:function(c,d,g,v){c=Wn[c],d=Le(d),g=Mr(g),c(d,g,null,v)},g:Te,m:function(c,d){var g=Oc(c,d),v=g[0];d=v.name+"_$"+g.slice(1).map(function(A){return A.name}).join("_")+"$";var x=la[d];if(x!==void 0)return x;var k=Array(c-1);return x=kc((A,R,N,L)=>{for(var D=0,G=0;G<c-1;++G)k[G]=g[G+1].readValueFromPointer(L+D),D+=g[G+1].argPackAdvance;for(A=A[R].apply(A,k),G=0;G<c-1;++G)g[G+1].ma&&g[G+1].ma(k[G]);if(!v.va)return v.toWireType(N,A)}),la[d]=x},D:function(c){4<c&&(le[c].ga+=1)},r:function(c){var d=Le(c);zt(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 k=1;break e}catch{}k=void 0}if(k)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(c,d,g,v){for(var x=0,k=0;k<g;k++){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=Pc[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 ke().then(function(k){return k instanceof WebAssembly.Instance?k:WebAssembly.instantiate(k,v)}).then(function(k){return k}).then(x,function(k){a("failed to asynchronously prepare wasm: "+k),Z(k)})}var v={a:Ic};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(Ee)||typeof fetch!="function"?g(d):fetch(Ee,{credentials:"same-origin"}).then(function(x){return WebAssembly.instantiateStreaming(x,v).then(d,function(k){return a("wasm streaming compile failed: "+k),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 ca=t.___getTypeName=function(){return(ca=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 Ai=t._malloc=function(){return(Ai=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 Dn;Ie=function c(){Dn||da(),Dn||(Ie=c)};function da(){function c(){if(!Dn&&(Dn=!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(U),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 da(),e.ready}var Wa,Da=rr(()=>{Wa=""});async function $a(e){let{default:t}=await Promise.resolve().then(()=>(Da(),Fa));return qi(await t(e))}var Ba=rr(()=>{Na();Gn()});var Gi={};Wr(Gi,{getYoga:()=>td,init:()=>ed});async function Zc(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 ed(e){Kc({instantiateWasm(t,n){return Zc(e,t).then(({instance:r})=>{n(r)}).catch(zi),{}}}).then(Ua).catch(zi)}function td(){return Jc}var Kc,Ua,zi,Jc,ji=rr(()=>{Ba();Kc=$a,Jc=new Promise((e,t)=>{Ua=e,zi=t})});var wo=q(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});Object.defineProperty(xo,"default",{enumerable:!0,get:()=>lp});function lp(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 Gu=q(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});Object.defineProperty(So,"default",{enumerable:!0,get:()=>fp});var fp=["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 ju=q(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});Object.defineProperty(_o,"default",{enumerable:!0,get:()=>cp});function cp(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 To=q((Kx,Vu)=>{Vu.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:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({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%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},variantOrder:["first","last","odd","even","visited","checked","empty","read-only","group-hover","group-focus","focus-within","hover","focus","focus-visible","active","disabled"],plugins:[]}});var li={};Wr(li,{default:()=>dp});var dp,fi=rr(()=>{dp={info(e,t){console.info(...Array.isArray(e)?[e]:[t,e])},warn(e,t){console.warn(...Array.isArray(e)?[e]:[t,e])},risk(e,t){console.error(...Array.isArray(e)?[e]:[t,e])}}});var Hu=q(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Object.defineProperty(Eo,"default",{enumerable:!0,get:()=>mp});var pp=hp((fi(),Fr(li)));function hp(e){return e&&e.__esModule?e:{default:e}}function Jr({version:e,from:t,to:n}){pp.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}var mp={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return Jr({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return Jr({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return Jr({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return Jr({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return Jr({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var Yu=q(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});Object.defineProperty(ko,"defaults",{enumerable:!0,get:()=>gp});function gp(e,...t){for(let i of t){for(let o in i){var n;!(e==null||(n=e.hasOwnProperty)===null||n===void 0)&&n.call(e,o)||(e[o]=i[o])}for(let o of Object.getOwnPropertySymbols(i)){var r;!(e==null||(r=e.hasOwnProperty)===null||r===void 0)&&r.call(e,o)||(e[o]=i[o])}}return e}});var Xu=q(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Object.defineProperty(Oo,"toPath",{enumerable:!0,get:()=>bp});function bp(e){if(Array.isArray(e))return e;let t=e.split("[").length-1,n=e.split("]").length-1;if(t!==n)throw new Error(`Path is invalid. Has unbalanced brackets: ${e}`);return e.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}});var Ku=q(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Object.defineProperty(Po,"normalizeConfig",{enumerable:!0,get:()=>yp});var Zr=vp((fi(),Fr(li)));function Qu(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Qu=function(r){return r?n:t})(e)}function vp(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Qu(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function yp(e){if((()=>{if(e.purge||!e.content||!Array.isArray(e.content)&&!(typeof e.content=="object"&&e.content!==null))return!1;if(Array.isArray(e.content))return e.content.every(r=>typeof r=="string"?!0:!(typeof(r==null?void 0:r.raw)!="string"||r!=null&&r.extension&&typeof(r==null?void 0:r.extension)!="string"));if(typeof e.content=="object"&&e.content!==null){if(Object.keys(e.content).some(r=>!["files","extract","transform"].includes(r)))return!1;if(Array.isArray(e.content.files)){if(!e.content.files.every(r=>typeof r=="string"?!0:!(typeof(r==null?void 0:r.raw)!="string"||r!=null&&r.extension&&typeof(r==null?void 0:r.extension)!="string")))return!1;if(typeof e.content.extract=="object"){for(let r of Object.values(e.content.extract))if(typeof r!="function")return!1}else if(!(e.content.extract===void 0||typeof e.content.extract=="function"))return!1;if(typeof e.content.transform=="object"){for(let r of Object.values(e.content.transform))if(typeof r!="function")return!1}else if(!(e.content.transform===void 0||typeof e.content.transform=="function"))return!1}return!0}return!1})()||Zr.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),e.safelist=(()=>{var r;let{content:i,purge:o,safelist:s}=e;return Array.isArray(s)?s:Array.isArray(i==null?void 0:i.safelist)?i.safelist:Array.isArray(o==null?void 0:o.safelist)?o.safelist:Array.isArray(o==null||(r=o.options)===null||r===void 0?void 0:r.safelist)?o.options.safelist:[]})(),typeof e.prefix=="function")Zr.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),e.prefix="";else{var n;e.prefix=(n=e.prefix)!==null&&n!==void 0?n:""}e.content={files:(()=>{let{content:r,purge:i}=e;return Array.isArray(i)?i:Array.isArray(i==null?void 0:i.content)?i.content:Array.isArray(r)?r:Array.isArray(r==null?void 0:r.content)?r.content:Array.isArray(r==null?void 0:r.files)?r.files:[]})(),extract:(()=>{let r=(()=>{var s,a,u,f,l,p,h,m,b,y;return!((s=e.purge)===null||s===void 0)&&s.extract?e.purge.extract:!((a=e.content)===null||a===void 0)&&a.extract?e.content.extract:!((u=e.purge)===null||u===void 0||(f=u.extract)===null||f===void 0)&&f.DEFAULT?e.purge.extract.DEFAULT:!((l=e.content)===null||l===void 0||(p=l.extract)===null||p===void 0)&&p.DEFAULT?e.content.extract.DEFAULT:!((h=e.purge)===null||h===void 0||(m=h.options)===null||m===void 0)&&m.extractors?e.purge.options.extractors:!((b=e.content)===null||b===void 0||(y=b.options)===null||y===void 0)&&y.extractors?e.content.options.extractors:{}})(),i={},o=(()=>{var s,a,u,f;if(!((s=e.purge)===null||s===void 0||(a=s.options)===null||a===void 0)&&a.defaultExtractor)return e.purge.options.defaultExtractor;if(!((u=e.content)===null||u===void 0||(f=u.options)===null||f===void 0)&&f.defaultExtractor)return e.content.options.defaultExtractor})();if(o!==void 0&&(i.DEFAULT=o),typeof r=="function")i.DEFAULT=r;else if(Array.isArray(r))for(let{extensions:s,extractor:a}of r??[])for(let u of s)i[u]=a;else typeof r=="object"&&r!==null&&Object.assign(i,r);return i})(),transform:(()=>{let r=(()=>{var o,s,a,u,f,l;return!((o=e.purge)===null||o===void 0)&&o.transform?e.purge.transform:!((s=e.content)===null||s===void 0)&&s.transform?e.content.transform:!((a=e.purge)===null||a===void 0||(u=a.transform)===null||u===void 0)&&u.DEFAULT?e.purge.transform.DEFAULT:!((f=e.content)===null||f===void 0||(l=f.transform)===null||l===void 0)&&l.DEFAULT?e.content.transform.DEFAULT:{}})(),i={};return typeof r=="function"&&(i.DEFAULT=r),typeof r=="object"&&r!==null&&Object.assign(i,r),i})()};for(let r of e.content.files)if(typeof r=="string"&&/{([^,]*?)}/g.test(r)){Zr.default.warn("invalid-glob-braces",[`The glob pattern ${(0,Zr.dim)(r)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,Zr.dim)(r.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var Ju=q(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Object.defineProperty(Ao,"default",{enumerable:!0,get:()=>xp});function xp(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var Zu=q(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Object.defineProperty(Ro,"cloneDeep",{enumerable:!0,get:()=>Io});function Io(e){return Array.isArray(e)?e.map(t=>Io(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Io(n)])):e}});var Co=q((ci,el)=>{"use strict";ci.__esModule=!0;ci.default=_p;function wp(e){for(var t=e.toLowerCase(),n="",r=!1,i=0;i<6&&t[i]!==void 0;i++){var o=t.charCodeAt(i),s=o>=97&&o<=102||o>=48&&o<=57;if(r=o===32,!s)break;n+=t[i]}if(n.length!==0){var a=parseInt(n,16),u=a>=55296&&a<=57343;return u||a===0||a>1114111?["\uFFFD",n.length+(r?1:0)]:[String.fromCodePoint(a),n.length+(r?1:0)]}}var Sp=/\\/;function _p(e){var t=Sp.test(e);if(!t)return e;for(var n="",r=0;r<e.length;r++){if(e[r]==="\\"){var i=wp(e.slice(r+1,r+7));if(i!==void 0){n+=i[0],r+=i[1];continue}if(e[r+1]==="\\"){n+="\\",r++;continue}e.length===r+1&&(n+=e[r]);continue}n+=e[r]}return n}el.exports=ci.default});var rl=q((di,tl)=>{"use strict";di.__esModule=!0;di.default=Tp;function Tp(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var i=n.shift();if(!e[i])return;e=e[i]}return e}tl.exports=di.default});var il=q((pi,nl)=>{"use strict";pi.__esModule=!0;pi.default=Ep;function Ep(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var i=n.shift();e[i]||(e[i]={}),e=e[i]}}nl.exports=pi.default});var sl=q((hi,ol)=>{"use strict";hi.__esModule=!0;hi.default=kp;function kp(e){for(var t="",n=e.indexOf("/*"),r=0;n>=0;){t=t+e.slice(r,n);var i=e.indexOf("*/",n+2);if(i<0)return t;r=i+2,n=e.indexOf("/*",r)}return t=t+e.slice(r),t}ol.exports=hi.default});var en=q(It=>{"use strict";It.__esModule=!0;It.stripComments=It.ensureObject=It.getProp=It.unesc=void 0;var Op=mi(Co());It.unesc=Op.default;var Pp=mi(rl());It.getProp=Pp.default;var Ap=mi(il());It.ensureObject=Ap.default;var Ip=mi(sl());It.stripComments=Ip.default;function mi(e){return e&&e.__esModule?e:{default:e}}});var $t=q((tn,ll)=>{"use strict";tn.__esModule=!0;tn.default=void 0;var al=en();function ul(e,t){for(var n=0;n<t.length;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)}}function Rp(e,t,n){return t&&ul(e.prototype,t),n&&ul(e,n),e}var Cp=function e(t,n){if(typeof t!="object"||t===null)return t;var r=new t.constructor;for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],s=typeof o;i==="parent"&&s==="object"?n&&(r[i]=n):o instanceof Array?r[i]=o.map(function(a){return e(a,r)}):r[i]=e(o,r)}return r},Lp=function(){function e(n){n===void 0&&(n={}),Object.assign(this,n),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var t=e.prototype;return t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){if(this.parent){for(var r in arguments)this.parent.insertBefore(this,arguments[r]);this.remove()}return this},t.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.clone=function(r){r===void 0&&(r={});var i=Cp(this);for(var o in r)i[o]=r[o];return i},t.appendToPropertyAndEscape=function(r,i,o){this.raws||(this.raws={});var s=this[r],a=this.raws[r];this[r]=s+i,a||o!==i?this.raws[r]=(a||s)+o:delete this.raws[r]},t.setPropertyAndEscape=function(r,i,o){this.raws||(this.raws={}),this[r]=i,this.raws[r]=o},t.setPropertyWithoutEscape=function(r,i){this[r]=i,this.raws&&delete this.raws[r]},t.isAtPosition=function(r,i){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>r||this.source.end.line<r||this.source.start.line===r&&this.source.start.column>i||this.source.end.line===r&&this.source.end.column<i)},t.stringifyProperty=function(r){return this.raws&&this.raws[r]||this[r]},t.valueToString=function(){return String(this.stringifyProperty("value"))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},Rp(e,[{key:"rawSpaceBefore",get:function(){var r=this.raws&&this.raws.spaces&&this.raws.spaces.before;return r===void 0&&(r=this.spaces&&this.spaces.before),r||""},set:function(r){(0,al.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=r}},{key:"rawSpaceAfter",get:function(){var r=this.raws&&this.raws.spaces&&this.raws.spaces.after;return r===void 0&&(r=this.spaces.after),r||""},set:function(r){(0,al.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=r}}]),e}();tn.default=Lp;ll.exports=tn.default});var $e=q(ge=>{"use strict";ge.__esModule=!0;ge.UNIVERSAL=ge.ATTRIBUTE=ge.CLASS=ge.COMBINATOR=ge.COMMENT=ge.ID=ge.NESTING=ge.PSEUDO=ge.ROOT=ge.SELECTOR=ge.STRING=ge.TAG=void 0;var Mp="tag";ge.TAG=Mp;var Np="string";ge.STRING=Np;var Wp="selector";ge.SELECTOR=Wp;var Fp="root";ge.ROOT=Fp;var Dp="pseudo";ge.PSEUDO=Dp;var $p="nesting";ge.NESTING=$p;var Bp="id";ge.ID=Bp;var Up="comment";ge.COMMENT=Up;var qp="combinator";ge.COMBINATOR=qp;var zp="class";ge.CLASS=zp;var Gp="attribute";ge.ATTRIBUTE=Gp;var jp="universal";ge.UNIVERSAL=jp});var gi=q((rn,pl)=>{"use strict";rn.__esModule=!0;rn.default=void 0;var Vp=Yp($t()),Bt=Hp($e());function dl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return dl=function(){return e},e}function Hp(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=dl();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Yp(e){return e&&e.__esModule?e:{default:e}}function Xp(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Qp(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}function Qp(e,t){if(e){if(typeof e=="string")return fl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fl(e,t)}}function fl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cl(e,t){for(var n=0;n<t.length;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)}}function Kp(e,t,n){return t&&cl(e.prototype,t),n&&cl(e,n),e}function Jp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lo(e,t)}function Lo(e,t){return Lo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Lo(e,t)}var Zp=function(e){Jp(t,e);function t(r){var i;return i=e.call(this,r)||this,i.nodes||(i.nodes=[]),i}var n=t.prototype;return n.append=function(i){return i.parent=this,this.nodes.push(i),this},n.prepend=function(i){return i.parent=this,this.nodes.unshift(i),this},n.at=function(i){return this.nodes[i]},n.index=function(i){return typeof i=="number"?i:this.nodes.indexOf(i)},n.removeChild=function(i){i=this.index(i),this.at(i).parent=void 0,this.nodes.splice(i,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=i&&(this.indexes[s]=o-1);return this},n.removeAll=function(){for(var i=Xp(this.nodes),o;!(o=i()).done;){var s=o.value;s.parent=void 0}return this.nodes=[],this},n.empty=function(){return this.removeAll()},n.insertAfter=function(i,o){o.parent=this;var s=this.index(i);this.nodes.splice(s+1,0,o),o.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],s<=a&&(this.indexes[u]=a+1);return this},n.insertBefore=function(i,o){o.parent=this;var s=this.index(i);this.nodes.splice(s,0,o),o.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],a<=s&&(this.indexes[u]=a+1);return this},n._findChildAtPosition=function(i,o){var s=void 0;return this.each(function(a){if(a.atPosition){var u=a.atPosition(i,o);if(u)return s=u,!1}else if(a.isAtPosition(i,o))return s=a,!1}),s},n.atPosition=function(i,o){if(this.isAtPosition(i,o))return this._findChildAtPosition(i,o)||this},n._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},n.each=function(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var o=this.lastEach;if(this.indexes[o]=0,!!this.length){for(var s,a;this.indexes[o]<this.length&&(s=this.indexes[o],a=i(this.at(s),s),a!==!1);)this.indexes[o]+=1;if(delete this.indexes[o],a===!1)return!1}},n.walk=function(i){return this.each(function(o,s){var a=i(o,s);if(a!==!1&&o.length&&(a=o.walk(i)),a===!1)return!1})},n.walkAttributes=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.ATTRIBUTE)return i.call(o,s)})},n.walkClasses=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.CLASS)return i.call(o,s)})},n.walkCombinators=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.COMBINATOR)return i.call(o,s)})},n.walkComments=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.COMMENT)return i.call(o,s)})},n.walkIds=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.ID)return i.call(o,s)})},n.walkNesting=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.NESTING)return i.call(o,s)})},n.walkPseudos=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.PSEUDO)return i.call(o,s)})},n.walkTags=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.TAG)return i.call(o,s)})},n.walkUniversals=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.UNIVERSAL)return i.call(o,s)})},n.split=function(i){var o=this,s=[];return this.reduce(function(a,u,f){var l=i.call(o,u);return s.push(u),l?(a.push(s),s=[]):f===o.length-1&&a.push(s),a},[])},n.map=function(i){return this.nodes.map(i)},n.reduce=function(i,o){return this.nodes.reduce(i,o)},n.every=function(i){return this.nodes.every(i)},n.some=function(i){return this.nodes.some(i)},n.filter=function(i){return this.nodes.filter(i)},n.sort=function(i){return this.nodes.sort(i)},n.toString=function(){return this.map(String).join("")},Kp(t,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),t}(Vp.default);rn.default=Zp;pl.exports=rn.default});var No=q((nn,ml)=>{"use strict";nn.__esModule=!0;nn.default=void 0;var eh=rh(gi()),th=$e();function rh(e){return e&&e.__esModule?e:{default:e}}function hl(e,t){for(var n=0;n<t.length;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)}}function nh(e,t,n){return t&&hl(e.prototype,t),n&&hl(e,n),e}function ih(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mo(e,t)}function Mo(e,t){return Mo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Mo(e,t)}var oh=function(e){ih(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=th.ROOT,i}var n=t.prototype;return n.toString=function(){var i=this.reduce(function(o,s){return o.push(String(s)),o},[]).join(",");return this.trailingComma?i+",":i},n.error=function(i,o){return this._error?this._error(i,o):new Error(i)},nh(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(eh.default);nn.default=oh;ml.exports=nn.default});var Fo=q((on,gl)=>{"use strict";on.__esModule=!0;on.default=void 0;var sh=uh(gi()),ah=$e();function uh(e){return e&&e.__esModule?e:{default:e}}function lh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wo(e,t)}function Wo(e,t){return Wo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Wo(e,t)}var fh=function(e){lh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=ah.SELECTOR,r}return t}(sh.default);on.default=fh;gl.exports=on.default});var bi=q((s1,bl)=>{"use strict";var ch={},dh=ch.hasOwnProperty,ph=function(t,n){if(!t)return n;var r={};for(var i in n)r[i]=dh.call(t,i)?t[i]:n[i];return r},hh=/[ -,\.\/:-@\[-\^`\{-~]/,mh=/[ -,\.\/:-@\[\]\^`\{-~]/,gh=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Do=function e(t,n){n=ph(n,e.options),n.quotes!="single"&&n.quotes!="double"&&(n.quotes="single");for(var r=n.quotes=="double"?'"':"'",i=n.isIdentifier,o=t.charAt(0),s="",a=0,u=t.length;a<u;){var f=t.charAt(a++),l=f.charCodeAt(),p=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&a<u){var h=t.charCodeAt(a++);(h&64512)==56320?l=((l&1023)<<10)+(h&1023)+65536:a--}p="\\"+l.toString(16).toUpperCase()+" "}else n.escapeEverything?hh.test(f)?p="\\"+f:p="\\"+l.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(f)?p="\\"+l.toString(16).toUpperCase()+" ":f=="\\"||!i&&(f=='"'&&r==f||f=="'"&&r==f)||i&&mh.test(f)?p="\\"+f:p=f;s+=p}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(gh,function(m,b,y){return b&&b.length%2?m:(b||"")+y}),!i&&n.wrap?r+s+r:s};Do.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Do.version="3.0.0";bl.exports=Do});var Bo=q((sn,xl)=>{"use strict";sn.__esModule=!0;sn.default=void 0;var bh=yl(bi()),vh=en(),yh=yl($t()),xh=$e();function yl(e){return e&&e.__esModule?e:{default:e}}function vl(e,t){for(var n=0;n<t.length;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)}}function wh(e,t,n){return t&&vl(e.prototype,t),n&&vl(e,n),e}function Sh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$o(e,t)}function $o(e,t){return $o=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},$o(e,t)}var _h=function(e){Sh(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=xh.CLASS,i._constructed=!0,i}var n=t.prototype;return n.valueToString=function(){return"."+e.prototype.valueToString.call(this)},wh(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=(0,bh.default)(i,{isIdentifier:!0});o!==i?((0,vh.ensureObject)(this,"raws"),this.raws.value=o):this.raws&&delete this.raws.value}this._value=i}}]),t}(yh.default);sn.default=_h;xl.exports=sn.default});var qo=q((an,wl)=>{"use strict";an.__esModule=!0;an.default=void 0;var Th=kh($t()),Eh=$e();function kh(e){return e&&e.__esModule?e:{default:e}}function Oh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Uo(e,t)}function Uo(e,t){return Uo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Uo(e,t)}var Ph=function(e){Oh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Eh.COMMENT,r}return t}(Th.default);an.default=Ph;wl.exports=an.default});var Go=q((un,Sl)=>{"use strict";un.__esModule=!0;un.default=void 0;var Ah=Rh($t()),Ih=$e();function Rh(e){return e&&e.__esModule?e:{default:e}}function Ch(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zo(e,t)}function zo(e,t){return zo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},zo(e,t)}var Lh=function(e){Ch(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Ih.ID,i}var n=t.prototype;return n.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(Ah.default);un.default=Lh;Sl.exports=un.default});var vi=q((ln,El)=>{"use strict";ln.__esModule=!0;ln.default=void 0;var Mh=Tl(bi()),Nh=en(),Wh=Tl($t());function Tl(e){return e&&e.__esModule?e:{default:e}}function _l(e,t){for(var n=0;n<t.length;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)}}function Fh(e,t,n){return t&&_l(e.prototype,t),n&&_l(e,n),e}function Dh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jo(e,t)}function jo(e,t){return jo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},jo(e,t)}var $h=function(e){Dh(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.qualifiedName=function(i){return this.namespace?this.namespaceString+"|"+i:i},n.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},Fh(t,[{key:"namespace",get:function(){return this._namespace},set:function(i){if(i===!0||i==="*"||i==="&"){this._namespace=i,this.raws&&delete this.raws.namespace;return}var o=(0,Mh.default)(i,{isIdentifier:!0});this._namespace=i,o!==i?((0,Nh.ensureObject)(this,"raws"),this.raws.namespace=o):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(i){this.namespace=i}},{key:"namespaceString",get:function(){if(this.namespace){var i=this.stringifyProperty("namespace");return i===!0?"":i}else return""}}]),t}(Wh.default);ln.default=$h;El.exports=ln.default});var Ho=q((fn,kl)=>{"use strict";fn.__esModule=!0;fn.default=void 0;var Bh=qh(vi()),Uh=$e();function qh(e){return e&&e.__esModule?e:{default:e}}function zh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vo(e,t)}function Vo(e,t){return Vo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Vo(e,t)}var Gh=function(e){zh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Uh.TAG,r}return t}(Bh.default);fn.default=Gh;kl.exports=fn.default});var Xo=q((cn,Ol)=>{"use strict";cn.__esModule=!0;cn.default=void 0;var jh=Hh($t()),Vh=$e();function Hh(e){return e&&e.__esModule?e:{default:e}}function Yh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yo(e,t)}function Yo(e,t){return Yo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Yo(e,t)}var Xh=function(e){Yh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Vh.STRING,r}return t}(jh.default);cn.default=Xh;Ol.exports=cn.default});var Ko=q((dn,Pl)=>{"use strict";dn.__esModule=!0;dn.default=void 0;var Qh=Jh(gi()),Kh=$e();function Jh(e){return e&&e.__esModule?e:{default:e}}function Zh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qo(e,t)}function Qo(e,t){return Qo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Qo(e,t)}var em=function(e){Zh(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Kh.PSEUDO,i}var n=t.prototype;return n.toString=function(){var i=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),i,this.rawSpaceAfter].join("")},t}(Qh.default);dn.default=em;Pl.exports=dn.default});var Il=q((a1,Al)=>{Al.exports=function(t,n){return function(...r){return console.warn(n),t(...r)}}});var ns=q(mn=>{"use strict";mn.__esModule=!0;mn.unescapeValue=rs;mn.default=void 0;var pn=ts(bi()),tm=ts(Co()),rm=ts(vi()),nm=$e(),Jo;function ts(e){return e&&e.__esModule?e:{default:e}}function Rl(e,t){for(var n=0;n<t.length;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)}}function im(e,t,n){return t&&Rl(e.prototype,t),n&&Rl(e,n),e}function om(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,es(e,t)}function es(e,t){return es=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},es(e,t)}var hn=Il(),sm=/^('|")([^]*)\1$/,am=hn(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),um=hn(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),lm=hn(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function rs(e){var t=!1,n=null,r=e,i=r.match(sm);return i&&(n=i[1],r=i[2]),r=(0,tm.default)(r),r!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}function fm(e){if(e.quoteMark!==void 0||e.value===void 0)return e;lm();var t=rs(e.value),n=t.quoteMark,r=t.unescaped;return e.raws||(e.raws={}),e.raws.value===void 0&&(e.raws.value=e.value),e.value=r,e.quoteMark=n,e}var yi=function(e){om(t,e);function t(r){var i;return r===void 0&&(r={}),i=e.call(this,fm(r))||this,i.type=nm.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:hn(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:hn(function(){return i.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),i._constructed=!0,i}var n=t.prototype;return n.getQuotedValue=function(i){i===void 0&&(i={});var o=this._determineQuoteMark(i),s=Zo[o],a=(0,pn.default)(this._value,s);return a},n._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},n.setValue=function(i,o){o===void 0&&(o={}),this._value=i,this._quoteMark=this._determineQuoteMark(o),this._syncRawValue()},n.smartQuoteMark=function(i){var o=this.value,s=o.replace(/[^']/g,"").length,a=o.replace(/[^"]/g,"").length;if(s+a===0){var u=(0,pn.default)(o,{isIdentifier:!0});if(u===o)return t.NO_QUOTE;var f=this.preferredQuoteMark(i);if(f===t.NO_QUOTE){var l=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,p=Zo[l],h=(0,pn.default)(o,p);if(h.length<u.length)return l}return f}else return a===s?this.preferredQuoteMark(i):a<s?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},n.preferredQuoteMark=function(i){var o=i.preferCurrentQuoteMark?this.quoteMark:i.quoteMark;return o===void 0&&(o=i.preferCurrentQuoteMark?i.quoteMark:this.quoteMark),o===void 0&&(o=t.DOUBLE_QUOTE),o},n._syncRawValue=function(){var i=(0,pn.default)(this._value,Zo[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},n._handleEscapes=function(i,o){if(this._constructed){var s=(0,pn.default)(o,{isIdentifier:!0});s!==o?this.raws[i]=s:delete this.raws[i]}},n._spacesFor=function(i){var o={before:"",after:""},s=this.spaces[i]||{},a=this.raws.spaces&&this.raws.spaces[i]||{};return Object.assign(o,s,a)},n._stringFor=function(i,o,s){o===void 0&&(o=i),s===void 0&&(s=Cl);var a=this._spacesFor(o);return s(this.stringifyProperty(i),a)},n.offsetOf=function(i){var o=1,s=this._spacesFor("attribute");if(o+=s.before.length,i==="namespace"||i==="ns")return this.namespace?o:-1;if(i==="attributeNS"||(o+=this.namespaceString.length,this.namespace&&(o+=1),i==="attribute"))return o;o+=this.stringifyProperty("attribute").length,o+=s.after.length;var a=this._spacesFor("operator");o+=a.before.length;var u=this.stringifyProperty("operator");if(i==="operator")return u?o:-1;o+=u.length,o+=a.after.length;var f=this._spacesFor("value");o+=f.before.length;var l=this.stringifyProperty("value");if(i==="value")return l?o:-1;o+=l.length,o+=f.after.length;var p=this._spacesFor("insensitive");return o+=p.before.length,i==="insensitive"&&this.insensitive?o:-1},n.toString=function(){var i=this,o=[this.rawSpaceBefore,"["];return o.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(o.push(this._stringFor("operator")),o.push(this._stringFor("value")),o.push(this._stringFor("insensitiveFlag","insensitive",function(s,a){return s.length>0&&!i.quoted&&a.before.length===0&&!(i.spaces.value&&i.spaces.value.after)&&(a.before=" "),Cl(s,a)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},im(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){um()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(i){if(!this._constructed){this._quoteMark=i;return}this._quoteMark!==i&&(this._quoteMark=i,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=rs(i),s=o.deprecatedUsage,a=o.unescaped,u=o.quoteMark;if(s&&am(),a===this._value&&u===this._quoteMark)return;this._value=a,this._quoteMark=u,this._syncRawValue()}else this._value=i}},{key:"attribute",get:function(){return this._attribute},set:function(i){this._handleEscapes("attribute",i),this._attribute=i}}]),t}(rm.default);mn.default=yi;yi.NO_QUOTE=null;yi.SINGLE_QUOTE="'";yi.DOUBLE_QUOTE='"';var Zo=(Jo={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Jo[null]={isIdentifier:!0},Jo);function Cl(e,t){return""+t.before+e+t.after}});var os=q((gn,Ll)=>{"use strict";gn.__esModule=!0;gn.default=void 0;var cm=pm(vi()),dm=$e();function pm(e){return e&&e.__esModule?e:{default:e}}function hm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,is(e,t)}function is(e,t){return is=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},is(e,t)}var mm=function(e){hm(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=dm.UNIVERSAL,r.value="*",r}return t}(cm.default);gn.default=mm;Ll.exports=gn.default});var as=q((bn,Ml)=>{"use strict";bn.__esModule=!0;bn.default=void 0;var gm=vm($t()),bm=$e();function vm(e){return e&&e.__esModule?e:{default:e}}function ym(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ss(e,t)}function ss(e,t){return ss=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ss(e,t)}var xm=function(e){ym(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=bm.COMBINATOR,r}return t}(gm.default);bn.default=xm;Ml.exports=bn.default});var ls=q((vn,Nl)=>{"use strict";vn.__esModule=!0;vn.default=void 0;var wm=_m($t()),Sm=$e();function _m(e){return e&&e.__esModule?e:{default:e}}function Tm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,us(e,t)}function us(e,t){return us=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},us(e,t)}var Em=function(e){Tm(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Sm.NESTING,r.value="&",r}return t}(wm.default);vn.default=Em;Nl.exports=vn.default});var Fl=q((xi,Wl)=>{"use strict";xi.__esModule=!0;xi.default=km;function km(e){return e.sort(function(t,n){return t-n})}Wl.exports=xi.default});var fs=q(B=>{"use strict";B.__esModule=!0;B.combinator=B.word=B.comment=B.str=B.tab=B.newline=B.feed=B.cr=B.backslash=B.bang=B.slash=B.doubleQuote=B.singleQuote=B.space=B.greaterThan=B.pipe=B.equals=B.plus=B.caret=B.tilde=B.dollar=B.closeSquare=B.openSquare=B.closeParenthesis=B.openParenthesis=B.semicolon=B.colon=B.comma=B.at=B.asterisk=B.ampersand=void 0;var Om=38;B.ampersand=Om;var Pm=42;B.asterisk=Pm;var Am=64;B.at=Am;var Im=44;B.comma=Im;var Rm=58;B.colon=Rm;var Cm=59;B.semicolon=Cm;var Lm=40;B.openParenthesis=Lm;var Mm=41;B.closeParenthesis=Mm;var Nm=91;B.openSquare=Nm;var Wm=93;B.closeSquare=Wm;var Fm=36;B.dollar=Fm;var Dm=126;B.tilde=Dm;var $m=94;B.caret=$m;var Bm=43;B.plus=Bm;var Um=61;B.equals=Um;var qm=124;B.pipe=qm;var zm=62;B.greaterThan=zm;var Gm=32;B.space=Gm;var Dl=39;B.singleQuote=Dl;var jm=34;B.doubleQuote=jm;var Vm=47;B.slash=Vm;var Hm=33;B.bang=Hm;var Ym=92;B.backslash=Ym;var Xm=13;B.cr=Xm;var Qm=12;B.feed=Qm;var Km=10;B.newline=Km;var Jm=9;B.tab=Jm;var Zm=Dl;B.str=Zm;var e0=-1;B.comment=e0;var t0=-2;B.word=t0;var r0=-3;B.combinator=r0});var Ul=q(yn=>{"use strict";yn.__esModule=!0;yn.default=l0;yn.FIELDS=void 0;var W=n0(fs()),Er,he;function Bl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Bl=function(){return e},e}function n0(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Bl();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var i0=(Er={},Er[W.tab]=!0,Er[W.newline]=!0,Er[W.cr]=!0,Er[W.feed]=!0,Er),o0=(he={},he[W.space]=!0,he[W.tab]=!0,he[W.newline]=!0,he[W.cr]=!0,he[W.feed]=!0,he[W.ampersand]=!0,he[W.asterisk]=!0,he[W.bang]=!0,he[W.comma]=!0,he[W.colon]=!0,he[W.semicolon]=!0,he[W.openParenthesis]=!0,he[W.closeParenthesis]=!0,he[W.openSquare]=!0,he[W.closeSquare]=!0,he[W.singleQuote]=!0,he[W.doubleQuote]=!0,he[W.plus]=!0,he[W.pipe]=!0,he[W.tilde]=!0,he[W.greaterThan]=!0,he[W.equals]=!0,he[W.dollar]=!0,he[W.caret]=!0,he[W.slash]=!0,he),cs={},$l="0123456789abcdefABCDEF";for(wi=0;wi<$l.length;wi++)cs[$l.charCodeAt(wi)]=!0;var wi;function s0(e,t){var n=t,r;do{if(r=e.charCodeAt(n),o0[r])return n-1;r===W.backslash?n=a0(e,n)+1:n++}while(n<e.length);return n-1}function a0(e,t){var n=t,r=e.charCodeAt(n+1);if(!i0[r])if(cs[r]){var i=0;do n++,i++,r=e.charCodeAt(n+1);while(cs[r]&&i<6);i<6&&r===W.space&&n++}else n++;return n}var u0={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};yn.FIELDS=u0;function l0(e){var t=[],n=e.css.valueOf(),r=n,i=r.length,o=-1,s=1,a=0,u=0,f,l,p,h,m,b,y,T,E,P,w,S,O;function I(F,U){if(e.safe)n+=U,E=n.length-1;else throw e.error("Unclosed "+F,s,a-o,a)}for(;a<i;){switch(f=n.charCodeAt(a),f===W.newline&&(o=a,s+=1),f){case W.space:case W.tab:case W.newline:case W.cr:case W.feed:E=a;do E+=1,f=n.charCodeAt(E),f===W.newline&&(o=E,s+=1);while(f===W.space||f===W.newline||f===W.tab||f===W.cr||f===W.feed);O=W.space,h=s,p=E-o-1,u=E;break;case W.plus:case W.greaterThan:case W.tilde:case W.pipe:E=a;do E+=1,f=n.charCodeAt(E);while(f===W.plus||f===W.greaterThan||f===W.tilde||f===W.pipe);O=W.combinator,h=s,p=a-o,u=E;break;case W.asterisk:case W.ampersand:case W.bang:case W.comma:case W.equals:case W.dollar:case W.caret:case W.openSquare:case W.closeSquare:case W.colon:case W.semicolon:case W.openParenthesis:case W.closeParenthesis:E=a,O=f,h=s,p=a-o,u=E+1;break;case W.singleQuote:case W.doubleQuote:S=f===W.singleQuote?"'":'"',E=a;do for(m=!1,E=n.indexOf(S,E+1),E===-1&&I("quote",S),b=E;n.charCodeAt(b-1)===W.backslash;)b-=1,m=!m;while(m);O=W.str,h=s,p=a-o,u=E+1;break;default:f===W.slash&&n.charCodeAt(a+1)===W.asterisk?(E=n.indexOf("*/",a+2)+1,E===0&&I("comment","*/"),l=n.slice(a,E+1),T=l.split(`
|
|
4
|
-
`),y=T.length-1,y>0?(P=s+y,w=E-T[y].length):(P=s,w=o),O=W.comment,s=P,h=P,p=E-w):f===W.slash?(E=a,O=f,h=s,p=a-o,u=E+1):(E=s0(n,a),O=W.word,h=s,p=E-o),u=E+1;break}t.push([O,s,a-o,h,p,a,u]),w&&(o=w,w=null),a=u}return t}});var Xl=q((xn,Yl)=>{"use strict";xn.__esModule=!0;xn.default=void 0;var f0=ut(No()),ds=ut(Fo()),c0=ut(Bo()),ql=ut(qo()),d0=ut(Go()),p0=ut(Ho()),ps=ut(Xo()),h0=ut(Ko()),zl=Si(ns()),m0=ut(os()),hs=ut(as()),g0=ut(ls()),b0=ut(Fl()),C=Si(Ul()),$=Si(fs()),v0=Si($e()),Se=en(),or,ms;function Hl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Hl=function(){return e},e}function Si(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Hl();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function ut(e){return e&&e.__esModule?e:{default:e}}function Gl(e,t){for(var n=0;n<t.length;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)}}function y0(e,t,n){return t&&Gl(e.prototype,t),n&&Gl(e,n),e}var vs=(or={},or[$.space]=!0,or[$.cr]=!0,or[$.feed]=!0,or[$.newline]=!0,or[$.tab]=!0,or),x0=Object.assign({},vs,(ms={},ms[$.comment]=!0,ms));function jl(e){return{line:e[C.FIELDS.START_LINE],column:e[C.FIELDS.START_COL]}}function Vl(e){return{line:e[C.FIELDS.END_LINE],column:e[C.FIELDS.END_COL]}}function sr(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function kr(e){return sr(e[C.FIELDS.START_LINE],e[C.FIELDS.START_COL],e[C.FIELDS.END_LINE],e[C.FIELDS.END_COL])}function gs(e,t){if(e)return sr(e[C.FIELDS.START_LINE],e[C.FIELDS.START_COL],t[C.FIELDS.END_LINE],t[C.FIELDS.END_COL])}function Or(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,Se.ensureObject)(e,"raws"),e[t]=(0,Se.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function bs(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function w0(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var S0=function(){function e(n,r){r===void 0&&(r={}),this.rule=n,this.options=Object.assign({lossy:!1,safe:!1},r),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,C.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=gs(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new f0.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new ds.default({source:{start:{line:1,column:1}}});this.root.append(o),this.current=o,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var r=this;return function(i,o){return typeof r.rule=="string"?new Error(i):r.rule.error(i,o)}},t.attribute=function(){var r=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[C.FIELDS.TYPE]!==$.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[C.FIELDS.TYPE]!==$.closeSquare)return this.expected("closing square bracket",this.currToken[C.FIELDS.START_POS]);var o=r.length,s={source:sr(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[C.FIELDS.START_POS]};if(o===1&&!~[$.word].indexOf(r[0][C.FIELDS.TYPE]))return this.expected("attribute",r[0][C.FIELDS.START_POS]);for(var a=0,u="",f="",l=null,p=!1;a<o;){var h=r[a],m=this.content(h),b=r[a+1];switch(h[C.FIELDS.TYPE]){case $.space:if(p=!0,this.options.lossy)break;if(l){(0,Se.ensureObject)(s,"spaces",l);var y=s.spaces[l].after||"";s.spaces[l].after=y+m;var T=(0,Se.getProp)(s,"raws","spaces",l,"after")||null;T&&(s.raws.spaces[l].after=T+m)}else u=u+m,f=f+m;break;case $.asterisk:if(b[C.FIELDS.TYPE]===$.equals)s.operator=m,l="operator";else if((!s.namespace||l==="namespace"&&!p)&&b){u&&((0,Se.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),f&&((0,Se.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,f=""),s.namespace=(s.namespace||"")+m;var E=(0,Se.getProp)(s,"raws","namespace")||null;E&&(s.raws.namespace+=m),l="namespace"}p=!1;break;case $.dollar:if(l==="value"){var P=(0,Se.getProp)(s,"raws","value");s.value+="$",P&&(s.raws.value=P+"$");break}case $.caret:b[C.FIELDS.TYPE]===$.equals&&(s.operator=m,l="operator"),p=!1;break;case $.combinator:if(m==="~"&&b[C.FIELDS.TYPE]===$.equals&&(s.operator=m,l="operator"),m!=="|"){p=!1;break}b[C.FIELDS.TYPE]===$.equals?(s.operator=m,l="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),p=!1;break;case $.word:if(b&&this.content(b)==="|"&&r[a+2]&&r[a+2][C.FIELDS.TYPE]!==$.equals&&!s.operator&&!s.namespace)s.namespace=m,l="namespace";else if(!s.attribute||l==="attribute"&&!p){u&&((0,Se.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),f&&((0,Se.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=f,f=""),s.attribute=(s.attribute||"")+m;var w=(0,Se.getProp)(s,"raws","attribute")||null;w&&(s.raws.attribute+=m),l="attribute"}else if(!s.value&&s.value!==""||l==="value"&&!p){var S=(0,Se.unesc)(m),O=(0,Se.getProp)(s,"raws","value")||"",I=s.value||"";s.value=I+S,s.quoteMark=null,(S!==m||O)&&((0,Se.ensureObject)(s,"raws"),s.raws.value=(O||I)+m),l="value"}else{var F=m==="i"||m==="I";(s.value||s.value==="")&&(s.quoteMark||p)?(s.insensitive=F,(!F||m==="I")&&((0,Se.ensureObject)(s,"raws"),s.raws.insensitiveFlag=m),l="insensitive",u&&((0,Se.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),f&&((0,Se.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=f,f="")):(s.value||s.value==="")&&(l="value",s.value+=m,s.raws.value&&(s.raws.value+=m))}p=!1;break;case $.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:h[C.FIELDS.START_POS]});var U=(0,zl.unescapeValue)(m),V=U.unescaped,de=U.quoteMark;s.value=V,s.quoteMark=de,l="value",(0,Se.ensureObject)(s,"raws"),s.raws.value=m,p=!1;break;case $.equals:if(!s.attribute)return this.expected("attribute",h[C.FIELDS.START_POS],m);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:h[C.FIELDS.START_POS]});s.operator=s.operator?s.operator+m:m,l="operator",p=!1;break;case $.comment:if(l)if(p||b&&b[C.FIELDS.TYPE]===$.space||l==="insensitive"){var Ae=(0,Se.getProp)(s,"spaces",l,"after")||"",me=(0,Se.getProp)(s,"raws","spaces",l,"after")||Ae;(0,Se.ensureObject)(s,"raws","spaces",l),s.raws.spaces[l].after=me+m}else{var ue=s[l]||"",Ie=(0,Se.getProp)(s,"raws",l)||ue;(0,Se.ensureObject)(s,"raws"),s.raws[l]=Ie+m}else f=f+m;break;default:return this.error('Unexpected "'+m+'" found.',{index:h[C.FIELDS.START_POS]})}a++}Or(s,"attribute"),Or(s,"namespace"),this.newNode(new zl.default(s)),this.position++},t.parseWhitespaceEquivalentTokens=function(r){r<0&&(r=this.tokens.length);var i=this.position,o=[],s="",a=void 0;do if(vs[this.currToken[C.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[C.FIELDS.TYPE]===$.comment){var u={};s&&(u.before=s,s=""),a=new ql.default({value:this.content(),source:kr(this.currToken),sourceIndex:this.currToken[C.FIELDS.START_POS],spaces:u}),o.push(a)}while(++this.position<r);if(s){if(a)a.spaces.after=s;else if(!this.options.lossy){var f=this.tokens[i],l=this.tokens[this.position-1];o.push(new ps.default({value:"",source:sr(f[C.FIELDS.START_LINE],f[C.FIELDS.START_COL],l[C.FIELDS.END_LINE],l[C.FIELDS.END_COL]),sourceIndex:f[C.FIELDS.START_POS],spaces:{before:s,after:""}}))}}return o},t.convertWhitespaceNodesToSpace=function(r,i){var o=this;i===void 0&&(i=!1);var s="",a="";r.forEach(function(f){var l=o.lossySpace(f.spaces.before,i),p=o.lossySpace(f.rawSpaceBefore,i);s+=l+o.lossySpace(f.spaces.after,i&&l.length===0),a+=l+f.value+o.lossySpace(f.rawSpaceAfter,i&&p.length===0)}),a===s&&(a=void 0);var u={space:s,rawSpace:a};return u},t.isNamedCombinator=function(r){return r===void 0&&(r=this.position),this.tokens[r+0]&&this.tokens[r+0][C.FIELDS.TYPE]===$.slash&&this.tokens[r+1]&&this.tokens[r+1][C.FIELDS.TYPE]===$.word&&this.tokens[r+2]&&this.tokens[r+2][C.FIELDS.TYPE]===$.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var r=this.content(this.tokens[this.position+1]),i=(0,Se.unesc)(r).toLowerCase(),o={};i!==r&&(o.value="/"+r+"/");var s=new hs.default({value:"/"+i+"/",source:sr(this.currToken[C.FIELDS.START_LINE],this.currToken[C.FIELDS.START_COL],this.tokens[this.position+2][C.FIELDS.END_LINE],this.tokens[this.position+2][C.FIELDS.END_COL]),sourceIndex:this.currToken[C.FIELDS.START_POS],raws:o});return this.position=this.position+3,s}else this.unexpected()},t.combinator=function(){var r=this;if(this.content()==="|")return this.namespace();var i=this.locateNextMeaningfulToken(this.position);if(i<0||this.tokens[i][C.FIELDS.TYPE]===$.comma){var o=this.parseWhitespaceEquivalentTokens(i);if(o.length>0){var s=this.current.last;if(s){var a=this.convertWhitespaceNodesToSpace(o),u=a.space,f=a.rawSpace;f!==void 0&&(s.rawSpaceAfter+=f),s.spaces.after+=u}else o.forEach(function(O){return r.newNode(O)})}return}var l=this.currToken,p=void 0;i>this.position&&(p=this.parseWhitespaceEquivalentTokens(i));var h;if(this.isNamedCombinator()?h=this.namedCombinator():this.currToken[C.FIELDS.TYPE]===$.combinator?(h=new hs.default({value:this.content(),source:kr(this.currToken),sourceIndex:this.currToken[C.FIELDS.START_POS]}),this.position++):vs[this.currToken[C.FIELDS.TYPE]]||p||this.unexpected(),h){if(p){var m=this.convertWhitespaceNodesToSpace(p),b=m.space,y=m.rawSpace;h.spaces.before=b,h.rawSpaceBefore=y}}else{var T=this.convertWhitespaceNodesToSpace(p,!0),E=T.space,P=T.rawSpace;P||(P=E);var w={},S={spaces:{}};E.endsWith(" ")&&P.endsWith(" ")?(w.before=E.slice(0,E.length-1),S.spaces.before=P.slice(0,P.length-1)):E.startsWith(" ")&&P.startsWith(" ")?(w.after=E.slice(1),S.spaces.after=P.slice(1)):S.value=P,h=new hs.default({value:" ",source:gs(l,this.tokens[this.position-1]),sourceIndex:l[C.FIELDS.START_POS],spaces:w,raws:S})}return this.currToken&&this.currToken[C.FIELDS.TYPE]===$.space&&(h.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(h)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var r=new ds.default({source:{start:jl(this.tokens[this.position+1])}});this.current.parent.append(r),this.current=r,this.position++},t.comment=function(){var r=this.currToken;this.newNode(new ql.default({value:this.content(),source:kr(r),sourceIndex:r[C.FIELDS.START_POS]})),this.position++},t.error=function(r,i){throw this.root.error(r,i)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[C.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[C.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[C.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[C.FIELDS.START_POS])},t.namespace=function(){var r=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[C.FIELDS.TYPE]===$.word)return this.position++,this.word(r);if(this.nextToken[C.FIELDS.TYPE]===$.asterisk)return this.position++,this.universal(r)},t.nesting=function(){if(this.nextToken){var r=this.content(this.nextToken);if(r==="|"){this.position++;return}}var i=this.currToken;this.newNode(new g0.default({value:this.content(),source:kr(i),sourceIndex:i[C.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var r=this.current.last,i=1;if(this.position++,r&&r.type===v0.PSEUDO){var o=new ds.default({source:{start:jl(this.tokens[this.position-1])}}),s=this.current;for(r.append(o),this.current=o;this.position<this.tokens.length&&i;)this.currToken[C.FIELDS.TYPE]===$.openParenthesis&&i++,this.currToken[C.FIELDS.TYPE]===$.closeParenthesis&&i--,i?this.parse():(this.current.source.end=Vl(this.currToken),this.current.parent.source.end=Vl(this.currToken),this.position++);this.current=s}else{for(var a=this.currToken,u="(",f;this.position<this.tokens.length&&i;)this.currToken[C.FIELDS.TYPE]===$.openParenthesis&&i++,this.currToken[C.FIELDS.TYPE]===$.closeParenthesis&&i--,f=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;r?r.appendToPropertyAndEscape("value",u,u):this.newNode(new ps.default({value:u,source:sr(a[C.FIELDS.START_LINE],a[C.FIELDS.START_COL],f[C.FIELDS.END_LINE],f[C.FIELDS.END_COL]),sourceIndex:a[C.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[C.FIELDS.START_POS])},t.pseudo=function(){for(var r=this,i="",o=this.currToken;this.currToken&&this.currToken[C.FIELDS.TYPE]===$.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[C.FIELDS.TYPE]===$.word)this.splitWord(!1,function(s,a){i+=s,r.newNode(new h0.default({value:i,source:gs(o,r.currToken),sourceIndex:o[C.FIELDS.START_POS]})),a>1&&r.nextToken&&r.nextToken[C.FIELDS.TYPE]===$.openParenthesis&&r.error("Misplaced parenthesis.",{index:r.nextToken[C.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[C.FIELDS.START_POS])},t.space=function(){var r=this.content();this.position===0||this.prevToken[C.FIELDS.TYPE]===$.comma||this.prevToken[C.FIELDS.TYPE]===$.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(r),this.position++):this.position===this.tokens.length-1||this.nextToken[C.FIELDS.TYPE]===$.comma||this.nextToken[C.FIELDS.TYPE]===$.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(r),this.position++):this.combinator()},t.string=function(){var r=this.currToken;this.newNode(new ps.default({value:this.content(),source:kr(r),sourceIndex:r[C.FIELDS.START_POS]})),this.position++},t.universal=function(r){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var o=this.currToken;this.newNode(new m0.default({value:this.content(),source:kr(o),sourceIndex:o[C.FIELDS.START_POS]}),r),this.position++},t.splitWord=function(r,i){for(var o=this,s=this.nextToken,a=this.content();s&&~[$.dollar,$.caret,$.equals,$.word].indexOf(s[C.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var f=this.nextToken;f&&f[C.FIELDS.TYPE]===$.space&&(a+=this.requiredSpace(this.content(f)),this.position++)}s=this.nextToken}var l=bs(a,".").filter(function(b){var y=a[b-1]==="\\",T=/^\d+\.\d+%$/.test(a);return!y&&!T}),p=bs(a,"#").filter(function(b){return a[b-1]!=="\\"}),h=bs(a,"#{");h.length&&(p=p.filter(function(b){return!~h.indexOf(b)}));var m=(0,b0.default)(w0([0].concat(l,p)));m.forEach(function(b,y){var T=m[y+1]||a.length,E=a.slice(b,T);if(y===0&&i)return i.call(o,E,m.length);var P,w=o.currToken,S=w[C.FIELDS.START_POS]+m[y],O=sr(w[1],w[2]+b,w[3],w[2]+(T-1));if(~l.indexOf(b)){var I={value:E.slice(1),source:O,sourceIndex:S};P=new c0.default(Or(I,"value"))}else if(~p.indexOf(b)){var F={value:E.slice(1),source:O,sourceIndex:S};P=new d0.default(Or(F,"value"))}else{var U={value:E,source:O,sourceIndex:S};Or(U,"value"),P=new p0.default(U)}o.newNode(P,r),r=null}),this.position++},t.word=function(r){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(r)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(r){switch(this.currToken[C.FIELDS.TYPE]){case $.space:this.space();break;case $.comment:this.comment();break;case $.openParenthesis:this.parentheses();break;case $.closeParenthesis:r&&this.missingParenthesis();break;case $.openSquare:this.attribute();break;case $.dollar:case $.caret:case $.equals:case $.word:this.word();break;case $.colon:this.pseudo();break;case $.comma:this.comma();break;case $.asterisk:this.universal();break;case $.ampersand:this.nesting();break;case $.slash:case $.combinator:this.combinator();break;case $.str:this.string();break;case $.closeSquare:this.missingSquareBracket();case $.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(r,i,o){if(Array.isArray(r)){var s=r.pop();r=r.join(", ")+" or "+s}var a=/^[aeiou]/.test(r[0])?"an":"a";return o?this.error("Expected "+a+" "+r+', found "'+o+'" instead.',{index:i}):this.error("Expected "+a+" "+r+".",{index:i})},t.requiredSpace=function(r){return this.options.lossy?" ":r},t.optionalSpace=function(r){return this.options.lossy?"":r},t.lossySpace=function(r,i){return this.options.lossy?i?" ":"":r},t.parseParenthesisToken=function(r){var i=this.content(r);return r[C.FIELDS.TYPE]===$.space?this.requiredSpace(i):i},t.newNode=function(r,i){return i&&(/^ +$/.test(i)&&(this.options.lossy||(this.spaces=(this.spaces||"")+i),i=!0),r.namespace=i,Or(r,"namespace")),this.spaces&&(r.spaces.before=this.spaces,this.spaces=""),this.current.append(r)},t.content=function(r){return r===void 0&&(r=this.currToken),this.css.slice(r[C.FIELDS.START_POS],r[C.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(r){r===void 0&&(r=this.position+1);for(var i=r;i<this.tokens.length;)if(x0[this.tokens[i][C.FIELDS.TYPE]]){i++;continue}else return i;return-1},y0(e,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),e}();xn.default=S0;Yl.exports=xn.default});var Kl=q((wn,Ql)=>{"use strict";wn.__esModule=!0;wn.default=void 0;var _0=T0(Xl());function T0(e){return e&&e.__esModule?e:{default:e}}var E0=function(){function e(n,r){this.func=n||function(){},this.funcRes=null,this.options=r}var t=e.prototype;return t._shouldUpdateSelector=function(r,i){i===void 0&&(i={});var o=Object.assign({},this.options,i);return o.updateSelector===!1?!1:typeof r!="string"},t._isLossy=function(r){r===void 0&&(r={});var i=Object.assign({},this.options,r);return i.lossless===!1},t._root=function(r,i){i===void 0&&(i={});var o=new _0.default(r,this._parseOptions(i));return o.root},t._parseOptions=function(r){return{lossy:this._isLossy(r)}},t._run=function(r,i){var o=this;return i===void 0&&(i={}),new Promise(function(s,a){try{var u=o._root(r,i);Promise.resolve(o.func(u)).then(function(f){var l=void 0;return o._shouldUpdateSelector(r,i)&&(l=u.toString(),r.selector=l),{transform:f,root:u,string:l}}).then(s,a)}catch(f){a(f);return}})},t._runSync=function(r,i){i===void 0&&(i={});var o=this._root(r,i),s=this.func(o);if(s&&typeof s.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var a=void 0;return i.updateSelector&&typeof r!="string"&&(a=o.toString(),r.selector=a),{transform:s,root:o,string:a}},t.ast=function(r,i){return this._run(r,i).then(function(o){return o.root})},t.astSync=function(r,i){return this._runSync(r,i).root},t.transform=function(r,i){return this._run(r,i).then(function(o){return o.transform})},t.transformSync=function(r,i){return this._runSync(r,i).transform},t.process=function(r,i){return this._run(r,i).then(function(o){return o.string||o.root.toString()})},t.processSync=function(r,i){var o=this._runSync(r,i);return o.string||o.root.toString()},e}();wn.default=E0;Ql.exports=wn.default});var Jl=q(be=>{"use strict";be.__esModule=!0;be.universal=be.tag=be.string=be.selector=be.root=be.pseudo=be.nesting=be.id=be.comment=be.combinator=be.className=be.attribute=void 0;var k0=lt(ns()),O0=lt(Bo()),P0=lt(as()),A0=lt(qo()),I0=lt(Go()),R0=lt(ls()),C0=lt(Ko()),L0=lt(No()),M0=lt(Fo()),N0=lt(Xo()),W0=lt(Ho()),F0=lt(os());function lt(e){return e&&e.__esModule?e:{default:e}}var D0=function(t){return new k0.default(t)};be.attribute=D0;var $0=function(t){return new O0.default(t)};be.className=$0;var B0=function(t){return new P0.default(t)};be.combinator=B0;var U0=function(t){return new A0.default(t)};be.comment=U0;var q0=function(t){return new I0.default(t)};be.id=q0;var z0=function(t){return new R0.default(t)};be.nesting=z0;var G0=function(t){return new C0.default(t)};be.pseudo=G0;var j0=function(t){return new L0.default(t)};be.root=j0;var V0=function(t){return new M0.default(t)};be.selector=V0;var H0=function(t){return new N0.default(t)};be.string=H0;var Y0=function(t){return new W0.default(t)};be.tag=Y0;var X0=function(t){return new F0.default(t)};be.universal=X0});var rf=q(oe=>{"use strict";oe.__esModule=!0;oe.isNode=ys;oe.isPseudoElement=tf;oe.isPseudoClass=sg;oe.isContainer=ag;oe.isNamespace=ug;oe.isUniversal=oe.isTag=oe.isString=oe.isSelector=oe.isRoot=oe.isPseudo=oe.isNesting=oe.isIdentifier=oe.isComment=oe.isCombinator=oe.isClassName=oe.isAttribute=void 0;var _e=$e(),Qe,Q0=(Qe={},Qe[_e.ATTRIBUTE]=!0,Qe[_e.CLASS]=!0,Qe[_e.COMBINATOR]=!0,Qe[_e.COMMENT]=!0,Qe[_e.ID]=!0,Qe[_e.NESTING]=!0,Qe[_e.PSEUDO]=!0,Qe[_e.ROOT]=!0,Qe[_e.SELECTOR]=!0,Qe[_e.STRING]=!0,Qe[_e.TAG]=!0,Qe[_e.UNIVERSAL]=!0,Qe);function ys(e){return typeof e=="object"&&Q0[e.type]}function ft(e,t){return ys(t)&&t.type===e}var Zl=ft.bind(null,_e.ATTRIBUTE);oe.isAttribute=Zl;var K0=ft.bind(null,_e.CLASS);oe.isClassName=K0;var J0=ft.bind(null,_e.COMBINATOR);oe.isCombinator=J0;var Z0=ft.bind(null,_e.COMMENT);oe.isComment=Z0;var eg=ft.bind(null,_e.ID);oe.isIdentifier=eg;var tg=ft.bind(null,_e.NESTING);oe.isNesting=tg;var xs=ft.bind(null,_e.PSEUDO);oe.isPseudo=xs;var rg=ft.bind(null,_e.ROOT);oe.isRoot=rg;var ng=ft.bind(null,_e.SELECTOR);oe.isSelector=ng;var ig=ft.bind(null,_e.STRING);oe.isString=ig;var ef=ft.bind(null,_e.TAG);oe.isTag=ef;var og=ft.bind(null,_e.UNIVERSAL);oe.isUniversal=og;function tf(e){return xs(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function sg(e){return xs(e)&&!tf(e)}function ag(e){return!!(ys(e)&&e.walk)}function ug(e){return Zl(e)||ef(e)}});var nf=q(_t=>{"use strict";_t.__esModule=!0;var ws=$e();Object.keys(ws).forEach(function(e){e==="default"||e==="__esModule"||e in _t&&_t[e]===ws[e]||(_t[e]=ws[e])});var Ss=Jl();Object.keys(Ss).forEach(function(e){e==="default"||e==="__esModule"||e in _t&&_t[e]===Ss[e]||(_t[e]=Ss[e])});var _s=rf();Object.keys(_s).forEach(function(e){e==="default"||e==="__esModule"||e in _t&&_t[e]===_s[e]||(_t[e]=_s[e])})});var af=q((Sn,sf)=>{"use strict";Sn.__esModule=!0;Sn.default=void 0;var lg=dg(Kl()),fg=cg(nf());function of(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return of=function(){return e},e}function cg(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=of();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function dg(e){return e&&e.__esModule?e:{default:e}}var Ts=function(t){return new lg.default(t)};Object.assign(Ts,fg);delete Ts.__esModule;var pg=Ts;Sn.default=pg;sf.exports=Sn.default});var uf=q(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Object.defineProperty(Es,"default",{enumerable:!0,get:()=>hg});function hg(e){return e.replace(/\\,/g,"\\2c ")}});var ff=q((m1,lf)=>{"use strict";lf.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Os=q(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});function mg(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}mg(ks,{parseColor:()=>wg,formatColor:()=>Sg});var cf=gg(ff());function gg(e){return e&&e.__esModule?e:{default:e}}var bg=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,vg=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Ht=/(?:\d+|\d*\.\d+)%?/,_i=/(?:\s*,\s*|\s+)/,df=/\s*[,/]\s*/,Yt=/var\(--(?:[^ )]*?)\)/,yg=new RegExp(`^(rgb)a?\\(\\s*(${Ht.source}|${Yt.source})(?:${_i.source}(${Ht.source}|${Yt.source}))?(?:${_i.source}(${Ht.source}|${Yt.source}))?(?:${df.source}(${Ht.source}|${Yt.source}))?\\s*\\)$`),xg=new RegExp(`^(hsl)a?\\(\\s*((?:${Ht.source})(?:deg|rad|grad|turn)?|${Yt.source})(?:${_i.source}(${Ht.source}|${Yt.source}))?(?:${_i.source}(${Ht.source}|${Yt.source}))?(?:${df.source}(${Ht.source}|${Yt.source}))?\\s*\\)$`);function wg(e,{loose:t=!1}={}){var n,r;if(typeof e!="string")return null;if(e=e.trim(),e==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in cf.default)return{mode:"rgb",color:cf.default[e].map(u=>u.toString())};let i=e.replace(vg,(u,f,l,p,h)=>["#",f,f,l,l,p,p,h?h+h:""].join("")).match(bg);if(i!==null)return{mode:"rgb",color:[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)].map(u=>u.toString()),alpha:i[4]?(parseInt(i[4],16)/255).toString():void 0};var o;let s=(o=e.match(yg))!==null&&o!==void 0?o:e.match(xg);if(s===null)return null;let a=[s[2],s[3],s[4]].filter(Boolean).map(u=>u.toString());return!t&&a.length!==3||a.length<3&&!a.some(u=>/^var\(.*?\)$/.test(u))?null:{mode:s[1],color:a,alpha:(n=s[5])===null||n===void 0||(r=n.toString)===null||r===void 0?void 0:r.call(n)}}function Sg({mode:e,color:t,alpha:n}){let r=n!==void 0;return`${e}(${t.join(" ")}${r?` / ${n}`:""})`}});var As=q(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});function _g(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}_g(Ps,{withAlphaValue:()=>Tg,default:()=>Eg});var Ti=Os();function Tg(e,t,n){if(typeof e=="function")return e({opacityValue:t});let r=(0,Ti.parseColor)(e,{loose:!0});return r===null?n:(0,Ti.formatColor)({...r,alpha:t})}function Eg({color:e,property:t,variable:n}){let r=[].concat(t);if(typeof e=="function")return{[n]:"1",...Object.fromEntries(r.map(o=>[o,e({opacityVariable:n,opacityValue:`var(${n})`})]))};let i=(0,Ti.parseColor)(e);return i===null?Object.fromEntries(r.map(o=>[o,e])):i.alpha!==void 0?Object.fromEntries(r.map(o=>[o,e])):{[n]:"1",...Object.fromEntries(r.map(o=>[o,(0,Ti.formatColor)({...i,alpha:`var(${n})`})]))}}});var bf=q(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});function kg(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}kg(Is,{pattern:()=>Pg,withoutCapturing:()=>hf,any:()=>mf,optional:()=>Ag,zeroOrMore:()=>Ig,nestedBrackets:()=>gf,escape:()=>ar});var pf=/[\\^$.*+?()[\]{}|]/g,Og=RegExp(pf.source);function _n(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function Pg(e){return new RegExp(_n(e),"g")}function hf(e){return new RegExp(`(?:${_n(e)})`,"g")}function mf(e){return`(?:${e.map(_n).join("|")})`}function Ag(e){return`(?:${_n(e)})?`}function Ig(e){return`(?:${_n(e)})*`}function gf(e,t,n=1){return hf([ar(e),/[^\s]*/,n===1?`[^${ar(e)}${ar(t)}s]*`:mf([`[^${ar(e)}${ar(t)}s]*`,gf(e,t,n-1)]),/[^\s]*/,ar(t)])}function ar(e){return e&&Og.test(e)?e.replace(pf,"\\$&"):e||""}});var yf=q(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Object.defineProperty(Rs,"splitAtTopLevelOnly",{enumerable:!0,get:()=>Lg});var Rg=Cg(bf());function vf(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(vf=function(r){return r?n:t})(e)}function Cg(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=vf(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function*Lg(e,t){let n=new RegExp(`[(){}\\[\\]${Rg.escape(t)}]`,"g"),r=0,i=0,o=!1,s=0,a=0,u=t.length;for(let f of e.matchAll(n)){let l=f[0]===t[s],p=s===u-1,h=l&&p;f[0]==="("&&r++,f[0]===")"&&r--,f[0]==="["&&r++,f[0]==="]"&&r--,f[0]==="{"&&r++,f[0]==="}"&&r--,l&&r===0&&(a===0&&(a=f.index),s++),h&&r===0&&(o=!0,yield e.substring(i,a),i=a+u),s===u&&(s=0,a=0)}o?yield e.substring(i):yield e}});var wf=q(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});function Mg(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Mg(Cs,{parseBoxShadowValue:()=>Dg,formatBoxShadowValue:()=>$g});var Ng=yf(),Wg=new Set(["inset","inherit","initial","revert","unset"]),Fg=/\ +(?![^(]*\))/g,xf=/^-?(\d+|\.\d+)(.*?)$/g;function Dg(e){return Array.from((0,Ng.splitAtTopLevelOnly)(e,",")).map(n=>{let r=n.trim(),i={raw:r},o=r.split(Fg),s=new Set;for(let a of o)xf.lastIndex=0,!s.has("KEYWORD")&&Wg.has(a)?(i.keyword=a,s.add("KEYWORD")):xf.test(a)?s.has("X")?s.has("Y")?s.has("BLUR")?s.has("SPREAD")||(i.spread=a,s.add("SPREAD")):(i.blur=a,s.add("BLUR")):(i.y=a,s.add("Y")):(i.x=a,s.add("X")):i.color?(i.unknown||(i.unknown=[]),i.unknown.push(a)):i.color=a;return i.valid=i.x!==void 0&&i.y!==void 0,i})}function $g(e){return e.map(t=>t.valid?[t.keyword,t.x,t.y,t.blur,t.spread,t.color].filter(Boolean).join(" "):t.raw).join(", ")}});var Pf=q(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});function Bg(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Bg(Ms,{normalize:()=>Xt,url:()=>Tf,number:()=>zg,percentage:()=>Ef,length:()=>kf,lineWidth:()=>Vg,shadow:()=>Hg,color:()=>Yg,image:()=>Xg,gradient:()=>Of,position:()=>Jg,familyName:()=>Zg,genericName:()=>tb,absoluteSize:()=>nb,relativeSize:()=>ob});var Ug=Os(),qg=wf(),Ls=["min","max","clamp","calc"],_f=/,(?![^(]*\))/g,Ei=/_(?![^(]*\))/g;function Xt(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(n=>/^url\(.*?\)$/.test(n)?n:Xt(n,!1)).join(""):(e=e.replace(/([^\\])_+/g,(n,r)=>r+" ".repeat(n.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),t&&(e=e.trim()),e=e.replace(/(calc|min|max|clamp)\(.+\)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),e)}function Tf(e){return e.startsWith("url(")}function zg(e){return!isNaN(Number(e))||Ls.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function Ef(e){return e.split(Ei).every(t=>/%$/g.test(t)||Ls.some(n=>new RegExp(`^${n}\\(.+?%`).test(t)))}var Gg=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],Sf=`(?:${Gg.join("|")})`;function kf(e){return e.split(Ei).every(t=>t==="0"||new RegExp(`${Sf}$`).test(t)||Ls.some(n=>new RegExp(`^${n}\\(.+?${Sf}`).test(t)))}var jg=new Set(["thin","medium","thick"]);function Vg(e){return jg.has(e)}function Hg(e){let t=(0,qg.parseBoxShadowValue)(Xt(e));for(let n of t)if(!n.valid)return!1;return!0}function Yg(e){let t=0;return e.split(Ei).every(r=>(r=Xt(r),r.startsWith("var(")?!0:(0,Ug.parseColor)(r,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function Xg(e){let t=0;return e.split(_f).every(r=>(r=Xt(r),r.startsWith("var(")?!0:Tf(r)||Of(r)||["element(","image(","cross-fade(","image-set("].some(i=>r.startsWith(i))?(t++,!0):!1))?t>0:!1}var Qg=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function Of(e){e=Xt(e);for(let t of Qg)if(e.startsWith(`${t}(`))return!0;return!1}var Kg=new Set(["center","top","right","bottom","left"]);function Jg(e){let t=0;return e.split(Ei).every(r=>(r=Xt(r),r.startsWith("var(")?!0:Kg.has(r)||kf(r)||Ef(r)?(t++,!0):!1))?t>0:!1}function Zg(e){let t=0;return e.split(_f).every(r=>(r=Xt(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(t++,!0)))?t>0:!1}var eb=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function tb(e){return eb.has(e)}var rb=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function nb(e){return rb.has(e)}var ib=new Set(["larger","smaller"]);function ob(e){return ib.has(e)}});var Wf=q(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});function sb(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}sb(Fs,{updateAllClasses:()=>lb,asValue:()=>En,parseColorFormat:()=>Ns,asColor:()=>Lf,asLookupValue:()=>Mf,coerceValue:()=>pb});var ab=Ws(af()),ub=Ws(uf()),Af=As(),Ke=Pf(),If=Ws(wo());function Ws(e){return e&&e.__esModule?e:{default:e}}function lb(e,t){return(0,ab.default)(i=>{i.walkClasses(o=>{let s=t(o.value);o.value=s,o.raws&&o.raws.value&&(o.raws.value=(0,ub.default)(o.raws.value))})}).processSync(e)}function Cf(e,t){if(!Tn(e))return;let n=e.slice(1,-1);if(t(n))return(0,Ke.normalize)(n)}function fb(e,t={},n){let r=t[e];if(r!==void 0)return(0,If.default)(r);if(Tn(e)){let i=Cf(e,n);return i===void 0?void 0:(0,If.default)(i)}}function En(e,t={},{validate:n=()=>!0}={}){var r;let i=(r=t.values)===null||r===void 0?void 0:r[e];return i!==void 0?i:t.supportsNegativeValues&&e.startsWith("-")?fb(e.slice(1),t.values,n):Cf(e,n)}function Tn(e){return e.startsWith("[")&&e.endsWith("]")}function cb(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function Ns(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:n=1})=>t.replace("<alpha-value>",n)}return e}function Lf(e,t={},{tailwindConfig:n={}}={}){var r;if(((r=t.values)===null||r===void 0?void 0:r[e])!==void 0){var i;return Ns((i=t.values)===null||i===void 0?void 0:i[e])}let[o,s]=cb(e);if(s!==void 0){var a,u,f,l;let p=(l=(a=t.values)===null||a===void 0?void 0:a[o])!==null&&l!==void 0?l:Tn(o)?o.slice(1,-1):void 0;return p===void 0?void 0:(p=Ns(p),Tn(s)?(0,Af.withAlphaValue)(p,s.slice(1,-1)):((u=n.theme)===null||u===void 0||(f=u.opacity)===null||f===void 0?void 0:f[s])===void 0?void 0:(0,Af.withAlphaValue)(p,n.theme.opacity[s]))}return En(e,t,{validate:Ke.color})}function Mf(e,t={}){var n;return(n=t.values)===null||n===void 0?void 0:n[e]}function ct(e){return(t,n)=>En(t,n,{validate:e})}var Nf={any:En,color:Lf,url:ct(Ke.url),image:ct(Ke.image),length:ct(Ke.length),percentage:ct(Ke.percentage),position:ct(Ke.position),lookup:Mf,"generic-name":ct(Ke.genericName),"family-name":ct(Ke.familyName),number:ct(Ke.number),"line-width":ct(Ke.lineWidth),"absolute-size":ct(Ke.absoluteSize),"relative-size":ct(Ke.relativeSize),shadow:ct(Ke.shadow)},Rf=Object.keys(Nf);function db(e,t){let n=e.indexOf(t);return n===-1?[void 0,e]:[e.slice(0,n),e.slice(n+1)]}function pb(e,t,n,r){if(Tn(t)){let i=t.slice(1,-1),[o,s]=db(i,":");if(!/^[\w-_]+$/g.test(o))s=i;else if(o!==void 0&&!Rf.includes(o))return[];if(s.length>0&&Rf.includes(o))return[En(`[${s}]`,n),o]}for(let i of[].concat(e)){let o=Nf[i](t,n,{tailwindConfig:r});if(o!==void 0)return[o,i]}return[]}});var Ff=q(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Object.defineProperty(Ds,"default",{enumerable:!0,get:()=>hb});function hb(e){return typeof e=="function"?e({}):e}});var qf=q(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Object.defineProperty(Bs,"default",{enumerable:!0,get:()=>Mb});var mb=ur(wo()),gb=ur(Gu()),bb=ur(ju()),vb=ur(To()),yb=ur(Hu()),Bf=Yu(),Df=Xu(),xb=Ku(),wb=ur(Ju()),Sb=Zu(),_b=Wf(),Tb=As(),Eb=ur(Ff());function ur(e){return e&&e.__esModule?e:{default:e}}function Pr(e){return typeof e=="function"}function kn(e){return typeof e=="object"&&e!==null}function On(e,...t){let n=t.pop();for(let r of t)for(let i in r){let o=n(e[i],r[i]);o===void 0?kn(e[i])&&kn(r[i])?e[i]=On(e[i],r[i],n):e[i]=r[i]:e[i]=o}return e}var $s={colors:yb.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,n)=>{let r=(0,mb.default)(e[n]);return r!==void 0&&(t[`-${n}`]=r),t},{})},breakpoints(e){return Object.keys(e).filter(t=>typeof e[t]=="string").reduce((t,n)=>({...t,[`screen-${n}`]:e[n]}),{})}};function kb(e,...t){return Pr(e)?e(...t):e}function Ob(e){return e.reduce((t,{extend:n})=>On(t,n,(r,i)=>r===void 0?[i]:Array.isArray(r)?[i,...r]:[i,r]),{})}function Pb(e){return{...e.reduce((t,n)=>(0,Bf.defaults)(t,n),{}),extend:Ob(e)}}function $f(e,t){if(Array.isArray(e)&&kn(e[0]))return e.concat(t);if(Array.isArray(t)&&kn(t[0])&&kn(e))return[e,...t];if(Array.isArray(t))return t}function Ab({extend:e,...t}){return On(t,e,(n,r)=>!Pr(n)&&!r.some(Pr)?On({},n,...r,$f):(i,o)=>On({},...[n,...r].map(s=>kb(s,i,o)),$f))}function*Ib(e){let t=(0,Df.toPath)(e);if(t.length===0||(yield t,Array.isArray(e)))return;let n=/^(.*?)\s*\/\s*([^/]+)$/,r=e.match(n);if(r!==null){let[,i,o]=r,s=(0,Df.toPath)(i);s.alpha=o,yield s}}function Rb(e){let t=(n,r)=>{for(let i of Ib(n)){let o=0,s=e;for(;s!=null&&o<i.length;)s=s[i[o++]],s=Pr(s)&&(i.alpha===void 0||o<=i.length-1)?s(t,$s):s;if(s!==void 0){if(i.alpha!==void 0){let a=(0,_b.parseColorFormat)(s);return(0,Tb.withAlphaValue)(a,i.alpha,(0,Eb.default)(a))}return(0,wb.default)(s)?(0,Sb.cloneDeep)(s):s}}return r};return Object.assign(t,{theme:t,...$s}),Object.keys(e).reduce((n,r)=>(n[r]=Pr(e[r])?e[r](t,$s):e[r],n),{})}function Uf(e){let t=[];return e.forEach(n=>{t=[...t,n];var r;let i=(r=n==null?void 0:n.plugins)!==null&&r!==void 0?r:[];i.length!==0&&i.forEach(o=>{o.__isOptionsFunction&&(o=o());var s;t=[...t,...Uf([(s=o==null?void 0:o.config)!==null&&s!==void 0?s:{}])]})}),t}function Cb(e){return[...e].reduceRight((n,r)=>Pr(r)?r({corePlugins:n}):(0,bb.default)(r,n),gb.default)}function Lb(e){return[...e].reduceRight((n,r)=>[...n,...r],[])}function Mb(e){let t=[...Uf(e),{prefix:"",important:!1,separator:":",variantOrder:vb.default.variantOrder}];var n,r;return(0,xb.normalizeConfig)((0,Bf.defaults)({theme:Rb(Ab(Pb(t.map(i=>(n=i==null?void 0:i.theme)!==null&&n!==void 0?n:{})))),corePlugins:Cb(t.map(i=>i.corePlugins)),plugins:Lb(e.map(i=>(r=i==null?void 0:i.plugins)!==null&&r!==void 0?r:[]))},...t))}});var zf={};Wr(zf,{default:()=>Nb});var Nb,Gf=rr(()=>{Nb={yellow:e=>e}});var Yf=q(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});function Wb(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Wb(Us,{flagEnabled:()=>$b,issueFlagNotices:()=>Bb,default:()=>Ub});var Fb=Hf((Gf(),Fr(zf))),Db=Hf((fi(),Fr(li)));function Hf(e){return e&&e.__esModule?e:{default:e}}var jf={optimizeUniversalDefaults:!1},Pn={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function $b(e,t){if(Pn.future.includes(t)){var n,r,i;return e.future==="all"||((i=(r=e==null||(n=e.future)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:jf[t])!==null&&i!==void 0?i:!1)}if(Pn.experimental.includes(t)){var o,s,a;return e.experimental==="all"||((a=(s=e==null||(o=e.experimental)===null||o===void 0?void 0:o[t])!==null&&s!==void 0?s:jf[t])!==null&&a!==void 0?a:!1)}return!1}function Vf(e){if(e.experimental==="all")return Pn.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(n=>Pn.experimental.includes(n)&&e.experimental[n])}function Bb(e){if(process.env.JEST_WORKER_ID===void 0&&Vf(e).length>0){let t=Vf(e).map(n=>Fb.default.yellow(n)).join(", ");Db.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${t}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var Ub=Pn});var Qf=q(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});Object.defineProperty(qs,"default",{enumerable:!0,get:()=>Xf});var qb=Gb(To()),zb=Yf();function Gb(e){return e&&e.__esModule?e:{default:e}}function Xf(e){var t;let n=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[qb.default]).slice().reverse().flatMap(o=>Xf(typeof o=="function"?o():o)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(r).filter(o=>(0,zb.flagEnabled)(e,o)).map(o=>r[o]);return[e,...i,...n]}});var Jf=q(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});Object.defineProperty(zs,"default",{enumerable:!0,get:()=>Hb});var jb=Kf(qf()),Vb=Kf(Qf());function Kf(e){return e&&e.__esModule?e:{default:e}}function Hb(...e){let[,...t]=(0,Vb.default)(e[0]);return(0,jb.default)([...e,...t])}});var ec=q((P1,Zf)=>{var Gs=Jf();Zf.exports=(Gs.__esModule?Gs:{default:Gs}).default});var hv={};Wr(hv,{default:()=>ua,init:()=>qa});module.exports=Fr(hv);var xa=Pt(require("linebreak"),1);var Dr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Wc=Dr((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),Fc=Dr((e,t)=>{t.exports=["deg","grad","rad","turn"]}),Dc=Dr((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),$c=Dr((e,t)=>{t.exports=["Hz","kHz"]}),Bc=Dr((e,t)=>{t.exports=["s","ms"]}),Uc=Wc(),ga=Fc(),ba=Dc(),va=$c(),ya=Bc();function Ri(e){if(/\.\D?$/.test(e))throw new Error("The dot should be followed by a number");if(/^[+-]{2}/.test(e))throw new Error("Only one leading +/- is allowed");if(qc(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=Ii(e),this.unit="%";return}var t=Gc(e);if(!t){this.type="number",this.value=Ii(e);return}this.type=Vc(t),this.value=Ii(e.substr(0,e.length-t.length)),this.unit=t}Ri.prototype.valueOf=function(){return this.value};Ri.prototype.toString=function(){return this.value+(this.unit||"")};function xt(e){return new Ri(e)}function qc(e){var t=e.match(/\./g);return t?t.length:0}function Ii(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var zc=[].concat(ga,va,Uc,ba,ya);function Gc(e){var t=e.match(/\D+$/),n=t&&t[0];if(n&&zc.indexOf(n)===-1)throw new Error("Invalid unit: "+n);return n}var jc=Object.assign(Bn(ga,"angle"),Bn(va,"frequency"),Bn(ba,"resolution"),Bn(ya,"time"));function Bn(e,t){return Object.fromEntries(e.map(n=>[n,t]))}function Vc(e){return jc[e]||"length"}function gr(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function wa(e){return/^class\s/.test(e.toString())}function Mi(e){return e&&e.$$typeof===Symbol.for("react.forward_ref")}function Sa(e){return typeof e=="function"||Mi(e)}function _a(e){return"dangerouslySetInnerHTML"in e}function Ta(e){let t=typeof e>"u"?[]:[].concat(e).flat(1/0),n=[];for(let r=0;r<t.length;r++){let i=t[r];typeof i>"u"||typeof i=="boolean"||i===null||(typeof i=="number"&&(i=String(i)),typeof i=="string"&&n.length&&typeof n[n.length-1]=="string"?n[n.length-1]+=i:n.push(i))}return n}function X(e,t,n,r,i=!1){if(typeof e=="number")return e;try{if(e=e.trim(),/[ /\(,]/.test(e))return;if(e===String(+e))return+e;let o=new xt(e);if(o.type==="length")switch(o.unit){case"em":return o.value*t;case"rem":return o.value*16;case"vw":return~~(o.value*r._viewportWidth/100);case"vh":return~~(o.value*r._viewportHeight/100);default:return o.value}else{if(o.type==="angle")return Ni(e);if(o.type==="percentage"&&i)return o.value/100*n}}catch{}}function Ni(e){let t=new xt(e);switch(t.unit){case"deg":return t.value;case"rad":return t.value*180/Math.PI;case"turn":return t.value*360;case"grad":return .9*t.value}}function $r(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function He(e,t,n,r){let i=t[e];if(typeof i>"u"){if(r&&typeof e<"u")throw new Error(`Invalid value for CSS property "${r}". Allowed values: ${Object.keys(t).map(o=>`"${o}"`).join(" | ")}. Received: "${e}".`);i=n}return i}var Ci,Li,Ea=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e)),mr=new Map,Hc=500;function Ve(e,t,n){let r=`${t}:${n||""}:${e}`;if(mr.has(r))return mr.get(r);if(!Ci||!Li){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");Ci=new Intl.Segmenter(n,{granularity:"word"}),Li=new Intl.Segmenter(n,{granularity:"grapheme"})}let i;if(t==="grapheme")i=[...Li.segment(e)].map(o=>o.segment);else{let o=[...Ci.segment(e)].map(u=>u.segment),s=[],a=0;for(;a<o.length;){let u=o[a];if(u=="\xA0"){let f=a===0?"":s.pop(),l=a===o.length-1?"":o[a+1];s.push(f+"\xA0"+l),a+=2}else s.push(u),a++}i=s}if(mr.size>=Hc){let o=mr.keys().next().value;mr.delete(o)}return mr.set(r,i),i}function M(e,t,n){let r="";for(let[i,o]of Object.entries(t))typeof o<"u"&&(r+=` ${i}="${o}"`);return n?`<${e}${r}>${n}</${e}>`:`<${e}${r}/>`}function ka(e=20){let t=new Map;function n(o){let s=t.get(o);if(s!==void 0)return t.delete(o),t.set(o,s),s}function r(o,s){if(t.has(o))t.delete(o);else if(t.size>=e){let a=t.keys().next().value;t.delete(a)}t.set(o,s)}function i(){t.clear()}return{set:r,get:n,clear:i}}function br(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Un(e){return typeof e=="string"}function Oa(e){return typeof e=="number"}function Pa(e){return typeof e>"u"}function Wt(e,t){if(typeof e=="number")return e;if(e.endsWith("%")){let n=parseFloat(e.slice(0,-1));if(isNaN(n)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${n}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number or a percentage value (e.g., "50%").`)}function Gt(e,t){if(typeof e=="number")return e;if(e==="auto")return"auto";if(e.endsWith("%")){let n=parseFloat(e.slice(0,-1));if(isNaN(n)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${n}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number, "auto", or a percentage value (e.g., "50%").`)}function Aa(e,t){if(t==="break-all")return{words:Ve(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:Ve(e,"word"),requiredBreaks:[]};let n=new xa.default(e),r=0,i=n.nextBreak(),o=[],s=[!1];for(;i;){let a=e.slice(r,i.position);o.push(a),i.required?s.push(!0):s.push(!1),r=i.position,i=n.nextBreak()}return{words:o,requiredBreaks:s}}var Ia=e=>e.replaceAll(/([A-Z])/g,(t,n)=>`-${n.toLowerCase()}`);function qn(e,t=","){let n=[],r=0,i=0;t=new RegExp(t);for(let o=0;o<e.length;o++)e[o]==="("?i++:e[o]===")"&&i--,i===0&&t.test(e[o])&&(n.push(e.slice(r,o).trim()),r=o+1);return n.push(e.slice(r).trim()),n}function qa(e){return Promise.resolve().then(()=>(ji(),Gi)).then(t=>t.init(e))}function jt(){return Promise.resolve().then(()=>(ji(),Gi)).then(e=>e.getYoga())}var za=Symbol.for("react.fragment");var Vn=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;var rd=new Set([301,302,303,307,308]);function Vi(e){let t=e.split(".").map(o=>Number.parseInt(o,10));if(t.length!==4||t.some(o=>!Number.isInteger(o)||o<0||o>255))return!0;let[n,r,i]=t;return n===0||n===10||n===100&&r>=64&&r<=127||n===127||n===169&&r===254||n===172&&r>=16&&r<=31||n===192&&r===0&&i===0||n===192&&r===168||n===198&&(r===18||r===19)||n>=224}function nd(e){let t=e,n=t.indexOf("%");n!==-1&&(t=t.slice(0,n));let r=t.split("::");if(r.length>2)return null;let i=s=>{if(s==="")return[];let a=[],u=s.split(":");for(let f=0;f<u.length;f++){let l=u[f];if(l.includes(".")){if(f!==u.length-1||!Vn.test(l))return null;let[p,h,m,b]=l.split(".").map(y=>Number.parseInt(y,10));if([p,h,m,b].some(y=>!Number.isInteger(y)||y<0||y>255))return null;a.push(p<<8|h,m<<8|b);continue}if(!/^[0-9a-f]{1,4}$/.test(l))return null;a.push(Number.parseInt(l,16))}return a},o=i(r[0]);if(o===null)return null;if(r.length===2){let s=i(r[1]);if(s===null)return null;let a=8-o.length-s.length;return a<0?null:[...o,...new Array(a).fill(0),...s]}return o.length===8?o:null}function id(e){let t=a=>e.slice(0,a).every(u=>u===0);if(!(t(6)||t(5)&&e[5]===65535||t(4)&&e[4]===65535&&e[5]===0||e[0]===100&&e[1]===65435&&e[2]===0&&e[3]===0&&e[4]===0&&e[5]===0||e[0]===100&&e[1]===65435&&e[2]===1))return null;let r=e[6]>>8&255,i=e[6]&255,o=e[7]>>8&255,s=e[7]&255;return`${r}.${i}.${o}.${s}`}function ja(e){let t=nd(e);if(t===null)return!0;let n=id(t);return n?Vi(n):!!(t.every(r=>r===0)||t.slice(0,7).every(r=>r===0)&&t[7]===1||(t[0]&65024)===64512||(t[0]&65472)===65152||(t[0]&65472)===65216||(t[0]&65280)===65280||t[0]===8193&&t[1]===3512)}function od(e){let t=e.toLowerCase().replace(/^\[|\]$/g,"");return Vn.test(t)?Vi(t):t.includes(":")?ja(t):!0}function Va(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!=="http:"&&t.protocol!=="https:")return null;let n=t.hostname.toLowerCase().replace(/\.+$/,"");return n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1)),n?{url:t,host:n}:null}function sd(e){let t=Va(e);if(!t)return!0;let{host:n}=t;return n==="localhost"||n.endsWith(".localhost")||n==="local"||n.endsWith(".local")||n==="internal"||n.endsWith(".internal")?!0:Vn.test(n)?Vi(n):n.includes(":")?ja(n):!1}function jn(e){return new Error(`Image source resolves to a blocked address (SSRF protection): ${e}`)}function ad(e){if(sd(e))throw jn(e)}var wr;async function ud(){if(wr!==void 0)return wr;if(typeof window<"u")return wr=null,null;try{let t=await new Function("s","return import(s)")("node:dns/promises");return wr=(n,r)=>t.lookup(n,r),wr}catch{return wr=null,null}}async function ld(e,t){ad(e);let n=Va(e);if(!n)throw jn(e);let{host:r}=n;if(Vn.test(r)||r.includes(":"))return;let i=t&&"lookup"in t?t.lookup:await ud();if(!i)return;let o;try{o=await i(r,{all:!0})}catch{throw new Error(`Can't resolve image host: ${e}`)}if(o.length===0)throw new Error(`Can't resolve image host: ${e}`);for(let{address:s}of o)if(od(s))throw jn(e)}async function Ga(e){try{e.body&&typeof e.body.cancel=="function"?await e.body.cancel():typeof e.arrayBuffer=="function"&&await e.arrayBuffer()}catch{}}async function Ha(e,t){let n=(t==null?void 0:t.fetch)??globalThis.fetch,r=e;for(let i=0;i<=10;i++){await ld(r,t);let o=await n(r,{redirect:"manual"});if(o.type==="opaqueredirect")throw await Ga(o),jn(r);let s=o.headers.get("location");if(rd.has(o.status)&&s){await Ga(o),r=new URL(s,r).href;continue}return o}throw new Error(`Image source redirected too many times (SSRF protection): ${e}`)}var fd="image/avif",Hn="image/webp",Yn="image/apng",Xn="image/png",Qn="image/jpeg",Kn="image/gif",Hi="image/svg+xml";function Qa(e){let t=new DataView(e),n=4,r=t.byteLength;for(;n<r;){let i=t.getUint16(n,!1);if(i>r)throw new TypeError("Invalid JPEG");let o=t.getUint8(i+1+n);if(o===192||o===193||o===194)return[t.getUint16(i+7+n,!1),t.getUint16(i+5+n,!1)];n+=i+2}throw new TypeError("Invalid JPEG")}function Ka(e){let t=new DataView(e),n=new Uint8Array(e);if(t.byteLength<20||t.getUint32(0)!==1380533830||t.getUint32(8)!==1464156752)throw new TypeError("Invalid WebP");let r=t.getUint32(4,!0)+8;if(r<20||r>t.byteLength)throw new TypeError("Invalid WebP");let i=12;for(;i+8<=r;){let o=t.getUint32(i),s=t.getUint32(i+4,!0),a=i+8,u=a+s;if(u>r)throw new TypeError("Invalid WebP");if(o===1448097824){if(s<10||n[a+3]!==157||n[a+4]!==1||n[a+5]!==42)throw new TypeError("Invalid WebP");let f=t.getUint16(a+6,!0)&16383,l=t.getUint16(a+8,!0)&16383;if(!f||!l)throw new TypeError("Invalid WebP");return[f,l]}if(o===1448097868){if(s<5||n[a]!==47)throw new TypeError("Invalid WebP");let f=t.getUint32(a+1,!0);return[(f&16383)+1,(f>>>14&16383)+1]}if(o===1448097880){if(s<10)throw new TypeError("Invalid WebP");return[n[a+4]+(n[a+5]<<8)+(n[a+6]<<16)+1,n[a+7]+(n[a+8]<<8)+(n[a+9]<<16)+1]}i=u+s%2}throw new TypeError("Invalid WebP")}function Ja(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function Za(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var At=ka(500),Ur=new Map,cd=[Xn,Yn,Qn,Kn,Hi,Hn],dd=/<svg[^>]*>/i,pd=/viewBox=['"]([^'"]+)['"]/,hd=/width=['"](\d*\.?\d+)['"]/,md=/height=['"](\d*\.?\d+)['"]/;function gd(e){let t=new Uint8Array(e),n=32768,r="";for(let i=0;i<t.length;i+=n){let o=t.subarray(i,Math.min(i+n,t.length));r+=String.fromCharCode(...o)}return btoa(r)}function bd(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.charCodeAt(i);return r.buffer}function Ya(e,t){let n=t.match(dd);if(!n)throw new Error(`Failed to parse SVG from ${e}`);let r=n[0],i=pd.exec(r),o=hd.exec(r),s=md.exec(r),a=i?br(i[1]):null;if(!a&&(!o||!s))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let u=a?[a[2],a[3]]:[+o[1],+s[1]],f=u[0]/u[1];return o&&s?[+o[1],+s[1]]:o?[+o[1],+o[1]/f]:s?[+s[1]*f,+s[1]]:[u[0],u[1]]}function Xa(e){let t,n=vd(new Uint8Array(e));switch(n){case Xn:case Yn:t=Za(e);break;case Kn:t=Ja(e);break;case Qn:t=Qa(e);break;case Hn:t=Ka(e);break}if(!cd.includes(n))throw new Error(`Unsupported image type: ${n||"unknown"}`);return[`data:${n};base64,${gd(e)}`,t]}async function Sr(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[o,s]=Xa(e);return[o,...s]}if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),typeof window>"u"&&!e.startsWith("http")&&!e.startsWith("data:"))throw new Error(`Image source must be an absolute URL: ${e}`);if(e.startsWith("data:")){let o;try{o=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:s,encodingType:a,dataString:u}=o;if(s===Hi){let f=a==="base64"?atob(u):decodeURIComponent(u.replace(/ /g,"%20")),l=a==="base64"?e:`data:image/svg+xml;base64,${btoa(f)}`,p=Ya(e,f);return At.set(e,[l,...p]),[l,...p]}else if(a==="base64"){let f,l=bd(u);switch(s){case Xn:case Yn:f=Za(l);break;case Kn:f=Ja(l);break;case Qn:f=Qa(l);break;case Hn:f=Ka(l);break}return At.set(e,[e,...f]),[e,...f]}else return console.warn("Image data URI resolved without size:"+e),At.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Ur.has(e))return Ur.get(e);let t=At.get(e);if(t)return t;let n=e,i=(typeof window>"u"?()=>Ha(n):()=>fetch(n))().then(o=>{let s=o.headers.get("content-type");return s==="image/svg+xml"||s==="application/svg+xml"?o.text():o.arrayBuffer()}).then(o=>{if(typeof o=="string")try{let u=`data:image/svg+xml;base64,${btoa(o)}`,f=Ya(n,o);return[u,...f]}catch(u){throw new Error(`Failed to parse SVG image: ${u.message}`)}let[s,a]=Xa(o);return[s,...a]}).then(o=>(At.set(n,o),o)).catch(o=>{if(o instanceof Error&&o.message.includes("SSRF protection"))throw o;return console.error(`Can't load image ${n}: `+o.message),At.set(n,[]),[]});return Ur.set(n,i),i}function vd(e){return[255,216,255].every((t,n)=>e[n]===t)?Qn:[137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)?yd(e)?Yn:Xn:[71,73,70,56].every((t,n)=>e[n]===t)?Kn:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,n)=>!t||e[n]===t)?Hn:[60,63,120,109,108].every((t,n)=>e[n]===t)?Hi:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,n)=>!t||e[n]===t)?fd:null}function yd(e){let t=new DataView(e.buffer),n,r,i=8,o=!1;for(;!o&&n!=="IEND"&&i<e.length;){r=t.getUint32(i);let s=e.subarray(i+4,i+8);n=String.fromCharCode(...s),o=n==="acTL",i+=12+r}return o}var Yi={accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",href:"href",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink"},xd=/[\r\n%#()<>?[\\\]^`{|}"']/g;function Jn(e,t){if(!e)return"";if(Array.isArray(e))return e.map(f=>Jn(f,t)).join("");if(typeof e!="object")return String(e);let n=e.type;if(n==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:r,style:i,...o}=e.props||{},s=(i==null?void 0:i.color)||t,a=`${Object.entries(o).map(([f,l])=>(typeof l=="string"&&l.toLowerCase()==="currentcolor"&&(l=s),(f==="href"||f==="xlinkHref")&&n==="image"?` ${Yi[f]||f}="${At.get(l)[0]}"`:` ${Yi[f]||f}="${l}"`)).join("")}`,u=i?` style="${Object.entries(i).map(([f,l])=>`${Ia(f)}:${l}`).join(";")}"`:"";return n===za?Jn(r,s):`<${n}${a}${u}>${Jn(r,s)}</${n}>`}async function eu(e){let t=new Set,n=r=>{if(r&&gr(r)){if(Array.isArray(r)){r.forEach(i=>n(i));return}else if(typeof r=="object")if(r.type==="image"){let i=r.props.href||r.props.xlinkHref;i&&(t.has(i)||t.add(i))}else r.type==="img"&&(t.has(r.props.src)||t.add(r.props.src));Array.isArray(r.props.children)?r.props.children.map(i=>n(i)):n(r.props.children)}};return n(e),Promise.all(Array.from(t).map(r=>Sr(r)))}async function tu(e,t){let{viewBox:n,viewbox:r,width:i,height:o,className:s,style:a,children:u,...f}=e.props||{};n||=r,f.xmlns="http://www.w3.org/2000/svg";let l=(a==null?void 0:a.color)||t,p=br(n),h=p?p[3]/p[2]:null;return i=i||h&&o?o/h:null,o=o||h&&i?i*h:null,f.width=i,f.height=o,n&&(f.viewBox=n),`data:image/svg+xml;utf8,${`<svg ${Object.entries(f).map(([m,b])=>(typeof b=="string"&&b.toLowerCase()==="currentcolor"&&(b=l),` ${Yi[m]||m}="${b}"`)).join("")}>${Jn(u,l)}</svg>`.replace(xd,encodeURIComponent)}`}var at="flex",ru={p:{display:at,marginTop:"1em",marginBottom:"1em"},div:{display:at},blockquote:{display:at,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:at,textAlign:"center"},hr:{display:at,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:at,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:at,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:at,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:at,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:at,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:at,fontSize:"0.67em",marginTop:"2.33em",marginBottom:"2.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},u:{textDecoration:"underline"},strong:{fontWeight:"bold"},b:{fontWeight:"bold"},i:{fontStyle:"italic"},em:{fontStyle:"italic"},code:{fontFamily:"monospace"},kbd:{fontFamily:"monospace"},pre:{display:at,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var wd=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textIndent","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","textDecorationSkipInk","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath","_inheritedBackgroundClipTextHasBackground"]);function Xi(e){let t={};for(let n in e)(wd.has(n)||n.startsWith("--"))&&(t[n]=e[n]);return t}var St=require("css-to-react-native"),cu=require("css-background-parser"),du=require("css-box-shadow"),pu=Pt(require("parse-css-color"),1);var nu=Pt(require("postcss-value-parser"),1);function Sd(e,t){try{let n=new xt(e);switch(n.unit){case"px":return{absolute:n.value};case"em":return{absolute:n.value*t};case"rem":return{absolute:n.value*16};case"%":return{relative:n.value};default:return{}}}catch{return{}}}function Qi(e,t,n){switch(e){case"top":return{yRelative:0};case"left":return{xRelative:0};case"right":return{xRelative:100};case"bottom":return{yRelative:100};case"center":return{};default:{let r=Sd(e,t);return r.absolute?{[n?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[n?"xRelative":"yRelative"]:r.relative}:{}}}}function Ki(e,t){if(typeof e=="number")return{xAbsolute:e};let n;try{n=(0,nu.default)(e).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return n.length===1?Qi(n[0],t,!0):n.length===2?((n[0]==="top"||n[0]==="bottom"||n[1]==="left"||n[1]==="right")&&n.reverse(),{...Qi(n[0],t,!0),...Qi(n[1],t,!1)}):{}}var iu=require("css-to-react-native");function qr(e,t){let n=(0,iu.getPropertyName)(`mask-${t}`);return e[n]||e[`WebkitM${n.substring(1)}`]}function ou(e){let t=e.maskImage||e.WebkitMaskImage,n={position:qr(e,"position")||"0% 0%",size:qr(e,"size")||"100% 100%",repeat:qr(e,"repeat")||"repeat",origin:qr(e,"origin")||"border-box",clip:qr(e,"origin")||"border-box"};return qn(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...n}))}var Ji=Pt(require("postcss-value-parser"),1);function su(e){let t={},n={};for(let r in e)r.startsWith("--")?t[r]=String(e[r]):n[r]=e[r];return{variables:t,remainingStyle:n}}function au(e,t){return{...e,...t}}function Gr(e,t,n=new Set){if(typeof e!="string"||!e.includes("var("))return e;try{let r=(0,Ji.default)(e),i=!1;if(r.walk(o=>{if(o.type==="function"&&o.value==="var"){i=!0;let s=_d(o);if(!s)return;let{varName:a,fallback:u}=s;if(n.has(a)){console.warn(`Circular reference detected for CSS variable: ${a}`),u!==void 0?zr(o,u):zr(o,"initial");return}let f=t[a];if(f!==void 0){let l=new Set(n);l.add(a);let p=Gr(f,t,l);zr(o,String(p))}else if(u!==void 0){let l=Gr(u,t,n);zr(o,String(l))}else zr(o,"initial")}}),i)return r.toString()}catch{console.warn(`Failed to parse CSS value for variable resolution: ${e}`)}return e}function _d(e){if(!e.nodes||e.nodes.length===0)return null;let t,n=-1;for(let i=0;i<e.nodes.length;i++){let o=e.nodes[i];if(o.type==="word"&&!t)t=o;else if(o.type==="div"&&o.value===","){n=i;break}}if(!t||t.type!=="word")return null;let r=t.value.trim();if(n!==-1&&n<e.nodes.length-1){let i=e.nodes.slice(n+1),o=Ji.default.stringify(i).trim();return{varName:r,fallback:o}}return{varName:r}}function zr(e,t){e.type="word",e.value=t,delete e.nodes}var Td=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),Ed=new Set(["lineHeight"]);function kd(e,t,n,r){return e==="textDecoration"&&!n.includes(t.textDecorationColor)&&(t.textDecorationColor=r),t}function nr(e,t){let n=Number(t);return isNaN(n)?t:Td.has(e)?Ed.has(e)?n:String(t):n+"px"}function Od(e,t,n){if(e==="zIndex")return console.warn("`z-index` is currently not supported."),{[e]:t};if(e==="lineHeight")return{lineHeight:nr(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(r=>r.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[r,i]=t.split("/"),o=(0,St.getStylesForProperty)(e,r,!0),s=(0,St.getStylesForProperty)(e,i,!0);for(let a in o)s[a]=nr(e,o[a])+" "+nr(e,s[a]);return s}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let r=(0,St.getStylesForProperty)("border",t,!0);r.borderWidth===1&&!String(t).includes("1px")&&(r.borderWidth=3),r.borderColor==="black"&&!String(t).includes("black")&&(r.borderColor=n);let i={Width:nr(e+"Width",r.borderWidth),Style:He(r.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:r.borderColor},o={};for(let s of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let a in i)o["border"+s+a]=i[a];return o}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?(0,du.parse)(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let r={},i=t.replace(/(-?[\d.]+%)/g,(s,a)=>{let u=~~(Math.random()*1e9);return r[u]=a,u+"px"}),o=(0,St.getStylesForProperty)("transform",i,!0);for(let s of o.transform)for(let a in s)r[s[a]]&&(s[a]=r[s[a]]);return o}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient|repeating-radial-gradient)\(/.test(t)?(0,St.getStylesForProperty)("backgroundImage",t,!0):(0,St.getStylesForProperty)("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let r={},i=qn(t);for(let o of i){let s=(0,St.getStylesForProperty)("textShadow",o,!0);for(let a in s)r[a]?r[a].push(s[a]):r[a]=[s[a]]}return r}if(e==="WebkitTextStroke"){t=t.toString().trim();let r=t.split(" ");if(r.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:nr(e,r[0]),WebkitTextStrokeColor:nr(e,r[1])}}if(e==="textDecorationSkipInk"){let r=t.toString().trim().toLowerCase();if(!["auto","none","all"].includes(r))throw new Error("Invalid `textDecorationSkipInk` value.");return{textDecorationSkipInk:r}}}function uu(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var lu=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function hu(e){if(typeof e=="string"&&lu.test(e.trim()))return e.trim().replace(lu,(t,n,r,i,o)=>`rgba(${n}, ${r}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=hu(e[t]);return e}return e}function Zn(e,t){let n={},r={};for(let u in t)u.startsWith("--")&&(r[u]=String(t[u]));let i={},o=e;if(e){let{variables:u,remainingStyle:f}=su(e);i=u,o=f}let s=au(r,i);for(let u in s)n[u]=s[u];if(o){let u=o.color?Gr(o.color,s):void 0,f=Ad(u,t.color);n.color=f;for(let l in o){if(l.startsWith("_")){n[l]=o[l];continue}if(l==="color")continue;let p=(0,St.getPropertyName)(l),h=Gr(o[l],s),m=Rd(h,f);try{let b=Od(p,m,f)||kd(p,(0,St.getStylesForProperty)(p,nr(p,m),!0),m,f);Object.assign(n,b)}catch(b){throw new Error(b.message+(b.message.includes(m)?`
|
|
5
|
-
`+
|
|
6
|
-
in CSS rule \`${p}: ${m}\`.${uu(p)}`))}}}if(n.backgroundImage){let{backgrounds:u}=(0,cu.parseElementStyle)(n);n.backgroundImage=u}(n.maskImage||n.WebkitMaskImage)&&(n.maskImage=ou(n));let a=Pd(n.fontSize,t.fontSize);typeof n.fontSize<"u"&&(n.fontSize=a),n.transformOrigin&&(n.transformOrigin=Ki(n.transformOrigin,a));for(let u in n){let f=n[u];if(u==="lineHeight")typeof f=="string"&&f!=="normal"&&(f=n[u]=X(f,a,a,t,!0)/a);else{if(typeof f=="string"){let l=X(f,a,a,t);typeof l<"u"&&(n[u]=l),f=n[u]}if(typeof f=="string"||typeof f=="object"){let l=hu(f);l&&(n[u]=l),f=n[u]}}if(u==="opacity"&&typeof f=="number"&&(n.opacity=f*t.opacity),u==="transform"){let l=f;for(let p of l){let h=Object.keys(p)[0],m=p[h],b=typeof m=="string"?X(m,a,a,t)??m:m;p[h]=b}}if(u==="textShadowRadius"){let l=f;n.textShadowRadius=l.map(p=>X(p,a,0,t,!1))}if(u==="textShadowOffset"){let l=f;n.textShadowOffset=l.map(({height:p,width:h})=>({height:X(p,a,0,t,!1),width:X(h,a,0,t,!1)}))}}return n}function Pd(e,t){if(typeof e=="number")return e;try{let n=new xt(e);switch(n.unit){case"em":return n.value*t;case"rem":return n.value*16}}catch{return t}}function fu(e){if(e.startsWith("hsl")){let t=(0,pu.default)(e),[n,r,i]=t.values;return`hsl(${[n,`${r}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function Ad(e,t){return e&&e.toLowerCase()!=="currentcolor"?fu(e):fu(t)}function Id(e,t){return e.replace(/currentcolor/gi,t)}function Rd(e,t){return Un(e)&&(e=Id(e,t)),e}async function Zi(e,t,n,r,i){let o=await jt(),s=Object.assign({},n,Zn(ru[t],n),Zn(r,n));if(t==="img"){let[a,u,f]=await Sr(i.src);if(u===void 0&&f===void 0){if(i.width===void 0||i.height===void 0)throw new Error("Image size cannot be determined. Please provide the width and height of the image.");u=parseInt(i.width),f=parseInt(i.height)}let l=f/u,p=(s.borderLeftWidth||0)+(s.borderRightWidth||0)+(s.paddingLeft||0)+(s.paddingRight||0),h=(s.borderTopWidth||0)+(s.borderBottomWidth||0)+(s.paddingTop||0)+(s.paddingBottom||0),m=s.width||i.width,b=s.height||i.height,y=typeof m=="number"&&typeof b=="number";y&&(m-=p,b-=h),m===void 0&&b===void 0?(m="100%",e.setAspectRatio(1/l)):m===void 0?typeof b=="number"?m=b/l:e.setAspectRatio(1/l):b===void 0&&(typeof m=="number"?b=m*l:e.setAspectRatio(1/l)),s.width=y?m+p:m,s.height=y?b+h:b,s.__src=a,s.__naturalWidth=u,s.__naturalHeight=f}if(t==="svg"){let a=i.viewBox||i.viewbox,u=br(a),f=u?u[3]/u[2]:null,{width:l,height:p}=i;typeof l>"u"&&p?f==null?l=0:typeof p=="string"&&p.endsWith("%")?l=parseInt(p)/f+"%":(p=X(p,n.fontSize,1,n),l=p/f):typeof p>"u"&&l?f==null?l=0:typeof l=="string"&&l.endsWith("%")?p=parseInt(l)*f+"%":(l=X(l,n.fontSize,1,n),p=l*f):(typeof l<"u"&&(l=X(l,n.fontSize,1,n)||l),typeof p<"u"&&(p=X(p,n.fontSize,1,n)||p),l||=u==null?void 0:u[2],p||=u==null?void 0:u[3]),!s.width&&l&&(s.width=l),!s.height&&p&&(s.height=p)}return e.setDisplay(He(s.display,{flex:o.DISPLAY_FLEX,block:o.DISPLAY_FLEX,contents:o.DISPLAY_CONTENTS,none:o.DISPLAY_NONE,"-webkit-box":o.DISPLAY_FLEX},o.DISPLAY_FLEX,"display")),e.setAlignContent(He(s.alignContent,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,"space-between":o.ALIGN_SPACE_BETWEEN,"space-around":o.ALIGN_SPACE_AROUND,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_AUTO,"alignContent")),e.setAlignItems(He(s.alignItems,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_STRETCH,"alignItems")),e.setAlignSelf(He(s.alignSelf,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_AUTO,"alignSelf")),e.setJustifyContent(He(s.justifyContent,{center:o.JUSTIFY_CENTER,"flex-start":o.JUSTIFY_FLEX_START,"flex-end":o.JUSTIFY_FLEX_END,"space-between":o.JUSTIFY_SPACE_BETWEEN,"space-around":o.JUSTIFY_SPACE_AROUND},o.JUSTIFY_FLEX_START,"justifyContent")),e.setFlexDirection(He(s.flexDirection,{row:o.FLEX_DIRECTION_ROW,column:o.FLEX_DIRECTION_COLUMN,"row-reverse":o.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":o.FLEX_DIRECTION_COLUMN_REVERSE},o.FLEX_DIRECTION_ROW,"flexDirection")),e.setFlexWrap(He(s.flexWrap,{wrap:o.WRAP_WRAP,nowrap:o.WRAP_NO_WRAP,"wrap-reverse":o.WRAP_WRAP_REVERSE},o.WRAP_NO_WRAP,"flexWrap")),typeof s.gap<"u"&&e.setGap(o.GUTTER_ALL,s.gap),typeof s.rowGap<"u"&&e.setGap(o.GUTTER_ROW,s.rowGap),typeof s.columnGap<"u"&&e.setGap(o.GUTTER_COLUMN,s.columnGap),typeof s.flexBasis<"u"&&e.setFlexBasis(Gt(s.flexBasis,"flexBasis")),e.setFlexGrow(typeof s.flexGrow>"u"?0:s.flexGrow),e.setFlexShrink(typeof s.flexShrink>"u"?0:s.flexShrink),typeof s.maxHeight<"u"&&e.setMaxHeight(Wt(s.maxHeight,"maxHeight")),typeof s.maxWidth<"u"&&e.setMaxWidth(Wt(s.maxWidth,"maxWidth")),typeof s.minHeight<"u"&&e.setMinHeight(Wt(s.minHeight,"minHeight")),typeof s.minWidth<"u"&&e.setMinWidth(Wt(s.minWidth,"minWidth")),e.setOverflow(He(s.overflow,{visible:o.OVERFLOW_VISIBLE,hidden:o.OVERFLOW_HIDDEN},o.OVERFLOW_VISIBLE,"overflow")),e.setMargin(o.EDGE_TOP,Gt(s.marginTop||0)),e.setMargin(o.EDGE_BOTTOM,Gt(s.marginBottom||0)),e.setMargin(o.EDGE_LEFT,Gt(s.marginLeft||0)),e.setMargin(o.EDGE_RIGHT,Gt(s.marginRight||0)),e.setBorder(o.EDGE_TOP,s.borderTopWidth||0),e.setBorder(o.EDGE_BOTTOM,s.borderBottomWidth||0),e.setBorder(o.EDGE_LEFT,s.borderLeftWidth||0),e.setBorder(o.EDGE_RIGHT,s.borderRightWidth||0),e.setPadding(o.EDGE_TOP,s.paddingTop||0),e.setPadding(o.EDGE_BOTTOM,s.paddingBottom||0),e.setPadding(o.EDGE_LEFT,s.paddingLeft||0),e.setPadding(o.EDGE_RIGHT,s.paddingRight||0),e.setBoxSizing(He(s.boxSizing,{"border-box":o.BOX_SIZING_BORDER_BOX,"content-box":o.BOX_SIZING_CONTENT_BOX},o.BOX_SIZING_BORDER_BOX,"boxSizing")),e.setPositionType(He(s.position,{absolute:o.POSITION_TYPE_ABSOLUTE,relative:o.POSITION_TYPE_RELATIVE,static:o.POSITION_TYPE_STATIC},o.POSITION_TYPE_RELATIVE,"position")),typeof s.top<"u"&&e.setPosition(o.EDGE_TOP,Wt(s.top,"top")),typeof s.bottom<"u"&&e.setPosition(o.EDGE_BOTTOM,Wt(s.bottom,"bottom")),typeof s.left<"u"&&e.setPosition(o.EDGE_LEFT,Wt(s.left,"left")),typeof s.right<"u"&&e.setPosition(o.EDGE_RIGHT,Wt(s.right,"right")),typeof s.height<"u"?e.setHeight(Gt(s.height,"height")):e.setHeightAuto(),typeof s.width<"u"?e.setWidth(Gt(s.width,"width")):e.setWidthAuto(),[s,Xi(s)]}var eo=Pt(require("escape-html"),1);var mu=[1,0,0,1,0,0];function Cd(e,t,n){let r=[...mu];for(let i of e){let o=Object.keys(i)[0],s=i[o];if(typeof s=="string")if(o==="translateX")s=parseFloat(s)/100*t,i[o]=s;else if(o==="translateY")s=parseFloat(s)/100*n,i[o]=s;else throw new Error(`Invalid transform: "${o}: ${s}".`);let a=s,u=[...mu];switch(o){case"translateX":u[4]=a;break;case"translateY":u[5]=a;break;case"scale":u[0]=a,u[3]=a;break;case"scaleX":u[0]=a;break;case"scaleY":u[3]=a;break;case"rotate":{let f=a*Math.PI/180,l=Math.cos(f),p=Math.sin(f);u[0]=l,u[1]=p,u[2]=-p,u[3]=l;break}case"skewX":u[2]=Math.tan(a*Math.PI/180);break;case"skewY":u[1]=Math.tan(a*Math.PI/180);break}r=$r(u,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function jr({left:e,top:t,width:n,height:r},i,o,s){let a;i.__resolved||Cd(i,n,r);let u=i;if(o)a=u;else{let f=(s==null?void 0:s.xAbsolute)??((s==null?void 0:s.xRelative)??50)*n/100,l=(s==null?void 0:s.yAbsolute)??((s==null?void 0:s.yRelative)??50)*r/100,p=e+f,h=t+l;a=$r([1,0,0,1,p,h],$r(u,[1,0,0,1,-p,-h])),u.__parent&&(a=$r(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(f=>f.toFixed(2)).join(",")})`}function gu({left:e,top:t,width:n,height:r,isInheritingTransform:i},o){let s="",a=1;return o.transform&&(s=jr({left:e,top:t,width:n,height:r},o.transform,i,o.transformOrigin)),o.opacity!==void 0&&(a=+o.opacity),{matrix:s,opacity:a}}function to({id:e,content:t,filter:n,left:r,top:i,width:o,height:s,matrix:a,opacity:u,image:f,clipPathId:l,debug:p,shape:h,decorationShape:m},b){let y="";if(p&&(y=M("rect",{x:r,y:i-s,width:o,height:s,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0})),f){let E={href:f,x:r,y:i,width:o,height:s,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0,style:b.filter?`filter:${b.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+M("image",{...E,opacity:u!==1?u:void 0})+(m||"")+(n?"</g>":"")+y,""]}let T={x:r,y:i,width:o,height:s,"font-weight":b.fontWeight,"font-style":b.fontStyle,"font-size":b.fontSize,"font-family":b.fontFamily,"letter-spacing":b.letterSpacing||void 0,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0,style:b.filter?`filter:${b.filter}`:void 0,"stroke-width":b.WebkitTextStrokeWidth?`${b.WebkitTextStrokeWidth}px`:void 0,stroke:b.WebkitTextStrokeWidth?b.WebkitTextStrokeColor:void 0,"stroke-linejoin":b.WebkitTextStrokeWidth?"round":void 0,"paint-order":b.WebkitTextStrokeWidth?"stroke":void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+M("text",{...T,fill:b.color,opacity:u!==1?u:void 0},(0,eo.default)(t))+(m||"")+(n?"</g>":"")+y,h?M("text",T,(0,eo.default)(t)):""]}function Ld(e,t,n){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(r,i,o,s){return i+(parseFloat(o)+t)+","+(parseFloat(s)+n)})}var ei=1.1;function bu({id:e,width:t,height:n},r,i=!1){if(!r.shadowColor||!r.shadowOffset||typeof r.shadowRadius>"u")return"";let o=r.shadowColor.length,s="",a="",u=0,f=t,l=0,p=n;for(let h=0;h<o;h++){let m=r.shadowRadius[h]*r.shadowRadius[h]/4;if(u=Math.min(r.shadowOffset[h].width-m,u),f=Math.max(r.shadowOffset[h].width+m+t,f),l=Math.min(r.shadowOffset[h].height-m,l),p=Math.max(r.shadowOffset[h].height+m+n,p),i){let b=`satori_s-${e}-result-${h}`;s+=M("feGaussianBlur",{in:"SourceAlpha",stdDeviation:r.shadowRadius[h]/2,result:`${b}-blur`})+M("feOffset",{in:`${b}-blur`,dx:r.shadowOffset[h].width,dy:r.shadowOffset[h].height,result:`${b}-offset`})+M("feFlood",{"flood-color":r.shadowColor[h],"flood-opacity":1,result:`${b}-color`})+M("feComposite",{in:`${b}-color`,in2:`${b}-offset`,operator:"in",result:o>1?b:void 0})}else s+=M("feDropShadow",{dx:r.shadowOffset[h].width,dy:r.shadowOffset[h].height,stdDeviation:r.shadowRadius[h]/2,"flood-color":r.shadowColor[h],"flood-opacity":1,...o>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${h}`}:{}});o>1&&(a=M("feMergeNode",{in:`satori_s-${e}-result-${h}`})+a)}return M("filter",{id:`satori_s-${e}`,x:(u/t*100*ei).toFixed(2)+"%",y:(l/n*100*ei).toFixed(2)+"%",width:((f-u)/t*100*ei).toFixed(2)+"%",height:((p-l)/n*100*ei).toFixed(2)+"%"},s+(a?M("feMerge",{},a):""))}function vu({width:e,height:t,shape:n,opacity:r,id:i},o){if(!o.boxShadow)return null;let s="",a="";for(let u=o.boxShadow.length-1;u>=0;u--){let f="",l=o.boxShadow[u];l.spreadRadius&&l.inset&&(l.spreadRadius=-l.spreadRadius);let p=l.blurRadius*l.blurRadius/4+(l.spreadRadius||0),h=Math.min(-p-(l.inset?l.offsetX:0),0),m=Math.max(p+e-(l.inset?l.offsetX:0),e),b=Math.min(-p-(l.inset?l.offsetY:0),0),y=Math.max(p+t-(l.inset?l.offsetY:0),t),T=`satori_s-${i}-${u}`,E=`satori_ms-${i}-${u}`,P=l.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${l.spreadRadius*2}"`):n;f+=M("mask",{id:E,maskUnits:"userSpaceOnUse"},M("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:l.inset?"#000":"#fff"})+P.replace('fill="#fff"',l.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let w=P.replace(/d="([^"]+)"/,(S,O)=>'d="'+Ld(O,l.offsetX,l.offsetY)+'"').replace(/x="([^"]+)"/,(S,O)=>'x="'+(parseFloat(O)+l.offsetX)+'"').replace(/y="([^"]+)"/,(S,O)=>'y="'+(parseFloat(O)+l.offsetY)+'"');l.spreadRadius&&l.spreadRadius<0&&(f+=M("mask",{id:E+"-neg",maskUnits:"userSpaceOnUse"},w.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-l.spreadRadius*2}"`))),l.spreadRadius&&l.spreadRadius<0&&(w=M("g",{mask:`url(#${E}-neg)`},w)),f+=M("defs",{},M("filter",{id:T,x:`${h/e*100}%`,y:`${b/t*100}%`,width:`${(m-h)/e*100}%`,height:`${(y-b)/t*100}%`},M("feGaussianBlur",{stdDeviation:l.blurRadius/2,result:"b"})+M("feFlood",{"flood-color":l.color,in:"SourceGraphic",result:"f"})+M("feComposite",{in:"f",in2:"b",operator:l.inset?"out":"in"})))+M("g",{mask:`url(#${E})`,filter:`url(#${T})`,opacity:r},w),l.inset?a+=f:s+=f}return[s,a]}function Md(e,t,n,r,i,o){let s=i/2,a=Math.max(s,i*1.25),u=[];for(let p of n){if(p.y2<o+s||p.y1>r+s)continue;let h=Math.max(e,p.x1-a),m=Math.min(t,p.x2+a);if(h>=m)continue;if(u.length===0){u.push([h,m]);continue}let b=u[u.length-1];h<=b[1]?b[1]=Math.max(b[1],m):u.push([h,m])}if(!u.length)return[[e,t]];let f=[],l=e;for(let[p,h]of u)if(p>l&&f.push([l,p]),l=Math.max(l,h),l>=t)break;return l<t&&f.push([l,t]),f}function ro({width:e,left:t,top:n,ascender:r,clipPathId:i,matrix:o,glyphBoxes:s},a){let{textDecorationColor:u,textDecorationStyle:f,textDecorationLine:l,textDecorationSkipInk:p,fontSize:h,color:m}=a;if(!l||l==="none")return"";let b=Math.max(1,h*.1),y=l==="line-through"?n+r*.7:l==="underline"?n+r*1.1:n,T=f==="dashed"?`${b*1.2} ${b*2}`:f==="dotted"?`0 ${b*2}`:void 0,E=l==="underline"&&(p||"auto")!=="none"&&(s==null?void 0:s.length),P=n+r,w=E?Md(t,t+e,s,y,b,P):[[t,t+e]],S=f==="double"?w.map(([O,I])=>M("line",{x1:O,y1:y+b+1,x2:I,y2:y+b+1,stroke:u||m,"stroke-width":b,"stroke-dasharray":T,"stroke-linecap":f==="dotted"?"round":"square",transform:o})).join(""):"";return(i?`<g clip-path="url(#${i})">`:"")+w.map(([O,I])=>M("line",{x1:O,y1:y,x2:I,y2:y,stroke:u||m,"stroke-width":b,"stroke-dasharray":T,"stroke-linecap":f==="dotted"?"round":"square",transform:o})).join("")+S+(i?"</g>":"")}function no(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var ir=no("U+0020"),io=no("U+0009"),_r=no("U+2026");function yu(e,t,n){let{fontSize:r,letterSpacing:i}=n,o=new Map;function s(f){let l=o.get(f);return l===void 0&&(l=e.measure(f,{fontSize:r,letterSpacing:i}),o.set(f,l)),l}function a(f){let l=0;for(let p of f)t(p)?l+=r:l+=s(p);return l}function u(f){return a(Ve(f,"grapheme"))}return{measureGrapheme:s,measureGraphemeArray:a,measureText:u}}function xu(e,t,n){let{textTransform:r,whiteSpace:i,wordBreak:o}=t;e=Nd(e,r,n);let{content:s,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=Dd(e,i),{words:f,requiredBreaks:l,allowBreakWord:p}=Fd(s,o),[h,m]=Wd(t,u);return{words:f,requiredBreaks:l,allowSoftWrap:u,allowBreakWord:p,processedContent:s,shouldCollapseTabsAndSpaces:a,lineLimit:h,blockEllipsis:m}}function Nd(e,t,n){return t==="uppercase"?e=e.toLocaleUpperCase(n):t==="lowercase"?e=e.toLocaleLowerCase(n):t==="capitalize"&&(e=Ve(e,"word",n).map(r=>Ve(r,"grapheme",n).map((i,o)=>o===0?i.toLocaleUpperCase(n):i).join("")).join("")),e}function Wd(e,t){let{textOverflow:n,lineClamp:r,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:s,display:a}=e;if(a==="block"&&r){let[u,f=_r]=$d(r);if(u)return[u,f]}return n==="ellipsis"&&a==="-webkit-box"&&o==="vertical"&&Oa(i)&&i>0?[i,_r]:n==="ellipsis"&&s==="hidden"&&!t?[1,_r]:[1/0]}function Fd(e,t){let n=["break-all","break-word"].includes(t),{words:r,requiredBreaks:i}=Aa(e,t);return{words:r,requiredBreaks:i,allowBreakWord:n}}function Dd(e,t){let n=["pre","pre-wrap","pre-line"].includes(t),r=["normal","nowrap","pre-line"].includes(t),i=!["pre","nowrap"].includes(t);return n||(e=e.replace(/\n/g,ir)),r&&(e=e.replace(/([ ]|\t)+/g,ir).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:r,allowSoftWrap:i}}function $d(e){if(typeof e=="number")return[e];let t=/^(\d+)\s*"(.*)"$/,n=/^(\d+)\s*'(.*)'$/,r=t.exec(e),i=n.exec(e);if(r){let o=+r[1],s=r[2];return[o,s]}else if(i){let o=+i[1],s=i[2];return[o,s]}return[]}var so=Pt(require("parse-css-color"),1),Bd=new Set([io]);function Ud(e){return Bd.has(e)}function oo(e){if(e==="transparent")return!0;let t=(0,so.default)(e);return t?t.alpha===0:!1}function wu(e){if(!e)return!1;let t=(0,so.default)(e);if(!t)return!1;let[n,r,i,o]=t.values;return n===255&&r===255&&i===255&&(o===void 0||o===1)}async function*ao(e,t){let n=await jt(),{parentStyle:r,inheritedStyle:i,parent:o,font:s,id:a,isInheritingTransform:u,debug:f,embedFont:l,graphemeImages:p,locale:h,canLoadAdditionalAssets:m}=t,{textAlign:b,textIndent:y=0,lineHeight:T,textWrap:E,fontSize:P,filter:w,tabSize:S=8,letterSpacing:O,_inheritedBackgroundClipTextPath:I,_inheritedBackgroundClipTextHasBackground:F,flexShrink:U}=r,{words:V,requiredBreaks:de,allowSoftWrap:Ae,allowBreakWord:me,processedContent:ue,shouldCollapseTabsAndSpaces:Ie,lineLimit:Z,blockEllipsis:ne}=xu(e,r,h),Ee=qd(n,b);o.insertChild(Ee,o.getChildCount()),Pa(U)&&o.setFlexShrink(1);let ve=s.getEngine(P,T,r,h),Re=m?Ve(ue,"grapheme").filter(H=>!Ud(H)&&!ve.has(H)):[];yield Re.map(H=>({word:H,locale:h})),Re.length&&(ve=s.getEngine(P,T,r,h));function ke(H){return!!(p&&Object.prototype.hasOwnProperty.call(p,H)&&p[H])}let{measureGrapheme:Ye,measureGraphemeArray:Me,measureText:Oe}=yu(ve,ke,{fontSize:P,letterSpacing:O}),le=Un(S)?X(S,P,1,r):Ye(ir)*S,Y=(H,j)=>{if(H.length===0)return{originWidth:0,endingSpacesWidth:0,text:H};let{index:fe,tabCount:Q}=zd(H),ye=0;if(Q>0){let xe=H.slice(0,fe),ee=H.slice(fe+Q),te=Oe(xe),ot=te+j;ye=(le===0?te:(Math.floor(ot/le)+Q)*le)+Oe(ee)}else ye=Oe(H);let ae=H.trimEnd()===H?ye:Oe(H.trimEnd());return{originWidth:ye,endingSpacesWidth:ye-ae,text:H}},J=[],pe=[],z=[],Le=[],De=[];function qe(H){let j=0,fe=0,Q=-1,ye=0,ae=0,xe=0,ee=0;J=[],z=[0],Le=[],De=[];let te=0,ot=0;for(;te<V.length&&j<Z;){let K=V[te],We=de[te],Ge=0,{originWidth:Cr,endingSpacesWidth:Pe,text:tr}=Y(K,ae);K=tr,Ge=Cr;let Ue=Pe;We&&xe===0&&(xe=ve.height(K));let Lt=b==="justify",we=te&&ae+Ge>H+Ue&&Ae;if(me&&Ge>H&&(!ae||we||We)){let tt=Ve(K,"grapheme");V.splice(te,1,...tt),ae>0&&(J.push(ae-ot),pe.push(ee),j++,ye+=xe,ae=0,xe=0,ee=0,z.push(1),Q=-1),ot=Ue;continue}if(We||we)Ie&&K===ir&&(Ge=0),J.push(ae-ot),pe.push(ee),j++,ye+=xe,ae=Ge,xe=Ge?Math.round(ve.height(K)):0,ee=Ge?Math.round(ve.baseline(K)):0,z.push(1),Q=-1,We||(fe=Math.max(fe,H));else{ae+=Ge;let tt=Math.round(ve.height(K));tt>xe&&(xe=tt,ee=Math.round(ve.baseline(K))),Lt&&z[z.length-1]++}Lt&&Q++,fe=Math.max(fe,ae);let et=ae-Ge;if(Ge===0)De.push({y:ye,x:et,width:0,line:j,lineIndex:Q,isImage:!1});else{let tt=Ve(K,"word");for(let bt=0;bt<tt.length;bt++){let vt=tt[bt],je=0,st=!1;ke(vt)?(je=P,st=!0):!l&&vt.length>1?je=Oe(vt):je=Ye(vt),Le.push(vt),De.push({y:ye,x:et,width:je,line:j,lineIndex:Q,isImage:st}),et+=je}}te++,ot=Ue}return ae&&(j<Z&&(ye+=xe),j++,J.push(ae),pe.push(ee)),{width:fe,height:ye}}let Be={width:0,height:0};Ee.setMeasureFunc(H=>{let{width:j,height:fe}=qe(H);if(E==="balance"){let ye=j/2,ae=j,xe=j;for(;ye+1<ae;){xe=(ye+ae)/2;let{height:te}=qe(xe);te>fe?ye=xe:ae=xe}qe(ae);let ee=Math.ceil(ae);return Be={width:ee,height:fe},{width:ee,height:fe}}if(E==="pretty"&&J[J.length-1]<j/3){let xe=j*.9,ee=qe(xe);if(ee.height<=fe*1.3)return Be={width:j,height:ee.height},{width:j,height:ee.height}}let Q=Math.ceil(j);return Be={width:Q,height:fe},{width:Q,height:fe}});let[ie,Tt]=yield,qt="",Et="",Ne=i._inheritedClipPathId,cr=i._inheritedMaskId,{left:kt,top:Rr,width:Kt,height:dr}=Ee.getComputedLayout(),pr=typeof y=="string"?X(y,P,Kt,r,!0)||0:y,Jt=o.getComputedWidth()-o.getComputedPadding(n.EDGE_LEFT)-o.getComputedPadding(n.EDGE_RIGHT)-o.getComputedBorder(n.EDGE_LEFT)-o.getComputedBorder(n.EDGE_RIGHT),Ot=ie+kt,pt=Tt+Rr,{matrix:nt,opacity:Zt}=gu({left:kt,top:Rr,width:Kt,height:dr,isInheritingTransform:u},r),Xe="";if(r.textShadowOffset){let{textShadowColor:H,textShadowOffset:j,textShadowRadius:fe}=r;Xe=bu({width:Be.width,height:Be.height,id:a},{shadowColor:H,shadowOffset:j,shadowRadius:fe},oo(r.color)||F&&wu(r.color)),Xe=M("defs",{},Xe)}let ht="",mt="",er="",zt=-1,ze={},it={},Ze=null,gt=0;for(let H=0;H<Le.length;H++){let j=De[H],fe=De[H+1];if(!j)continue;let Q=Le[H],ye=null,ae=!1,xe=p&&Object.prototype.hasOwnProperty.call(p,Q)?p[Q]:null,ee=j.y,te=j.x,ot=j.width,K=j.line,We=r.textDecorationLine==="underline"&&(r.textDecorationSkipInk||"auto")!=="none";if(K===zt)continue;let Ge=!1;if(K===0&&pr!==0&&(te+=pr),J.length>1){let we=Kt-J[K];if(b==="right"||b==="end")te+=we;else if(b==="center")te+=we/2;else if(b==="justify"&&K<J.length-1){let Te=z[K],et=Te>1?we/(Te-1):0;te+=et*j.lineIndex,Ge=!0}l&&(te=Math.round(te))}let Cr=pe[K],Pe=ve.baseline(Q),tr=ve.height(Q),Ue=Cr-Pe,Lt=we=>!We||r.textDecorationLine!=="underline"?void 0:{underlineY:pt+we+Ue+Pe+Pe*.1,strokeWidth:Math.max(1,P*.1)};if(ze[K]||(ze[K]={left:te,top:pt+ee+Ue,ascender:Pe,width:Ge?Kt:J[K]}),Z!==1/0){let vt=function(je,st){let Lr=Ve(st,"grapheme",h),hr="",Mn=0;for(let Nn of Lr){let Mr=je+Me([hr+Nn]);if(hr&&Mr+Te>Jt)break;hr+=Nn,Mn=Mr}return{subset:hr,resolvedWidth:Mn}},we=ne,Te=Ye(ne);Te>Jt&&(we=_r,Te=Ye(we));let et=Ye(ir),tt=K<J.length-1;if(K+1===Z&&(tt||J[K]>Jt)){if(te+ot+Te+et>Jt){let{subset:je,resolvedWidth:st}=vt(te,Q);Q=je+we,zt=K,ze[K].width=Math.max(0,st-ze[K].left),ae=!0}else if(fe&&fe.line!==K)if(b==="center"){let{subset:je,resolvedWidth:st}=vt(te,Q);Q=je+we,zt=K,ze[K].width=Math.max(0,st-ze[K].left),ae=!0}else{let je=Le[H+1],{subset:st,resolvedWidth:Lr}=vt(ot+te,je);Q=Q+st+we,zt=K,ze[K].width=Math.max(0,Lr-ze[K].left),ae=!0}}}if(xe)ee+=0;else if(l){if(!Q.includes(io)&&!Ea.includes(Q)&&Le[H+1]&&fe&&!fe.isImage&&ee===fe.y&&!ae){Ze===null&&(gt=te),Ze=Ze===null?Q:Ze+Q;continue}let we=Ze===null?Q:Ze+Q,Te=Ze===null?te:gt,et=j.width+te-Te,tt=Lt(ee),bt=ve.getSVG(we.replace(/(\t)+/g,""),{fontSize:P,left:Ot+Te,top:pt+ee+Pe+Ue,letterSpacing:O},tt);ye=bt.path,We&&bt.boxes&&bt.boxes.length&&(it[K]||(it[K]=[])).push(...bt.boxes),Ze=null,f&&(er+=M("rect",{x:Ot+Te,y:pt+ee+Ue,width:et,height:tr,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:nt||void 0,"clip-path":Ne?`url(#${Ne})`:void 0})+M("line",{x1:Ot+te,x2:Ot+te+j.width,y1:pt+ee+Ue+Pe,y2:pt+ee+Ue+Pe,stroke:"#14c000","stroke-width":1,transform:nt||void 0,"clip-path":Ne?`url(#${Ne})`:void 0}))}else if(ee+=Pe+Ue,We&&!xe){let we=Lt(ee),Te=ve.getSVG(Q.replace(/(\t)+/g,""),{fontSize:P,left:Ot+te,top:pt+ee,letterSpacing:O},we);Te.boxes&&Te.boxes.length&&(it[K]||(it[K]=[])).push(...Te.boxes)}if(ye!==null)mt+=ye+" ";else{let[we,Te]=to({content:Q,filter:Xe,id:a,left:Ot+te,top:pt+ee,width:ot,height:tr,matrix:nt,opacity:Zt,image:xe,clipPathId:Ne,debug:f,shape:!!I},r);qt+=we,Et+=Te}if(ae)break}if(r.textDecorationLine&&(ht=Object.entries(ze).map(([H,j])=>{if(!j)return"";let fe=it[H]||[];return ro({left:Ot+j.left,top:j.top,width:j.width,ascender:j.ascender,clipPathId:Ne,matrix:nt,glyphBoxes:fe},r)}).join("")),mt){let H=(!oo(r.color)||Xe)&&Zt!==0?`<g ${cr?`mask="url(#${cr})"`:""} ${Ne?`clip-path="url(#${Ne})"`:""}>`+M("path",{fill:Xe&&(oo(r.color)||F&&wu(r.color))?"black":r.color,d:mt,transform:nt||void 0,opacity:Zt!==1?Zt:void 0,style:w?`filter:${w}`:void 0,"stroke-width":i.WebkitTextStrokeWidth?`${i.WebkitTextStrokeWidth}px`:void 0,stroke:i.WebkitTextStrokeWidth?i.WebkitTextStrokeColor:void 0,"stroke-linejoin":i.WebkitTextStrokeWidth?"round":void 0,"paint-order":i.WebkitTextStrokeWidth?"stroke":void 0})+"</g>":"";I&&(Et=M("path",{d:mt,transform:nt||void 0})),qt+=(Xe?Xe+M("g",{filter:`url(#satori_s-${a})`},H+ht):H+ht)+er}else ht&&(qt+=Xe?M("g",{filter:`url(#satori_s-${a})`},ht):ht);return Et&&(r._inheritedBackgroundClipTextPath.value+=Et),qt}function qd(e,t){let n=e.Node.create();return n.setAlignItems(e.ALIGN_BASELINE),n.setJustifyContent(He(t,{left:e.JUSTIFY_FLEX_START,right:e.JUSTIFY_FLEX_END,center:e.JUSTIFY_CENTER,justify:e.JUSTIFY_SPACE_BETWEEN,start:e.JUSTIFY_FLEX_START,end:e.JUSTIFY_FLEX_END},e.JUSTIFY_FLEX_START,"textAlign")),n}function zd(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}var _u=require("css-gradient-parser");var Su=Pt(require("parse-css-color"),1);function ti(e,t,n,r,i){let o=[],s=t.at(-1),a=s&&s.offset&&s.offset.unit==="%"&&r?+s.offset.value:100;for(let p of t){let{color:h}=p;if(!o.length&&(o.push({offset:0,color:h}),!p.offset||p.offset.value==="0"))continue;let m=typeof p.offset>"u"?void 0:p.offset.unit==="%"?+p.offset.value/a:Number(X(`${p.offset.value}${p.offset.unit}`,n.fontSize,e,n,!0))/e;o.push({offset:m,color:h})}o.length||o.push({offset:0,color:"transparent"});let u=o[o.length-1];u.offset!==1&&(typeof u.offset>"u"?u.offset=1:r?o[o.length-1]={offset:1,color:u.color}:o.push({offset:1,color:u.color}));let f=0,l=1;for(let p=0;p<o.length;p++)if(typeof o[p].offset>"u"){for(l<p&&(l=p);typeof o[l].offset>"u";)l++;o[p].offset=(o[l].offset-o[f].offset)/(l-f)*(p-f)+o[f].offset}else f=p;return i==="mask"?o.map(p=>{let h=(0,Su.default)(p.color);return h?h.alpha===0?{...p,color:"rgba(0, 0, 0, 1)"}:{...p,color:`rgba(255, 255, 255, ${h.alpha})`}:p}):o}function Tu({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,f){let l=(0,_u.parseLinearGradient)(o),[p,h]=s,m=o.startsWith("repeating"),b,y,T;if(l.orientation.type==="directional")b=jd(l.orientation.value),y=Math.sqrt(Math.pow((b.x2-b.x1)*p,2)+Math.pow((b.y2-b.y1)*h,2));else if(l.orientation.type==="angular"){let{length:O,...I}=Vd(Ni(`${l.orientation.value.value}${l.orientation.value.unit}`)/180*Math.PI,p,h);y=O,b=I}T=m?Hd(l.stops,y,b,u):b;let E=ti(m?Gd(l.stops,y):y,l.stops,u,m,f),P=`satori_bi${e}`,w=`satori_pattern_${e}`,S=M("pattern",{id:w,x:a[0]/t,y:a[1]/n,width:r?p/t:"1",height:i?h/n:"1",patternUnits:"objectBoundingBox"},M("linearGradient",{id:P,...T,spreadMethod:m?"repeat":"pad"},E.map(O=>M("stop",{offset:(O.offset??0)*100+"%","stop-color":O.color})).join(""))+M("rect",{x:0,y:0,width:p,height:h,fill:`url(#${P})`}));return[w,S]}function Gd(e,t){let n=e[e.length-1],{offset:r}=n;return r?r.unit==="%"?Number(r.value)/100*t:Number(r.value):t}function jd(e){let t=0,n=0,r=0,i=0;return e.includes("top")?n=1:e.includes("bottom")&&(i=1),e.includes("left")?t=1:e.includes("right")&&(r=1),!t&&!r&&!n&&!i&&(n=1),{x1:t,y1:n,x2:r,y2:i}}function Vd(e,t,n){let r=Math.pow(n/t,2);e=(e%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let i,o,s,a,u,f,l,p,h=m=>{if(m===0){i=0,o=n,s=0,a=0,u=n;return}else if(m===Math.PI/2){i=0,o=0,s=t,a=0,u=t;return}if(m>0&&m<Math.PI/2){i=(r*t/2/Math.tan(m)-n/2)/(Math.tan(m)+r/Math.tan(m)),o=Math.tan(m)*i+n,s=Math.abs(t/2-i)+t/2,a=n/2-Math.abs(o-n/2),u=Math.sqrt(Math.pow(s-i,2)+Math.pow(a-o,2)),l=(t/2/Math.tan(m)-n/2)/(Math.tan(m)+1/Math.tan(m)),p=Math.tan(m)*l+n,u=2*Math.sqrt(Math.pow(t/2-l,2)+Math.pow(n/2-p,2));return}else if(m>Math.PI/2&&m<Math.PI){i=(n/2+r*t/2/Math.tan(m))/(Math.tan(m)+r/Math.tan(m)),o=Math.tan(m)*i,s=Math.abs(t/2-i)+t/2,a=n/2+Math.abs(o-n/2),l=(t/2/Math.tan(m)+n/2)/(Math.tan(m)+1/Math.tan(m)),p=Math.tan(m)*l,u=2*Math.sqrt(Math.pow(t/2-l,2)+Math.pow(n/2-p,2));return}else m>=Math.PI&&(h(m-Math.PI),f=i,i=s,s=f,f=o,o=a,a=f)};return h(e),{x1:i/t,y1:o/n,x2:s/t,y2:a/n,length:u}}function Hd(e,t,n,r){let{x1:i,x2:o,y1:s,y2:a}=n,u=e[0].offset?e[0].offset.unit==="%"?Number(e[0].offset.value)/100:X(`${e[0].offset.value}${e[0].offset.unit}`,r.fontSize,t,r,!0)/t:0,f=e.at(-1).offset?e.at(-1).offset.unit==="%"?Number(e.at(-1).offset.value)/100:X(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,r.fontSize,t,r,!0)/t:1,l=(o-i)*u+i,p=(a-s)*u+s,h=(o-i)*f+i,m=(a-s)*f+s;return{x1:l,y1:p,x2:h,y2:m}}var ku=require("css-gradient-parser");function Ou({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,f){var ue;let{shape:l,stops:p,position:h,size:m,repeating:b}=(0,ku.parseRadialGradient)(o),[y,T]=s,E=y/2,P=T/2,w=Xd(h.x,h.y,y,T,u.fontSize,u);E=w.x,P=w.y;let S=Yd(t,p,b,u),O=ti(S,p,u,b,f),I=`satori_radial_${e}`,F=`satori_pattern_${e}`,U=`satori_mask_${e}`,V=Kd(l,m,u.fontSize,{x:E,y:P},[y,T],u,b),de=Qd(l,u.fontSize,p,[y,T],u,b,V),Ae=M("pattern",{id:F,x:a[0]/t,y:a[1]/n,width:r?y/t:"1",height:i?T/n:"1",patternUnits:"objectBoundingBox"},M("radialGradient",{id:I,...de},O.map(Ie=>M("stop",{offset:Ie.offset||0,"stop-color":Ie.color})).join(""))+M("mask",{id:U},M("rect",{x:0,y:0,width:y,height:T,fill:"#fff"}))+M("rect",{x:0,y:0,width:y,height:T,fill:((ue=O.at(-1))==null?void 0:ue.color)||"transparent"})+M(l,{cx:E,cy:P,width:y,height:T,...V,fill:`url(#${I})`,mask:`url(#${U})`}));return[F,Ae]}function Yd(e,t,n,r){if(!n)return e;let i=t.at(-1);return!i||!i.offset||i.offset.unit==="%"?e:X(`${i.offset.value}${i.offset.unit}`,+r.fontSize,e,r,!0)}function Xd(e,t,n,r,i,o){let s={x:n/2,y:r/2};return e.type==="keyword"?Object.assign(s,Eu(e.value,n,r,"x")):s.x=X(`${e.value.value}${e.value.unit}`,i,n,o,!0)??n/2,t.type==="keyword"?Object.assign(s,Eu(t.value,n,r,"y")):s.y=X(`${t.value.value}${t.value.unit}`,i,r,o,!0)??r/2,s}function Eu(e,t,n,r){switch(e){case"center":return{[r]:r==="x"?t/2:n/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:t};case"bottom":return{y:n}}}function Qd(e,t,n,[r,i],o,s,a){let{r:u,rx:f,ratio:l=1}=a;if(!s)return{spreadMethod:"pad"};let p=n.at(-1),h=e==="circle"?u*2:f*2;return{spreadMethod:"repeat",cx:"50%",cy:"50%",r:p.offset.unit==="%"?`${Number(p.offset.value)*Math.min(i/r,1)/l}%`:Number(X(`${p.offset.value}${p.offset.unit}`,t,r,o,!0)/h)}}function Kd(e,t,n,r,i,o,s){let[a,u]=i,{x:f,y:l}=r,p={},h=0,m=0;if(Jd(t)){if(t.some(b=>b.value.value.startsWith("-")))throw new Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0");return e==="circle"?Object.assign(p,{r:Number(X(`${t[0].value.value}${t[0].value.unit}`,n,a,o,!0))}):Object.assign(p,{rx:Number(X(`${t[0].value.value}${t[0].value.unit}`,n,a,o,!0)),ry:Number(X(`${t[1].value.value}${t[1].value.unit}`,n,u,o,!0))}),ri(p,a,u,f,l,s,e),p}switch(t[0].value){case"farthest-corner":h=Math.max(Math.abs(a-f),Math.abs(f)),m=Math.max(Math.abs(u-l),Math.abs(l));break;case"closest-corner":h=Math.min(Math.abs(a-f),Math.abs(f)),m=Math.min(Math.abs(u-l),Math.abs(l));break;case"farthest-side":return e==="circle"?p.r=Math.max(Math.abs(a-f),Math.abs(f),Math.abs(u-l),Math.abs(l)):(p.rx=Math.max(Math.abs(a-f),Math.abs(f)),p.ry=Math.max(Math.abs(u-l),Math.abs(l))),ri(p,a,u,f,l,s,e),p;case"closest-side":return e==="circle"?p.r=Math.min(Math.abs(a-f),Math.abs(f),Math.abs(u-l),Math.abs(l)):(p.rx=Math.min(Math.abs(a-f),Math.abs(f)),p.ry=Math.min(Math.abs(u-l),Math.abs(l))),ri(p,a,u,f,l,s,e),p}return e==="circle"?p.r=Math.sqrt(h*h+m*m):Object.assign(p,Pu(h,m)),ri(p,a,u,f,l,s,e),p}function ri(e,t,n,r,i,o,s){if(o)if(s==="ellipse"){let a=Math.max(Math.abs(t-r),Math.abs(r)),u=Math.max(Math.abs(n-i),Math.abs(i)),{rx:f,ry:l}=Pu(a,u);e.ratio=Math.max(f/e.rx,l/e.ry),e.ratio>1&&(e.rx*=e.ratio,e.ry*=e.ratio)}else{let a=Math.max(Math.abs(t-r),Math.abs(r)),u=Math.max(Math.abs(n-i),Math.abs(i)),f=Math.sqrt(a*a+u*u);e.ratio=f/e.r,e.ratio>1&&(e.r=f)}}function Pu(e,t){let n=t!==0?e/t:1;if(e===0)return{rx:0,ry:0};{let r=Math.sqrt(e*e+t*t*n*n)/n;return{ry:r,rx:r*n}}}function Jd(e){return!e.some(t=>t.type==="keyword")}var lo=Pt(require("parse-css-color"),1);function fo(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function Zd(e,t,n,r,i){if(!r||!i)return[t,n];if(e==="cover"){let o=t/r,s=n/i,a=Math.max(o,s);return[r*a,i*a]}if(e==="contain"){let o=t/r,s=n/i,a=Math.min(o,s);return[r*a,i*a]}if(e==="auto"||e.includes("auto")){let o=e.split(" "),s=o[0]||"auto",a=o[1]||o[0]||"auto",u=r,f=i;if(s==="auto"&&a!=="auto"){let l=fo(a,n);f=l,u=r/i*l}else if(a==="auto"&&s!=="auto"){let l=fo(s,t);u=l,f=i/r*l}return[u,f]}return[t,n]}function uo(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(o=>{try{let s=new xt(o);return s.type==="length"||s.type==="number"?s.value:s.value+s.unit}catch{return null}}).filter(o=>o!==null):[r,i]).map((o,s)=>fo(o,[t,n][s]))}async function Vr({id:e,width:t,height:n,left:r,top:i},{image:o,size:s,position:a,repeat:u},f,l){u=u||"repeat",l=l||"background";let p=u==="repeat-x"||u==="repeat",h=u==="repeat-y"||u==="repeat",m=s&&(s==="cover"||s==="contain"||s==="auto"||s.includes("auto")),b=o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient(")||o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("),y=m&&b?[t,n]:m?[0,0]:uo(s,{x:t,y:n,defaultX:t,defaultY:n}),T=uo(a,{x:t,y:n,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return Tu({id:e,width:t,height:n,repeatX:p,repeatY:h},o,y,T,f,l);if(o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("))return Ou({id:e,width:t,height:n,repeatX:p,repeatY:h},o,y,T,f,l);if(o.startsWith("url(")){let[E,P,w]=await Sr(o.slice(4,-1)),S,O;if(m){let[I,F]=Zd(s,t,n,P,w);S=I,O=F}else{let I=uo(s,{x:t,y:n,defaultX:0,defaultY:0});S=l==="mask"?P||I[0]:I[0]||P,O=l==="mask"?w||I[1]:I[1]||w}return[`satori_bi${e}`,M("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:T[0]+r,y:T[1]+i,width:p?S:"100%",height:h?O:"100%"},M("image",{x:0,y:0,width:S,height:O,preserveAspectRatio:"none",href:E}))]}if((0,lo.default)(o)){let E=(0,lo.default)(o),[P,w,S,O]=E.values,F=`rgba(${P},${w},${S},${O!==void 0?O:1})`;return[`satori_bi${e}`,M("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:r,y:i,width:t,height:n},M("rect",{x:0,y:0,width:t,height:n,fill:F}))]}throw new Error(`Invalid background image: "${o}"`)}function ep([e,t]){return Math.round(e*1e3)===0&&Math.round(t*1e3)===0?0:Math.round(e*t/Math.sqrt(e*e+t*t)*1e3)/1e3}function ni(e,t,n){return n<e+t&&(n/2<e&&n/2<t?e=t=n/2:n/2<e?e=n-t:n/2<t&&(t=n-e)),[e,t]}function ii(e){e[0]=e[1]=Math.min(e[0],e[1])}function oi(e,t,n,r,i){if(typeof e=="string"){let o=e.split(" ").map(a=>a.trim()),s=!o[1]&&!o[0].endsWith("%");return o[1]=o[1]||o[0],[s,[Math.min(X(o[0],r,t,i,!0),t),Math.min(X(o[1],r,n,i,!0),n)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,n)]]:[!0,void 0]}var si=e=>e&&e[0]!==0&&e[1]!==0;function Au({id:e,borderRadiusPath:t,borderType:n,left:r,top:i,width:o,height:s},a){let u=`satori_brc-${e}`;return[M("clipPath",{id:u},M(n,{x:r,y:i,width:o,height:s,d:t||void 0})),u]}function Vt({left:e,top:t,width:n,height:r},i,o){let{borderTopLeftRadius:s,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:f,fontSize:l}=i,p,h,m,b;if([p,s]=oi(s,n,r,l,i),[h,a]=oi(a,n,r,l,i),[m,u]=oi(u,n,r,l,i),[b,f]=oi(f,n,r,l,i),!o&&!si(s)&&!si(a)&&!si(u)&&!si(f))return"";s||=[0,0],a||=[0,0],u||=[0,0],f||=[0,0],[s[0],a[0]]=ni(s[0],a[0],n),[u[0],f[0]]=ni(u[0],f[0],n),[s[1],u[1]]=ni(s[1],u[1],r),[a[1],f[1]]=ni(a[1],f[1],r),p&&ii(s),h&&ii(a),m&&ii(u),b&&ii(f);let y=[];y[0]=[a,a],y[1]=[f,[-f[0],f[1]]],y[2]=[u,[-u[0],-u[1]]],y[3]=[s,[s[0],-s[1]]];let T=`h${n-s[0]-a[0]} a${y[0][0]} 0 0 1 ${y[0][1]}`,E=`v${r-a[1]-f[1]} a${y[1][0]} 0 0 1 ${y[1][1]}`,P=`h${f[0]+u[0]-n} a${y[2][0]} 0 0 1 ${y[2][1]}`,w=`v${u[1]+s[1]-r} a${y[3][0]} 0 0 1 ${y[3][1]}`;if(o){let O=function(me){let ue=ep([s,a,f,u][me]);return me===0?[[e+s[0]-ue,t+s[1]-ue],[e+s[0],t]]:me===1?[[e+n-a[0]+ue,t+a[1]-ue],[e+n,t+a[1]]]:me===2?[[e+n-f[0]+ue,t+r-f[1]+ue],[e+n-f[0],t+r]]:[[e+u[0]-ue,t+r-u[1]+ue],[e,t+r-u[1]]]},S=o.indexOf(!1);if(!o.includes(!0))throw new Error("Invalid `partialSides`.");if(S===-1)S=0;else for(;!o[S];)S=(S+1)%4;let I="",F=O(S),U=`M${F[0]} A${y[(S+3)%4][0]} 0 0 1 ${F[1]}`,V=0;for(;V<4&&o[(S+V)%4];V++)I+=U+" ",U=[T,E,P,w][(S+V)%4];let de=(S+V)%4;I+=U.split(" ")[0];let Ae=O(de);return I+=` A${y[(de+3)%4][0]} 0 0 1 ${Ae[0]}`,I}return`M${e+s[0]},${t} ${T} ${E} ${P} ${w}`}function Iu(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function Ru({id:e,currentClipPathId:t,borderPath:n,borderType:r,left:i,top:o,width:s,height:a},u){if(!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth))return null;let l=`satori_bc-${e}`;return[M("clipPath",{id:l,"clip-path":t?`url(#${t})`:void 0},M(r,{x:i,y:o,width:s,height:a,d:n||void 0})),l]}function Hr({left:e,top:t,width:n,height:r,props:i,asContentMask:o,maskBorderOnly:s},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!o&&!u.some(m=>a[m+"Width"]))return"";let f="",l=0;for(;l>0&&Iu(u[l],u[(l+3)%4],a);)l=(l+3)%4;let p=[!1,!1,!1,!1],h=[];for(let m=0;m<4;m++){let b=(l+m)%4,y=(l+m+1)%4,T=u[b],E=u[y];if(p[b]=!0,h=[a[T+"Width"],a[T+"Style"],a[T+"Color"],T],!Iu(T,E,a)){let P=(h[0]||0)+(o&&!s&&a[T.replace("border","padding")]||0);P&&(f+=M("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":h[2],"stroke-width":P*2,"stroke-dasharray":!o&&h[1]==="dashed"?P*2+" "+P:void 0,d:Vt({left:e,top:t,width:n,height:r},a,p)})),p=[!1,!1,!1,!1]}}if(p.some(Boolean)){let m=(h[0]||0)+(o&&!s&&a[h[3].replace("border","padding")]||0);m&&(f+=M("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":h[2],"stroke-width":m*2,"stroke-dasharray":!o&&h[1]==="dashed"?m*2+" "+m:void 0,d:Vt({left:e,top:t,width:n,height:r},a,p)}))}return f}function co({id:e,left:t,top:n,width:r,height:i,matrix:o,borderOnly:s},a){let u=(a.borderLeftWidth||0)+(s?0:a.paddingLeft||0),f=(a.borderTopWidth||0)+(s?0:a.paddingTop||0),l=(a.borderRightWidth||0)+(s?0:a.paddingRight||0),p=(a.borderBottomWidth||0)+(s?0:a.paddingBottom||0),h={x:t+u,y:n+f,width:r-u-l,height:i-f-p};return M("mask",{id:e},M("rect",{...h,fill:"#fff",transform:a.overflow==="hidden"&&a.transform&&o?o:void 0,mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+Hr({left:t,top:n,width:r,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:s},a))}var po=require("css-to-react-native"),Yr={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function Mu({width:e,height:t},n,r){function i(f){let l=f.match(Yr.circle);if(!l)return null;let[,p]=l,[h,m=""]=p.split("at").map(T=>T.trim()),{x:b,y}=Lu(m,e,t);return{type:"circle",r:X(h,r.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),r,!0),cx:X(b,r.fontSize,e,r,!0),cy:X(y,r.fontSize,t,r,!0)}}function o(f){let l=f.match(Yr.ellipse);if(!l)return null;let[,p]=l,[h,m=""]=p.split("at").map(P=>P.trim()),[b,y]=h.split(" "),{x:T,y:E}=Lu(m,e,t);return{type:"ellipse",rx:X(b||"50%",r.fontSize,e,r,!0),ry:X(y||"50%",r.fontSize,t,r,!0),cx:X(T,r.fontSize,e,r,!0),cy:X(E,r.fontSize,t,r,!0)}}function s(f){let l=f.match(Yr.path);if(!l)return null;let[p,h]=Cu(l[1]);return{type:"path",d:h,"fill-rule":p}}function a(f){let l=f.match(Yr.polygon);if(!l)return null;let[p,h]=Cu(l[1]);return{type:"polygon","fill-rule":p,points:h.split(",").map(m=>m.split(" ").map((b,y)=>X(b,r.fontSize,y===0?e:t,r,!0)).join(" ")).join(",")}}function u(f){let l=f.match(Yr.inset);if(!l)return null;let[p,h]=(l[1].includes("round")?l[1]:`${l[1].trim()} round 0`).split("round"),m=(0,po.getStylesForProperty)("borderRadius",h,!0),b=Object.values(m).map(S=>String(S)).map((S,O)=>X(S,r.fontSize,O===0||O===2?t:e,r,!0)||0),y=Object.values((0,po.getStylesForProperty)("margin",p,!0)).map(S=>String(S)).map((S,O)=>X(S,r.fontSize,O===0||O===2?t:e,r,!0)||0),T=y[3],E=y[0],P=e-(y[1]+y[3]),w=t-(y[0]+y[2]);return b.some(S=>S>0)?{type:"path",d:Vt({left:T,top:E,width:P,height:w},{...n,...m})}:{type:"rect",x:T,y:E,width:P,height:w}}return{parseCircle:i,parseEllipse:o,parsePath:s,parsePolygon:a,parseInset:u}}function Cu(e){let[,t="nonzero",n]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,n]}function Lu(e,t,n){let r=e.split(" "),i={x:r[0]||"50%",y:r[1]||"50%"};return r.forEach(o=>{o==="top"?i.y=0:o==="bottom"?i.y=n:o==="left"?i.x=0:o==="right"?i.x=t:o==="center"&&(i.x=t/2,i.y=n/2)}),i}function ai(e){return`satori_cp-${e}`}function Nu(e){return`url(#${ai(e)})`}function Wu(e,t,n){if(t.clipPath==="none")return"";let r=Mu(e,t,n),i=t.clipPath,o={type:""};for(let s of Object.keys(r))if(o=r[s](i),o)break;if(o){let{type:s,...a}=o;return M("clipPath",{id:ai(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},M(s,a))}return""}function ho({left:e,top:t,width:n,height:r,path:i,matrix:o,id:s,currentClipPath:a,src:u},f,l){let p="",h=f.clipPath&&f.clipPath!=="none"?Wu({left:e,top:t,width:n,height:r,path:i,id:s,matrix:o,currentClipPath:a,src:u},f,l):"";if(f.overflow!=="hidden"&&!u)p="";else{let b=h?`satori_ocp-${s}`:ai(s);p=M("clipPath",{id:b,"clip-path":a},M(i?"path":"rect",{x:e,y:t,width:n,height:r,d:i||void 0,transform:f.overflow==="hidden"&&f.transform&&o?o:void 0}))}let m=co({id:`satori_om-${s}`,left:e,top:t,width:n,height:r,matrix:o,borderOnly:!u},f);return h+p+m}var tp=e=>`satori_mi-${e}`;async function mo(e,t,n){if(!t.maskImage)return["",""];let{left:r,top:i,width:o,height:s,id:a}=e,u=t.maskImage,f=u.length;if(!f)return["",""];let l=tp(a),p="";for(let h=0;h<f;h++){let m=u[h],[b,y]=await Vr({id:`${l}-${h}`,left:r,top:i,width:o,height:s},m,n,"mask");p+=y+M("rect",{x:r,y:i,width:o,height:s,fill:`url(#${b})`})}return p=M("mask",{id:l},p),[l,p]}function rp(e,t,n){let r=e.toLowerCase().trim().split(/\s+/),i=(u,f)=>({left:"0%",center:"50%",right:"100%",top:"0%",bottom:"100%"})[u]||u,o,s;if(r.length===1){let u=r[0];u==="left"||u==="center"||u==="right"?(o=i(u,"x"),s="50%"):u==="top"||u==="bottom"?(o="50%",s=i(u,"y")):(o=u,s="50%")}else{let u=r[0],f=r[1];u==="top"||u==="bottom"?(s=i(u,"y"),f==="left"||f==="right"||f==="center"?o=i(f,"x"):(o="50%",s=u==="top"||u==="bottom"?i(u,"y"):f)):(o=i(u,"x"),s=i(f,"y"))}let a=(u,f)=>{try{if(u.endsWith("%"))return f*parseFloat(u)/100;let l=new xt(u);return l.type==="length"||l.type==="number"?l.value:0}catch{return 0}};return[a(o,t),a(s,n)]}async function Xr({id:e,left:t,top:n,width:r,height:i,isInheritingTransform:o,src:s,debug:a},u,f){if(u.display==="none")return"";let l=!!s,p="rect",h="",m="",b=[],y=1,T="";u.backgroundColor&&b.push(u.backgroundColor),u.opacity!==void 0&&(y=+u.opacity),u.transform&&(h=jr({left:t,top:n,width:r,height:i},u.transform,o,u.transformOrigin));let E="";if(u.backgroundImage){let Z=[];for(let ne=0;ne<u.backgroundImage.length;ne++){let Ee=u.backgroundImage[ne],ve=await Vr({id:e+"_"+ne,width:r,height:i,left:t,top:n},Ee,f);ve&&Z.unshift(ve)}for(let ne of Z)b.push(`url(#${ne[0]})`),m+=ne[1],ne[2]&&(E+=ne[2])}let[P,w]=await mo({id:e,left:t,top:n,width:r,height:i},u,f);m+=w;let S=P?`url(#${P})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,O=Vt({left:t,top:n,width:r,height:i},u);O&&(p="path");let I=u._inheritedClipPathId;a&&(T=M("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:h||void 0,"clip-path":I?`url(#${I})`:void 0}));let{backgroundClip:F,filter:U}=u,V=F==="text"?`url(#satori_bct-${e})`:I?`url(#${I})`:u.clipPath?Nu(e):void 0,de=ho({left:t,top:n,width:r,height:i,path:O,id:e,matrix:h,currentClipPath:V,src:s},u,f),Ae=b.map(Z=>M(p,{x:t,y:n,width:r,height:i,fill:Z,d:O||void 0,transform:h||void 0,"clip-path":u.transform?void 0:V,style:U?`filter:${U}`:void 0,mask:u.transform?void 0:S})).join(""),me=Ru({id:e,left:t,top:n,width:r,height:i,currentClipPathId:I,borderPath:O,borderType:p},u),ue;if(l){let Z=(u.borderLeftWidth||0)+(u.paddingLeft||0),ne=(u.borderTopWidth||0)+(u.paddingTop||0),Ee=(u.borderRightWidth||0)+(u.paddingRight||0),ve=(u.borderBottomWidth||0)+(u.paddingBottom||0),Re=r-Z-Ee,ke=i-ne-ve,Ye=(u.objectPosition||"center").toString(),[Me,Oe]=rp(Ye,Re,ke),le=u.__naturalWidth||Re,Y=u.__naturalHeight||ke,J,pe=Re,z=ke,Le=t+Z,De=n+ne;if(u.objectFit==="contain"){let qe=Re/le,Be=ke/Y,ie=Math.min(qe,Be);pe=le*ie,z=Y*ie,Le=t+Z+Me-pe*Me/Re,De=n+ne+Oe-z*Oe/ke,J="none"}else if(u.objectFit==="cover"){let qe=Re/le,Be=ke/Y,ie=Math.max(qe,Be);pe=le*ie,z=Y*ie,Le=t+Z+Me-pe*Me/Re,De=n+ne+Oe-z*Oe/ke,J="none"}else if(u.objectFit==="fill")J="none";else if(u.objectFit==="scale-down")if(le&&Y){let qe=Re/le,Be=ke/Y,ie=Math.min(qe,Be);if(ie>=1)pe=le,z=Y,J="none",Le=t+Z+Me-pe*Me/Re,De=n+ne+Oe-z*Oe/ke;else{let Tt=ie;pe=le*Tt,z=Y*Tt,Le=t+Z+Me-pe*Me/Re,De=n+ne+Oe-z*Oe/ke,J="none"}}else{let qe=Re/le,Be=ke/Y,ie=Math.min(qe,Be);pe=le*ie,z=Y*ie,Le=t+Z+Me-pe*Me/Re,De=n+ne+Oe-z*Oe/ke,J="none"}else J="none";u.transform&&(ue=Au({id:e,borderRadiusPath:O,borderType:p,left:t,top:n,width:r,height:i},u)),Ae+=M("image",{x:Le,y:De,width:pe,height:z,href:s,preserveAspectRatio:J,transform:h||void 0,style:U?`filter:${U}`:void 0,"clip-path":u.transform?ue?`url(#${ue[1]})`:void 0:`url(#satori_cp-${e})`,mask:u.transform?void 0:P?`url(#${P})`:`url(#satori_om-${e})`})}if(me){m+=me[0];let Z=me[1];Ae+=Hr({left:t,top:n,width:r,height:i,props:{transform:h||void 0,"clip-path":`url(#${Z})`}},u)}let Ie=vu({width:r,height:i,id:e,opacity:y,shape:M(p,{x:t,y:n,width:r,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:O||void 0,transform:h||void 0,"clip-path":V,mask:S})},u);return(m?M("defs",{},m):"")+(Ie?Ie[0]:"")+(ue?ue[0]:"")+de+(y!==1?`<g opacity="${y}">`:"")+(u.transform&&(V||S)?`<g${V?` clip-path="${V}"`:""}${S?` mask="${S}"`:""}>`:"")+(E||Ae)+(u.transform&&(V||S)?"</g>":"")+(y!==1?"</g>":"")+(Ie?Ie[1]:"")+T}var Du=String.raw,Fu=Du`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,$u=()=>new RegExp(Du`\p{RI}{2}|(?)${Fu}(?:\u200D${Fu})*`,"gu");var np=new RegExp($u(),"u"),go={emoji:np,symbol:/\p{Symbol}/u,math:/\p{Math}/u},bo={"ja-JP":/\p{scx=Hira}|\p{scx=Kana}|\p{scx=Han}|[\u3000]|[\uFF00-\uFFEF]/u,"ko-KR":/\p{scx=Hangul}/u,"zh-CN":/\p{scx=Han}/u,"zh-TW":/\p{scx=Han}/u,"zh-HK":/\p{scx=Han}/u,"th-TH":/\p{scx=Thai}/u,"bn-IN":/\p{scx=Bengali}/u,"ar-AR":/\p{scx=Arabic}/u,"ta-IN":/\p{scx=Tamil}/u,"ml-IN":/\p{scx=Malayalam}/u,"he-IL":/\p{scx=Hebrew}/u,"te-IN":/\p{scx=Telugu}/u,devanagari:/\p{scx=Devanagari}/u,kannada:/\p{scx=Kannada}/u},ui=Object.keys({...bo,...go});function Bu(e){return ui.includes(e)}function Uu(e,t){for(let r of Object.keys(go))if(go[r].test(e))return[r];let n=Object.keys(bo).filter(r=>bo[r].test(e));if(n.length===0)return["unknown"];if(t){let r=n.findIndex(i=>i===t);r!==-1&&(n.splice(r,1),n.unshift(t))}return n}function qu(e){if(e)return ui.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*Qr(e,t){var le;let n=await jt(),{id:r,inheritedStyle:i,parent:o,font:s,debug:a,locale:u,embedFont:f=!0,graphemeImages:l,canLoadAdditionalAssets:p,getTwStyles:h}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!gr(e)||Sa(e.type)){let Y;if(!gr(e))Y=ao(String(e),t),yield(await Y.next()).value;else{if(wa(e.type))throw new Error("Class component is not supported.");let pe;Mi(e.type)?pe=e.type.render:pe=e.type,Y=Qr(await pe(e.props),t),yield(await Y.next()).value}await Y.next();let J=yield;return(await Y.next(J)).value}let{type:m,props:b}=e,y=m;if(b&&_a(b))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:T,children:E,tw:P,lang:w=u}=b||{},S=qu(w);if(P){let Y=h(P,T);T=Object.assign(Y,T)}let O=n.Node.create();o.insertChild(O,o.getChildCount());let[I,F]=await Zi(O,y,i,T,b),U=I.transform===i.transform;if(U||(I.transform.__parent=i.transform),(I.overflow==="hidden"||I.clipPath&&I.clipPath!=="none")&&(F._inheritedClipPathId=`satori_cp-${r}`,F._inheritedMaskId=`satori_om-${r}`),I.maskImage&&(F._inheritedMaskId=`satori_mi-${r}`),I.backgroundClip==="text"){let Y={value:""};F._inheritedBackgroundClipTextPath=Y,I._inheritedBackgroundClipTextPath=Y,I.backgroundImage&&(F._inheritedBackgroundClipTextHasBackground="true",I._inheritedBackgroundClipTextHasBackground="true")}let V=Ta(E),de=[],Ae=0,me=[];for(let Y of V){let J=Qr(Y,{id:r+"-"+Ae++,parentStyle:I,inheritedStyle:F,isInheritingTransform:!0,parent:O,font:s,embedFont:f,debug:a,graphemeImages:l,canLoadAdditionalAssets:p,locale:S,getTwStyles:h,onNodeDetected:t.onNodeDetected});p?me.push(...(await J.next()).value||[]):await J.next(),de.push(J)}yield me;for(let Y of de)await Y.next();let[ue,Ie]=yield,{left:Z,top:ne,width:Ee,height:ve}=O.getComputedLayout();Z+=ue,ne+=Ie;let Re="",ke="",Ye="",{children:Me,...Oe}=b;if((le=t.onNodeDetected)==null||le.call(t,{left:Z,top:ne,width:Ee,height:ve,type:y,props:Oe,key:e.key,textContent:gr(Me)?void 0:Me}),y==="img"){let Y=I.__src;ke=await Xr({id:r,left:Z,top:ne,width:Ee,height:ve,src:Y,isInheritingTransform:U,debug:a},I,F)}else if(y==="svg"){let Y=I.color,J=await tu(e,Y);ke=await Xr({id:r,left:Z,top:ne,width:Ee,height:ve,src:J,isInheritingTransform:U,debug:a},I,F)}else{let Y=T==null?void 0:T.display;if(y==="div"&&E&&typeof E!="string"&&Y!=="flex"&&Y!=="none"&&Y!=="contents")throw new Error('Expected <div> to have explicit "display: flex", "display: contents", or "display: none" if it has more than one child node.');ke=await Xr({id:r,left:Z,top:ne,width:Ee,height:ve,isInheritingTransform:U,debug:a},I,F)}for(let Y of de)Re+=(await Y.next([Z,ne])).value;return I._inheritedBackgroundClipTextPath&&(Ye+=M("clipPath",{id:`satori_bct-${r}`,"clip-path":I._inheritedClipPathId?`url(#${I._inheritedClipPathId})`:void 0},I._inheritedBackgroundClipTextPath.value)),Ye+ke+Re}var Tr=Pt(require("@shuding/opentype.js"),1);var zu="unknown";function ip(e){let t=[],n=[0,0],r=[0,0],i=(o,s)=>{let a=o[0];for(let u=1;u<=s;u++){let f=u/s,l=op(o,f);t.push({from:a,to:l}),a=l}r=o[o.length-1]};for(let o of e){if(o.type==="M"){n=r=[o.x,o.y];continue}if(o.type==="L"){let s=[o.x,o.y];t.push({from:r,to:s}),r=s;continue}if(o.type==="Q"){i([r,[o.x1,o.y1],[o.x,o.y]],12);continue}if(o.type==="C"){i([r,[o.x1,o.y1],[o.x2,o.y2],[o.x,o.y]],16);continue}o.type==="Z"&&(t.push({from:r,to:n}),r=n)}return t}function op(e,t){let n=e;for(;n.length>1;){let r=[];for(let i=0;i<n.length-1;i++)r.push([n[i][0]+(n[i+1][0]-n[i][0])*t,n[i][1]+(n[i+1][1]-n[i][1])*t]);n=r}return n[0]}function sp(e,t){if(!t)return[];let n=t.strokeWidth,r=t.underlineY-n*.25,i=t.underlineY+n*2.5,o=ip(e);if(!o.length)return[];let s=i-r,a=Math.max(12,Math.ceil(s/.25)),u=s/a,f=r+u/2,l=new Set;for(let w=0;w<a;w++){let S=f+u*w,O=[];for(let I of o){let[F,U]=I.from,[V,de]=I.to;if(U===de)continue;let Ae=Math.min(U,de),me=Math.max(U,de);if(S<Ae||S>=me)continue;let ue=(S-U)/(de-U),Ie=F+(V-F)*ue;O.push(Ie)}if(O.length){O.sort((I,F)=>I-F);for(let I=0;I<O.length-1;I+=2){let F=Math.min(O[I],O[I+1]),U=Math.max(O[I],O[I+1]),V=Math.floor(F),de=Math.ceil(U);for(let Ae=V;Ae<de;Ae++)l.add(Ae)}}}if(!l.size)return[];let p=Array.from(l.values()).sort((w,S)=>w-S),h=[],m=p[0],b=p[0];for(let w=1;w<p.length;w++){let S=p[w];S>b+1&&(h.push([m,b+1]),m=S),b=S}h.push([m,b+1]);let y=[],T=n*.6,E=h[0][0],P=h[h.length-1][1];for(let[w,S]of h){let O=Math.min(w,E)-T,I=Math.max(S,P)+T;y.push({x1:O,x2:I,y1:r,y2:i})}return y}function ap(e,t,[n,r],[i,o]){if(n!==i)return n?!i||n===e?-1:i===e?1:e===400&&n===500||e===500&&n===400?-1:e===400&&i===500||e===500&&i===400?1:e<400?n<e&&i<e?i-n:n<e?-1:i<e?1:n-i:e<n&&e<i?n-i:e<n?-1:e<i?1:i-n:1;if(r!==o){if(r===t)return-1;if(o===t)return 1}return-1}var vo=new WeakMap,Kr=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:n,style:r}){if(!this.fonts.has(t))return null;n==="normal"&&(n=400),n==="bold"&&(n=700),typeof n=="string"&&(n=Number.parseInt(n,10));let i=[...this.fonts.get(t)],o=i[0];for(let s=1;s<i.length;s++){let[,a,u]=o,[,f,l]=i[s];ap(n,r,[a,u],[f,l])>0&&(o=i[s])}return o[0]}addFonts(t){for(let n of t){let{name:r,data:i,lang:o}=n;if(o&&!Bu(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${ui.join(", ")}.`);let s=o??zu,a;if(vo.has(i))a=vo.get(i);else{a=Tr.default.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0});let f=a.charToGlyphIndex;a.charToGlyphIndex=l=>{let p=f.call(a,l);return p===0&&a._trackBrokenChars&&a._trackBrokenChars.push(l),p},vo.set(i,a)}this.defaultFont||(this.defaultFont=a);let u=`${r.toLowerCase()}_${s}`;this.fonts.has(u)||this.fonts.set(u,[]),this.fonts.get(u).push([a,n.weight,n.style])}}getEngine(t=16,n="normal",{fontFamily:r="sans-serif",fontWeight:i=400,fontStyle:o="normal"},s){if(!this.fonts.size)throw new Error("No fonts are loaded. At least one font is required to calculate the layout.");r=(Array.isArray(r)?r:[r]).map(w=>w.toLowerCase());let a=[];r.forEach(w=>{let S=this.get({name:w,weight:i,style:o});if(S){a.push(S);return}let O=this.get({name:w+"_unknown",weight:i,style:o});if(O){a.push(O);return}});let u=Array.from(this.fonts.keys()),f=[],l=[],p=[];for(let w of u)if(!r.includes(w))if(s){let S=up(w);S?S===s?f.push(this.get({name:w,weight:i,style:o})):l.push(this.get({name:w,weight:i,style:o})):p.push(this.get({name:w,weight:i,style:o}))}else p.push(this.get({name:w,weight:i,style:o}));let h=new Map,m=(w,S=!0)=>{let O=[...a,...p,...f,...S?l:[]];if(typeof w>"u")return S?O[O.length-1]:void 0;let I=w.charCodeAt(0);if(h.has(I))return h.get(I);let F=O.find((U,V)=>!!U.charToGlyphIndex(w)||S&&V===O.length-1);return F&&h.set(I,F),F},b=(w,S=!1)=>{var I,F;return((S?(F=(I=w.tables)==null?void 0:I.os2)==null?void 0:F.sTypoAscender:0)||w.ascender)/w.unitsPerEm*t},y=(w,S=!1)=>{var I,F;return((S?(F=(I=w.tables)==null?void 0:I.os2)==null?void 0:F.sTypoDescender:0)||w.descender)/w.unitsPerEm*t},T=(w,S=!1)=>{var O,I;if(typeof n=="string"&&n==="normal"){let F=(S?(I=(O=w.tables)==null?void 0:O.os2)==null?void 0:I.sTypoLineGap:0)||0;return b(w,S)-y(w,S)+F/w.unitsPerEm*t}else if(typeof n=="number")return t*n},E=w=>m(w,!1);return{has:w=>{if(w===`
|
|
7
|
-
`)return!0;let S=E(w);return S?(S._trackBrokenChars=[],S.stringToGlyphs(w),S._trackBrokenChars.length?(S._trackBrokenChars=void 0,!1):!0):!1},baseline:(w,S=typeof w>"u"?a[0]:m(w))=>{let O=b(S),I=y(S),F=O-I;return O+(T(S)-F)/2},height:(w,S=typeof w>"u"?a[0]:m(w))=>T(S),measure:(w,S)=>this.measure(m,w,S),getSVG:(w,S,O)=>this.getSVG(m,w,S,O)}}patchFontFallbackResolver(t,n){let r=[];t._trackBrokenChars=r;let i=t.stringToGlyphs;return t.stringToGlyphs=(o,...s)=>{let a=i.call(t,o,...s);for(let u=0;u<a.length;u++)if(a[u].unicode===void 0){let f=r.shift(),l=n(f);if(l!==t){let p=l.charToGlyph(f),h=t.unitsPerEm/l.unitsPerEm,m=new Tr.default.Path;m.unitsPerEm=t.unitsPerEm,m.commands=p.path.commands.map(y=>{let T={...y};for(let E in T)typeof T[E]=="number"&&(T[E]*=h);return T});let b=new Tr.default.Glyph({...p,advanceWidth:p.advanceWidth*h,xMin:p.xMin*h,xMax:p.xMax*h,yMin:p.yMin*h,yMax:p.yMax*h,path:m});a[u]=b}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,n,{fontSize:r,letterSpacing:i=0}){let o=t(n),s=this.patchFontFallbackResolver(o,t);try{return o.getAdvanceWidth(n,r,{letterSpacing:i/r})}finally{s()}}getSVG(t,n,{fontSize:r,top:i,left:o,letterSpacing:s=0},a){let u=t(n),f=this.patchFontFallbackResolver(u,t);try{if(r===0)return{path:"",boxes:[]};let l=new Tr.default.Path,p=[],h={letterSpacing:s/r},m=new WeakMap;return u.forEachGlyph(n.replace(/\n/g,""),o,i,r,h,function(b,y,T,E){let P;if(!m.has(b))P=b.getPath(y,T,E,h),m.set(b,[y,T,P]);else{let[S,O,I]=m.get(b);P=new Tr.default.Path,P.commands=I.commands.map(F=>{let U={...F};for(let V in U)typeof U[V]=="number"&&((V==="x"||V==="x1"||V==="x2")&&(U[V]+=y-S),(V==="y"||V==="y1"||V==="y2")&&(U[V]+=T-O));return U})}let w=a?sp(P.commands,a):[];w.length&&p.push(...w),l.extend(P)}),{path:l.toPathData(1),boxes:p}}finally{f()}}};function up(e){let t=e.split("_"),n=t[t.length-1];return n===zu?void 0:n}function yo({width:e,height:t,content:n}){return M("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},n)}var _c=Pt(ec());var Yb=["ios","android","windows","macos","web"];function rc(e){return Yb.includes(e)}var Xb=["portrait","landscape"];function nc(e){return Xb.includes(e)}var tc;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(tc||(tc={}));var se;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(se||(se={}));function js(e){return typeof e=="string"}function Vs(e){return typeof e=="object"}var Hs;function _(e){return{kind:"complete",style:e}}function Fe(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[o="",s=""]=e.split("/",2),a=Fe(o),u=Fe(s);return!a||!u?null:[a[0]/u[0],u[1]]}let r=parseFloat(e);if(Number.isNaN(r))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[r,se.none];switch(i==null?void 0:i[1]){case"rem":return[r,se.rem];case"px":return[r,se.px];case"em":return[r,se.em];case"%":return[r,se.percent];case"vw":return[r,se.vw];case"vh":return[r,se.vh];default:return null}}function Ut(e,t,n={}){let r=Rt(t,n);return r===null?null:_({[e]:r})}function ki(e,t,n){let r=Rt(t);return r!==null&&(n[e]=r),n}function oc(e,t){let n=Rt(t);return n===null?null:{[e]:n}}function Rt(e,t={}){if(e===void 0)return null;let n=Fe(String(e),t);return n?Qt(...n,t):null}function Qt(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case se.rem:return e*16*(r?-1:1);case se.px:return e*(r?-1:1);case se.percent:return`${r?"-":""}${e}%`;case se.none:return e*(r?-1:1);case se.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(Je("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case se.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(Je("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function Ys(e){let t=Fe(e);if(!t)return null;let[n,r]=t;switch(r){case se.rem:return n*16;case se.px:return n;default:return null}}var Qb={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function Xs(e){return Qb[e??""]||"All"}function Qs(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=Xs(i),"")),t]}function lr(e,t={}){if(e.includes("/")){let n=ic(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),ic(e,t)}function dt(e,t,n={}){let r=lr(t,n);return r===null?null:_({[e]:r})}function ic(e,t={}){if(e==="px")return 1;let n=Fe(e,t);if(!n)return null;let[r,i]=n;return t.fractions&&(i=se.percent,r*=100),i===se.none&&(r=r/4,i=se.rem),Qt(r,i,t)}function Kb(...e){console.warn(...e)}function Jb(...e){}var Je=typeof process>"u"||((Hs=process==null?void 0:process.env)===null||Hs===void 0?void 0:Hs.JEST_WORKER_ID)===void 0?Kb:Jb;var Zb=[["aspect-square",_({aspectRatio:1})],["aspect-video",_({aspectRatio:16/9})],["items-center",_({alignItems:"center"})],["items-start",_({alignItems:"flex-start"})],["items-end",_({alignItems:"flex-end"})],["items-baseline",_({alignItems:"baseline"})],["items-stretch",_({alignItems:"stretch"})],["justify-start",_({justifyContent:"flex-start"})],["justify-end",_({justifyContent:"flex-end"})],["justify-center",_({justifyContent:"center"})],["justify-between",_({justifyContent:"space-between"})],["justify-around",_({justifyContent:"space-around"})],["justify-evenly",_({justifyContent:"space-evenly"})],["content-start",_({alignContent:"flex-start"})],["content-end",_({alignContent:"flex-end"})],["content-between",_({alignContent:"space-between"})],["content-around",_({alignContent:"space-around"})],["content-stretch",_({alignContent:"stretch"})],["content-center",_({alignContent:"center"})],["self-auto",_({alignSelf:"auto"})],["self-start",_({alignSelf:"flex-start"})],["self-end",_({alignSelf:"flex-end"})],["self-center",_({alignSelf:"center"})],["self-stretch",_({alignSelf:"stretch"})],["self-baseline",_({alignSelf:"baseline"})],["direction-inherit",_({direction:"inherit"})],["direction-ltr",_({direction:"ltr"})],["direction-rtl",_({direction:"rtl"})],["hidden",_({display:"none"})],["flex",_({display:"flex"})],["flex-row",_({flexDirection:"row"})],["flex-row-reverse",_({flexDirection:"row-reverse"})],["flex-col",_({flexDirection:"column"})],["flex-col-reverse",_({flexDirection:"column-reverse"})],["flex-wrap",_({flexWrap:"wrap"})],["flex-wrap-reverse",_({flexWrap:"wrap-reverse"})],["flex-nowrap",_({flexWrap:"nowrap"})],["flex-auto",_({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",_({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",_({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",_({overflow:"hidden"})],["overflow-visible",_({overflow:"visible"})],["overflow-scroll",_({overflow:"scroll"})],["absolute",_({position:"absolute"})],["relative",_({position:"relative"})],["italic",_({fontStyle:"italic"})],["not-italic",_({fontStyle:"normal"})],["oldstyle-nums",An("oldstyle-nums")],["small-caps",An("small-caps")],["lining-nums",An("lining-nums")],["tabular-nums",An("tabular-nums")],["proportional-nums",An("proportional-nums")],["font-thin",_({fontWeight:"100"})],["font-100",_({fontWeight:"100"})],["font-extralight",_({fontWeight:"200"})],["font-200",_({fontWeight:"200"})],["font-light",_({fontWeight:"300"})],["font-300",_({fontWeight:"300"})],["font-normal",_({fontWeight:"normal"})],["font-400",_({fontWeight:"400"})],["font-medium",_({fontWeight:"500"})],["font-500",_({fontWeight:"500"})],["font-semibold",_({fontWeight:"600"})],["font-600",_({fontWeight:"600"})],["font-bold",_({fontWeight:"bold"})],["font-700",_({fontWeight:"700"})],["font-extrabold",_({fontWeight:"800"})],["font-800",_({fontWeight:"800"})],["font-black",_({fontWeight:"900"})],["font-900",_({fontWeight:"900"})],["include-font-padding",_({includeFontPadding:!0})],["remove-font-padding",_({includeFontPadding:!1})],["max-w-none",_({maxWidth:"99999%"})],["text-left",_({textAlign:"left"})],["text-center",_({textAlign:"center"})],["text-right",_({textAlign:"right"})],["text-justify",_({textAlign:"justify"})],["text-auto",_({textAlign:"auto"})],["underline",_({textDecorationLine:"underline"})],["line-through",_({textDecorationLine:"line-through"})],["no-underline",_({textDecorationLine:"none"})],["uppercase",_({textTransform:"uppercase"})],["lowercase",_({textTransform:"lowercase"})],["capitalize",_({textTransform:"capitalize"})],["normal-case",_({textTransform:"none"})],["w-auto",_({width:"auto"})],["h-auto",_({height:"auto"})],["shadow-sm",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",_({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],Ks=Zb;function An(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var In=class{constructor(t){this.ir=new Map(Ks),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...Ks,...t??[]])}getStyle(t){return this.styles.get(t)}setStyle(t,n){this.styles.set(t,n)}getIr(t){return this.ir.get(t)}setIr(t,n){this.ir.set(t,n)}getPrefixMatch(t){return this.prefixes.get(t)}setPrefixMatch(t,n){this.prefixes.set(t,n)}};function Js(e,t,n={}){let r=t==null?void 0:t[e];if(!r)return dt("fontSize",e,n);if(typeof r=="string")return Ut("fontSize",r);let i={},[o,s]=r,a=oc("fontSize",o);if(a&&(i=a),typeof s=="string")return _(ki("lineHeight",sc(s,i),i));let{lineHeight:u,letterSpacing:f}=s;return u&&ki("lineHeight",sc(u,i),i),f&&ki("letterSpacing",f,i),_(i)}function sc(e,t){let n=Fe(e);if(n){let[r,i]=n;if((i===se.none||i===se.em)&&typeof t.fontSize=="number")return t.fontSize*r}return e}function Zs(e,t){var n;let r=(n=t==null?void 0:t[e])!==null&&n!==void 0?n:e.startsWith("[")?e.slice(1,-1):e,i=Fe(r);if(!i)return null;let[o,s]=i;if(s===se.none)return{kind:"dependent",complete(u){if(typeof u.fontSize!="number")return"relative line-height utilities require that font-size be set";u.lineHeight=u.fontSize*o}};let a=Qt(o,s);return a!==null?_({lineHeight:a}):null}function ea(e,t,n,r,i){let o="";if(r[0]==="[")o=r.slice(1,-1);else{let f=i==null?void 0:i[r];if(f)o=f;else{let l=lr(r);return l&&typeof l=="number"?ac(l,se.px,t,e):null}}if(o==="auto")return uc(t,e,"auto");let s=Fe(o);if(!s)return null;let[a,u]=s;return n&&(a=-a),ac(a,u,t,e)}function ac(e,t,n,r){let i=Qt(e,t);return i===null?null:uc(n,r,i)}function uc(e,t,n){switch(e){case"All":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Right`]:n,[`${t}Bottom`]:n,[`${t}Left`]:n}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${t}${e}`]:n}};case"Vertical":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Bottom`]:n}};case"Horizontal":return{kind:"complete",style:{[`${t}Left`]:n,[`${t}Right`]:n}};default:return null}}function ta(e){if(!e)return{};let t=Object.entries(e).reduce((i,[o,s])=>{let a=[0,1/0,0],u=typeof s=="string"?{min:s}:s,f=u.min?Ys(u.min):0;f===null?Je(`invalid screen config value: ${o}->min: ${u.min}`):a[0]=f;let l=u.max?Ys(u.max):1/0;return l===null?Je(`invalid screen config value: ${o}->max: ${u.max}`):a[1]=l,i[o]=a,i},{}),n=Object.values(t);n.sort((i,o)=>{let[s,a]=i,[u,f]=o;return a===1/0||f===1/0?s-u:a-f});let r=0;return n.forEach(i=>i[2]=r++),t}function ra(e,t){let n=t==null?void 0:t[e];if(!n)return null;if(typeof n=="string")return _({fontFamily:n});let r=n[0];return r?_({fontFamily:r}):null}function fr(e,t,n){if(!n)return null;let r;t.includes("/")&&([t="",r]=t.split("/",2));let i="";if(t.startsWith("[#")||t.startsWith("[rgb")?i=t.slice(1,-1):i=cc(t,n),!i)return null;if(r){let o=Number(r);if(!Number.isNaN(o))return i=lc(i,o/100),_({[Oi[e].color]:i})}return{kind:"dependent",complete(o){let s=Oi[e].opacity,a=o[s];typeof a=="number"&&(i=lc(i,a)),o[Oi[e].color]=i}}}function Rn(e,t){let n=parseInt(t,10);if(Number.isNaN(n))return null;let r=n/100;return{kind:"complete",style:{[Oi[e].opacity]:r}}}function lc(e,t){return e.startsWith("#")?e=ev(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function fc(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var Oi={bg:{opacity:"__opacity_bg",color:"backgroundColor"},text:{opacity:"__opacity_text",color:"color"},border:{opacity:"__opacity_border",color:"borderColor"},borderTop:{opacity:"__opacity_border",color:"borderTopColor"},borderBottom:{opacity:"__opacity_border",color:"borderBottomColor"},borderLeft:{opacity:"__opacity_border",color:"borderLeftColor"},borderRight:{opacity:"__opacity_border",color:"borderRightColor"},shadow:{opacity:"__opacity_shadow",color:"shadowColor"},tint:{opacity:"__opacity_tint",color:"tintColor"}};function ev(e){let t=e;e=e.replace(tv,(s,a,u,f)=>a+a+u+u+f+f);let n=rv.exec(e);if(!n)return Je(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let r=parseInt(n[1],16),i=parseInt(n[2],16),o=parseInt(n[3],16);return`rgba(${r}, ${i}, ${o}, 1)`}function cc(e,t){let n=t[e];if(js(n))return n;if(Vs(n)&&js(n.DEFAULT))return n.DEFAULT;let[r="",...i]=e.split("-");for(;r!==e;){let o=t[r];if(Vs(o))return cc(i.join("-"),o);if(i.length===0)return"";r=`${r}-${i.shift()}`}return""}var tv=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,rv=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function pc(e,t){let[n,r]=Qs(e);if(n.match(/^(-?(\d)+)?$/))return nv(n,r,t==null?void 0:t.borderWidth);if(n=n.replace(/^-/,""),["dashed","solid","dotted"].includes(n))return _({borderStyle:n});let o="border";switch(r){case"Bottom":o="borderBottom";break;case"Top":o="borderTop";break;case"Left":o="borderLeft";break;case"Right":o="borderRight";break}let s=fr(o,n,t==null?void 0:t.borderColor);if(s)return s;let a=`border${r==="All"?"":r}Width`;n=n.replace(/^-/,"");let u=n.slice(1,-1),f=dt(a,u);return typeof(f==null?void 0:f.style[a])!="number"?null:f}function nv(e,t,n){if(!n)return null;e=e.replace(/^-/,"");let i=n[e===""?"DEFAULT":e];if(i===void 0)return null;let o=`border${t==="All"?"":t}Width`;return Ut(o,i)}function hc(e,t){if(!t)return null;let[n,r]=Qs(e);n=n.replace(/^-/,""),n===""&&(n="DEFAULT");let i=`border${r==="All"?"":r}Radius`,o=t[n];if(o)return dc(Ut(i,o));let s=dt(i,n);return typeof(s==null?void 0:s.style[i])!="number"?null:dc(s)}function dc(e){if((e==null?void 0:e.kind)!=="complete")return e;let t=e.style.borderTopRadius;t!==void 0&&(e.style.borderTopLeftRadius=t,e.style.borderTopRightRadius=t,delete e.style.borderTopRadius);let n=e.style.borderBottomRadius;n!==void 0&&(e.style.borderBottomLeftRadius=n,e.style.borderBottomRightRadius=n,delete e.style.borderBottomRadius);let r=e.style.borderLeftRadius;r!==void 0&&(e.style.borderBottomLeftRadius=r,e.style.borderTopLeftRadius=r,delete e.style.borderLeftRadius);let i=e.style.borderRightRadius;return i!==void 0&&(e.style.borderBottomRightRadius=i,e.style.borderTopRightRadius=i,delete e.style.borderRightRadius),e}function Ar(e,t,n,r){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(a,u)=>(i=u==="x"?"x":"y","")));let o=r==null?void 0:r[t];if(o){let a=Rt(o,{isNegative:n});if(a!==null)return mc(e,i,a)}let s=lr(t,{isNegative:n});return s!==null?mc(e,i,s):null}function mc(e,t,n){if(e!=="inset")return _({[e]:n});switch(t){case null:return _({top:n,left:n,right:n,bottom:n});case"y":return _({top:n,bottom:n});case"x":return _({left:n,right:n})}}function Cn(e,t,n){var r;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,o=Number((r=n==null?void 0:n[i])!==null&&r!==void 0?r:t);return Number.isNaN(o)?null:_({[`flex${e}`]:o})}function gc(e,t){var n,r;if(e=(t==null?void 0:t[e])||e,["min-content","revert","unset"].includes(e))return null;if(e.match(/^\d+(\.\d+)?$/))return _({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return _({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let o=Rt((n=i[2])!==null&&n!==void 0?n:"");return o?_({flexGrow:Number(i[1]),flexBasis:o}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let o=Rt((r=i[3])!==null&&r!==void 0?r:"");return o?_({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function na(e,t,n={},r){let i=r==null?void 0:r[t];return i!==void 0?Ut(e,i,n):dt(e,t,n)}function Ln(e,t,n={},r){let i=Rt(r==null?void 0:r[t],n);return i?_({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),dt(e,t,n))}function bc(e,t,n){let r=n==null?void 0:n[e];if(r){let i=Fe(r,{isNegative:t});if(!i)return null;let[o,s]=i;if(s===se.em)return iv(o);if(s===se.percent)return Je("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."),null;let a=Qt(o,s,{isNegative:t});return a!==null?_({letterSpacing:a}):null}return dt("letterSpacing",e,{isNegative:t})}function iv(e){return{kind:"dependent",complete(t){let n=t.fontSize;if(typeof n!="number"||Number.isNaN(n))return"tracking-X relative letter spacing classes require font-size to be set";t.letterSpacing=Math.round((e*n+Number.EPSILON)*100)/100}}}function vc(e,t){let n=t==null?void 0:t[e];if(n){let i=Fe(String(n));if(i)return _({opacity:i[0]})}let r=Fe(e);return r?_({opacity:r[0]/100}):null}function yc(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function xc(e){if(e.includes("/")){let[n="",r=""]=e.split("/",2),i=ia(n),o=ia(r);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=ia(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function ia(e){let t=lr(e);return typeof t=="number"?t:null}var Ir=class{constructor(t,n={},r,i,o){var s,a,u,f,l,p;this.config=n,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let h=t.trim().split(":"),m=[];h.length===1?this.string=t:(this.string=(s=h.pop())!==null&&s!==void 0?s:"",m=h),this.char=this.string[0];let b=ta((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let y of m)if(b[y]){let T=(u=b[y])===null||u===void 0?void 0:u[2];T!==void 0&&(this.order=((f=this.order)!==null&&f!==void 0?f:0)+T);let E=(l=i.windowDimensions)===null||l===void 0?void 0:l.width;if(E){let[P,w]=(p=b[y])!==null&&p!==void 0?p:[0,0];(E<=P||E>w)&&(this.isNull=!0)}else this.isNull=!0}else rc(y)?this.isNull=y!==o:nc(y)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==y?this.isNull=!0:this.incrementOrder():this.isNull=!0:y==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:y==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(y)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let t=this.cache.getIr(this.rest);if(t)return t;this.parseIsNegative();let n=this.parseUtility();return n?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:n}:n:{kind:"null"}}parseUtility(){var t,n,r,i,o;let s=this.config.theme,a=null;switch(this.char){case"m":case"p":{let u=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(u){let f=this.char==="m"?"margin":"padding";this.advance(((n=(t=u[0])===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+1);let l=Xs(u[1]),p=ea(f,l,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[f]);if(p)return p}}}if(this.consumePeeked("h-")&&(a=na("height",this.rest,this.context,s==null?void 0:s.height),a)||this.consumePeeked("w-")&&(a=na("width",this.rest,this.context,s==null?void 0:s.width),a)||this.consumePeeked("min-w-")&&(a=Ln("minWidth",this.rest,this.context,s==null?void 0:s.minWidth),a)||this.consumePeeked("min-h-")&&(a=Ln("minHeight",this.rest,this.context,s==null?void 0:s.minHeight),a)||this.consumePeeked("max-w-")&&(a=Ln("maxWidth",this.rest,this.context,s==null?void 0:s.maxWidth),a)||this.consumePeeked("max-h-")&&(a=Ln("maxHeight",this.rest,this.context,s==null?void 0:s.maxHeight),a)||this.consumePeeked("leading-")&&(a=Zs(this.rest,s==null?void 0:s.lineHeight),a)||this.consumePeeked("text-")&&(a=Js(this.rest,s==null?void 0:s.fontSize,this.context),a||(a=fr("text",this.rest,s==null?void 0:s.textColor),a)||this.consumePeeked("opacity-")&&(a=Rn("text",this.rest),a))||this.consumePeeked("font-")&&(a=ra(this.rest,s==null?void 0:s.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&Je("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=Ut("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=fr("tint",this.rest,s==null?void 0:s.colors),a)||this.consumePeeked("bg-")&&(a=fr("bg",this.rest,s==null?void 0:s.backgroundColor),a||this.consumePeeked("opacity-")&&(a=Rn("bg",this.rest),a))||this.consumePeeked("border")&&(a=pc(this.rest,s),a||this.consumePeeked("-opacity-")&&(a=Rn("border",this.rest),a))||this.consumePeeked("rounded")&&(a=hc(this.rest,s==null?void 0:s.borderRadius),a)||this.consumePeeked("bottom-")&&(a=Ar("bottom",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("top-")&&(a=Ar("top",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("left-")&&(a=Ar("left",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("right-")&&(a=Ar("right",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("inset-")&&(a=Ar("inset",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=Cn("Grow",this.rest,s==null?void 0:s.flexGrow):this.consumePeeked("shrink")?a=Cn("Shrink",this.rest,s==null?void 0:s.flexShrink):a=gc(this.rest,s==null?void 0:s.flex),a)||this.consumePeeked("grow")&&(a=Cn("Grow",this.rest,s==null?void 0:s.flexGrow),a)||this.consumePeeked("shrink")&&(a=Cn("Shrink",this.rest,s==null?void 0:s.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=Rn("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=yc(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=xc(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=dt("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=fr("shadow",this.rest,s==null?void 0:s.colors),a))return a;if(this.consumePeeked("elevation-")){let u=parseInt(this.rest,10);if(!Number.isNaN(u))return _({elevation:u})}if(this.consumePeeked("opacity-")&&(a=vc(this.rest,s==null?void 0:s.opacity),a)||this.consumePeeked("tracking-")&&(a=bc(this.rest,this.isNegative,s==null?void 0:s.letterSpacing),a))return a;if(this.consumePeeked("z-")){let u=Number((o=(i=s==null?void 0:s.zIndex)===null||i===void 0?void 0:i[this.rest])!==null&&o!==void 0?o:this.rest);if(!Number.isNaN(u))return _({zIndex:u})}return Je(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(t){var n;if(t[0]!=="m")return!1;let r=t.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!r)return!1;if(!(!((n=this.context.device)===null||n===void 0)&&n.windowDimensions))return this.isNull=!0,!0;let i=this.context.device.windowDimensions,[,o="",s="",a=""]=r,u=s==="w"?i.width:i.height,f=Fe(a,this.context);if(f===null)return this.isNull=!0,!0;let[l,p]=f;return p!=="px"&&(this.isNull=!0),(o==="min"?u>=l:u<=l)?this.incrementOrder():this.isNull=!0,!0}advance(t=1){this.position+=t,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(t,n){return this.string.slice(this.position+t,this.position+n)}consumePeeked(t){return this.peekSlice(0,t.length)===t?(this.advance(t.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var t;this.order=((t=this.order)!==null&&t!==void 0?t:0)+1}};function wc(e){let t=[],n=null;return e.forEach(r=>{if(typeof r=="string")t=[...t,...oa(r)];else if(Array.isArray(r))t=[...t,...r.flatMap(oa)];else if(typeof r=="object"&&r!==null)for(let[i,o]of Object.entries(r))typeof o=="boolean"?t=[...t,...o?oa(i):[]]:n?n[i]=o:n={[i]:o}}),[t.filter(Boolean).filter(ov),n]}function oa(e){return e.trim().split(/\s+/)}function ov(e,t,n){return n.indexOf(e)===t}function Sc(e){var t;return(t=e==null?void 0:e.reduce((n,r)=>({...n,...sv(r.handler)}),{}))!==null&&t!==void 0?t:{}}function sv(e){let t={};return e({addUtilities:n=>{t=n},...av}),t}function Ct(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var av={addComponents:Ct,addBase:Ct,addVariant:Ct,e:Ct,prefix:Ct,theme:Ct,variants:Ct,config:Ct,corePlugins:Ct,matchUtilities:Ct,postcss:null};function Tc(e,t){let n=(0,_c.default)(uv(e)),r={},i=Sc(n.plugins),o={},s=Object.entries(i).map(([b,y])=>typeof y=="string"?(o[b]=y,[b,{kind:"null"}]):[b,_(y)]).filter(([,b])=>b.kind!=="null");function a(){return[r.windowDimensions?`w${r.windowDimensions.width}`:!1,r.windowDimensions?`h${r.windowDimensions.height}`:!1,r.fontScale?`fs${r.fontScale}`:!1,r.colorScheme==="dark"?"dark":!1,r.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let u=a(),f={};function l(){let b=f[u];if(b)return b;let y=new In(s);return f[u]=y,y}function p(...b){let y=l(),T={},E=[],P=[],[w,S]=wc(b),O=w.join(" "),I=y.getStyle(O);if(I)return{...I,...S||{}};for(let F of w){let U=y.getIr(F);if(!U&&F in o){let de=p(o[F]);y.setIr(F,_(de)),T={...T,...de};continue}switch(U=new Ir(F,n,y,r,t).parse(),U.kind){case"complete":T={...T,...U.style},y.setIr(F,U);break;case"dependent":E.push(U);break;case"ordered":P.push(U);break;case"null":y.setIr(F,U);break}}if(P.length>0){P.sort((F,U)=>F.order-U.order);for(let F of P)switch(F.styleIr.kind){case"complete":T={...T,...F.styleIr.style};break;case"dependent":E.push(F.styleIr);break}}if(E.length>0){for(let F of E){let U=F.complete(T);U&&Je(U)}fc(T)}return O!==""&&y.setStyle(O,T),S&&(T={...T,...S}),T}function h(b){let y=p(b.split(/\s+/g).map(T=>T.replace(/^(bg|text|border)-/,"")).map(T=>`bg-${T}`).join(" "));return typeof y.backgroundColor=="string"?y.backgroundColor:void 0}let m=(b,...y)=>{let T="";return b.forEach((E,P)=>{var w;T+=E+((w=y[P])!==null&&w!==void 0?w:"")}),p(T)};return m.style=p,m.color=h,m.prefixMatch=(...b)=>{let y=b.sort().join(":"),T=l(),E=T.getPrefixMatch(y);if(E!==void 0)return E;let S=new Ir(`${y}:flex`,n,T,r,t).parse().kind!=="null";return T.setPrefixMatch(y,S),S},m.setWindowDimensions=b=>{r.windowDimensions=b,u=a()},m.setFontScale=b=>{r.fontScale=b,u=a()},m.setPixelDensity=b=>{r.pixelDensity=b,u=a()},m.setColorScheme=b=>{r.colorScheme=b,u=a()},m}function uv(e){return{...e,content:["_no_warnings_please"]}}var fv={handler:({addUtilities:e})=>{e({"shadow-sm":{boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},shadow:{boxShadow:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"},"shadow-md":{boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},"shadow-lg":{boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"},"shadow-xl":{boxShadow:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"},"shadow-2xl":{boxShadow:"0 25px 50px -12px rgb(0 0 0 / 0.25)"},"shadow-inner":{boxShadow:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},"shadow-none":{boxShadow:"0 0 #0000"}})}};function cv(e){return Tc({...e,plugins:[...(e==null?void 0:e.plugins)??[],fv]},"web")}var Pi;function sa({width:e,height:t,config:n}){return Pi||(Pi=cv(n)),Pi.setWindowDimensions({width:+e,height:+t}),Pi}var aa=new WeakMap;async function ua(e,t){let n=await jt();if(!n||!n.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+n);t.fonts=t.fonts||[];let r;aa.has(t.fonts)?r=aa.get(t.fonts):aa.set(t.fonts,r=new Kr(t.fonts));let i="width"in t?t.width:void 0,o="height"in t?t.height:void 0,s=dv(n,t.pointScaleFactor);i&&s.setWidth(i),o&&s.setHeight(o),s.setFlexDirection(n.FLEX_DIRECTION_ROW),s.setFlexWrap(n.WRAP_WRAP),s.setAlignContent(n.ALIGN_AUTO),s.setAlignItems(n.ALIGN_FLEX_START),s.setJustifyContent(n.JUSTIFY_FLEX_START),s.setOverflow(n.OVERFLOW_HIDDEN);let a=Object.assign(Object.create(null),t.graphemeImages),u=new Set;At.clear(),Ur.clear(),await eu(e);let f=Qr(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:i,_viewportHeight:o},parent:s,font:r,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,onNodeDetected:t.onNodeDetected,getTwStyles:(b,y)=>{let E={...sa({width:i,height:o,config:t.tailwindConfig})([b])};return typeof E.lineHeight=="number"&&(E.lineHeight=E.lineHeight/(+E.fontSize||y.fontSize||16)),E.shadowColor&&E.boxShadow&&(E.boxShadow=E.boxShadow.replace(/rgba?\([^)]+\)/,E.shadowColor)),E}}),l=(await f.next()).value;if(t.loadAdditionalAsset&&l.length){let b=pv(l),y=[],T={};await Promise.all(Object.entries(b).flatMap(([E,P])=>P.map(w=>{let S=`${E}_${w}`;return u.has(S)?null:(u.add(S),t.loadAdditionalAsset(E,w).then(O=>{typeof O=="string"?T[w]=O:O&&(Array.isArray(O)?y.push(...O):y.push(O))}))}))),r.addFonts(y),Object.assign(a,T)}await f.next(),s.calculateLayout(i,o,n.DIRECTION_LTR);let p=(await f.next([0,0])).value,h=s.getComputedWidth(),m=s.getComputedHeight();return s.freeRecursive(),yo({width:h,height:m,content:p})}function dv(e,t){if(t){let n=e.Config.create();return n.setPointScaleFactor(t),e.Node.createWithConfig(n)}else return e.Node.create()}function pv(e){let t={},n={};for(let{word:r,locale:i}of e){let o=Uu(r,i).join("|");n[o]=n[o]||"",n[o]+=r}return Object.keys(n).forEach(r=>{t[r]=t[r]||[],r==="emoji"?t[r].push(...Ec(Ve(n[r],"grapheme"))):(t[r][0]=t[r][0]||"",t[r][0]+=Ec(Ve(n[r],"grapheme",r==="unknown"?void 0:r)).join(""))}),t}function Ec(e){return Array.from(new Set(e))}0&&(module.exports={init});
|
|
1
|
+
var Wc=Object.create;var Bn=Object.defineProperty;var Dc=Object.getOwnPropertyDescriptor;var $c=Object.getOwnPropertyNames;var Bc=Object.getPrototypeOf,Uc=Object.prototype.hasOwnProperty;var rr=(e,t)=>()=>(e&&(t=e(e=0)),t);var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Wr=(e,t)=>{for(var r in t)Bn(e,r,{get:t[r],enumerable:!0})},xa=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of $c(t))!Uc.call(e,i)&&i!==r&&Bn(e,i,{get:()=>t[i],enumerable:!(n=Dc(t,i))||n.enumerable});return e};var Pt=(e,t,r)=>(r=e!=null?Wc(Bc(e)):{},xa(t||!e||!e.__esModule?Bn(r,"default",{value:e,enumerable:!0}):r,e)),Dr=e=>xa(Bn({},"__esModule",{value:!0}),e);var Wt,Fa,Wa,Ur,Bi,Dt,yr,ed,Gn,Ui,xr,wr,qi,Da,zi,Gi,wt,ji,td,$a,jn=rr(()=>{Wt=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}({}),Fa=function(e){return e[e.BorderBox=0]="BorderBox",e[e.ContentBox=1]="ContentBox",e}({}),Wa=function(e){return e[e.Width=0]="Width",e[e.Height=1]="Height",e}({}),Ur=function(e){return e[e.Inherit=0]="Inherit",e[e.LTR=1]="LTR",e[e.RTL=2]="RTL",e}({}),Bi=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}({}),yr=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}({}),ed=function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e}({}),Gn=function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e}({}),Ui=function(e){return e[e.Column=0]="Column",e[e.Row=1]="Row",e[e.All=2]="All",e}({}),xr=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}({}),wr=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}({}),qi=function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e}({}),Da=function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e}({}),zi=function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e}({}),Gi=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}({}),ji=function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e}({}),td={ALIGN_AUTO:Wt.Auto,ALIGN_FLEX_START:Wt.FlexStart,ALIGN_CENTER:Wt.Center,ALIGN_FLEX_END:Wt.FlexEnd,ALIGN_STRETCH:Wt.Stretch,ALIGN_BASELINE:Wt.Baseline,ALIGN_SPACE_BETWEEN:Wt.SpaceBetween,ALIGN_SPACE_AROUND:Wt.SpaceAround,ALIGN_SPACE_EVENLY:Wt.SpaceEvenly,BOX_SIZING_BORDER_BOX:Fa.BorderBox,BOX_SIZING_CONTENT_BOX:Fa.ContentBox,DIMENSION_WIDTH:Wa.Width,DIMENSION_HEIGHT:Wa.Height,DIRECTION_INHERIT:Ur.Inherit,DIRECTION_LTR:Ur.LTR,DIRECTION_RTL:Ur.RTL,DISPLAY_FLEX:Bi.Flex,DISPLAY_NONE:Bi.None,DISPLAY_CONTENTS:Bi.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:yr.None,ERRATA_STRETCH_FLEX_BASIS:yr.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:yr.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:yr.AbsolutePercentAgainstInnerSize,ERRATA_ALL:yr.All,ERRATA_CLASSIC:yr.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:ed.WebFlexBasis,FLEX_DIRECTION_COLUMN:Gn.Column,FLEX_DIRECTION_COLUMN_REVERSE:Gn.ColumnReverse,FLEX_DIRECTION_ROW:Gn.Row,FLEX_DIRECTION_ROW_REVERSE:Gn.RowReverse,GUTTER_COLUMN:Ui.Column,GUTTER_ROW:Ui.Row,GUTTER_ALL:Ui.All,JUSTIFY_FLEX_START:xr.FlexStart,JUSTIFY_CENTER:xr.Center,JUSTIFY_FLEX_END:xr.FlexEnd,JUSTIFY_SPACE_BETWEEN:xr.SpaceBetween,JUSTIFY_SPACE_AROUND:xr.SpaceAround,JUSTIFY_SPACE_EVENLY:xr.SpaceEvenly,LOG_LEVEL_ERROR:wr.Error,LOG_LEVEL_WARN:wr.Warn,LOG_LEVEL_INFO:wr.Info,LOG_LEVEL_DEBUG:wr.Debug,LOG_LEVEL_VERBOSE:wr.Verbose,LOG_LEVEL_FATAL:wr.Fatal,MEASURE_MODE_UNDEFINED:qi.Undefined,MEASURE_MODE_EXACTLY:qi.Exactly,MEASURE_MODE_AT_MOST:qi.AtMost,NODE_TYPE_DEFAULT:Da.Default,NODE_TYPE_TEXT:Da.Text,OVERFLOW_VISIBLE:zi.Visible,OVERFLOW_HIDDEN:zi.Hidden,OVERFLOW_SCROLL:zi.Scroll,POSITION_TYPE_STATIC:Gi.Static,POSITION_TYPE_RELATIVE:Gi.Relative,POSITION_TYPE_ABSOLUTE:Gi.Absolute,UNIT_UNDEFINED:wt.Undefined,UNIT_POINT:wt.Point,UNIT_PERCENT:wt.Percent,UNIT_AUTO:wt.Auto,WRAP_NO_WRAP:ji.NoWrap,WRAP_WRAP:ji.Wrap,WRAP_WRAP_REVERSE:ji.WrapReverse},$a=td});function Vi(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 r(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,r(o)):this.unsetMeasureFunc()});function n(i){return e.DirtiedCallback.implement({dirtied:i})}return t(e.Node.prototype,"setDirtiedFunc",function(i,o){i.call(this,n(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]:Ur.LTR;return i.call(this,o,s,a)}),{Config:e.Config,Node:e.Node,...$a}}var Ba=rr(()=>{jn();jn()});var qa={};Wr(qa,{default:()=>rd});function rd(e){e=e||{};var t;t||(t=typeof e<"u"?e:{});var r,n;t.ready=new Promise(function(c,d){r=c,n=d});var i=Object.assign({},t),o="";typeof document<"u"&&document.currentScript&&(o=document.currentScript.src),Ua&&(o=Ua),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 O=c[d++]&63;if((x&224)==192)v+=String.fromCharCode((x&31)<<6|O);else{var I=c[d++]&63;x=(x&240)==224?(x&15)<<12|O<<6|I:(x&7)<<18|O<<12|I<<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,S,T,P,w,k,_;function A(){var c=l.buffer;m=c,t.HEAP8=b=new Int8Array(c),t.HEAP16=S=new Int16Array(c),t.HEAP32=P=new Int32Array(c),t.HEAPU8=y=new Uint8Array(c),t.HEAPU16=T=new Uint16Array(c),t.HEAPU32=w=new Uint32Array(c),t.HEAPF32=k=new Float32Array(c),t.HEAPF64=_=new Float64Array(c)}var F,B=[],H=[],ae=[];function ke(){var c=t.preRun.shift();B.unshift(c)}var Te=0,be=null,ue=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."),n(c),c}function ne(c){return c.startsWith("data:application/octet-stream;base64,")}var Oe="";if(!ne(Oe)){var ve=Oe;Oe=t.locateFile?t.locateFile(ve,o):o+ve}function Re(){var c=Oe;try{if(c==Oe&&u)return new Uint8Array(u);if(ne(c))try{var d=Nc(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(O){Z(O)}}function Pe(){return u||typeof fetch!="function"?Promise.resolve().then(function(){return Re()}):fetch(Oe,{credentials:"same-origin"}).then(function(c){if(!c.ok)throw"failed to load wasm binary file at '"+Oe+"'";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 Ae(c,d){return c=Me(c),function(){return d.apply(this,arguments)}}var fe=[{},{value:void 0},{value:null},{value:!0},{value:!1}],Y=[];function J(c){var d=Error,g=Ae(c,function(v){this.name=c,this.message=v,v=Error(v).stack,v!==void 0&&(this.stack=this.toString()+`
|
|
2
|
+
`+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 z(c){throw new pe(c)}var Le=c=>(c||z("Cannot use deleted val. handle = "+c),fe[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=Y.length?Y.pop():fe.length;return fe[d]={ga:1,value:c},d}},qe=void 0,Be=void 0;function ie(c){for(var d="";y[c];)d+=Be[y[c++]];return d}var Tt=[];function qt(){for(;Tt.length;){var c=Tt.pop();c.M.$=!1,c.delete()}}var Et=void 0,Ne={};function dr(c,d){for(d===void 0&&z("ptr should not be undefined");c.R;)d=c.ba(d),c=c.R;return d}var kt={};function Cr(c){c=ga(c);var d=ie(c);return Mt(c),d}function Kt(c,d){var g=kt[c];return g===void 0&&z(d+" has unknown type "+Cr(c)),g}function pr(){}var hr=!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=dr(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):(hr=new FinalizationRegistry(d=>{Jt(d.M)}),mt=d=>{var g=d.M;return g.T&&hr.register(d,{M:g},d),d},pr=d=>{hr.unregister(d)},mt(c))}var er={};function zt(c){for(;c.length;){var d=c.pop();c.pop()(d)}}function ze(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),O=[],I=0;d.forEach((R,N)=>{kt.hasOwnProperty(R)?x[N]=kt[R]:(O.push(R),it.hasOwnProperty(R)||(it[R]=[]),it[R].push(()=>{x[N]=kt[R],++I,I===O.length&&v(x)}))}),O.length===0&&v(x)}function V(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||z('type "'+v+'" must have a positive integer typeid pointer'),kt.hasOwnProperty(c)){if(g.ua)return;z("Cannot register type '"+v+"' twice")}kt[c]=d,delete Ze[c],it.hasOwnProperty(c)&&(d=it[c],delete it[c],d.forEach(x=>x()))}function ce(c){z(c.M.P.N.name+" instance already deleted")}function Q(){}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)||z("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 le(c,d){t.hasOwnProperty(c)?(z("Cannot register public name '"+c+"' twice"),ye(t,c,c),t.hasOwnProperty(void 0)&&z("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,O,I,R){this.name=c,this.constructor=d,this.X=g,this.W=v,this.R=x,this.pa=O,this.ba=I,this.na=R,this.ja=[]}function ee(c,d,g){for(;d!==g;)d.ba||z("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&&z("null is not a valid "+this.name),0):(d.M||z('Cannot pass "'+et(d)+'" as a '+this.name),d.M.O||z("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&&z("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||z('Cannot pass "'+et(d)+'" as a '+this.name),d.M.O||z("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&d.M.P.ca&&z("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&&z("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:d.M.U===this?g=d.M.T:z("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:z("Unsupporting sharing policy")}return g}function K(c,d){return d===null?(this.ea&&z("null is not a valid "+this.name),0):(d.M||z('Cannot pass "'+et(d)+'" as a '+this.name),d.M.O||z("Cannot pass deleted object as a pointer of type "+this.name),d.M.P.ca&&z("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 Fe(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:K,this.V=null)}function Ge(c,d){t.hasOwnProperty(c)||Xe("Replacing nonexistant public symbol"),t[c]=d,t[c].Z=void 0}function Lr(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 Ie(c,d){c=ie(c);var g=c.includes("j")?Lr(c,d):F.get(d);return typeof g!="function"&&z("unknown function pointer with signature "+c+": "+d),g}var tr=void 0;function Ue(c,d){function g(O){x[O]||kt[O]||(Ze[O]?Ze[O].forEach(g):(v.push(O),x[O]=!0))}var v=[],x={};throw d.forEach(g),new tr(c+": "+v.map(Cr).join([", "]))}function Lt(c,d,g,v,x){var O=d.length;2>O&&z("argTypes array size mismatch! Must at least get return value and 'this' types!");var I=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=O-2,D=Array(L),G=[],re=[];return function(){if(arguments.length!==L&&z("function "+c+" called with "+arguments.length+" arguments, expected "+L+" args!"),re.length=0,G.length=I?2:1,G[0]=x,I){var Ce=d[1].toWireType(re,this);G[1]=Ce}for(var de=0;de<L;++de)D[de]=d[de+2].toWireType(re,arguments[de]),G.push(D[de]);if(de=v.apply(null,G),R)zt(re);else for(var rt=I?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(de):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 Ee(c){4<c&&--fe[c].ga===0&&(fe[c]=void 0,Y.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(k[g>>2])};case 3:return function(g){return this.fromWireType(_[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 S[v>>1]}:function(v){return T[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=S[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)S[d>>1]=c.charCodeAt(x),d+=2;return S[d>>1]=0,d-v}function st(c){return 2*c.length}function Mr(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 mr(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 O=c.charCodeAt(x);if(55296<=O&&57343>=O){var I=c.charCodeAt(++x);O=65536+((O&1023)<<10)|I&1023}if(P[d>>2]=O,d+=4,d+4>g)break}return P[d>>2]=0,d-v}function Nn(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 Fn={};function Nr(c){var d=Fn[c];return d===void 0?ie(c):d}var Wn=[];function Cc(c){var d=Wn.length;return Wn.push(c),d}function Lc(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 ha=[],Mc=[null,[],[]];pe=t.BindingError=J("BindingError"),t.count_emval_handles=function(){for(var c=0,d=5;d<fe.length;++d)fe[d]!==void 0&&++c;return c},t.get_first_emval=function(){for(var c=5;c<fe.length;++c)if(fe[c]!==void 0)return fe[c];return null},qe=t.PureVirtualError=J("PureVirtualError");for(var ma=Array(256),Dn=0;256>Dn;++Dn)ma[Dn]=String.fromCharCode(Dn);Be=ma,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=qt,t.setDelayFunction=function(c){Et=c,Tt.length&&Et&&Et(qt)},Zt=t.InternalError=J("InternalError"),Q.prototype.isAliasOf=function(c){if(!(this instanceof Q&&c instanceof Q))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},Q.prototype.clone=function(){if(this.M.O||ce(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},Q.prototype.delete=function(){this.M.O||ce(this),this.M.$&&!this.M.aa&&z("Object already scheduled for deletion"),pr(this),Jt(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},Q.prototype.isDeleted=function(){return!this.M.O},Q.prototype.deleteLater=function(){return this.M.O||ce(this),this.M.$&&!this.M.aa&&z("Object already scheduled for deletion"),Tt.push(this),Tt.length===1&&Et&&Et(qt),this.M.$=!0,this},Fe.prototype.qa=function(c){return this.ka&&(c=this.ka(c)),c},Fe.prototype.ha=function(c){this.W&&this.W(c)},Fe.prototype.argPackAdvance=8,Fe.prototype.readValueFromPointer=ze,Fe.prototype.deleteObject=function(c){c!==null&&c.delete()},Fe.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 Nc=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++)),O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(g++)),I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(g++));v=v<<2|x>>4,x=(x&15)<<4|O>>2;var R=(O&3)<<6|I;d+=String.fromCharCode(v),O!==64&&(d+=String.fromCharCode(x)),I!==64&&(d+=String.fromCharCode(R))}while(g<c.length);return d},Fc={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,O=x.X,I=x.R.X,R=x.R.constructor;c=Ae(c,function(){x.R.ja.forEach(function(L){if(this[L]===I[L])throw new qe("Pure virtual function "+L+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:O}),this.__construct.apply(this,v.call(arguments))}),O.__construct=function(){this===O&&z("Pass correct 'this' to __construct");var L=R.implement.apply(void 0,[this].concat(v.call(arguments)));pr(L);var D=L.M;L.notifyOnDestruction(),D.aa=!0,Object.defineProperties(this,{M:{value:D}}),mt(this),L=D.O,L=dr(x,L),Ne.hasOwnProperty(L)?z("Tried to register registered instance: "+L):Ne[L]=this},O.__destruct=function(){this===O&&z("Pass correct 'this' to __destruct"),pr(this);var L=this.M.O;L=dr(x,L),Ne.hasOwnProperty(L)?delete Ne[L]:z("Tried to unregister unregistered instance: "+L)},c.prototype=Object.create(O);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,O=x.map(I=>I.ta).concat(x.map(I=>I.za));gt([c],O,I=>{var R={};return x.forEach((N,L)=>{var D=I[L],G=N.ra,re=N.sa,Ce=I[L+x.length],de=N.ya,rt=N.Aa;R[N.oa]={read:yt=>D.fromWireType(G(re,yt)),write:(yt,Fr)=>{var Nt=[];de(rt,yt,Ce.toWireType(Nt,Fr)),zt(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 G=g();for(D in R)R[D].write(G,L[D]);return N!==null&&N.push(v,G),G},argPackAdvance:8,readValueFromPointer:ze,V:v}]})},v:function(){},B:function(c,d,g,v,x){var O=V(g);d=ie(d),j(c,{name:d,fromWireType:function(I){return!!I},toWireType:function(I,R){return R?v:x},argPackAdvance:8,readValueFromPointer:function(I){if(g===1)var R=b;else if(g===2)R=S;else if(g===4)R=P;else throw new TypeError("Unknown boolean type size: "+d);return this.fromWireType(R[I>>O])},V:null})},f:function(c,d,g,v,x,O,I,R,N,L,D,G,re){D=ie(D),O=Ie(x,O),R&&(R=Ie(I,R)),L&&(L=Ie(N,L)),re=Ie(G,re);var Ce=Me(D);le(Ce,function(){Ue("Cannot construct "+D+" due to unbound types",[v])}),gt([c,d,g],v?[v]:[],function(de){if(de=de[0],v)var rt=de.N,yt=rt.X;else yt=Q.prototype;de=Ae(Ce,function(){if(Object.getPrototypeOf(this)!==Fr)throw new pe("Use 'new' to construct "+D);if(Nt.Y===void 0)throw new pe(D+" has no accessible constructor");var ya=Nt.Y[arguments.length];if(ya===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 ya.apply(this,arguments)});var Fr=Object.create(yt,{constructor:{value:de}});de.prototype=Fr;var Nt=new xe(D,de,Fr,re,rt,O,R,L);rt=new Fe(D,Nt,!0,!1),yt=new Fe(D+"*",Nt,!1,!1);var va=new Fe(D+" const*",Nt,!1,!0);return pt[c]={pointerType:yt,la:va},Ge(Ce,de),[rt,yt,va]})},d:function(c,d,g,v,x,O,I){var R=we(g,v);d=ie(d),O=Ie(x,O),gt([],[c],function(N){function L(){Ue("Cannot call "+D+" due to unbound types",R)}N=N[0];var D=N.name+"."+d;d.startsWith("@@")&&(d=Symbol[d.substring(2)]);var G=N.N.constructor;return G[d]===void 0?(L.Z=g-1,G[d]=L):(ye(G,d,D),G[d].S[g-1]=L),gt([],R,function(re){return re=Lt(D,[re[0],null].concat(re.slice(1)),null,O,I),G[d].S===void 0?(re.Z=g-1,G[d]=re):G[d].S[g-1]=re,[]}),[]})},p:function(c,d,g,v,x,O){0<d||Z();var I=we(d,g);x=Ie(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]=()=>{Ue("Cannot construct "+R.name+" due to unbound types",I)},gt([],I,function(L){return L.splice(1,0,null),R.N.Y[d-1]=Lt(N,L,null,x,O),[]}),[]})},a:function(c,d,g,v,x,O,I,R){var N=we(g,v);d=ie(d),O=Ie(x,O),gt([],[c],function(L){function D(){Ue("Cannot call "+G+" due to unbound types",N)}L=L[0];var G=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,G),re[d].S[g-2]=D),gt([],N,function(de){return de=Lt(G,de,L,O,I),re[d].S===void 0?(de.Z=g-2,re[d]=de):re[d].S[g-2]=de,[]}),[]})},A:function(c,d){d=ie(d),j(c,{name:d,fromWireType:function(g){var v=Le(g);return Ee(g),v},toWireType:function(g,v){return De(v)},argPackAdvance:8,readValueFromPointer:ze,V:null})},n:function(c,d,g){g=V(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=V(g);var O=R=>R;if(v===0){var I=32-8*g;O=R=>R<<I>>>I}g=d.includes("unsigned")?function(R,N){return N>>>0}:function(R,N){return N},j(c,{name:d,fromWireType:O,toWireType:g,argPackAdvance:8,readValueFromPointer:bt(d,x,v!==0),V:null})},b:function(c,d,g){function v(O){O>>=2;var I=w;return new x(m,I[O+1],I[O])}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],O=v+4;if(g)for(var I=O,R=0;R<=x;++R){var N=O+R;if(R==x||y[N]==0){if(I=I?h(y,I,N-I):"",L===void 0)var L=I;else L+=String.fromCharCode(0),L+=I;I=N+1}}else{for(L=Array(x),R=0;R<x;++R)L[R]=String.fromCharCode(y[O+R]);L=L.join("")}return Mt(v),L},toWireType:function(v,x){x instanceof ArrayBuffer&&(x=new Uint8Array(x));var O,I=typeof x=="string";if(I||x instanceof Uint8Array||x instanceof Uint8ClampedArray||x instanceof Int8Array||z("Cannot pass non-string to std::string"),g&&I){var R=0;for(O=0;O<x.length;++O){var N=x.charCodeAt(O);127>=N?R++:2047>=N?R+=2:55296<=N&&57343>=N?(R+=4,++O):R+=3}O=R}else O=x.length;if(R=Li(4+O+1),N=R+4,w[R>>2]=O,g&&I){if(I=N,N=O+1,O=y,0<N){N=I+N-1;for(var L=0;L<x.length;++L){var D=x.charCodeAt(L);if(55296<=D&&57343>=D){var G=x.charCodeAt(++L);D=65536+((D&1023)<<10)|G&1023}if(127>=D){if(I>=N)break;O[I++]=D}else{if(2047>=D){if(I+1>=N)break;O[I++]=192|D>>6}else{if(65535>=D){if(I+2>=N)break;O[I++]=224|D>>12}else{if(I+3>=N)break;O[I++]=240|D>>18,O[I++]=128|D>>12&63}O[I++]=128|D>>6&63}O[I++]=128|D&63}}O[I]=0}}else if(I)for(I=0;I<O;++I)L=x.charCodeAt(I),255<L&&(Mt(N),z("String has UTF-16 code units that do not fit in 8 bits")),y[N+I]=L;else for(I=0;I<O;++I)y[N+I]=x[I];return v!==null&&v.push(Mt,R),R},argPackAdvance:8,readValueFromPointer:ze,V:function(v){Mt(v)}})},i:function(c,d,g){if(g=ie(g),d===2)var v=vt,x=je,O=st,I=()=>T,R=1;else d===4&&(v=Mr,x=mr,O=Nn,I=()=>w,R=2);j(c,{name:g,fromWireType:function(N){for(var L=w[N>>2],D=I(),G,re=N+4,Ce=0;Ce<=L;++Ce){var de=N+4+Ce*d;(Ce==L||D[de>>R]==0)&&(re=v(re,de-re),G===void 0?G=re:(G+=String.fromCharCode(0),G+=re),re=de+d)}return Mt(N),G},toWireType:function(N,L){typeof L!="string"&&z("Cannot pass non-string to C++ string type "+g);var D=O(L),G=Li(4+D+d);return w[G>>2]=D>>R,x(L,G+4,D+d),N!==null&&N.push(Mt,G),G},argPackAdvance:8,readValueFromPointer:ze,V:function(N){Mt(N)}})},k:function(c,d,g,v,x,O){er[c]={name:ie(d),fa:Ie(g,v),W:Ie(x,O),ia:[]}},h:function(c,d,g,v,x,O,I,R,N,L){er[c].ia.push({oa:ie(d),ta:g,ra:Ie(v,x),sa:O,za:I,ya:Ie(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=Wn[c],d=Le(d),g=Nr(g);var O=[];return w[v>>2]=De(O),c(d,g,O,x)},t:function(c,d,g,v){c=Wn[c],d=Le(d),g=Nr(g),c(d,g,null,v)},g:Ee,m:function(c,d){var g=Lc(c,d),v=g[0];d=v.name+"_$"+g.slice(1).map(function(I){return I.name}).join("_")+"$";var x=ha[d];if(x!==void 0)return x;var O=Array(c-1);return x=Cc((I,R,N,L)=>{for(var D=0,G=0;G<c-1;++G)O[G]=g[G+1].readValueFromPointer(L+D),D+=g[G+1].argPackAdvance;for(I=I[R].apply(I,O),G=0;G<c-1;++G)g[G+1].ma&&g[G+1].ma(O[G]);if(!v.va)return v.toWireType(N,I)}),ha[d]=x},D:function(c){4<c&&(fe[c].ga+=1)},r:function(c){var d=Le(c);zt(d),Ee(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),A();var O=1;break e}catch{}O=void 0}if(O)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(c,d,g,v){for(var x=0,O=0;O<g;O++){var I=w[d>>2],R=w[d+4>>2];d+=8;for(var N=0;N<R;N++){var L=y[I+N],D=Mc[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,A(),F=t.asm.J,H.unshift(t.asm.F),Te--,t.monitorRunDependencies&&t.monitorRunDependencies(Te),Te==0&&(be!==null&&(clearInterval(be),be=null),ue&&(x=ue,ue=null,x()))}function d(x){c(x.instance)}function g(x){return Pe().then(function(O){return O instanceof WebAssembly.Instance?O:WebAssembly.instantiate(O,v)}).then(function(O){return O}).then(x,function(O){a("failed to asynchronously prepare wasm: "+O),Z(O)})}var v={a:Fc};if(Te++,t.monitorRunDependencies&&t.monitorRunDependencies(Te),t.instantiateWasm)try{return t.instantiateWasm(v,c)}catch(x){a("Module.instantiateWasm callback failed with error: "+x),n(x)}return function(){return u||typeof WebAssembly.instantiateStreaming!="function"||ne(Oe)||typeof fetch!="function"?g(d):fetch(Oe,{credentials:"same-origin"}).then(function(x){return WebAssembly.instantiateStreaming(x,v).then(d,function(O){return a("wasm streaming compile failed: "+O),a("falling back to ArrayBuffer instantiation"),g(d)})})}().catch(n),{}})(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.F).apply(null,arguments)};var ga=t.___getTypeName=function(){return(ga=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 Li=t._malloc=function(){return(Li=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 $n;ue=function c(){$n||ba(),$n||(ue=c)};function ba(){function c(){if(!$n&&($n=!0,t.calledRun=!0,!p)){if(Ye(H),r(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;){var d=t.postRun.shift();ae.unshift(d)}Ye(ae)}}if(!(0<Te)){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)ke();Ye(B),0<Te||(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 ba(),e.ready}var Ua,za=rr(()=>{Ua=""});async function Ga(e){let{default:t}=await Promise.resolve().then(()=>(za(),qa));return Vi(await t(e))}var ja=rr(()=>{Ba();jn()});var Yi={};Wr(Yi,{getYoga:()=>ad,init:()=>sd});async function od(e,t){let r;if(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL?r=await fetch(e):r=await e,typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,t)}catch(o){r.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 r.arrayBuffer();return await WebAssembly.instantiate(i,t)}let n=await WebAssembly.instantiate("buffer"in r?r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength):r,t);return n instanceof WebAssembly.Instance?{instance:n,module:r}:n}function sd(e){nd({instantiateWasm(t,r){return od(e,t).then(({instance:n})=>{r(n)}).catch(Hi),{}}}).then(Va).catch(Hi)}function ad(){return id}var nd,Va,Hi,id,Xi=rr(()=>{ja();nd=Ga,id=new Promise((e,t)=>{Va=e,Hi=t})});var ko=q(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Object.defineProperty(Eo,"default",{enumerable:!0,get:()=>bp});function bp(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 Qu=q(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Object.defineProperty(Oo,"default",{enumerable:!0,get:()=>vp});var vp=["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 Ku=q(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Object.defineProperty(Po,"default",{enumerable:!0,get:()=>yp});function yp(e,t){return e===void 0?t:Array.isArray(e)?e:[...new Set(t.filter(n=>e!==!1&&e[n]!==!1).concat(Object.keys(e).filter(n=>e[n]!==!1)))]}});var Ao=q((u1,Ju)=>{Ju.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:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({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%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},variantOrder:["first","last","odd","even","visited","checked","empty","read-only","group-hover","group-focus","focus-within","hover","focus","focus-visible","active","disabled"],plugins:[]}});var pi={};Wr(pi,{default:()=>xp});var xp,hi=rr(()=>{xp={info(e,t){console.info(...Array.isArray(e)?[e]:[t,e])},warn(e,t){console.warn(...Array.isArray(e)?[e]:[t,e])},risk(e,t){console.error(...Array.isArray(e)?[e]:[t,e])}}});var Zu=q(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Object.defineProperty(Io,"default",{enumerable:!0,get:()=>_p});var wp=Sp((hi(),Dr(pi)));function Sp(e){return e&&e.__esModule?e:{default:e}}function Zr({version:e,from:t,to:r}){wp.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}var _p={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return Zr({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return Zr({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return Zr({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return Zr({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return Zr({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var el=q(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Object.defineProperty(Ro,"defaults",{enumerable:!0,get:()=>Tp});function Tp(e,...t){for(let i of t){for(let o in i){var r;!(e==null||(r=e.hasOwnProperty)===null||r===void 0)&&r.call(e,o)||(e[o]=i[o])}for(let o of Object.getOwnPropertySymbols(i)){var n;!(e==null||(n=e.hasOwnProperty)===null||n===void 0)&&n.call(e,o)||(e[o]=i[o])}}return e}});var tl=q(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Object.defineProperty(Co,"toPath",{enumerable:!0,get:()=>Ep});function Ep(e){if(Array.isArray(e))return e;let t=e.split("[").length-1,r=e.split("]").length-1;if(t!==r)throw new Error(`Path is invalid. Has unbalanced brackets: ${e}`);return e.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}});var nl=q(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Object.defineProperty(Lo,"normalizeConfig",{enumerable:!0,get:()=>Op});var en=kp((hi(),Dr(pi)));function rl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(rl=function(n){return n?r:t})(e)}function kp(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=rl(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function Op(e){if((()=>{if(e.purge||!e.content||!Array.isArray(e.content)&&!(typeof e.content=="object"&&e.content!==null))return!1;if(Array.isArray(e.content))return e.content.every(n=>typeof n=="string"?!0:!(typeof(n==null?void 0:n.raw)!="string"||n!=null&&n.extension&&typeof(n==null?void 0:n.extension)!="string"));if(typeof e.content=="object"&&e.content!==null){if(Object.keys(e.content).some(n=>!["files","extract","transform"].includes(n)))return!1;if(Array.isArray(e.content.files)){if(!e.content.files.every(n=>typeof n=="string"?!0:!(typeof(n==null?void 0:n.raw)!="string"||n!=null&&n.extension&&typeof(n==null?void 0:n.extension)!="string")))return!1;if(typeof e.content.extract=="object"){for(let n of Object.values(e.content.extract))if(typeof n!="function")return!1}else if(!(e.content.extract===void 0||typeof e.content.extract=="function"))return!1;if(typeof e.content.transform=="object"){for(let n of Object.values(e.content.transform))if(typeof n!="function")return!1}else if(!(e.content.transform===void 0||typeof e.content.transform=="function"))return!1}return!0}return!1})()||en.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),e.safelist=(()=>{var n;let{content:i,purge:o,safelist:s}=e;return Array.isArray(s)?s:Array.isArray(i==null?void 0:i.safelist)?i.safelist:Array.isArray(o==null?void 0:o.safelist)?o.safelist:Array.isArray(o==null||(n=o.options)===null||n===void 0?void 0:n.safelist)?o.options.safelist:[]})(),typeof e.prefix=="function")en.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),e.prefix="";else{var r;e.prefix=(r=e.prefix)!==null&&r!==void 0?r:""}e.content={files:(()=>{let{content:n,purge:i}=e;return Array.isArray(i)?i:Array.isArray(i==null?void 0:i.content)?i.content:Array.isArray(n)?n:Array.isArray(n==null?void 0:n.content)?n.content:Array.isArray(n==null?void 0:n.files)?n.files:[]})(),extract:(()=>{let n=(()=>{var s,a,u,f,l,p,h,m,b,y;return!((s=e.purge)===null||s===void 0)&&s.extract?e.purge.extract:!((a=e.content)===null||a===void 0)&&a.extract?e.content.extract:!((u=e.purge)===null||u===void 0||(f=u.extract)===null||f===void 0)&&f.DEFAULT?e.purge.extract.DEFAULT:!((l=e.content)===null||l===void 0||(p=l.extract)===null||p===void 0)&&p.DEFAULT?e.content.extract.DEFAULT:!((h=e.purge)===null||h===void 0||(m=h.options)===null||m===void 0)&&m.extractors?e.purge.options.extractors:!((b=e.content)===null||b===void 0||(y=b.options)===null||y===void 0)&&y.extractors?e.content.options.extractors:{}})(),i={},o=(()=>{var s,a,u,f;if(!((s=e.purge)===null||s===void 0||(a=s.options)===null||a===void 0)&&a.defaultExtractor)return e.purge.options.defaultExtractor;if(!((u=e.content)===null||u===void 0||(f=u.options)===null||f===void 0)&&f.defaultExtractor)return e.content.options.defaultExtractor})();if(o!==void 0&&(i.DEFAULT=o),typeof n=="function")i.DEFAULT=n;else if(Array.isArray(n))for(let{extensions:s,extractor:a}of n??[])for(let u of s)i[u]=a;else typeof n=="object"&&n!==null&&Object.assign(i,n);return i})(),transform:(()=>{let n=(()=>{var o,s,a,u,f,l;return!((o=e.purge)===null||o===void 0)&&o.transform?e.purge.transform:!((s=e.content)===null||s===void 0)&&s.transform?e.content.transform:!((a=e.purge)===null||a===void 0||(u=a.transform)===null||u===void 0)&&u.DEFAULT?e.purge.transform.DEFAULT:!((f=e.content)===null||f===void 0||(l=f.transform)===null||l===void 0)&&l.DEFAULT?e.content.transform.DEFAULT:{}})(),i={};return typeof n=="function"&&(i.DEFAULT=n),typeof n=="object"&&n!==null&&Object.assign(i,n),i})()};for(let n of e.content.files)if(typeof n=="string"&&/{([^,]*?)}/g.test(n)){en.default.warn("invalid-glob-braces",[`The glob pattern ${(0,en.dim)(n)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,en.dim)(n.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var il=q(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Object.defineProperty(Mo,"default",{enumerable:!0,get:()=>Pp});function Pp(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var ol=q(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Object.defineProperty(Fo,"cloneDeep",{enumerable:!0,get:()=>No});function No(e){return Array.isArray(e)?e.map(t=>No(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,No(r)])):e}});var Wo=q((mi,sl)=>{"use strict";mi.__esModule=!0;mi.default=Rp;function Ap(e){for(var t=e.toLowerCase(),r="",n=!1,i=0;i<6&&t[i]!==void 0;i++){var o=t.charCodeAt(i),s=o>=97&&o<=102||o>=48&&o<=57;if(n=o===32,!s)break;r+=t[i]}if(r.length!==0){var a=parseInt(r,16),u=a>=55296&&a<=57343;return u||a===0||a>1114111?["\uFFFD",r.length+(n?1:0)]:[String.fromCodePoint(a),r.length+(n?1:0)]}}var Ip=/\\/;function Rp(e){var t=Ip.test(e);if(!t)return e;for(var r="",n=0;n<e.length;n++){if(e[n]==="\\"){var i=Ap(e.slice(n+1,n+7));if(i!==void 0){r+=i[0],n+=i[1];continue}if(e[n+1]==="\\"){r+="\\",n++;continue}e.length===n+1&&(r+=e[n]);continue}r+=e[n]}return r}sl.exports=mi.default});var ul=q((gi,al)=>{"use strict";gi.__esModule=!0;gi.default=Cp;function Cp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(;r.length>0;){var i=r.shift();if(!e[i])return;e=e[i]}return e}al.exports=gi.default});var fl=q((bi,ll)=>{"use strict";bi.__esModule=!0;bi.default=Lp;function Lp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(;r.length>0;){var i=r.shift();e[i]||(e[i]={}),e=e[i]}}ll.exports=bi.default});var dl=q((vi,cl)=>{"use strict";vi.__esModule=!0;vi.default=Mp;function Mp(e){for(var t="",r=e.indexOf("/*"),n=0;r>=0;){t=t+e.slice(n,r);var i=e.indexOf("*/",r+2);if(i<0)return t;n=i+2,r=e.indexOf("/*",n)}return t=t+e.slice(n),t}cl.exports=vi.default});var tn=q(It=>{"use strict";It.__esModule=!0;It.stripComments=It.ensureObject=It.getProp=It.unesc=void 0;var Np=yi(Wo());It.unesc=Np.default;var Fp=yi(ul());It.getProp=Fp.default;var Wp=yi(fl());It.ensureObject=Wp.default;var Dp=yi(dl());It.stripComments=Dp.default;function yi(e){return e&&e.__esModule?e:{default:e}}});var $t=q((rn,ml)=>{"use strict";rn.__esModule=!0;rn.default=void 0;var pl=tn();function hl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $p(e,t,r){return t&&hl(e.prototype,t),r&&hl(e,r),e}var Bp=function e(t,r){if(typeof t!="object"||t===null)return t;var n=new t.constructor;for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],s=typeof o;i==="parent"&&s==="object"?r&&(n[i]=r):o instanceof Array?n[i]=o.map(function(a){return e(a,n)}):n[i]=e(o,n)}return n},Up=function(){function e(r){r===void 0&&(r={}),Object.assign(this,r),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var t=e.prototype;return t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){if(this.parent){for(var n in arguments)this.parent.insertBefore(this,arguments[n]);this.remove()}return this},t.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.clone=function(n){n===void 0&&(n={});var i=Bp(this);for(var o in n)i[o]=n[o];return i},t.appendToPropertyAndEscape=function(n,i,o){this.raws||(this.raws={});var s=this[n],a=this.raws[n];this[n]=s+i,a||o!==i?this.raws[n]=(a||s)+o:delete this.raws[n]},t.setPropertyAndEscape=function(n,i,o){this.raws||(this.raws={}),this[n]=i,this.raws[n]=o},t.setPropertyWithoutEscape=function(n,i){this[n]=i,this.raws&&delete this.raws[n]},t.isAtPosition=function(n,i){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>n||this.source.end.line<n||this.source.start.line===n&&this.source.start.column>i||this.source.end.line===n&&this.source.end.column<i)},t.stringifyProperty=function(n){return this.raws&&this.raws[n]||this[n]},t.valueToString=function(){return String(this.stringifyProperty("value"))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},$p(e,[{key:"rawSpaceBefore",get:function(){var n=this.raws&&this.raws.spaces&&this.raws.spaces.before;return n===void 0&&(n=this.spaces&&this.spaces.before),n||""},set:function(n){(0,pl.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=n}},{key:"rawSpaceAfter",get:function(){var n=this.raws&&this.raws.spaces&&this.raws.spaces.after;return n===void 0&&(n=this.spaces.after),n||""},set:function(n){(0,pl.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=n}}]),e}();rn.default=Up;ml.exports=rn.default});var $e=q(me=>{"use strict";me.__esModule=!0;me.UNIVERSAL=me.ATTRIBUTE=me.CLASS=me.COMBINATOR=me.COMMENT=me.ID=me.NESTING=me.PSEUDO=me.ROOT=me.SELECTOR=me.STRING=me.TAG=void 0;var qp="tag";me.TAG=qp;var zp="string";me.STRING=zp;var Gp="selector";me.SELECTOR=Gp;var jp="root";me.ROOT=jp;var Vp="pseudo";me.PSEUDO=Vp;var Hp="nesting";me.NESTING=Hp;var Yp="id";me.ID=Yp;var Xp="comment";me.COMMENT=Xp;var Qp="combinator";me.COMBINATOR=Qp;var Kp="class";me.CLASS=Kp;var Jp="attribute";me.ATTRIBUTE=Jp;var Zp="universal";me.UNIVERSAL=Zp});var xi=q((nn,yl)=>{"use strict";nn.__esModule=!0;nn.default=void 0;var eh=rh($t()),Bt=th($e());function vl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return vl=function(){return e},e}function th(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=vl();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function rh(e){return e&&e.__esModule?e:{default:e}}function nh(e,t){var r;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(r=ih(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return r=e[Symbol.iterator](),r.next.bind(r)}function ih(e,t){if(e){if(typeof e=="string")return gl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gl(e,t)}}function gl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function oh(e,t,r){return t&&bl(e.prototype,t),r&&bl(e,r),e}function sh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Do(e,t)}function Do(e,t){return Do=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Do(e,t)}var ah=function(e){sh(t,e);function t(n){var i;return i=e.call(this,n)||this,i.nodes||(i.nodes=[]),i}var r=t.prototype;return r.append=function(i){return i.parent=this,this.nodes.push(i),this},r.prepend=function(i){return i.parent=this,this.nodes.unshift(i),this},r.at=function(i){return this.nodes[i]},r.index=function(i){return typeof i=="number"?i:this.nodes.indexOf(i)},r.removeChild=function(i){i=this.index(i),this.at(i).parent=void 0,this.nodes.splice(i,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=i&&(this.indexes[s]=o-1);return this},r.removeAll=function(){for(var i=nh(this.nodes),o;!(o=i()).done;){var s=o.value;s.parent=void 0}return this.nodes=[],this},r.empty=function(){return this.removeAll()},r.insertAfter=function(i,o){o.parent=this;var s=this.index(i);this.nodes.splice(s+1,0,o),o.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],s<=a&&(this.indexes[u]=a+1);return this},r.insertBefore=function(i,o){o.parent=this;var s=this.index(i);this.nodes.splice(s,0,o),o.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],a<=s&&(this.indexes[u]=a+1);return this},r._findChildAtPosition=function(i,o){var s=void 0;return this.each(function(a){if(a.atPosition){var u=a.atPosition(i,o);if(u)return s=u,!1}else if(a.isAtPosition(i,o))return s=a,!1}),s},r.atPosition=function(i,o){if(this.isAtPosition(i,o))return this._findChildAtPosition(i,o)||this},r._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},r.each=function(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var o=this.lastEach;if(this.indexes[o]=0,!!this.length){for(var s,a;this.indexes[o]<this.length&&(s=this.indexes[o],a=i(this.at(s),s),a!==!1);)this.indexes[o]+=1;if(delete this.indexes[o],a===!1)return!1}},r.walk=function(i){return this.each(function(o,s){var a=i(o,s);if(a!==!1&&o.length&&(a=o.walk(i)),a===!1)return!1})},r.walkAttributes=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.ATTRIBUTE)return i.call(o,s)})},r.walkClasses=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.CLASS)return i.call(o,s)})},r.walkCombinators=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.COMBINATOR)return i.call(o,s)})},r.walkComments=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.COMMENT)return i.call(o,s)})},r.walkIds=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.ID)return i.call(o,s)})},r.walkNesting=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.NESTING)return i.call(o,s)})},r.walkPseudos=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.PSEUDO)return i.call(o,s)})},r.walkTags=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.TAG)return i.call(o,s)})},r.walkUniversals=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.UNIVERSAL)return i.call(o,s)})},r.split=function(i){var o=this,s=[];return this.reduce(function(a,u,f){var l=i.call(o,u);return s.push(u),l?(a.push(s),s=[]):f===o.length-1&&a.push(s),a},[])},r.map=function(i){return this.nodes.map(i)},r.reduce=function(i,o){return this.nodes.reduce(i,o)},r.every=function(i){return this.nodes.every(i)},r.some=function(i){return this.nodes.some(i)},r.filter=function(i){return this.nodes.filter(i)},r.sort=function(i){return this.nodes.sort(i)},r.toString=function(){return this.map(String).join("")},oh(t,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),t}(eh.default);nn.default=ah;yl.exports=nn.default});var Bo=q((on,wl)=>{"use strict";on.__esModule=!0;on.default=void 0;var uh=fh(xi()),lh=$e();function fh(e){return e&&e.__esModule?e:{default:e}}function xl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ch(e,t,r){return t&&xl(e.prototype,t),r&&xl(e,r),e}function dh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$o(e,t)}function $o(e,t){return $o=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},$o(e,t)}var ph=function(e){dh(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=lh.ROOT,i}var r=t.prototype;return r.toString=function(){var i=this.reduce(function(o,s){return o.push(String(s)),o},[]).join(",");return this.trailingComma?i+",":i},r.error=function(i,o){return this._error?this._error(i,o):new Error(i)},ch(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(uh.default);on.default=ph;wl.exports=on.default});var qo=q((sn,Sl)=>{"use strict";sn.__esModule=!0;sn.default=void 0;var hh=gh(xi()),mh=$e();function gh(e){return e&&e.__esModule?e:{default:e}}function bh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Uo(e,t)}function Uo(e,t){return Uo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Uo(e,t)}var vh=function(e){bh(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=mh.SELECTOR,n}return t}(hh.default);sn.default=vh;Sl.exports=sn.default});var wi=q((b1,_l)=>{"use strict";var yh={},xh=yh.hasOwnProperty,wh=function(t,r){if(!t)return r;var n={};for(var i in r)n[i]=xh.call(t,i)?t[i]:r[i];return n},Sh=/[ -,\.\/:-@\[-\^`\{-~]/,_h=/[ -,\.\/:-@\[\]\^`\{-~]/,Th=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,zo=function e(t,r){r=wh(r,e.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",i=r.isIdentifier,o=t.charAt(0),s="",a=0,u=t.length;a<u;){var f=t.charAt(a++),l=f.charCodeAt(),p=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&a<u){var h=t.charCodeAt(a++);(h&64512)==56320?l=((l&1023)<<10)+(h&1023)+65536:a--}p="\\"+l.toString(16).toUpperCase()+" "}else r.escapeEverything?Sh.test(f)?p="\\"+f:p="\\"+l.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(f)?p="\\"+l.toString(16).toUpperCase()+" ":f=="\\"||!i&&(f=='"'&&n==f||f=="'"&&n==f)||i&&_h.test(f)?p="\\"+f:p=f;s+=p}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(Th,function(m,b,y){return b&&b.length%2?m:(b||"")+y}),!i&&r.wrap?n+s+n:s};zo.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};zo.version="3.0.0";_l.exports=zo});var jo=q((an,kl)=>{"use strict";an.__esModule=!0;an.default=void 0;var Eh=El(wi()),kh=tn(),Oh=El($t()),Ph=$e();function El(e){return e&&e.__esModule?e:{default:e}}function Tl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ah(e,t,r){return t&&Tl(e.prototype,t),r&&Tl(e,r),e}function Ih(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Go(e,t)}function Go(e,t){return Go=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Go(e,t)}var Rh=function(e){Ih(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=Ph.CLASS,i._constructed=!0,i}var r=t.prototype;return r.valueToString=function(){return"."+e.prototype.valueToString.call(this)},Ah(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=(0,Eh.default)(i,{isIdentifier:!0});o!==i?((0,kh.ensureObject)(this,"raws"),this.raws.value=o):this.raws&&delete this.raws.value}this._value=i}}]),t}(Oh.default);an.default=Rh;kl.exports=an.default});var Ho=q((un,Ol)=>{"use strict";un.__esModule=!0;un.default=void 0;var Ch=Mh($t()),Lh=$e();function Mh(e){return e&&e.__esModule?e:{default:e}}function Nh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vo(e,t)}function Vo(e,t){return Vo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Vo(e,t)}var Fh=function(e){Nh(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Lh.COMMENT,n}return t}(Ch.default);un.default=Fh;Ol.exports=un.default});var Xo=q((ln,Pl)=>{"use strict";ln.__esModule=!0;ln.default=void 0;var Wh=$h($t()),Dh=$e();function $h(e){return e&&e.__esModule?e:{default:e}}function Bh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yo(e,t)}function Yo(e,t){return Yo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Yo(e,t)}var Uh=function(e){Bh(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=Dh.ID,i}var r=t.prototype;return r.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(Wh.default);ln.default=Uh;Pl.exports=ln.default});var Si=q((fn,Rl)=>{"use strict";fn.__esModule=!0;fn.default=void 0;var qh=Il(wi()),zh=tn(),Gh=Il($t());function Il(e){return e&&e.__esModule?e:{default:e}}function Al(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function jh(e,t,r){return t&&Al(e.prototype,t),r&&Al(e,r),e}function Vh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qo(e,t)}function Qo(e,t){return Qo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Qo(e,t)}var Hh=function(e){Vh(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.qualifiedName=function(i){return this.namespace?this.namespaceString+"|"+i:i},r.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},jh(t,[{key:"namespace",get:function(){return this._namespace},set:function(i){if(i===!0||i==="*"||i==="&"){this._namespace=i,this.raws&&delete this.raws.namespace;return}var o=(0,qh.default)(i,{isIdentifier:!0});this._namespace=i,o!==i?((0,zh.ensureObject)(this,"raws"),this.raws.namespace=o):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(i){this.namespace=i}},{key:"namespaceString",get:function(){if(this.namespace){var i=this.stringifyProperty("namespace");return i===!0?"":i}else return""}}]),t}(Gh.default);fn.default=Hh;Rl.exports=fn.default});var Jo=q((cn,Cl)=>{"use strict";cn.__esModule=!0;cn.default=void 0;var Yh=Qh(Si()),Xh=$e();function Qh(e){return e&&e.__esModule?e:{default:e}}function Kh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ko(e,t)}function Ko(e,t){return Ko=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ko(e,t)}var Jh=function(e){Kh(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Xh.TAG,n}return t}(Yh.default);cn.default=Jh;Cl.exports=cn.default});var es=q((dn,Ll)=>{"use strict";dn.__esModule=!0;dn.default=void 0;var Zh=tm($t()),em=$e();function tm(e){return e&&e.__esModule?e:{default:e}}function rm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zo(e,t)}function Zo(e,t){return Zo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Zo(e,t)}var nm=function(e){rm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=em.STRING,n}return t}(Zh.default);dn.default=nm;Ll.exports=dn.default});var rs=q((pn,Ml)=>{"use strict";pn.__esModule=!0;pn.default=void 0;var im=sm(xi()),om=$e();function sm(e){return e&&e.__esModule?e:{default:e}}function am(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ts(e,t)}function ts(e,t){return ts=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ts(e,t)}var um=function(e){am(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=om.PSEUDO,i}var r=t.prototype;return r.toString=function(){var i=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),i,this.rawSpaceAfter].join("")},t}(im.default);pn.default=um;Ml.exports=pn.default});var Fl=q((v1,Nl)=>{Nl.exports=function(t,r){return function(...n){return console.warn(r),t(...n)}}});var us=q(gn=>{"use strict";gn.__esModule=!0;gn.unescapeValue=as;gn.default=void 0;var hn=ss(wi()),lm=ss(Wo()),fm=ss(Si()),cm=$e(),ns;function ss(e){return e&&e.__esModule?e:{default:e}}function Wl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function dm(e,t,r){return t&&Wl(e.prototype,t),r&&Wl(e,r),e}function pm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,os(e,t)}function os(e,t){return os=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},os(e,t)}var mn=Fl(),hm=/^('|")([^]*)\1$/,mm=mn(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),gm=mn(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),bm=mn(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function as(e){var t=!1,r=null,n=e,i=n.match(hm);return i&&(r=i[1],n=i[2]),n=(0,lm.default)(n),n!==e&&(t=!0),{deprecatedUsage:t,unescaped:n,quoteMark:r}}function vm(e){if(e.quoteMark!==void 0||e.value===void 0)return e;bm();var t=as(e.value),r=t.quoteMark,n=t.unescaped;return e.raws||(e.raws={}),e.raws.value===void 0&&(e.raws.value=e.value),e.value=n,e.quoteMark=r,e}var _i=function(e){pm(t,e);function t(n){var i;return n===void 0&&(n={}),i=e.call(this,vm(n))||this,i.type=cm.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:mn(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:mn(function(){return i.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),i._constructed=!0,i}var r=t.prototype;return r.getQuotedValue=function(i){i===void 0&&(i={});var o=this._determineQuoteMark(i),s=is[o],a=(0,hn.default)(this._value,s);return a},r._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},r.setValue=function(i,o){o===void 0&&(o={}),this._value=i,this._quoteMark=this._determineQuoteMark(o),this._syncRawValue()},r.smartQuoteMark=function(i){var o=this.value,s=o.replace(/[^']/g,"").length,a=o.replace(/[^"]/g,"").length;if(s+a===0){var u=(0,hn.default)(o,{isIdentifier:!0});if(u===o)return t.NO_QUOTE;var f=this.preferredQuoteMark(i);if(f===t.NO_QUOTE){var l=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,p=is[l],h=(0,hn.default)(o,p);if(h.length<u.length)return l}return f}else return a===s?this.preferredQuoteMark(i):a<s?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},r.preferredQuoteMark=function(i){var o=i.preferCurrentQuoteMark?this.quoteMark:i.quoteMark;return o===void 0&&(o=i.preferCurrentQuoteMark?i.quoteMark:this.quoteMark),o===void 0&&(o=t.DOUBLE_QUOTE),o},r._syncRawValue=function(){var i=(0,hn.default)(this._value,is[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},r._handleEscapes=function(i,o){if(this._constructed){var s=(0,hn.default)(o,{isIdentifier:!0});s!==o?this.raws[i]=s:delete this.raws[i]}},r._spacesFor=function(i){var o={before:"",after:""},s=this.spaces[i]||{},a=this.raws.spaces&&this.raws.spaces[i]||{};return Object.assign(o,s,a)},r._stringFor=function(i,o,s){o===void 0&&(o=i),s===void 0&&(s=Dl);var a=this._spacesFor(o);return s(this.stringifyProperty(i),a)},r.offsetOf=function(i){var o=1,s=this._spacesFor("attribute");if(o+=s.before.length,i==="namespace"||i==="ns")return this.namespace?o:-1;if(i==="attributeNS"||(o+=this.namespaceString.length,this.namespace&&(o+=1),i==="attribute"))return o;o+=this.stringifyProperty("attribute").length,o+=s.after.length;var a=this._spacesFor("operator");o+=a.before.length;var u=this.stringifyProperty("operator");if(i==="operator")return u?o:-1;o+=u.length,o+=a.after.length;var f=this._spacesFor("value");o+=f.before.length;var l=this.stringifyProperty("value");if(i==="value")return l?o:-1;o+=l.length,o+=f.after.length;var p=this._spacesFor("insensitive");return o+=p.before.length,i==="insensitive"&&this.insensitive?o:-1},r.toString=function(){var i=this,o=[this.rawSpaceBefore,"["];return o.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(o.push(this._stringFor("operator")),o.push(this._stringFor("value")),o.push(this._stringFor("insensitiveFlag","insensitive",function(s,a){return s.length>0&&!i.quoted&&a.before.length===0&&!(i.spaces.value&&i.spaces.value.after)&&(a.before=" "),Dl(s,a)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},dm(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){gm()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(i){if(!this._constructed){this._quoteMark=i;return}this._quoteMark!==i&&(this._quoteMark=i,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=as(i),s=o.deprecatedUsage,a=o.unescaped,u=o.quoteMark;if(s&&mm(),a===this._value&&u===this._quoteMark)return;this._value=a,this._quoteMark=u,this._syncRawValue()}else this._value=i}},{key:"attribute",get:function(){return this._attribute},set:function(i){this._handleEscapes("attribute",i),this._attribute=i}}]),t}(fm.default);gn.default=_i;_i.NO_QUOTE=null;_i.SINGLE_QUOTE="'";_i.DOUBLE_QUOTE='"';var is=(ns={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},ns[null]={isIdentifier:!0},ns);function Dl(e,t){return""+t.before+e+t.after}});var fs=q((bn,$l)=>{"use strict";bn.__esModule=!0;bn.default=void 0;var ym=wm(Si()),xm=$e();function wm(e){return e&&e.__esModule?e:{default:e}}function Sm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ls(e,t)}function ls(e,t){return ls=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ls(e,t)}var _m=function(e){Sm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=xm.UNIVERSAL,n.value="*",n}return t}(ym.default);bn.default=_m;$l.exports=bn.default});var ds=q((vn,Bl)=>{"use strict";vn.__esModule=!0;vn.default=void 0;var Tm=km($t()),Em=$e();function km(e){return e&&e.__esModule?e:{default:e}}function Om(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cs(e,t)}function cs(e,t){return cs=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},cs(e,t)}var Pm=function(e){Om(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Em.COMBINATOR,n}return t}(Tm.default);vn.default=Pm;Bl.exports=vn.default});var hs=q((yn,Ul)=>{"use strict";yn.__esModule=!0;yn.default=void 0;var Am=Rm($t()),Im=$e();function Rm(e){return e&&e.__esModule?e:{default:e}}function Cm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ps(e,t)}function ps(e,t){return ps=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ps(e,t)}var Lm=function(e){Cm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Im.NESTING,n.value="&",n}return t}(Am.default);yn.default=Lm;Ul.exports=yn.default});var zl=q((Ti,ql)=>{"use strict";Ti.__esModule=!0;Ti.default=Mm;function Mm(e){return e.sort(function(t,r){return t-r})}ql.exports=Ti.default});var ms=q(U=>{"use strict";U.__esModule=!0;U.combinator=U.word=U.comment=U.str=U.tab=U.newline=U.feed=U.cr=U.backslash=U.bang=U.slash=U.doubleQuote=U.singleQuote=U.space=U.greaterThan=U.pipe=U.equals=U.plus=U.caret=U.tilde=U.dollar=U.closeSquare=U.openSquare=U.closeParenthesis=U.openParenthesis=U.semicolon=U.colon=U.comma=U.at=U.asterisk=U.ampersand=void 0;var Nm=38;U.ampersand=Nm;var Fm=42;U.asterisk=Fm;var Wm=64;U.at=Wm;var Dm=44;U.comma=Dm;var $m=58;U.colon=$m;var Bm=59;U.semicolon=Bm;var Um=40;U.openParenthesis=Um;var qm=41;U.closeParenthesis=qm;var zm=91;U.openSquare=zm;var Gm=93;U.closeSquare=Gm;var jm=36;U.dollar=jm;var Vm=126;U.tilde=Vm;var Hm=94;U.caret=Hm;var Ym=43;U.plus=Ym;var Xm=61;U.equals=Xm;var Qm=124;U.pipe=Qm;var Km=62;U.greaterThan=Km;var Jm=32;U.space=Jm;var Gl=39;U.singleQuote=Gl;var Zm=34;U.doubleQuote=Zm;var e0=47;U.slash=e0;var t0=33;U.bang=t0;var r0=92;U.backslash=r0;var n0=13;U.cr=n0;var i0=12;U.feed=i0;var o0=10;U.newline=o0;var s0=9;U.tab=s0;var a0=Gl;U.str=a0;var u0=-1;U.comment=u0;var l0=-2;U.word=l0;var f0=-3;U.combinator=f0});var Hl=q(xn=>{"use strict";xn.__esModule=!0;xn.default=b0;xn.FIELDS=void 0;var W=c0(ms()),kr,he;function Vl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Vl=function(){return e},e}function c0(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Vl();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}var d0=(kr={},kr[W.tab]=!0,kr[W.newline]=!0,kr[W.cr]=!0,kr[W.feed]=!0,kr),p0=(he={},he[W.space]=!0,he[W.tab]=!0,he[W.newline]=!0,he[W.cr]=!0,he[W.feed]=!0,he[W.ampersand]=!0,he[W.asterisk]=!0,he[W.bang]=!0,he[W.comma]=!0,he[W.colon]=!0,he[W.semicolon]=!0,he[W.openParenthesis]=!0,he[W.closeParenthesis]=!0,he[W.openSquare]=!0,he[W.closeSquare]=!0,he[W.singleQuote]=!0,he[W.doubleQuote]=!0,he[W.plus]=!0,he[W.pipe]=!0,he[W.tilde]=!0,he[W.greaterThan]=!0,he[W.equals]=!0,he[W.dollar]=!0,he[W.caret]=!0,he[W.slash]=!0,he),gs={},jl="0123456789abcdefABCDEF";for(Ei=0;Ei<jl.length;Ei++)gs[jl.charCodeAt(Ei)]=!0;var Ei;function h0(e,t){var r=t,n;do{if(n=e.charCodeAt(r),p0[n])return r-1;n===W.backslash?r=m0(e,r)+1:r++}while(r<e.length);return r-1}function m0(e,t){var r=t,n=e.charCodeAt(r+1);if(!d0[n])if(gs[n]){var i=0;do r++,i++,n=e.charCodeAt(r+1);while(gs[n]&&i<6);i<6&&n===W.space&&r++}else r++;return r}var g0={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};xn.FIELDS=g0;function b0(e){var t=[],r=e.css.valueOf(),n=r,i=n.length,o=-1,s=1,a=0,u=0,f,l,p,h,m,b,y,S,T,P,w,k,_;function A(F,B){if(e.safe)r+=B,T=r.length-1;else throw e.error("Unclosed "+F,s,a-o,a)}for(;a<i;){switch(f=r.charCodeAt(a),f===W.newline&&(o=a,s+=1),f){case W.space:case W.tab:case W.newline:case W.cr:case W.feed:T=a;do T+=1,f=r.charCodeAt(T),f===W.newline&&(o=T,s+=1);while(f===W.space||f===W.newline||f===W.tab||f===W.cr||f===W.feed);_=W.space,h=s,p=T-o-1,u=T;break;case W.plus:case W.greaterThan:case W.tilde:case W.pipe:T=a;do T+=1,f=r.charCodeAt(T);while(f===W.plus||f===W.greaterThan||f===W.tilde||f===W.pipe);_=W.combinator,h=s,p=a-o,u=T;break;case W.asterisk:case W.ampersand:case W.bang:case W.comma:case W.equals:case W.dollar:case W.caret:case W.openSquare:case W.closeSquare:case W.colon:case W.semicolon:case W.openParenthesis:case W.closeParenthesis:T=a,_=f,h=s,p=a-o,u=T+1;break;case W.singleQuote:case W.doubleQuote:k=f===W.singleQuote?"'":'"',T=a;do for(m=!1,T=r.indexOf(k,T+1),T===-1&&A("quote",k),b=T;r.charCodeAt(b-1)===W.backslash;)b-=1,m=!m;while(m);_=W.str,h=s,p=a-o,u=T+1;break;default:f===W.slash&&r.charCodeAt(a+1)===W.asterisk?(T=r.indexOf("*/",a+2)+1,T===0&&A("comment","*/"),l=r.slice(a,T+1),S=l.split(`
|
|
4
|
+
`),y=S.length-1,y>0?(P=s+y,w=T-S[y].length):(P=s,w=o),_=W.comment,s=P,h=P,p=T-w):f===W.slash?(T=a,_=f,h=s,p=a-o,u=T+1):(T=h0(r,a),_=W.word,h=s,p=T-o),u=T+1;break}t.push([_,s,a-o,h,p,a,u]),w&&(o=w,w=null),a=u}return t}});var tf=q((wn,ef)=>{"use strict";wn.__esModule=!0;wn.default=void 0;var v0=ut(Bo()),bs=ut(qo()),y0=ut(jo()),Yl=ut(Ho()),x0=ut(Xo()),w0=ut(Jo()),vs=ut(es()),S0=ut(rs()),Xl=ki(us()),_0=ut(fs()),ys=ut(ds()),T0=ut(hs()),E0=ut(zl()),C=ki(Hl()),$=ki(ms()),k0=ki($e()),Se=tn(),sr,xs;function Zl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Zl=function(){return e},e}function ki(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Zl();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function ut(e){return e&&e.__esModule?e:{default:e}}function Ql(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O0(e,t,r){return t&&Ql(e.prototype,t),r&&Ql(e,r),e}var _s=(sr={},sr[$.space]=!0,sr[$.cr]=!0,sr[$.feed]=!0,sr[$.newline]=!0,sr[$.tab]=!0,sr),P0=Object.assign({},_s,(xs={},xs[$.comment]=!0,xs));function Kl(e){return{line:e[C.FIELDS.START_LINE],column:e[C.FIELDS.START_COL]}}function Jl(e){return{line:e[C.FIELDS.END_LINE],column:e[C.FIELDS.END_COL]}}function ar(e,t,r,n){return{start:{line:e,column:t},end:{line:r,column:n}}}function Or(e){return ar(e[C.FIELDS.START_LINE],e[C.FIELDS.START_COL],e[C.FIELDS.END_LINE],e[C.FIELDS.END_COL])}function ws(e,t){if(e)return ar(e[C.FIELDS.START_LINE],e[C.FIELDS.START_COL],t[C.FIELDS.END_LINE],t[C.FIELDS.END_COL])}function Pr(e,t){var r=e[t];if(typeof r=="string")return r.indexOf("\\")!==-1&&((0,Se.ensureObject)(e,"raws"),e[t]=(0,Se.unesc)(r),e.raws[t]===void 0&&(e.raws[t]=r)),e}function Ss(e,t){for(var r=-1,n=[];(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}function A0(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,r){return r===e.indexOf(t)})}var I0=function(){function e(r,n){n===void 0&&(n={}),this.rule=r,this.options=Object.assign({lossy:!1,safe:!1},n),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,C.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=ws(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new v0.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new bs.default({source:{start:{line:1,column:1}}});this.root.append(o),this.current=o,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var n=this;return function(i,o){return typeof n.rule=="string"?new Error(i):n.rule.error(i,o)}},t.attribute=function(){var n=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[C.FIELDS.TYPE]!==$.closeSquare;)n.push(this.currToken),this.position++;if(this.currToken[C.FIELDS.TYPE]!==$.closeSquare)return this.expected("closing square bracket",this.currToken[C.FIELDS.START_POS]);var o=n.length,s={source:ar(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[C.FIELDS.START_POS]};if(o===1&&!~[$.word].indexOf(n[0][C.FIELDS.TYPE]))return this.expected("attribute",n[0][C.FIELDS.START_POS]);for(var a=0,u="",f="",l=null,p=!1;a<o;){var h=n[a],m=this.content(h),b=n[a+1];switch(h[C.FIELDS.TYPE]){case $.space:if(p=!0,this.options.lossy)break;if(l){(0,Se.ensureObject)(s,"spaces",l);var y=s.spaces[l].after||"";s.spaces[l].after=y+m;var S=(0,Se.getProp)(s,"raws","spaces",l,"after")||null;S&&(s.raws.spaces[l].after=S+m)}else u=u+m,f=f+m;break;case $.asterisk:if(b[C.FIELDS.TYPE]===$.equals)s.operator=m,l="operator";else if((!s.namespace||l==="namespace"&&!p)&&b){u&&((0,Se.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),f&&((0,Se.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,f=""),s.namespace=(s.namespace||"")+m;var T=(0,Se.getProp)(s,"raws","namespace")||null;T&&(s.raws.namespace+=m),l="namespace"}p=!1;break;case $.dollar:if(l==="value"){var P=(0,Se.getProp)(s,"raws","value");s.value+="$",P&&(s.raws.value=P+"$");break}case $.caret:b[C.FIELDS.TYPE]===$.equals&&(s.operator=m,l="operator"),p=!1;break;case $.combinator:if(m==="~"&&b[C.FIELDS.TYPE]===$.equals&&(s.operator=m,l="operator"),m!=="|"){p=!1;break}b[C.FIELDS.TYPE]===$.equals?(s.operator=m,l="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),p=!1;break;case $.word:if(b&&this.content(b)==="|"&&n[a+2]&&n[a+2][C.FIELDS.TYPE]!==$.equals&&!s.operator&&!s.namespace)s.namespace=m,l="namespace";else if(!s.attribute||l==="attribute"&&!p){u&&((0,Se.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),f&&((0,Se.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=f,f=""),s.attribute=(s.attribute||"")+m;var w=(0,Se.getProp)(s,"raws","attribute")||null;w&&(s.raws.attribute+=m),l="attribute"}else if(!s.value&&s.value!==""||l==="value"&&!p){var k=(0,Se.unesc)(m),_=(0,Se.getProp)(s,"raws","value")||"",A=s.value||"";s.value=A+k,s.quoteMark=null,(k!==m||_)&&((0,Se.ensureObject)(s,"raws"),s.raws.value=(_||A)+m),l="value"}else{var F=m==="i"||m==="I";(s.value||s.value==="")&&(s.quoteMark||p)?(s.insensitive=F,(!F||m==="I")&&((0,Se.ensureObject)(s,"raws"),s.raws.insensitiveFlag=m),l="insensitive",u&&((0,Se.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),f&&((0,Se.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=f,f="")):(s.value||s.value==="")&&(l="value",s.value+=m,s.raws.value&&(s.raws.value+=m))}p=!1;break;case $.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:h[C.FIELDS.START_POS]});var B=(0,Xl.unescapeValue)(m),H=B.unescaped,ae=B.quoteMark;s.value=H,s.quoteMark=ae,l="value",(0,Se.ensureObject)(s,"raws"),s.raws.value=m,p=!1;break;case $.equals:if(!s.attribute)return this.expected("attribute",h[C.FIELDS.START_POS],m);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:h[C.FIELDS.START_POS]});s.operator=s.operator?s.operator+m:m,l="operator",p=!1;break;case $.comment:if(l)if(p||b&&b[C.FIELDS.TYPE]===$.space||l==="insensitive"){var ke=(0,Se.getProp)(s,"spaces",l,"after")||"",Te=(0,Se.getProp)(s,"raws","spaces",l,"after")||ke;(0,Se.ensureObject)(s,"raws","spaces",l),s.raws.spaces[l].after=Te+m}else{var be=s[l]||"",ue=(0,Se.getProp)(s,"raws",l)||be;(0,Se.ensureObject)(s,"raws"),s.raws[l]=ue+m}else f=f+m;break;default:return this.error('Unexpected "'+m+'" found.',{index:h[C.FIELDS.START_POS]})}a++}Pr(s,"attribute"),Pr(s,"namespace"),this.newNode(new Xl.default(s)),this.position++},t.parseWhitespaceEquivalentTokens=function(n){n<0&&(n=this.tokens.length);var i=this.position,o=[],s="",a=void 0;do if(_s[this.currToken[C.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[C.FIELDS.TYPE]===$.comment){var u={};s&&(u.before=s,s=""),a=new Yl.default({value:this.content(),source:Or(this.currToken),sourceIndex:this.currToken[C.FIELDS.START_POS],spaces:u}),o.push(a)}while(++this.position<n);if(s){if(a)a.spaces.after=s;else if(!this.options.lossy){var f=this.tokens[i],l=this.tokens[this.position-1];o.push(new vs.default({value:"",source:ar(f[C.FIELDS.START_LINE],f[C.FIELDS.START_COL],l[C.FIELDS.END_LINE],l[C.FIELDS.END_COL]),sourceIndex:f[C.FIELDS.START_POS],spaces:{before:s,after:""}}))}}return o},t.convertWhitespaceNodesToSpace=function(n,i){var o=this;i===void 0&&(i=!1);var s="",a="";n.forEach(function(f){var l=o.lossySpace(f.spaces.before,i),p=o.lossySpace(f.rawSpaceBefore,i);s+=l+o.lossySpace(f.spaces.after,i&&l.length===0),a+=l+f.value+o.lossySpace(f.rawSpaceAfter,i&&p.length===0)}),a===s&&(a=void 0);var u={space:s,rawSpace:a};return u},t.isNamedCombinator=function(n){return n===void 0&&(n=this.position),this.tokens[n+0]&&this.tokens[n+0][C.FIELDS.TYPE]===$.slash&&this.tokens[n+1]&&this.tokens[n+1][C.FIELDS.TYPE]===$.word&&this.tokens[n+2]&&this.tokens[n+2][C.FIELDS.TYPE]===$.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var n=this.content(this.tokens[this.position+1]),i=(0,Se.unesc)(n).toLowerCase(),o={};i!==n&&(o.value="/"+n+"/");var s=new ys.default({value:"/"+i+"/",source:ar(this.currToken[C.FIELDS.START_LINE],this.currToken[C.FIELDS.START_COL],this.tokens[this.position+2][C.FIELDS.END_LINE],this.tokens[this.position+2][C.FIELDS.END_COL]),sourceIndex:this.currToken[C.FIELDS.START_POS],raws:o});return this.position=this.position+3,s}else this.unexpected()},t.combinator=function(){var n=this;if(this.content()==="|")return this.namespace();var i=this.locateNextMeaningfulToken(this.position);if(i<0||this.tokens[i][C.FIELDS.TYPE]===$.comma){var o=this.parseWhitespaceEquivalentTokens(i);if(o.length>0){var s=this.current.last;if(s){var a=this.convertWhitespaceNodesToSpace(o),u=a.space,f=a.rawSpace;f!==void 0&&(s.rawSpaceAfter+=f),s.spaces.after+=u}else o.forEach(function(_){return n.newNode(_)})}return}var l=this.currToken,p=void 0;i>this.position&&(p=this.parseWhitespaceEquivalentTokens(i));var h;if(this.isNamedCombinator()?h=this.namedCombinator():this.currToken[C.FIELDS.TYPE]===$.combinator?(h=new ys.default({value:this.content(),source:Or(this.currToken),sourceIndex:this.currToken[C.FIELDS.START_POS]}),this.position++):_s[this.currToken[C.FIELDS.TYPE]]||p||this.unexpected(),h){if(p){var m=this.convertWhitespaceNodesToSpace(p),b=m.space,y=m.rawSpace;h.spaces.before=b,h.rawSpaceBefore=y}}else{var S=this.convertWhitespaceNodesToSpace(p,!0),T=S.space,P=S.rawSpace;P||(P=T);var w={},k={spaces:{}};T.endsWith(" ")&&P.endsWith(" ")?(w.before=T.slice(0,T.length-1),k.spaces.before=P.slice(0,P.length-1)):T.startsWith(" ")&&P.startsWith(" ")?(w.after=T.slice(1),k.spaces.after=P.slice(1)):k.value=P,h=new ys.default({value:" ",source:ws(l,this.tokens[this.position-1]),sourceIndex:l[C.FIELDS.START_POS],spaces:w,raws:k})}return this.currToken&&this.currToken[C.FIELDS.TYPE]===$.space&&(h.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(h)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var n=new bs.default({source:{start:Kl(this.tokens[this.position+1])}});this.current.parent.append(n),this.current=n,this.position++},t.comment=function(){var n=this.currToken;this.newNode(new Yl.default({value:this.content(),source:Or(n),sourceIndex:n[C.FIELDS.START_POS]})),this.position++},t.error=function(n,i){throw this.root.error(n,i)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[C.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[C.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[C.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[C.FIELDS.START_POS])},t.namespace=function(){var n=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[C.FIELDS.TYPE]===$.word)return this.position++,this.word(n);if(this.nextToken[C.FIELDS.TYPE]===$.asterisk)return this.position++,this.universal(n)},t.nesting=function(){if(this.nextToken){var n=this.content(this.nextToken);if(n==="|"){this.position++;return}}var i=this.currToken;this.newNode(new T0.default({value:this.content(),source:Or(i),sourceIndex:i[C.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var n=this.current.last,i=1;if(this.position++,n&&n.type===k0.PSEUDO){var o=new bs.default({source:{start:Kl(this.tokens[this.position-1])}}),s=this.current;for(n.append(o),this.current=o;this.position<this.tokens.length&&i;)this.currToken[C.FIELDS.TYPE]===$.openParenthesis&&i++,this.currToken[C.FIELDS.TYPE]===$.closeParenthesis&&i--,i?this.parse():(this.current.source.end=Jl(this.currToken),this.current.parent.source.end=Jl(this.currToken),this.position++);this.current=s}else{for(var a=this.currToken,u="(",f;this.position<this.tokens.length&&i;)this.currToken[C.FIELDS.TYPE]===$.openParenthesis&&i++,this.currToken[C.FIELDS.TYPE]===$.closeParenthesis&&i--,f=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;n?n.appendToPropertyAndEscape("value",u,u):this.newNode(new vs.default({value:u,source:ar(a[C.FIELDS.START_LINE],a[C.FIELDS.START_COL],f[C.FIELDS.END_LINE],f[C.FIELDS.END_COL]),sourceIndex:a[C.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[C.FIELDS.START_POS])},t.pseudo=function(){for(var n=this,i="",o=this.currToken;this.currToken&&this.currToken[C.FIELDS.TYPE]===$.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[C.FIELDS.TYPE]===$.word)this.splitWord(!1,function(s,a){i+=s,n.newNode(new S0.default({value:i,source:ws(o,n.currToken),sourceIndex:o[C.FIELDS.START_POS]})),a>1&&n.nextToken&&n.nextToken[C.FIELDS.TYPE]===$.openParenthesis&&n.error("Misplaced parenthesis.",{index:n.nextToken[C.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[C.FIELDS.START_POS])},t.space=function(){var n=this.content();this.position===0||this.prevToken[C.FIELDS.TYPE]===$.comma||this.prevToken[C.FIELDS.TYPE]===$.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(n),this.position++):this.position===this.tokens.length-1||this.nextToken[C.FIELDS.TYPE]===$.comma||this.nextToken[C.FIELDS.TYPE]===$.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(n),this.position++):this.combinator()},t.string=function(){var n=this.currToken;this.newNode(new vs.default({value:this.content(),source:Or(n),sourceIndex:n[C.FIELDS.START_POS]})),this.position++},t.universal=function(n){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var o=this.currToken;this.newNode(new _0.default({value:this.content(),source:Or(o),sourceIndex:o[C.FIELDS.START_POS]}),n),this.position++},t.splitWord=function(n,i){for(var o=this,s=this.nextToken,a=this.content();s&&~[$.dollar,$.caret,$.equals,$.word].indexOf(s[C.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var f=this.nextToken;f&&f[C.FIELDS.TYPE]===$.space&&(a+=this.requiredSpace(this.content(f)),this.position++)}s=this.nextToken}var l=Ss(a,".").filter(function(b){var y=a[b-1]==="\\",S=/^\d+\.\d+%$/.test(a);return!y&&!S}),p=Ss(a,"#").filter(function(b){return a[b-1]!=="\\"}),h=Ss(a,"#{");h.length&&(p=p.filter(function(b){return!~h.indexOf(b)}));var m=(0,E0.default)(A0([0].concat(l,p)));m.forEach(function(b,y){var S=m[y+1]||a.length,T=a.slice(b,S);if(y===0&&i)return i.call(o,T,m.length);var P,w=o.currToken,k=w[C.FIELDS.START_POS]+m[y],_=ar(w[1],w[2]+b,w[3],w[2]+(S-1));if(~l.indexOf(b)){var A={value:T.slice(1),source:_,sourceIndex:k};P=new y0.default(Pr(A,"value"))}else if(~p.indexOf(b)){var F={value:T.slice(1),source:_,sourceIndex:k};P=new x0.default(Pr(F,"value"))}else{var B={value:T,source:_,sourceIndex:k};Pr(B,"value"),P=new w0.default(B)}o.newNode(P,n),n=null}),this.position++},t.word=function(n){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(n)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(n){switch(this.currToken[C.FIELDS.TYPE]){case $.space:this.space();break;case $.comment:this.comment();break;case $.openParenthesis:this.parentheses();break;case $.closeParenthesis:n&&this.missingParenthesis();break;case $.openSquare:this.attribute();break;case $.dollar:case $.caret:case $.equals:case $.word:this.word();break;case $.colon:this.pseudo();break;case $.comma:this.comma();break;case $.asterisk:this.universal();break;case $.ampersand:this.nesting();break;case $.slash:case $.combinator:this.combinator();break;case $.str:this.string();break;case $.closeSquare:this.missingSquareBracket();case $.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(n,i,o){if(Array.isArray(n)){var s=n.pop();n=n.join(", ")+" or "+s}var a=/^[aeiou]/.test(n[0])?"an":"a";return o?this.error("Expected "+a+" "+n+', found "'+o+'" instead.',{index:i}):this.error("Expected "+a+" "+n+".",{index:i})},t.requiredSpace=function(n){return this.options.lossy?" ":n},t.optionalSpace=function(n){return this.options.lossy?"":n},t.lossySpace=function(n,i){return this.options.lossy?i?" ":"":n},t.parseParenthesisToken=function(n){var i=this.content(n);return n[C.FIELDS.TYPE]===$.space?this.requiredSpace(i):i},t.newNode=function(n,i){return i&&(/^ +$/.test(i)&&(this.options.lossy||(this.spaces=(this.spaces||"")+i),i=!0),n.namespace=i,Pr(n,"namespace")),this.spaces&&(n.spaces.before=this.spaces,this.spaces=""),this.current.append(n)},t.content=function(n){return n===void 0&&(n=this.currToken),this.css.slice(n[C.FIELDS.START_POS],n[C.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(n){n===void 0&&(n=this.position+1);for(var i=n;i<this.tokens.length;)if(P0[this.tokens[i][C.FIELDS.TYPE]]){i++;continue}else return i;return-1},O0(e,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),e}();wn.default=I0;ef.exports=wn.default});var nf=q((Sn,rf)=>{"use strict";Sn.__esModule=!0;Sn.default=void 0;var R0=C0(tf());function C0(e){return e&&e.__esModule?e:{default:e}}var L0=function(){function e(r,n){this.func=r||function(){},this.funcRes=null,this.options=n}var t=e.prototype;return t._shouldUpdateSelector=function(n,i){i===void 0&&(i={});var o=Object.assign({},this.options,i);return o.updateSelector===!1?!1:typeof n!="string"},t._isLossy=function(n){n===void 0&&(n={});var i=Object.assign({},this.options,n);return i.lossless===!1},t._root=function(n,i){i===void 0&&(i={});var o=new R0.default(n,this._parseOptions(i));return o.root},t._parseOptions=function(n){return{lossy:this._isLossy(n)}},t._run=function(n,i){var o=this;return i===void 0&&(i={}),new Promise(function(s,a){try{var u=o._root(n,i);Promise.resolve(o.func(u)).then(function(f){var l=void 0;return o._shouldUpdateSelector(n,i)&&(l=u.toString(),n.selector=l),{transform:f,root:u,string:l}}).then(s,a)}catch(f){a(f);return}})},t._runSync=function(n,i){i===void 0&&(i={});var o=this._root(n,i),s=this.func(o);if(s&&typeof s.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var a=void 0;return i.updateSelector&&typeof n!="string"&&(a=o.toString(),n.selector=a),{transform:s,root:o,string:a}},t.ast=function(n,i){return this._run(n,i).then(function(o){return o.root})},t.astSync=function(n,i){return this._runSync(n,i).root},t.transform=function(n,i){return this._run(n,i).then(function(o){return o.transform})},t.transformSync=function(n,i){return this._runSync(n,i).transform},t.process=function(n,i){return this._run(n,i).then(function(o){return o.string||o.root.toString()})},t.processSync=function(n,i){var o=this._runSync(n,i);return o.string||o.root.toString()},e}();Sn.default=L0;rf.exports=Sn.default});var of=q(ge=>{"use strict";ge.__esModule=!0;ge.universal=ge.tag=ge.string=ge.selector=ge.root=ge.pseudo=ge.nesting=ge.id=ge.comment=ge.combinator=ge.className=ge.attribute=void 0;var M0=lt(us()),N0=lt(jo()),F0=lt(ds()),W0=lt(Ho()),D0=lt(Xo()),$0=lt(hs()),B0=lt(rs()),U0=lt(Bo()),q0=lt(qo()),z0=lt(es()),G0=lt(Jo()),j0=lt(fs());function lt(e){return e&&e.__esModule?e:{default:e}}var V0=function(t){return new M0.default(t)};ge.attribute=V0;var H0=function(t){return new N0.default(t)};ge.className=H0;var Y0=function(t){return new F0.default(t)};ge.combinator=Y0;var X0=function(t){return new W0.default(t)};ge.comment=X0;var Q0=function(t){return new D0.default(t)};ge.id=Q0;var K0=function(t){return new $0.default(t)};ge.nesting=K0;var J0=function(t){return new B0.default(t)};ge.pseudo=J0;var Z0=function(t){return new U0.default(t)};ge.root=Z0;var eg=function(t){return new q0.default(t)};ge.selector=eg;var tg=function(t){return new z0.default(t)};ge.string=tg;var rg=function(t){return new G0.default(t)};ge.tag=rg;var ng=function(t){return new j0.default(t)};ge.universal=ng});var lf=q(oe=>{"use strict";oe.__esModule=!0;oe.isNode=Ts;oe.isPseudoElement=uf;oe.isPseudoClass=hg;oe.isContainer=mg;oe.isNamespace=gg;oe.isUniversal=oe.isTag=oe.isString=oe.isSelector=oe.isRoot=oe.isPseudo=oe.isNesting=oe.isIdentifier=oe.isComment=oe.isCombinator=oe.isClassName=oe.isAttribute=void 0;var _e=$e(),Qe,ig=(Qe={},Qe[_e.ATTRIBUTE]=!0,Qe[_e.CLASS]=!0,Qe[_e.COMBINATOR]=!0,Qe[_e.COMMENT]=!0,Qe[_e.ID]=!0,Qe[_e.NESTING]=!0,Qe[_e.PSEUDO]=!0,Qe[_e.ROOT]=!0,Qe[_e.SELECTOR]=!0,Qe[_e.STRING]=!0,Qe[_e.TAG]=!0,Qe[_e.UNIVERSAL]=!0,Qe);function Ts(e){return typeof e=="object"&&ig[e.type]}function ft(e,t){return Ts(t)&&t.type===e}var sf=ft.bind(null,_e.ATTRIBUTE);oe.isAttribute=sf;var og=ft.bind(null,_e.CLASS);oe.isClassName=og;var sg=ft.bind(null,_e.COMBINATOR);oe.isCombinator=sg;var ag=ft.bind(null,_e.COMMENT);oe.isComment=ag;var ug=ft.bind(null,_e.ID);oe.isIdentifier=ug;var lg=ft.bind(null,_e.NESTING);oe.isNesting=lg;var Es=ft.bind(null,_e.PSEUDO);oe.isPseudo=Es;var fg=ft.bind(null,_e.ROOT);oe.isRoot=fg;var cg=ft.bind(null,_e.SELECTOR);oe.isSelector=cg;var dg=ft.bind(null,_e.STRING);oe.isString=dg;var af=ft.bind(null,_e.TAG);oe.isTag=af;var pg=ft.bind(null,_e.UNIVERSAL);oe.isUniversal=pg;function uf(e){return Es(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function hg(e){return Es(e)&&!uf(e)}function mg(e){return!!(Ts(e)&&e.walk)}function gg(e){return sf(e)||af(e)}});var ff=q(_t=>{"use strict";_t.__esModule=!0;var ks=$e();Object.keys(ks).forEach(function(e){e==="default"||e==="__esModule"||e in _t&&_t[e]===ks[e]||(_t[e]=ks[e])});var Os=of();Object.keys(Os).forEach(function(e){e==="default"||e==="__esModule"||e in _t&&_t[e]===Os[e]||(_t[e]=Os[e])});var Ps=lf();Object.keys(Ps).forEach(function(e){e==="default"||e==="__esModule"||e in _t&&_t[e]===Ps[e]||(_t[e]=Ps[e])})});var pf=q((_n,df)=>{"use strict";_n.__esModule=!0;_n.default=void 0;var bg=xg(nf()),vg=yg(ff());function cf(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return cf=function(){return e},e}function yg(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=cf();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function xg(e){return e&&e.__esModule?e:{default:e}}var As=function(t){return new bg.default(t)};Object.assign(As,vg);delete As.__esModule;var wg=As;_n.default=wg;df.exports=_n.default});var hf=q(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Object.defineProperty(Is,"default",{enumerable:!0,get:()=>Sg});function Sg(e){return e.replace(/\\,/g,"\\2c ")}});var gf=q((k1,mf)=>{"use strict";mf.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Cs=q(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});function _g(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}_g(Rs,{parseColor:()=>Ag,formatColor:()=>Ig});var bf=Tg(gf());function Tg(e){return e&&e.__esModule?e:{default:e}}var Eg=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,kg=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Ht=/(?:\d+|\d*\.\d+)%?/,Oi=/(?:\s*,\s*|\s+)/,vf=/\s*[,/]\s*/,Yt=/var\(--(?:[^ )]*?)\)/,Og=new RegExp(`^(rgb)a?\\(\\s*(${Ht.source}|${Yt.source})(?:${Oi.source}(${Ht.source}|${Yt.source}))?(?:${Oi.source}(${Ht.source}|${Yt.source}))?(?:${vf.source}(${Ht.source}|${Yt.source}))?\\s*\\)$`),Pg=new RegExp(`^(hsl)a?\\(\\s*((?:${Ht.source})(?:deg|rad|grad|turn)?|${Yt.source})(?:${Oi.source}(${Ht.source}|${Yt.source}))?(?:${Oi.source}(${Ht.source}|${Yt.source}))?(?:${vf.source}(${Ht.source}|${Yt.source}))?\\s*\\)$`);function Ag(e,{loose:t=!1}={}){var r,n;if(typeof e!="string")return null;if(e=e.trim(),e==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in bf.default)return{mode:"rgb",color:bf.default[e].map(u=>u.toString())};let i=e.replace(kg,(u,f,l,p,h)=>["#",f,f,l,l,p,p,h?h+h:""].join("")).match(Eg);if(i!==null)return{mode:"rgb",color:[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)].map(u=>u.toString()),alpha:i[4]?(parseInt(i[4],16)/255).toString():void 0};var o;let s=(o=e.match(Og))!==null&&o!==void 0?o:e.match(Pg);if(s===null)return null;let a=[s[2],s[3],s[4]].filter(Boolean).map(u=>u.toString());return!t&&a.length!==3||a.length<3&&!a.some(u=>/^var\(.*?\)$/.test(u))?null:{mode:s[1],color:a,alpha:(r=s[5])===null||r===void 0||(n=r.toString)===null||n===void 0?void 0:n.call(r)}}function Ig({mode:e,color:t,alpha:r}){let n=r!==void 0;return`${e}(${t.join(" ")}${n?` / ${r}`:""})`}});var Ms=q(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});function Rg(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Rg(Ls,{withAlphaValue:()=>Cg,default:()=>Lg});var Pi=Cs();function Cg(e,t,r){if(typeof e=="function")return e({opacityValue:t});let n=(0,Pi.parseColor)(e,{loose:!0});return n===null?r:(0,Pi.formatColor)({...n,alpha:t})}function Lg({color:e,property:t,variable:r}){let n=[].concat(t);if(typeof e=="function")return{[r]:"1",...Object.fromEntries(n.map(o=>[o,e({opacityVariable:r,opacityValue:`var(${r})`})]))};let i=(0,Pi.parseColor)(e);return i===null?Object.fromEntries(n.map(o=>[o,e])):i.alpha!==void 0?Object.fromEntries(n.map(o=>[o,e])):{[r]:"1",...Object.fromEntries(n.map(o=>[o,(0,Pi.formatColor)({...i,alpha:`var(${r})`})]))}}});var _f=q(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});function Mg(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Mg(Ns,{pattern:()=>Fg,withoutCapturing:()=>xf,any:()=>wf,optional:()=>Wg,zeroOrMore:()=>Dg,nestedBrackets:()=>Sf,escape:()=>ur});var yf=/[\\^$.*+?()[\]{}|]/g,Ng=RegExp(yf.source);function Tn(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function Fg(e){return new RegExp(Tn(e),"g")}function xf(e){return new RegExp(`(?:${Tn(e)})`,"g")}function wf(e){return`(?:${e.map(Tn).join("|")})`}function Wg(e){return`(?:${Tn(e)})?`}function Dg(e){return`(?:${Tn(e)})*`}function Sf(e,t,r=1){return xf([ur(e),/[^\s]*/,r===1?`[^${ur(e)}${ur(t)}s]*`:wf([`[^${ur(e)}${ur(t)}s]*`,Sf(e,t,r-1)]),/[^\s]*/,ur(t)])}function ur(e){return e&&Ng.test(e)?e.replace(yf,"\\$&"):e||""}});var Ef=q(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Object.defineProperty(Fs,"splitAtTopLevelOnly",{enumerable:!0,get:()=>Ug});var $g=Bg(_f());function Tf(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Tf=function(n){return n?r:t})(e)}function Bg(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Tf(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function*Ug(e,t){let r=new RegExp(`[(){}\\[\\]${$g.escape(t)}]`,"g"),n=0,i=0,o=!1,s=0,a=0,u=t.length;for(let f of e.matchAll(r)){let l=f[0]===t[s],p=s===u-1,h=l&&p;f[0]==="("&&n++,f[0]===")"&&n--,f[0]==="["&&n++,f[0]==="]"&&n--,f[0]==="{"&&n++,f[0]==="}"&&n--,l&&n===0&&(a===0&&(a=f.index),s++),h&&n===0&&(o=!0,yield e.substring(i,a),i=a+u),s===u&&(s=0,a=0)}o?yield e.substring(i):yield e}});var Of=q(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});function qg(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}qg(Ws,{parseBoxShadowValue:()=>Vg,formatBoxShadowValue:()=>Hg});var zg=Ef(),Gg=new Set(["inset","inherit","initial","revert","unset"]),jg=/\ +(?![^(]*\))/g,kf=/^-?(\d+|\.\d+)(.*?)$/g;function Vg(e){return Array.from((0,zg.splitAtTopLevelOnly)(e,",")).map(r=>{let n=r.trim(),i={raw:n},o=n.split(jg),s=new Set;for(let a of o)kf.lastIndex=0,!s.has("KEYWORD")&&Gg.has(a)?(i.keyword=a,s.add("KEYWORD")):kf.test(a)?s.has("X")?s.has("Y")?s.has("BLUR")?s.has("SPREAD")||(i.spread=a,s.add("SPREAD")):(i.blur=a,s.add("BLUR")):(i.y=a,s.add("Y")):(i.x=a,s.add("X")):i.color?(i.unknown||(i.unknown=[]),i.unknown.push(a)):i.color=a;return i.valid=i.x!==void 0&&i.y!==void 0,i})}function Hg(e){return e.map(t=>t.valid?[t.keyword,t.x,t.y,t.blur,t.spread,t.color].filter(Boolean).join(" "):t.raw).join(", ")}});var Mf=q($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});function Yg(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Yg($s,{normalize:()=>Xt,url:()=>If,number:()=>Kg,percentage:()=>Rf,length:()=>Cf,lineWidth:()=>eb,shadow:()=>tb,color:()=>rb,image:()=>nb,gradient:()=>Lf,position:()=>sb,familyName:()=>ab,genericName:()=>lb,absoluteSize:()=>cb,relativeSize:()=>pb});var Xg=Cs(),Qg=Of(),Ds=["min","max","clamp","calc"],Af=/,(?![^(]*\))/g,Ai=/_(?![^(]*\))/g;function Xt(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(r=>/^url\(.*?\)$/.test(r)?r:Xt(r,!1)).join(""):(e=e.replace(/([^\\])_+/g,(r,n)=>n+" ".repeat(r.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),t&&(e=e.trim()),e=e.replace(/(calc|min|max|clamp)\(.+\)/g,r=>r.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),e)}function If(e){return e.startsWith("url(")}function Kg(e){return!isNaN(Number(e))||Ds.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function Rf(e){return e.split(Ai).every(t=>/%$/g.test(t)||Ds.some(r=>new RegExp(`^${r}\\(.+?%`).test(t)))}var Jg=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],Pf=`(?:${Jg.join("|")})`;function Cf(e){return e.split(Ai).every(t=>t==="0"||new RegExp(`${Pf}$`).test(t)||Ds.some(r=>new RegExp(`^${r}\\(.+?${Pf}`).test(t)))}var Zg=new Set(["thin","medium","thick"]);function eb(e){return Zg.has(e)}function tb(e){let t=(0,Qg.parseBoxShadowValue)(Xt(e));for(let r of t)if(!r.valid)return!1;return!0}function rb(e){let t=0;return e.split(Ai).every(n=>(n=Xt(n),n.startsWith("var(")?!0:(0,Xg.parseColor)(n,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function nb(e){let t=0;return e.split(Af).every(n=>(n=Xt(n),n.startsWith("var(")?!0:If(n)||Lf(n)||["element(","image(","cross-fade(","image-set("].some(i=>n.startsWith(i))?(t++,!0):!1))?t>0:!1}var ib=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function Lf(e){e=Xt(e);for(let t of ib)if(e.startsWith(`${t}(`))return!0;return!1}var ob=new Set(["center","top","right","bottom","left"]);function sb(e){let t=0;return e.split(Ai).every(n=>(n=Xt(n),n.startsWith("var(")?!0:ob.has(n)||Cf(n)||Rf(n)?(t++,!0):!1))?t>0:!1}function ab(e){let t=0;return e.split(Af).every(n=>(n=Xt(n),n.startsWith("var(")?!0:n.includes(" ")&&!/(['"])([^"']+)\1/g.test(n)||/^\d/g.test(n)?!1:(t++,!0)))?t>0:!1}var ub=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function lb(e){return ub.has(e)}var fb=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function cb(e){return fb.has(e)}var db=new Set(["larger","smaller"]);function pb(e){return db.has(e)}});var qf=q(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});function hb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}hb(qs,{updateAllClasses:()=>bb,asValue:()=>kn,parseColorFormat:()=>Bs,asColor:()=>$f,asLookupValue:()=>Bf,coerceValue:()=>wb});var mb=Us(pf()),gb=Us(hf()),Nf=Ms(),Ke=Mf(),Ff=Us(ko());function Us(e){return e&&e.__esModule?e:{default:e}}function bb(e,t){return(0,mb.default)(i=>{i.walkClasses(o=>{let s=t(o.value);o.value=s,o.raws&&o.raws.value&&(o.raws.value=(0,gb.default)(o.raws.value))})}).processSync(e)}function Df(e,t){if(!En(e))return;let r=e.slice(1,-1);if(t(r))return(0,Ke.normalize)(r)}function vb(e,t={},r){let n=t[e];if(n!==void 0)return(0,Ff.default)(n);if(En(e)){let i=Df(e,r);return i===void 0?void 0:(0,Ff.default)(i)}}function kn(e,t={},{validate:r=()=>!0}={}){var n;let i=(n=t.values)===null||n===void 0?void 0:n[e];return i!==void 0?i:t.supportsNegativeValues&&e.startsWith("-")?vb(e.slice(1),t.values,r):Df(e,r)}function En(e){return e.startsWith("[")&&e.endsWith("]")}function yb(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function Bs(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:r=1})=>t.replace("<alpha-value>",r)}return e}function $f(e,t={},{tailwindConfig:r={}}={}){var n;if(((n=t.values)===null||n===void 0?void 0:n[e])!==void 0){var i;return Bs((i=t.values)===null||i===void 0?void 0:i[e])}let[o,s]=yb(e);if(s!==void 0){var a,u,f,l;let p=(l=(a=t.values)===null||a===void 0?void 0:a[o])!==null&&l!==void 0?l:En(o)?o.slice(1,-1):void 0;return p===void 0?void 0:(p=Bs(p),En(s)?(0,Nf.withAlphaValue)(p,s.slice(1,-1)):((u=r.theme)===null||u===void 0||(f=u.opacity)===null||f===void 0?void 0:f[s])===void 0?void 0:(0,Nf.withAlphaValue)(p,r.theme.opacity[s]))}return kn(e,t,{validate:Ke.color})}function Bf(e,t={}){var r;return(r=t.values)===null||r===void 0?void 0:r[e]}function ct(e){return(t,r)=>kn(t,r,{validate:e})}var Uf={any:kn,color:$f,url:ct(Ke.url),image:ct(Ke.image),length:ct(Ke.length),percentage:ct(Ke.percentage),position:ct(Ke.position),lookup:Bf,"generic-name":ct(Ke.genericName),"family-name":ct(Ke.familyName),number:ct(Ke.number),"line-width":ct(Ke.lineWidth),"absolute-size":ct(Ke.absoluteSize),"relative-size":ct(Ke.relativeSize),shadow:ct(Ke.shadow)},Wf=Object.keys(Uf);function xb(e,t){let r=e.indexOf(t);return r===-1?[void 0,e]:[e.slice(0,r),e.slice(r+1)]}function wb(e,t,r,n){if(En(t)){let i=t.slice(1,-1),[o,s]=xb(i,":");if(!/^[\w-_]+$/g.test(o))s=i;else if(o!==void 0&&!Wf.includes(o))return[];if(s.length>0&&Wf.includes(o))return[kn(`[${s}]`,r),o]}for(let i of[].concat(e)){let o=Uf[i](t,r,{tailwindConfig:n});if(o!==void 0)return[o,i]}return[]}});var zf=q(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});Object.defineProperty(zs,"default",{enumerable:!0,get:()=>Sb});function Sb(e){return typeof e=="function"?e({}):e}});var Yf=q(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});Object.defineProperty(js,"default",{enumerable:!0,get:()=>qb});var _b=lr(ko()),Tb=lr(Qu()),Eb=lr(Ku()),kb=lr(Ao()),Ob=lr(Zu()),Vf=el(),Gf=tl(),Pb=nl(),Ab=lr(il()),Ib=ol(),Rb=qf(),Cb=Ms(),Lb=lr(zf());function lr(e){return e&&e.__esModule?e:{default:e}}function Ar(e){return typeof e=="function"}function On(e){return typeof e=="object"&&e!==null}function Pn(e,...t){let r=t.pop();for(let n of t)for(let i in n){let o=r(e[i],n[i]);o===void 0?On(e[i])&&On(n[i])?e[i]=Pn(e[i],n[i],r):e[i]=n[i]:e[i]=o}return e}var Gs={colors:Ob.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,r)=>{let n=(0,_b.default)(e[r]);return n!==void 0&&(t[`-${r}`]=n),t},{})},breakpoints(e){return Object.keys(e).filter(t=>typeof e[t]=="string").reduce((t,r)=>({...t,[`screen-${r}`]:e[r]}),{})}};function Mb(e,...t){return Ar(e)?e(...t):e}function Nb(e){return e.reduce((t,{extend:r})=>Pn(t,r,(n,i)=>n===void 0?[i]:Array.isArray(n)?[i,...n]:[i,n]),{})}function Fb(e){return{...e.reduce((t,r)=>(0,Vf.defaults)(t,r),{}),extend:Nb(e)}}function jf(e,t){if(Array.isArray(e)&&On(e[0]))return e.concat(t);if(Array.isArray(t)&&On(t[0])&&On(e))return[e,...t];if(Array.isArray(t))return t}function Wb({extend:e,...t}){return Pn(t,e,(r,n)=>!Ar(r)&&!n.some(Ar)?Pn({},r,...n,jf):(i,o)=>Pn({},...[r,...n].map(s=>Mb(s,i,o)),jf))}function*Db(e){let t=(0,Gf.toPath)(e);if(t.length===0||(yield t,Array.isArray(e)))return;let r=/^(.*?)\s*\/\s*([^/]+)$/,n=e.match(r);if(n!==null){let[,i,o]=n,s=(0,Gf.toPath)(i);s.alpha=o,yield s}}function $b(e){let t=(r,n)=>{for(let i of Db(r)){let o=0,s=e;for(;s!=null&&o<i.length;)s=s[i[o++]],s=Ar(s)&&(i.alpha===void 0||o<=i.length-1)?s(t,Gs):s;if(s!==void 0){if(i.alpha!==void 0){let a=(0,Rb.parseColorFormat)(s);return(0,Cb.withAlphaValue)(a,i.alpha,(0,Lb.default)(a))}return(0,Ab.default)(s)?(0,Ib.cloneDeep)(s):s}}return n};return Object.assign(t,{theme:t,...Gs}),Object.keys(e).reduce((r,n)=>(r[n]=Ar(e[n])?e[n](t,Gs):e[n],r),{})}function Hf(e){let t=[];return e.forEach(r=>{t=[...t,r];var n;let i=(n=r==null?void 0:r.plugins)!==null&&n!==void 0?n:[];i.length!==0&&i.forEach(o=>{o.__isOptionsFunction&&(o=o());var s;t=[...t,...Hf([(s=o==null?void 0:o.config)!==null&&s!==void 0?s:{}])]})}),t}function Bb(e){return[...e].reduceRight((r,n)=>Ar(n)?n({corePlugins:r}):(0,Eb.default)(n,r),Tb.default)}function Ub(e){return[...e].reduceRight((r,n)=>[...r,...n],[])}function qb(e){let t=[...Hf(e),{prefix:"",important:!1,separator:":",variantOrder:kb.default.variantOrder}];var r,n;return(0,Pb.normalizeConfig)((0,Vf.defaults)({theme:$b(Wb(Fb(t.map(i=>(r=i==null?void 0:i.theme)!==null&&r!==void 0?r:{})))),corePlugins:Bb(t.map(i=>i.corePlugins)),plugins:Ub(e.map(i=>(n=i==null?void 0:i.plugins)!==null&&n!==void 0?n:[]))},...t))}});var Xf={};Wr(Xf,{default:()=>zb});var zb,Qf=rr(()=>{zb={yellow:e=>e}});var ec=q(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});function Gb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Gb(Vs,{flagEnabled:()=>Hb,issueFlagNotices:()=>Yb,default:()=>Xb});var jb=Zf((Qf(),Dr(Xf))),Vb=Zf((hi(),Dr(pi)));function Zf(e){return e&&e.__esModule?e:{default:e}}var Kf={optimizeUniversalDefaults:!1},An={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function Hb(e,t){if(An.future.includes(t)){var r,n,i;return e.future==="all"||((i=(n=e==null||(r=e.future)===null||r===void 0?void 0:r[t])!==null&&n!==void 0?n:Kf[t])!==null&&i!==void 0?i:!1)}if(An.experimental.includes(t)){var o,s,a;return e.experimental==="all"||((a=(s=e==null||(o=e.experimental)===null||o===void 0?void 0:o[t])!==null&&s!==void 0?s:Kf[t])!==null&&a!==void 0?a:!1)}return!1}function Jf(e){if(e.experimental==="all")return An.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(r=>An.experimental.includes(r)&&e.experimental[r])}function Yb(e){if(process.env.JEST_WORKER_ID===void 0&&Jf(e).length>0){let t=Jf(e).map(r=>jb.default.yellow(r)).join(", ");Vb.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${t}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var Xb=An});var rc=q(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Object.defineProperty(Hs,"default",{enumerable:!0,get:()=>tc});var Qb=Jb(Ao()),Kb=ec();function Jb(e){return e&&e.__esModule?e:{default:e}}function tc(e){var t;let r=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[Qb.default]).slice().reverse().flatMap(o=>tc(typeof o=="function"?o():o)),n={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(n).filter(o=>(0,Kb.flagEnabled)(e,o)).map(o=>n[o]);return[e,...i,...r]}});var ic=q(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Object.defineProperty(Ys,"default",{enumerable:!0,get:()=>tv});var Zb=nc(Yf()),ev=nc(rc());function nc(e){return e&&e.__esModule?e:{default:e}}function tv(...e){let[,...t]=(0,ev.default)(e[0]);return(0,Zb.default)([...e,...t])}});var sc=q(($1,oc)=>{var Xs=ic();oc.exports=(Xs.__esModule?Xs:{default:Xs}).default});var Sv={};Wr(Sv,{default:()=>pa,init:()=>Ha});module.exports=Dr(Sv);var Ea=Pt(require("linebreak"),1);var $r=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qc=$r((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),zc=$r((e,t)=>{t.exports=["deg","grad","rad","turn"]}),Gc=$r((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),jc=$r((e,t)=>{t.exports=["Hz","kHz"]}),Vc=$r((e,t)=>{t.exports=["s","ms"]}),Hc=qc(),wa=zc(),Sa=Gc(),_a=jc(),Ta=Vc();function Ni(e){if(/\.\D?$/.test(e))throw new Error("The dot should be followed by a number");if(/^[+-]{2}/.test(e))throw new Error("Only one leading +/- is allowed");if(Yc(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=Mi(e),this.unit="%";return}var t=Qc(e);if(!t){this.type="number",this.value=Mi(e);return}this.type=Jc(t),this.value=Mi(e.substr(0,e.length-t.length)),this.unit=t}Ni.prototype.valueOf=function(){return this.value};Ni.prototype.toString=function(){return this.value+(this.unit||"")};function xt(e){return new Ni(e)}function Yc(e){var t=e.match(/\./g);return t?t.length:0}function Mi(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var Xc=[].concat(wa,_a,Hc,Sa,Ta);function Qc(e){var t=e.match(/\D+$/),r=t&&t[0];if(r&&Xc.indexOf(r)===-1)throw new Error("Invalid unit: "+r);return r}var Kc=Object.assign(Un(wa,"angle"),Un(_a,"frequency"),Un(Sa,"resolution"),Un(Ta,"time"));function Un(e,t){return Object.fromEntries(e.map(r=>[r,t]))}function Jc(e){return Kc[e]||"length"}function br(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function ka(e){return/^class\s/.test(e.toString())}function Di(e){return e&&e.$$typeof===Symbol.for("react.forward_ref")}function Oa(e){return typeof e=="function"||Di(e)}function Pa(e){return"dangerouslySetInnerHTML"in e}function Aa(e){let t=typeof e>"u"?[]:[].concat(e).flat(1/0),r=[];for(let n=0;n<t.length;n++){let i=t[n];typeof i>"u"||typeof i=="boolean"||i===null||(typeof i=="number"&&(i=String(i)),typeof i=="string"&&r.length&&typeof r[r.length-1]=="string"?r[r.length-1]+=i:r.push(i))}return r}function X(e,t,r,n,i=!1){if(typeof e=="number")return e;try{if(e=e.trim(),/[ /\(,]/.test(e))return;if(e===String(+e))return+e;let o=new xt(e);if(o.type==="length")switch(o.unit){case"em":return o.value*t;case"rem":return o.value*16;case"vw":return~~(o.value*n._viewportWidth/100);case"vh":return~~(o.value*n._viewportHeight/100);default:return o.value}else{if(o.type==="angle")return $i(e);if(o.type==="percentage"&&i)return o.value/100*r}}catch{}}function $i(e){let t=new xt(e);switch(t.unit){case"deg":return t.value;case"rad":return t.value*180/Math.PI;case"turn":return t.value*360;case"grad":return .9*t.value}}function Br(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function He(e,t,r,n){let i=t[e];if(typeof i>"u"){if(n&&typeof e<"u")throw new Error(`Invalid value for CSS property "${n}". Allowed values: ${Object.keys(t).map(o=>`"${o}"`).join(" | ")}. Received: "${e}".`);i=r}return i}var Fi,Wi,Ia=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e)),gr=new Map,Zc=500;function Ve(e,t,r){let n=`${t}:${r||""}:${e}`;if(gr.has(n))return gr.get(n);if(!Fi||!Wi){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");Fi=new Intl.Segmenter(r,{granularity:"word"}),Wi=new Intl.Segmenter(r,{granularity:"grapheme"})}let i;if(t==="grapheme")i=[...Wi.segment(e)].map(o=>o.segment);else{let o=[...Fi.segment(e)].map(u=>u.segment),s=[],a=0;for(;a<o.length;){let u=o[a];if(u=="\xA0"){let f=a===0?"":s.pop(),l=a===o.length-1?"":o[a+1];s.push(f+"\xA0"+l),a+=2}else s.push(u),a++}i=s}if(gr.size>=Zc){let o=gr.keys().next().value;gr.delete(o)}return gr.set(n,i),i}function M(e,t,r){let n="";for(let[i,o]of Object.entries(t))typeof o<"u"&&(n+=` ${i}="${o}"`);return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}/>`}function Ra(e=20){let t=new Map;function r(o){let s=t.get(o);if(s!==void 0)return t.delete(o),t.set(o,s),s}function n(o,s){if(t.has(o))t.delete(o);else if(t.size>=e){let a=t.keys().next().value;t.delete(a)}t.set(o,s)}function i(){t.clear()}return{set:n,get:r,clear:i}}function vr(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function qn(e){return typeof e=="string"}function Ca(e){return typeof e=="number"}function La(e){return typeof e>"u"}function Ft(e,t){if(typeof e=="number")return e;if(e.endsWith("%")){let r=parseFloat(e.slice(0,-1));if(isNaN(r)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${r}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number or a percentage value (e.g., "50%").`)}function Gt(e,t){if(typeof e=="number")return e;if(e==="auto")return"auto";if(e.endsWith("%")){let r=parseFloat(e.slice(0,-1));if(isNaN(r)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${r}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number, "auto", or a percentage value (e.g., "50%").`)}function Ma(e,t){if(t==="break-all")return{words:Ve(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:Ve(e,"word"),requiredBreaks:[]};let r=new Ea.default(e),n=0,i=r.nextBreak(),o=[],s=[!1];for(;i;){let a=e.slice(n,i.position);o.push(a),i.required?s.push(!0):s.push(!1),n=i.position,i=r.nextBreak()}return{words:o,requiredBreaks:s}}var Na=e=>e.replaceAll(/([A-Z])/g,(t,r)=>`-${r.toLowerCase()}`);function zn(e,t=","){let r=[],n=0,i=0;t=new RegExp(t);for(let o=0;o<e.length;o++)e[o]==="("?i++:e[o]===")"&&i--,i===0&&t.test(e[o])&&(r.push(e.slice(n,o).trim()),n=o+1);return r.push(e.slice(n).trim()),r}function Ha(e){return Promise.resolve().then(()=>(Xi(),Yi)).then(t=>t.init(e))}function jt(){return Promise.resolve().then(()=>(Xi(),Yi)).then(e=>e.getYoga())}var Ya=Symbol.for("react.fragment");var Hn=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;var ud=new Set([301,302,303,307,308]);function Qi(e){let t=e.split(".").map(o=>Number.parseInt(o,10));if(t.length!==4||t.some(o=>!Number.isInteger(o)||o<0||o>255))return!0;let[r,n,i]=t;return r===0||r===10||r===100&&n>=64&&n<=127||r===127||r===169&&n===254||r===172&&n>=16&&n<=31||r===192&&n===0&&i===0||r===192&&n===168||r===198&&(n===18||n===19)||r>=224}function ld(e){let t=e,r=t.indexOf("%");r!==-1&&(t=t.slice(0,r));let n=t.split("::");if(n.length>2)return null;let i=s=>{if(s==="")return[];let a=[],u=s.split(":");for(let f=0;f<u.length;f++){let l=u[f];if(l.includes(".")){if(f!==u.length-1||!Hn.test(l))return null;let[p,h,m,b]=l.split(".").map(y=>Number.parseInt(y,10));if([p,h,m,b].some(y=>!Number.isInteger(y)||y<0||y>255))return null;a.push(p<<8|h,m<<8|b);continue}if(!/^[0-9a-f]{1,4}$/.test(l))return null;a.push(Number.parseInt(l,16))}return a},o=i(n[0]);if(o===null)return null;if(n.length===2){let s=i(n[1]);if(s===null)return null;let a=8-o.length-s.length;return a<0?null:[...o,...new Array(a).fill(0),...s]}return o.length===8?o:null}function fd(e){let t=a=>e.slice(0,a).every(u=>u===0);if(!(t(6)||t(5)&&e[5]===65535||t(4)&&e[4]===65535&&e[5]===0||e[0]===100&&e[1]===65435&&e[2]===0&&e[3]===0&&e[4]===0&&e[5]===0||e[0]===100&&e[1]===65435&&e[2]===1))return null;let n=e[6]>>8&255,i=e[6]&255,o=e[7]>>8&255,s=e[7]&255;return`${n}.${i}.${o}.${s}`}function Qa(e){let t=ld(e);if(t===null)return!0;let r=fd(t);return r?Qi(r):!!(t.every(n=>n===0)||t.slice(0,7).every(n=>n===0)&&t[7]===1||(t[0]&65024)===64512||(t[0]&65472)===65152||(t[0]&65472)===65216||(t[0]&65280)===65280||t[0]===8193&&t[1]===3512)}function cd(e){let t=e.toLowerCase().replace(/^\[|\]$/g,"");return Hn.test(t)?Qi(t):t.includes(":")?Qa(t):!0}function Ka(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!=="http:"&&t.protocol!=="https:")return null;let r=t.hostname.toLowerCase().replace(/\.+$/,"");return r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1)),r?{url:t,host:r}:null}function dd(e){let t=Ka(e);if(!t)return!0;let{host:r}=t;return r==="localhost"||r.endsWith(".localhost")||r==="local"||r.endsWith(".local")||r==="internal"||r.endsWith(".internal")?!0:Hn.test(r)?Qi(r):r.includes(":")?Qa(r):!1}function Vn(e){return new Error(`Image source resolves to a blocked address (SSRF protection): ${e}`)}function pd(e){if(dd(e))throw Vn(e)}var Sr;async function hd(){if(Sr!==void 0)return Sr;if(typeof window<"u")return Sr=null,null;try{let t=await new Function("s","return import(s)")("node:dns/promises");return Sr=(r,n)=>t.lookup(r,n),Sr}catch{return Sr=null,null}}async function md(e,t){pd(e);let r=Ka(e);if(!r)throw Vn(e);let{host:n}=r;if(Hn.test(n)||n.includes(":"))return;let i=t&&"lookup"in t?t.lookup:await hd();if(!i)return;let o;try{o=await i(n,{all:!0})}catch{throw new Error(`Can't resolve image host: ${e}`)}if(o.length===0)throw new Error(`Can't resolve image host: ${e}`);for(let{address:s}of o)if(cd(s))throw Vn(e)}async function Xa(e){try{e.body&&typeof e.body.cancel=="function"?await e.body.cancel():typeof e.arrayBuffer=="function"&&await e.arrayBuffer()}catch{}}async function Ja(e,t){let r=(t==null?void 0:t.fetch)??globalThis.fetch,n=e;for(let i=0;i<=10;i++){await md(n,t);let o=await r(n,{redirect:"manual"});if(o.type==="opaqueredirect")throw await Xa(o),Vn(n);let s=o.headers.get("location");if(ud.has(o.status)&&s){await Xa(o),n=new URL(s,n).href;continue}return o}throw new Error(`Image source redirected too many times (SSRF protection): ${e}`)}var gd="image/avif",Yn="image/webp",Xn="image/apng",Qn="image/png",Kn="image/jpeg",Jn="image/gif",Ki="image/svg+xml";function tu(e){let t=new DataView(e),r=4,n=t.byteLength;for(;r<n;){let i=t.getUint16(r,!1);if(i>n)throw new TypeError("Invalid JPEG");let o=t.getUint8(i+1+r);if(o===192||o===193||o===194)return[t.getUint16(i+7+r,!1),t.getUint16(i+5+r,!1)];r+=i+2}throw new TypeError("Invalid JPEG")}function ru(e){let t=new DataView(e),r=new Uint8Array(e);if(t.byteLength<20||t.getUint32(0)!==1380533830||t.getUint32(8)!==1464156752)throw new TypeError("Invalid WebP");let n=t.getUint32(4,!0)+8;if(n<20||n>t.byteLength)throw new TypeError("Invalid WebP");let i=12;for(;i+8<=n;){let o=t.getUint32(i),s=t.getUint32(i+4,!0),a=i+8,u=a+s;if(u>n)throw new TypeError("Invalid WebP");if(o===1448097824){if(s<10||r[a+3]!==157||r[a+4]!==1||r[a+5]!==42)throw new TypeError("Invalid WebP");let f=t.getUint16(a+6,!0)&16383,l=t.getUint16(a+8,!0)&16383;if(!f||!l)throw new TypeError("Invalid WebP");return[f,l]}if(o===1448097868){if(s<5||r[a]!==47)throw new TypeError("Invalid WebP");let f=t.getUint32(a+1,!0);return[(f&16383)+1,(f>>>14&16383)+1]}if(o===1448097880){if(s<10)throw new TypeError("Invalid WebP");return[r[a+4]+(r[a+5]<<8)+(r[a+6]<<16)+1,r[a+7]+(r[a+8]<<8)+(r[a+9]<<16)+1]}i=u+s%2}throw new TypeError("Invalid WebP")}function nu(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function iu(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var At=Ra(500),qr=new Map,bd=[Qn,Xn,Kn,Jn,Ki,Yn],vd=/<svg[^>]*>/i,yd=/viewBox=['"]([^'"]+)['"]/,xd=/width=['"](\d*\.?\d+)['"]/,wd=/height=['"](\d*\.?\d+)['"]/;function Sd(e){let t=new Uint8Array(e),r=32768,n="";for(let i=0;i<t.length;i+=r){let o=t.subarray(i,Math.min(i+r,t.length));n+=String.fromCharCode(...o)}return btoa(n)}function _d(e){let t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer}function Za(e,t){let r=t.match(vd);if(!r)throw new Error(`Failed to parse SVG from ${e}`);let n=r[0],i=yd.exec(n),o=xd.exec(n),s=wd.exec(n),a=i?vr(i[1]):null;if(!a&&(!o||!s))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let u=a?[a[2],a[3]]:[+o[1],+s[1]],f=u[0]/u[1];return o&&s?[+o[1],+s[1]]:o?[+o[1],+o[1]/f]:s?[+s[1]*f,+s[1]]:[u[0],u[1]]}function eu(e){let t,r=Td(new Uint8Array(e));switch(r){case Qn:case Xn:t=iu(e);break;case Jn:t=nu(e);break;case Kn:t=tu(e);break;case Yn:t=ru(e);break}if(!bd.includes(r))throw new Error(`Unsupported image type: ${r||"unknown"}`);return[`data:${r};base64,${Sd(e)}`,t]}async function _r(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[o,s]=eu(e);return[o,...s]}if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),typeof window>"u"&&!e.startsWith("http")&&!e.startsWith("data:"))throw new Error(`Image source must be an absolute URL: ${e}`);if(e.startsWith("data:")){let o;try{o=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:s,encodingType:a,dataString:u}=o;if(s===Ki){let f=a==="base64"?atob(u):decodeURIComponent(u.replace(/ /g,"%20")),l=a==="base64"?e:`data:image/svg+xml;base64,${btoa(f)}`,p=Za(e,f);return At.set(e,[l,...p]),[l,...p]}else if(a==="base64"){let f,l=_d(u);switch(s){case Qn:case Xn:f=iu(l);break;case Jn:f=nu(l);break;case Kn:f=tu(l);break;case Yn:f=ru(l);break}return At.set(e,[e,...f]),[e,...f]}else return console.warn("Image data URI resolved without size:"+e),At.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(qr.has(e))return qr.get(e);let t=At.get(e);if(t)return t;let r=e,i=(typeof window>"u"?()=>Ja(r):()=>fetch(r))().then(o=>{let s=o.headers.get("content-type");return s==="image/svg+xml"||s==="application/svg+xml"?o.text():o.arrayBuffer()}).then(o=>{if(typeof o=="string")try{let u=`data:image/svg+xml;base64,${btoa(o)}`,f=Za(r,o);return[u,...f]}catch(u){throw new Error(`Failed to parse SVG image: ${u.message}`)}let[s,a]=eu(o);return[s,...a]}).then(o=>(At.set(r,o),o)).catch(o=>{if(o instanceof Error&&o.message.includes("SSRF protection"))throw o;return console.error(`Can't load image ${r}: `+o.message),At.set(r,[]),[]});return qr.set(r,i),i}function Td(e){return[255,216,255].every((t,r)=>e[r]===t)?Kn:[137,80,78,71,13,10,26,10].every((t,r)=>e[r]===t)?Ed(e)?Xn:Qn:[71,73,70,56].every((t,r)=>e[r]===t)?Jn:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,r)=>!t||e[r]===t)?Yn:[60,63,120,109,108].every((t,r)=>e[r]===t)?Ki:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,r)=>!t||e[r]===t)?gd:null}function Ed(e){let t=new DataView(e.buffer),r,n,i=8,o=!1;for(;!o&&r!=="IEND"&&i<e.length;){n=t.getUint32(i);let s=e.subarray(i+4,i+8);r=String.fromCharCode(...s),o=r==="acTL",i+=12+n}return o}var Ji={accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",href:"href",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink"},kd=/[\r\n%#()<>?[\\\]^`{|}"']/g;function Zn(e,t){if(!e)return"";if(Array.isArray(e))return e.map(f=>Zn(f,t)).join("");if(typeof e!="object")return String(e);let r=e.type;if(r==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:n,style:i,...o}=e.props||{},s=(i==null?void 0:i.color)||t,a=`${Object.entries(o).map(([f,l])=>(typeof l=="string"&&l.toLowerCase()==="currentcolor"&&(l=s),(f==="href"||f==="xlinkHref")&&r==="image"?` ${Ji[f]||f}="${At.get(l)[0]}"`:` ${Ji[f]||f}="${l}"`)).join("")}`,u=i?` style="${Object.entries(i).map(([f,l])=>`${Na(f)}:${l}`).join(";")}"`:"";return r===Ya?Zn(n,s):`<${r}${a}${u}>${Zn(n,s)}</${r}>`}async function ou(e){let t=new Set,r=n=>{if(n&&br(n)){if(Array.isArray(n)){n.forEach(i=>r(i));return}else if(typeof n=="object")if(n.type==="image"){let i=n.props.href||n.props.xlinkHref;i&&(t.has(i)||t.add(i))}else n.type==="img"&&(t.has(n.props.src)||t.add(n.props.src));Array.isArray(n.props.children)?n.props.children.map(i=>r(i)):r(n.props.children)}};return r(e),Promise.all(Array.from(t).map(n=>_r(n)))}async function su(e,t){let{viewBox:r,viewbox:n,width:i,height:o,className:s,style:a,children:u,...f}=e.props||{};r||=n,f.xmlns="http://www.w3.org/2000/svg";let l=(a==null?void 0:a.color)||t,p=vr(r),h=p?p[3]/p[2]:null;return i=i||h&&o?o/h:null,o=o||h&&i?i*h:null,f.width=i,f.height=o,r&&(f.viewBox=r),`data:image/svg+xml;utf8,${`<svg ${Object.entries(f).map(([m,b])=>(typeof b=="string"&&b.toLowerCase()==="currentcolor"&&(b=l),` ${Ji[m]||m}="${b}"`)).join("")}>${Zn(u,l)}</svg>`.replace(kd,encodeURIComponent)}`}var at="flex",au={p:{display:at,marginTop:"1em",marginBottom:"1em"},div:{display:at},blockquote:{display:at,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:at,textAlign:"center"},hr:{display:at,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:at,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:at,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:at,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:at,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:at,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:at,fontSize:"0.67em",marginTop:"2.33em",marginBottom:"2.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},u:{textDecoration:"underline"},strong:{fontWeight:"bold"},b:{fontWeight:"bold"},i:{fontStyle:"italic"},em:{fontStyle:"italic"},code:{fontFamily:"monospace"},kbd:{fontFamily:"monospace"},pre:{display:at,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var Od=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textIndent","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","textDecorationSkipInk","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath","_inheritedBackgroundClipTextHasBackground"]);function Zi(e){let t={};for(let r in e)(Od.has(r)||r.startsWith("--"))&&(t[r]=e[r]);return t}var St=require("css-to-react-native"),gu=require("css-background-parser"),bu=require("css-box-shadow"),vu=Pt(require("parse-css-color"),1);var uu=Pt(require("postcss-value-parser"),1);function Pd(e,t){try{let r=new xt(e);switch(r.unit){case"px":return{absolute:r.value};case"em":return{absolute:r.value*t};case"rem":return{absolute:r.value*16};case"%":return{relative:r.value};default:return{}}}catch{return{}}}function eo(e,t,r){switch(e){case"top":return{yRelative:0};case"left":return{xRelative:0};case"right":return{xRelative:100};case"bottom":return{yRelative:100};case"center":return{};default:{let n=Pd(e,t);return n.absolute?{[r?"xAbsolute":"yAbsolute"]:n.absolute}:n.relative?{[r?"xRelative":"yRelative"]:n.relative}:{}}}}function to(e,t){if(typeof e=="number")return{xAbsolute:e};let r;try{r=(0,uu.default)(e).nodes.filter(n=>n.type==="word").map(n=>n.value)}catch{return{}}return r.length===1?eo(r[0],t,!0):r.length===2?((r[0]==="top"||r[0]==="bottom"||r[1]==="left"||r[1]==="right")&&r.reverse(),{...eo(r[0],t,!0),...eo(r[1],t,!1)}):{}}var lu=require("css-to-react-native");function zr(e,t){let r=(0,lu.getPropertyName)(`mask-${t}`);return e[r]||e[`WebkitM${r.substring(1)}`]}function fu(e){let t=e.maskImage||e.WebkitMaskImage,r={position:zr(e,"position")||"0% 0%",size:zr(e,"size")||"100% 100%",repeat:zr(e,"repeat")||"repeat",origin:zr(e,"origin")||"border-box",clip:zr(e,"origin")||"border-box"};return zn(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...r}))}var Ad={round:1,squircle:2,square:1/0,bevel:0,scoop:-1,notch:-1/0};function ro(e){let t=e.trim().toLowerCase(),r=Ad[t];if(typeof r<"u")return r;let n=t.match(/^superellipse\(\s*(-?infinity|[-+]?(?:\d*\.)?\d+(?:e[-+]?\d+)?)\s*\)$/);if(!n)throw new Error('Invalid corner shape value: "'+e+'".');if(n[1]==="infinity")return 1/0;if(n[1]==="-infinity")return-1/0;let i=Number(n[1]);if(!Number.isFinite(i))throw new Error('Invalid corner shape value: "'+e+'".');return i}function ei(e,t=4){let r=e.match(/superellipse\([^)]*\)|[^\s]+/gi)||[];if(r.length<1||r.length>t)throw new Error('Invalid corner shape value: "'+e+'".');for(let n of r)ro(n);return r}var no=Pt(require("postcss-value-parser"),1);function cu(e){let t={},r={};for(let n in e)n.startsWith("--")?t[n]=String(e[n]):r[n]=e[n];return{variables:t,remainingStyle:r}}function du(e,t){return{...e,...t}}function jr(e,t,r=new Set){if(typeof e!="string"||!e.includes("var("))return e;try{let n=(0,no.default)(e),i=!1;if(n.walk(o=>{if(o.type==="function"&&o.value==="var"){i=!0;let s=Id(o);if(!s)return;let{varName:a,fallback:u}=s;if(r.has(a)){console.warn(`Circular reference detected for CSS variable: ${a}`),u!==void 0?Gr(o,u):Gr(o,"initial");return}let f=t[a];if(f!==void 0){let l=new Set(r);l.add(a);let p=jr(f,t,l);Gr(o,String(p))}else if(u!==void 0){let l=jr(u,t,r);Gr(o,String(l))}else Gr(o,"initial")}}),i)return n.toString()}catch{console.warn(`Failed to parse CSS value for variable resolution: ${e}`)}return e}function Id(e){if(!e.nodes||e.nodes.length===0)return null;let t,r=-1;for(let i=0;i<e.nodes.length;i++){let o=e.nodes[i];if(o.type==="word"&&!t)t=o;else if(o.type==="div"&&o.value===","){r=i;break}}if(!t||t.type!=="word")return null;let n=t.value.trim();if(r!==-1&&r<e.nodes.length-1){let i=e.nodes.slice(r+1),o=no.default.stringify(i).trim();return{varName:n,fallback:o}}return{varName:n}}function Gr(e,t){e.type="word",e.value=t,delete e.nodes}var Rd=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),Cd=new Set(["lineHeight"]);function Ld(e,t,r,n){return e==="textDecoration"&&!r.includes(t.textDecorationColor)&&(t.textDecorationColor=n),t}function nr(e,t){let r=Number(t);return isNaN(r)?t:Rd.has(e)?Cd.has(e)?r:String(t):r+"px"}function Md(e,t,r){if(e==="zIndex")return console.warn("`z-index` is currently not supported."),{[e]:t};if(e==="lineHeight")return{lineHeight:nr(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(i=>i.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[i,o]=t.split("/"),s=(0,St.getStylesForProperty)(e,i,!0),a=(0,St.getStylesForProperty)(e,o,!0);for(let u in s)a[u]=nr(e,s[u])+" "+nr(e,a[u]);return a}if(e==="cornerShape"){if(typeof t!="string")throw new Error('Invalid `cornerShape` value: "'+t+'".');let i=ei(t),o=i[0],s=i[1]||o,a=i[2]||o,u=i[3]||s;return{cornerTopLeftShape:o,cornerTopRightShape:s,cornerBottomRightShape:a,cornerBottomLeftShape:u}}if(/^corner(TopLeft|TopRight|BottomRight|BottomLeft)Shape$/.test(e)){if(typeof t!="string"||ei(t,1).length!==1)throw new Error("Invalid `"+e+'` value: "'+t+'".');return{[e]:t}}let n=e.match(/^corner(Top|Right|Bottom|Left)Shape$/);if(n){if(typeof t!="string")throw new Error("Invalid `"+e+'` value: "'+t+'".');let i=ei(t,2),o=i[0],s=i[1]||o,a={Top:["cornerTopLeftShape","cornerTopRightShape"],Right:["cornerTopRightShape","cornerBottomRightShape"],Bottom:["cornerBottomLeftShape","cornerBottomRightShape"],Left:["cornerTopLeftShape","cornerBottomLeftShape"]}[n[1]];return{[a[0]]:o,[a[1]]:s}}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let i=(0,St.getStylesForProperty)("border",t,!0);i.borderWidth===1&&!String(t).includes("1px")&&(i.borderWidth=3),i.borderColor==="black"&&!String(t).includes("black")&&(i.borderColor=r);let o={Width:nr(e+"Width",i.borderWidth),Style:He(i.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:i.borderColor},s={};for(let a of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let u in o)s["border"+a+u]=o[u];return s}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?(0,bu.parse)(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let i={},o=t.replace(/(-?[\d.]+%)/g,(a,u)=>{let f=~~(Math.random()*1e9);return i[f]=u,f+"px"}),s=(0,St.getStylesForProperty)("transform",o,!0);for(let a of s.transform)for(let u in a)i[a[u]]&&(a[u]=i[a[u]]);return s}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient|repeating-radial-gradient)\(/.test(t)?(0,St.getStylesForProperty)("backgroundImage",t,!0):(0,St.getStylesForProperty)("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let i={},o=zn(t);for(let s of o){let a=(0,St.getStylesForProperty)("textShadow",s,!0);for(let u in a)i[u]?i[u].push(a[u]):i[u]=[a[u]]}return i}if(e==="WebkitTextStroke"){t=t.toString().trim();let i=t.split(" ");if(i.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:nr(e,i[0]),WebkitTextStrokeColor:nr(e,i[1])}}if(e==="textDecorationSkipInk"){let i=t.toString().trim().toLowerCase();if(!["auto","none","all"].includes(i))throw new Error("Invalid `textDecorationSkipInk` value.");return{textDecorationSkipInk:i}}}function pu(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var hu=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function yu(e){if(typeof e=="string"&&hu.test(e.trim()))return e.trim().replace(hu,(t,r,n,i,o)=>`rgba(${r}, ${n}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=yu(e[t]);return e}return e}function ti(e,t){let r={},n={};for(let u in t)u.startsWith("--")&&(n[u]=String(t[u]));let i={},o=e;if(e){let{variables:u,remainingStyle:f}=cu(e);i=u,o=f}let s=du(n,i);for(let u in s)r[u]=s[u];if(o){let u=o.color?jr(o.color,s):void 0,f=Fd(u,t.color);r.color=f;for(let l in o){if(l.startsWith("_")){r[l]=o[l];continue}if(l==="color")continue;let p=(0,St.getPropertyName)(l),h=jr(o[l],s),m=Dd(h,f);try{let b=Md(p,m,f)||Ld(p,(0,St.getStylesForProperty)(p,nr(p,m),!0),m,f);Object.assign(r,b)}catch(b){throw new Error(b.message+(b.message.includes(m)?`
|
|
5
|
+
`+pu(p):`
|
|
6
|
+
in CSS rule \`${p}: ${m}\`.${pu(p)}`))}}}if(r.backgroundImage){let{backgrounds:u}=(0,gu.parseElementStyle)(r);r.backgroundImage=u}(r.maskImage||r.WebkitMaskImage)&&(r.maskImage=fu(r));let a=Nd(r.fontSize,t.fontSize);typeof r.fontSize<"u"&&(r.fontSize=a),r.transformOrigin&&(r.transformOrigin=to(r.transformOrigin,a));for(let u in r){let f=r[u];if(u==="lineHeight")typeof f=="string"&&f!=="normal"&&(f=r[u]=X(f,a,a,t,!0)/a);else{if(typeof f=="string"){let l=X(f,a,a,t);typeof l<"u"&&(r[u]=l),f=r[u]}if(typeof f=="string"||typeof f=="object"){let l=yu(f);l&&(r[u]=l),f=r[u]}}if(u==="opacity"&&typeof f=="number"&&(r.opacity=f*t.opacity),u==="transform"){let l=f;for(let p of l){let h=Object.keys(p)[0],m=p[h],b=typeof m=="string"?X(m,a,a,t)??m:m;p[h]=b}}if(u==="textShadowRadius"){let l=f;r.textShadowRadius=l.map(p=>X(p,a,0,t,!1))}if(u==="textShadowOffset"){let l=f;r.textShadowOffset=l.map(({height:p,width:h})=>({height:X(p,a,0,t,!1),width:X(h,a,0,t,!1)}))}}return r}function Nd(e,t){if(typeof e=="number")return e;try{let r=new xt(e);switch(r.unit){case"em":return r.value*t;case"rem":return r.value*16}}catch{return t}}function mu(e){if(e.startsWith("hsl")){let t=(0,vu.default)(e),[r,n,i]=t.values;return`hsl(${[r,`${n}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function Fd(e,t){return e&&e.toLowerCase()!=="currentcolor"?mu(e):mu(t)}function Wd(e,t){return e.replace(/currentcolor/gi,t)}function Dd(e,t){return qn(e)&&(e=Wd(e,t)),e}async function io(e,t,r,n,i){let o=await jt(),s=Object.assign({},r,ti(au[t],r),ti(n,r));if(t==="img"){let[a,u,f]=await _r(i.src);if(u===void 0&&f===void 0){if(i.width===void 0||i.height===void 0)throw new Error("Image size cannot be determined. Please provide the width and height of the image.");u=parseInt(i.width),f=parseInt(i.height)}let l=f/u,p=(s.borderLeftWidth||0)+(s.borderRightWidth||0)+(s.paddingLeft||0)+(s.paddingRight||0),h=(s.borderTopWidth||0)+(s.borderBottomWidth||0)+(s.paddingTop||0)+(s.paddingBottom||0),m=s.width||i.width,b=s.height||i.height,y=typeof m=="number"&&typeof b=="number";y&&(m-=p,b-=h),m===void 0&&b===void 0?(m="100%",e.setAspectRatio(1/l)):m===void 0?typeof b=="number"?m=b/l:e.setAspectRatio(1/l):b===void 0&&(typeof m=="number"?b=m*l:e.setAspectRatio(1/l)),s.width=y?m+p:m,s.height=y?b+h:b,s.__src=a,s.__naturalWidth=u,s.__naturalHeight=f}if(t==="svg"){let a=i.viewBox||i.viewbox,u=vr(a),f=u?u[3]/u[2]:null,{width:l,height:p}=i;typeof l>"u"&&p?f==null?l=0:typeof p=="string"&&p.endsWith("%")?l=parseInt(p)/f+"%":(p=X(p,r.fontSize,1,r),l=p/f):typeof p>"u"&&l?f==null?l=0:typeof l=="string"&&l.endsWith("%")?p=parseInt(l)*f+"%":(l=X(l,r.fontSize,1,r),p=l*f):(typeof l<"u"&&(l=X(l,r.fontSize,1,r)||l),typeof p<"u"&&(p=X(p,r.fontSize,1,r)||p),l||=u==null?void 0:u[2],p||=u==null?void 0:u[3]),!s.width&&l&&(s.width=l),!s.height&&p&&(s.height=p)}return e.setDisplay(He(s.display,{flex:o.DISPLAY_FLEX,block:o.DISPLAY_FLEX,contents:o.DISPLAY_CONTENTS,none:o.DISPLAY_NONE,"-webkit-box":o.DISPLAY_FLEX},o.DISPLAY_FLEX,"display")),e.setAlignContent(He(s.alignContent,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,"space-between":o.ALIGN_SPACE_BETWEEN,"space-around":o.ALIGN_SPACE_AROUND,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_AUTO,"alignContent")),e.setAlignItems(He(s.alignItems,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_STRETCH,"alignItems")),e.setAlignSelf(He(s.alignSelf,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_AUTO,"alignSelf")),e.setJustifyContent(He(s.justifyContent,{center:o.JUSTIFY_CENTER,"flex-start":o.JUSTIFY_FLEX_START,"flex-end":o.JUSTIFY_FLEX_END,"space-between":o.JUSTIFY_SPACE_BETWEEN,"space-around":o.JUSTIFY_SPACE_AROUND},o.JUSTIFY_FLEX_START,"justifyContent")),e.setFlexDirection(He(s.flexDirection,{row:o.FLEX_DIRECTION_ROW,column:o.FLEX_DIRECTION_COLUMN,"row-reverse":o.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":o.FLEX_DIRECTION_COLUMN_REVERSE},o.FLEX_DIRECTION_ROW,"flexDirection")),e.setFlexWrap(He(s.flexWrap,{wrap:o.WRAP_WRAP,nowrap:o.WRAP_NO_WRAP,"wrap-reverse":o.WRAP_WRAP_REVERSE},o.WRAP_NO_WRAP,"flexWrap")),typeof s.gap<"u"&&e.setGap(o.GUTTER_ALL,s.gap),typeof s.rowGap<"u"&&e.setGap(o.GUTTER_ROW,s.rowGap),typeof s.columnGap<"u"&&e.setGap(o.GUTTER_COLUMN,s.columnGap),typeof s.flexBasis<"u"&&e.setFlexBasis(Gt(s.flexBasis,"flexBasis")),e.setFlexGrow(typeof s.flexGrow>"u"?0:s.flexGrow),e.setFlexShrink(typeof s.flexShrink>"u"?0:s.flexShrink),typeof s.maxHeight<"u"&&e.setMaxHeight(Ft(s.maxHeight,"maxHeight")),typeof s.maxWidth<"u"&&e.setMaxWidth(Ft(s.maxWidth,"maxWidth")),typeof s.minHeight<"u"&&e.setMinHeight(Ft(s.minHeight,"minHeight")),typeof s.minWidth<"u"&&e.setMinWidth(Ft(s.minWidth,"minWidth")),e.setOverflow(He(s.overflow,{visible:o.OVERFLOW_VISIBLE,hidden:o.OVERFLOW_HIDDEN},o.OVERFLOW_VISIBLE,"overflow")),e.setMargin(o.EDGE_TOP,Gt(s.marginTop||0)),e.setMargin(o.EDGE_BOTTOM,Gt(s.marginBottom||0)),e.setMargin(o.EDGE_LEFT,Gt(s.marginLeft||0)),e.setMargin(o.EDGE_RIGHT,Gt(s.marginRight||0)),e.setBorder(o.EDGE_TOP,s.borderTopWidth||0),e.setBorder(o.EDGE_BOTTOM,s.borderBottomWidth||0),e.setBorder(o.EDGE_LEFT,s.borderLeftWidth||0),e.setBorder(o.EDGE_RIGHT,s.borderRightWidth||0),e.setPadding(o.EDGE_TOP,s.paddingTop||0),e.setPadding(o.EDGE_BOTTOM,s.paddingBottom||0),e.setPadding(o.EDGE_LEFT,s.paddingLeft||0),e.setPadding(o.EDGE_RIGHT,s.paddingRight||0),e.setBoxSizing(He(s.boxSizing,{"border-box":o.BOX_SIZING_BORDER_BOX,"content-box":o.BOX_SIZING_CONTENT_BOX},o.BOX_SIZING_BORDER_BOX,"boxSizing")),e.setPositionType(He(s.position,{absolute:o.POSITION_TYPE_ABSOLUTE,relative:o.POSITION_TYPE_RELATIVE,static:o.POSITION_TYPE_STATIC},o.POSITION_TYPE_RELATIVE,"position")),typeof s.top<"u"&&e.setPosition(o.EDGE_TOP,Ft(s.top,"top")),typeof s.bottom<"u"&&e.setPosition(o.EDGE_BOTTOM,Ft(s.bottom,"bottom")),typeof s.left<"u"&&e.setPosition(o.EDGE_LEFT,Ft(s.left,"left")),typeof s.right<"u"&&e.setPosition(o.EDGE_RIGHT,Ft(s.right,"right")),typeof s.height<"u"?e.setHeight(Gt(s.height,"height")):e.setHeightAuto(),typeof s.width<"u"?e.setWidth(Gt(s.width,"width")):e.setWidthAuto(),[s,Zi(s)]}var oo=Pt(require("escape-html"),1);var xu=[1,0,0,1,0,0];function $d(e,t,r){let n=[...xu];for(let i of e){let o=Object.keys(i)[0],s=i[o];if(typeof s=="string")if(o==="translateX")s=parseFloat(s)/100*t,i[o]=s;else if(o==="translateY")s=parseFloat(s)/100*r,i[o]=s;else throw new Error(`Invalid transform: "${o}: ${s}".`);let a=s,u=[...xu];switch(o){case"translateX":u[4]=a;break;case"translateY":u[5]=a;break;case"scale":u[0]=a,u[3]=a;break;case"scaleX":u[0]=a;break;case"scaleY":u[3]=a;break;case"rotate":{let f=a*Math.PI/180,l=Math.cos(f),p=Math.sin(f);u[0]=l,u[1]=p,u[2]=-p,u[3]=l;break}case"skewX":u[2]=Math.tan(a*Math.PI/180);break;case"skewY":u[1]=Math.tan(a*Math.PI/180);break}n=Br(u,n)}e.splice(0,e.length),e.push(...n),e.__resolved=!0}function Vr({left:e,top:t,width:r,height:n},i,o,s){let a;i.__resolved||$d(i,r,n);let u=i;if(o)a=u;else{let f=(s==null?void 0:s.xAbsolute)??((s==null?void 0:s.xRelative)??50)*r/100,l=(s==null?void 0:s.yAbsolute)??((s==null?void 0:s.yRelative)??50)*n/100,p=e+f,h=t+l;a=Br([1,0,0,1,p,h],Br(u,[1,0,0,1,-p,-h])),u.__parent&&(a=Br(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(f=>f.toFixed(2)).join(",")})`}function wu({left:e,top:t,width:r,height:n,isInheritingTransform:i},o){let s="",a=1;return o.transform&&(s=Vr({left:e,top:t,width:r,height:n},o.transform,i,o.transformOrigin)),o.opacity!==void 0&&(a=+o.opacity),{matrix:s,opacity:a}}function so({id:e,content:t,filter:r,left:n,top:i,width:o,height:s,matrix:a,opacity:u,image:f,clipPathId:l,debug:p,shape:h,decorationShape:m},b){let y="";if(p&&(y=M("rect",{x:n,y:i-s,width:o,height:s,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0})),f){let T={href:f,x:n,y:i,width:o,height:s,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0,style:b.filter?`filter:${b.filter}`:void 0};return[(r?`${r}<g filter="url(#satori_s-${e})">`:"")+M("image",{...T,opacity:u!==1?u:void 0})+(m||"")+(r?"</g>":"")+y,""]}let S={x:n,y:i,width:o,height:s,"font-weight":b.fontWeight,"font-style":b.fontStyle,"font-size":b.fontSize,"font-family":b.fontFamily,"letter-spacing":b.letterSpacing||void 0,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0,style:b.filter?`filter:${b.filter}`:void 0,"stroke-width":b.WebkitTextStrokeWidth?`${b.WebkitTextStrokeWidth}px`:void 0,stroke:b.WebkitTextStrokeWidth?b.WebkitTextStrokeColor:void 0,"stroke-linejoin":b.WebkitTextStrokeWidth?"round":void 0,"paint-order":b.WebkitTextStrokeWidth?"stroke":void 0};return[(r?`${r}<g filter="url(#satori_s-${e})">`:"")+M("text",{...S,fill:b.color,opacity:u!==1?u:void 0},(0,oo.default)(t))+(m||"")+(r?"</g>":"")+y,h?M("text",S,(0,oo.default)(t)):""]}function Bd(e,t,r){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(n,i,o,s){return i+(parseFloat(o)+t)+","+(parseFloat(s)+r)})}var ri=1.1;function Su({id:e,width:t,height:r},n,i=!1){if(!n.shadowColor||!n.shadowOffset||typeof n.shadowRadius>"u")return"";let o=n.shadowColor.length,s="",a="",u=0,f=t,l=0,p=r;for(let h=0;h<o;h++){let m=n.shadowRadius[h]*n.shadowRadius[h]/4;if(u=Math.min(n.shadowOffset[h].width-m,u),f=Math.max(n.shadowOffset[h].width+m+t,f),l=Math.min(n.shadowOffset[h].height-m,l),p=Math.max(n.shadowOffset[h].height+m+r,p),i){let b=`satori_s-${e}-result-${h}`;s+=M("feGaussianBlur",{in:"SourceAlpha",stdDeviation:n.shadowRadius[h]/2,result:`${b}-blur`})+M("feOffset",{in:`${b}-blur`,dx:n.shadowOffset[h].width,dy:n.shadowOffset[h].height,result:`${b}-offset`})+M("feFlood",{"flood-color":n.shadowColor[h],"flood-opacity":1,result:`${b}-color`})+M("feComposite",{in:`${b}-color`,in2:`${b}-offset`,operator:"in",result:o>1?b:void 0})}else s+=M("feDropShadow",{dx:n.shadowOffset[h].width,dy:n.shadowOffset[h].height,stdDeviation:n.shadowRadius[h]/2,"flood-color":n.shadowColor[h],"flood-opacity":1,...o>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${h}`}:{}});o>1&&(a=M("feMergeNode",{in:`satori_s-${e}-result-${h}`})+a)}return M("filter",{id:`satori_s-${e}`,x:(u/t*100*ri).toFixed(2)+"%",y:(l/r*100*ri).toFixed(2)+"%",width:((f-u)/t*100*ri).toFixed(2)+"%",height:((p-l)/r*100*ri).toFixed(2)+"%"},s+(a?M("feMerge",{},a):""))}function _u({width:e,height:t,shape:r,opacity:n,id:i},o){if(!o.boxShadow)return null;let s="",a="";for(let u=o.boxShadow.length-1;u>=0;u--){let f="",l=o.boxShadow[u];l.spreadRadius&&l.inset&&(l.spreadRadius=-l.spreadRadius);let p=l.blurRadius*l.blurRadius/4+(l.spreadRadius||0),h=Math.min(-p-(l.inset?l.offsetX:0),0),m=Math.max(p+e-(l.inset?l.offsetX:0),e),b=Math.min(-p-(l.inset?l.offsetY:0),0),y=Math.max(p+t-(l.inset?l.offsetY:0),t),S=`satori_s-${i}-${u}`,T=`satori_ms-${i}-${u}`,P=l.spreadRadius?r.replace('stroke-width="0"',`stroke-width="${l.spreadRadius*2}"`):r;f+=M("mask",{id:T,maskUnits:"userSpaceOnUse"},M("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:l.inset?"#000":"#fff"})+P.replace('fill="#fff"',l.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let w=P.replace(/d="([^"]+)"/,(k,_)=>'d="'+Bd(_,l.offsetX,l.offsetY)+'"').replace(/x="([^"]+)"/,(k,_)=>'x="'+(parseFloat(_)+l.offsetX)+'"').replace(/y="([^"]+)"/,(k,_)=>'y="'+(parseFloat(_)+l.offsetY)+'"');l.spreadRadius&&l.spreadRadius<0&&(f+=M("mask",{id:T+"-neg",maskUnits:"userSpaceOnUse"},w.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-l.spreadRadius*2}"`))),l.spreadRadius&&l.spreadRadius<0&&(w=M("g",{mask:`url(#${T}-neg)`},w)),f+=M("defs",{},M("filter",{id:S,x:`${h/e*100}%`,y:`${b/t*100}%`,width:`${(m-h)/e*100}%`,height:`${(y-b)/t*100}%`},M("feGaussianBlur",{stdDeviation:l.blurRadius/2,result:"b"})+M("feFlood",{"flood-color":l.color,in:"SourceGraphic",result:"f"})+M("feComposite",{in:"f",in2:"b",operator:l.inset?"out":"in"})))+M("g",{mask:`url(#${T})`,filter:`url(#${S})`,opacity:n},w),l.inset?a+=f:s+=f}return[s,a]}function Ud(e,t,r,n,i,o){let s=i/2,a=Math.max(s,i*1.25),u=[];for(let p of r){if(p.y2<o+s||p.y1>n+s)continue;let h=Math.max(e,p.x1-a),m=Math.min(t,p.x2+a);if(h>=m)continue;if(u.length===0){u.push([h,m]);continue}let b=u[u.length-1];h<=b[1]?b[1]=Math.max(b[1],m):u.push([h,m])}if(!u.length)return[[e,t]];let f=[],l=e;for(let[p,h]of u)if(p>l&&f.push([l,p]),l=Math.max(l,h),l>=t)break;return l<t&&f.push([l,t]),f}function ao({width:e,left:t,top:r,ascender:n,clipPathId:i,matrix:o,glyphBoxes:s},a){let{textDecorationColor:u,textDecorationStyle:f,textDecorationLine:l,textDecorationSkipInk:p,fontSize:h,color:m}=a;if(!l||l==="none")return"";let b=Math.max(1,h*.1),y=l==="line-through"?r+n*.7:l==="underline"?r+n*1.1:r,S=f==="dashed"?`${b*1.2} ${b*2}`:f==="dotted"?`0 ${b*2}`:void 0,T=l==="underline"&&(p||"auto")!=="none"&&(s==null?void 0:s.length),P=r+n,w=T?Ud(t,t+e,s,y,b,P):[[t,t+e]],k=f==="double"?w.map(([_,A])=>M("line",{x1:_,y1:y+b+1,x2:A,y2:y+b+1,stroke:u||m,"stroke-width":b,"stroke-dasharray":S,"stroke-linecap":f==="dotted"?"round":"square",transform:o})).join(""):"";return(i?`<g clip-path="url(#${i})">`:"")+w.map(([_,A])=>M("line",{x1:_,y1:y,x2:A,y2:y,stroke:u||m,"stroke-width":b,"stroke-dasharray":S,"stroke-linecap":f==="dotted"?"round":"square",transform:o})).join("")+k+(i?"</g>":"")}function uo(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var ir=uo("U+0020"),lo=uo("U+0009"),Tr=uo("U+2026");function Tu(e,t,r){let{fontSize:n,letterSpacing:i}=r,o=new Map;function s(f){let l=o.get(f);return l===void 0&&(l=e.measure(f,{fontSize:n,letterSpacing:i}),o.set(f,l)),l}function a(f){let l=0;for(let p of f)t(p)?l+=n:l+=s(p);return l}function u(f){return a(Ve(f,"grapheme"))}return{measureGrapheme:s,measureGraphemeArray:a,measureText:u}}function Eu(e,t,r){let{textTransform:n,whiteSpace:i,wordBreak:o}=t;e=qd(e,n,r);let{content:s,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=jd(e,i),{words:f,requiredBreaks:l,allowBreakWord:p}=Gd(s,o),[h,m]=zd(t,u);return{words:f,requiredBreaks:l,allowSoftWrap:u,allowBreakWord:p,processedContent:s,shouldCollapseTabsAndSpaces:a,lineLimit:h,blockEllipsis:m}}function qd(e,t,r){return t==="uppercase"?e=e.toLocaleUpperCase(r):t==="lowercase"?e=e.toLocaleLowerCase(r):t==="capitalize"&&(e=Ve(e,"word",r).map(n=>Ve(n,"grapheme",r).map((i,o)=>o===0?i.toLocaleUpperCase(r):i).join("")).join("")),e}function zd(e,t){let{textOverflow:r,lineClamp:n,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:s,display:a}=e;if(a==="block"&&n){let[u,f=Tr]=Vd(n);if(u)return[u,f]}return r==="ellipsis"&&a==="-webkit-box"&&o==="vertical"&&Ca(i)&&i>0?[i,Tr]:r==="ellipsis"&&s==="hidden"&&!t?[1,Tr]:[1/0]}function Gd(e,t){let r=["break-all","break-word"].includes(t),{words:n,requiredBreaks:i}=Ma(e,t);return{words:n,requiredBreaks:i,allowBreakWord:r}}function jd(e,t){let r=["pre","pre-wrap","pre-line"].includes(t),n=["normal","nowrap","pre-line"].includes(t),i=!["pre","nowrap"].includes(t);return r||(e=e.replace(/\n/g,ir)),n&&(e=e.replace(/([ ]|\t)+/g,ir).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:n,allowSoftWrap:i}}function Vd(e){if(typeof e=="number")return[e];let t=/^(\d+)\s*"(.*)"$/,r=/^(\d+)\s*'(.*)'$/,n=t.exec(e),i=r.exec(e);if(n){let o=+n[1],s=n[2];return[o,s]}else if(i){let o=+i[1],s=i[2];return[o,s]}return[]}var co=Pt(require("parse-css-color"),1),Hd=new Set([lo]);function Yd(e){return Hd.has(e)}function fo(e){if(e==="transparent")return!0;let t=(0,co.default)(e);return t?t.alpha===0:!1}function ku(e){if(!e)return!1;let t=(0,co.default)(e);if(!t)return!1;let[r,n,i,o]=t.values;return r===255&&n===255&&i===255&&(o===void 0||o===1)}async function*po(e,t){let r=await jt(),{parentStyle:n,inheritedStyle:i,parent:o,font:s,id:a,isInheritingTransform:u,debug:f,embedFont:l,graphemeImages:p,locale:h,canLoadAdditionalAssets:m}=t,{textAlign:b,textIndent:y=0,lineHeight:S,textWrap:T,fontSize:P,filter:w,tabSize:k=8,letterSpacing:_,_inheritedBackgroundClipTextPath:A,_inheritedBackgroundClipTextHasBackground:F,flexShrink:B}=n,{words:H,requiredBreaks:ae,allowSoftWrap:ke,allowBreakWord:Te,processedContent:be,shouldCollapseTabsAndSpaces:ue,lineLimit:Z,blockEllipsis:ne}=Eu(e,n,h),Oe=Xd(r,b);o.insertChild(Oe,o.getChildCount()),La(B)&&o.setFlexShrink(1);let ve=s.getEngine(P,S,n,h),Re=m?Ve(be,"grapheme").filter(V=>!Yd(V)&&!ve.has(V)):[];yield Re.map(V=>({word:V,locale:h})),Re.length&&(ve=s.getEngine(P,S,n,h));function Pe(V){return!!(p&&Object.prototype.hasOwnProperty.call(p,V)&&p[V])}let{measureGrapheme:Ye,measureGraphemeArray:Me,measureText:Ae}=Tu(ve,Pe,{fontSize:P,letterSpacing:_}),fe=qn(k)?X(k,P,1,n):Ye(ir)*k,Y=(V,j)=>{if(V.length===0)return{originWidth:0,endingSpacesWidth:0,text:V};let{index:ce,tabCount:Q}=Qd(V),ye=0;if(Q>0){let xe=V.slice(0,ce),ee=V.slice(ce+Q),te=Ae(xe),ot=te+j;ye=(fe===0?te:(Math.floor(ot/fe)+Q)*fe)+Ae(ee)}else ye=Ae(V);let le=V.trimEnd()===V?ye:Ae(V.trimEnd());return{originWidth:ye,endingSpacesWidth:ye-le,text:V}},J=[],pe=[],z=[],Le=[],De=[];function qe(V){let j=0,ce=0,Q=-1,ye=0,le=0,xe=0,ee=0;J=[],z=[0],Le=[],De=[];let te=0,ot=0;for(;te<H.length&&j<Z;){let K=H[te],Fe=ae[te],Ge=0,{originWidth:Lr,endingSpacesWidth:Ie,text:tr}=Y(K,le);K=tr,Ge=Lr;let Ue=Ie;Fe&&xe===0&&(xe=ve.height(K));let Lt=b==="justify",we=te&&le+Ge>V+Ue&&ke;if(Te&&Ge>V&&(!le||we||Fe)){let tt=Ve(K,"grapheme");H.splice(te,1,...tt),le>0&&(J.push(le-ot),pe.push(ee),j++,ye+=xe,le=0,xe=0,ee=0,z.push(1),Q=-1),ot=Ue;continue}if(Fe||we)ue&&K===ir&&(Ge=0),J.push(le-ot),pe.push(ee),j++,ye+=xe,le=Ge,xe=Ge?Math.round(ve.height(K)):0,ee=Ge?Math.round(ve.baseline(K)):0,z.push(1),Q=-1,Fe||(ce=Math.max(ce,V));else{le+=Ge;let tt=Math.round(ve.height(K));tt>xe&&(xe=tt,ee=Math.round(ve.baseline(K))),Lt&&z[z.length-1]++}Lt&&Q++,ce=Math.max(ce,le);let et=le-Ge;if(Ge===0)De.push({y:ye,x:et,width:0,line:j,lineIndex:Q,isImage:!1});else{let tt=Ve(K,"word");for(let bt=0;bt<tt.length;bt++){let vt=tt[bt],je=0,st=!1;Pe(vt)?(je=P,st=!0):!l&&vt.length>1?je=Ae(vt):je=Ye(vt),Le.push(vt),De.push({y:ye,x:et,width:je,line:j,lineIndex:Q,isImage:st}),et+=je}}te++,ot=Ue}return le&&(j<Z&&(ye+=xe),j++,J.push(le),pe.push(ee)),{width:ce,height:ye}}let Be={width:0,height:0};Oe.setMeasureFunc(V=>{let{width:j,height:ce}=qe(V);if(T==="balance"){let ye=j/2,le=j,xe=j;for(;ye+1<le;){xe=(ye+le)/2;let{height:te}=qe(xe);te>ce?ye=xe:le=xe}qe(le);let ee=Math.ceil(le);return Be={width:ee,height:ce},{width:ee,height:ce}}if(T==="pretty"&&J[J.length-1]<j/3){let xe=j*.9,ee=qe(xe);if(ee.height<=ce*1.3)return Be={width:j,height:ee.height},{width:j,height:ee.height}}let Q=Math.ceil(j);return Be={width:Q,height:ce},{width:Q,height:ce}});let[ie,Tt]=yield,qt="",Et="",Ne=i._inheritedClipPathId,dr=i._inheritedMaskId,{left:kt,top:Cr,width:Kt,height:pr}=Oe.getComputedLayout(),hr=typeof y=="string"?X(y,P,Kt,n,!0)||0:y,Jt=o.getComputedWidth()-o.getComputedPadding(r.EDGE_LEFT)-o.getComputedPadding(r.EDGE_RIGHT)-o.getComputedBorder(r.EDGE_LEFT)-o.getComputedBorder(r.EDGE_RIGHT),Ot=ie+kt,pt=Tt+Cr,{matrix:nt,opacity:Zt}=wu({left:kt,top:Cr,width:Kt,height:pr,isInheritingTransform:u},n),Xe="";if(n.textShadowOffset){let{textShadowColor:V,textShadowOffset:j,textShadowRadius:ce}=n;Xe=Su({width:Be.width,height:Be.height,id:a},{shadowColor:V,shadowOffset:j,shadowRadius:ce},fo(n.color)||F&&ku(n.color)),Xe=M("defs",{},Xe)}let ht="",mt="",er="",zt=-1,ze={},it={},Ze=null,gt=0;for(let V=0;V<Le.length;V++){let j=De[V],ce=De[V+1];if(!j)continue;let Q=Le[V],ye=null,le=!1,xe=p&&Object.prototype.hasOwnProperty.call(p,Q)?p[Q]:null,ee=j.y,te=j.x,ot=j.width,K=j.line,Fe=n.textDecorationLine==="underline"&&(n.textDecorationSkipInk||"auto")!=="none";if(K===zt)continue;let Ge=!1;if(K===0&&hr!==0&&(te+=hr),J.length>1){let we=Kt-J[K];if(b==="right"||b==="end")te+=we;else if(b==="center")te+=we/2;else if(b==="justify"&&K<J.length-1){let Ee=z[K],et=Ee>1?we/(Ee-1):0;te+=et*j.lineIndex,Ge=!0}l&&(te=Math.round(te))}let Lr=pe[K],Ie=ve.baseline(Q),tr=ve.height(Q),Ue=Lr-Ie,Lt=we=>!Fe||n.textDecorationLine!=="underline"?void 0:{underlineY:pt+we+Ue+Ie+Ie*.1,strokeWidth:Math.max(1,P*.1)};if(ze[K]||(ze[K]={left:te,top:pt+ee+Ue,ascender:Ie,width:Ge?Kt:J[K]}),Z!==1/0){let vt=function(je,st){let Mr=Ve(st,"grapheme",h),mr="",Nn=0;for(let Fn of Mr){let Nr=je+Me([mr+Fn]);if(mr&&Nr+Ee>Jt)break;mr+=Fn,Nn=Nr}return{subset:mr,resolvedWidth:Nn}},we=ne,Ee=Ye(ne);Ee>Jt&&(we=Tr,Ee=Ye(we));let et=Ye(ir),tt=K<J.length-1;if(K+1===Z&&(tt||J[K]>Jt)){if(te+ot+Ee+et>Jt){let{subset:je,resolvedWidth:st}=vt(te,Q);Q=je+we,zt=K,ze[K].width=Math.max(0,st-ze[K].left),le=!0}else if(ce&&ce.line!==K)if(b==="center"){let{subset:je,resolvedWidth:st}=vt(te,Q);Q=je+we,zt=K,ze[K].width=Math.max(0,st-ze[K].left),le=!0}else{let je=Le[V+1],{subset:st,resolvedWidth:Mr}=vt(ot+te,je);Q=Q+st+we,zt=K,ze[K].width=Math.max(0,Mr-ze[K].left),le=!0}}}if(xe)ee+=0;else if(l){if(!Q.includes(lo)&&!Ia.includes(Q)&&Le[V+1]&&ce&&!ce.isImage&&ee===ce.y&&!le){Ze===null&&(gt=te),Ze=Ze===null?Q:Ze+Q;continue}let we=Ze===null?Q:Ze+Q,Ee=Ze===null?te:gt,et=j.width+te-Ee,tt=Lt(ee),bt=ve.getSVG(we.replace(/(\t)+/g,""),{fontSize:P,left:Ot+Ee,top:pt+ee+Ie+Ue,letterSpacing:_},tt);ye=bt.path,Fe&&bt.boxes&&bt.boxes.length&&(it[K]||(it[K]=[])).push(...bt.boxes),Ze=null,f&&(er+=M("rect",{x:Ot+Ee,y:pt+ee+Ue,width:et,height:tr,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:nt||void 0,"clip-path":Ne?`url(#${Ne})`:void 0})+M("line",{x1:Ot+te,x2:Ot+te+j.width,y1:pt+ee+Ue+Ie,y2:pt+ee+Ue+Ie,stroke:"#14c000","stroke-width":1,transform:nt||void 0,"clip-path":Ne?`url(#${Ne})`:void 0}))}else if(ee+=Ie+Ue,Fe&&!xe){let we=Lt(ee),Ee=ve.getSVG(Q.replace(/(\t)+/g,""),{fontSize:P,left:Ot+te,top:pt+ee,letterSpacing:_},we);Ee.boxes&&Ee.boxes.length&&(it[K]||(it[K]=[])).push(...Ee.boxes)}if(ye!==null)mt+=ye+" ";else{let[we,Ee]=so({content:Q,filter:Xe,id:a,left:Ot+te,top:pt+ee,width:ot,height:tr,matrix:nt,opacity:Zt,image:xe,clipPathId:Ne,debug:f,shape:!!A},n);qt+=we,Et+=Ee}if(le)break}if(n.textDecorationLine&&(ht=Object.entries(ze).map(([V,j])=>{if(!j)return"";let ce=it[V]||[];return ao({left:Ot+j.left,top:j.top,width:j.width,ascender:j.ascender,clipPathId:Ne,matrix:nt,glyphBoxes:ce},n)}).join("")),mt){let V=(!fo(n.color)||Xe)&&Zt!==0?`<g ${dr?`mask="url(#${dr})"`:""} ${Ne?`clip-path="url(#${Ne})"`:""}>`+M("path",{fill:Xe&&(fo(n.color)||F&&ku(n.color))?"black":n.color,d:mt,transform:nt||void 0,opacity:Zt!==1?Zt:void 0,style:w?`filter:${w}`:void 0,"stroke-width":i.WebkitTextStrokeWidth?`${i.WebkitTextStrokeWidth}px`:void 0,stroke:i.WebkitTextStrokeWidth?i.WebkitTextStrokeColor:void 0,"stroke-linejoin":i.WebkitTextStrokeWidth?"round":void 0,"paint-order":i.WebkitTextStrokeWidth?"stroke":void 0})+"</g>":"";A&&(Et=M("path",{d:mt,transform:nt||void 0})),qt+=(Xe?Xe+M("g",{filter:`url(#satori_s-${a})`},V+ht):V+ht)+er}else ht&&(qt+=Xe?M("g",{filter:`url(#satori_s-${a})`},ht):ht);return Et&&(n._inheritedBackgroundClipTextPath.value+=Et),qt}function Xd(e,t){let r=e.Node.create();return r.setAlignItems(e.ALIGN_BASELINE),r.setJustifyContent(He(t,{left:e.JUSTIFY_FLEX_START,right:e.JUSTIFY_FLEX_END,center:e.JUSTIFY_CENTER,justify:e.JUSTIFY_SPACE_BETWEEN,start:e.JUSTIFY_FLEX_START,end:e.JUSTIFY_FLEX_END},e.JUSTIFY_FLEX_START,"textAlign")),r}function Qd(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}var Pu=require("css-gradient-parser");var Ou=Pt(require("parse-css-color"),1);function ni(e,t,r,n,i){let o=[],s=t.at(-1),a=s&&s.offset&&s.offset.unit==="%"&&n?+s.offset.value:100;for(let p of t){let{color:h}=p;if(!o.length&&(o.push({offset:0,color:h}),!p.offset||p.offset.value==="0"))continue;let m=typeof p.offset>"u"?void 0:p.offset.unit==="%"?+p.offset.value/a:Number(X(`${p.offset.value}${p.offset.unit}`,r.fontSize,e,r,!0))/e;o.push({offset:m,color:h})}o.length||o.push({offset:0,color:"transparent"});let u=o[o.length-1];u.offset!==1&&(typeof u.offset>"u"?u.offset=1:n?o[o.length-1]={offset:1,color:u.color}:o.push({offset:1,color:u.color}));let f=0,l=1;for(let p=0;p<o.length;p++)if(typeof o[p].offset>"u"){for(l<p&&(l=p);typeof o[l].offset>"u";)l++;o[p].offset=(o[l].offset-o[f].offset)/(l-f)*(p-f)+o[f].offset}else f=p;return i==="mask"?o.map(p=>{let h=(0,Ou.default)(p.color);return h?h.alpha===0?{...p,color:"rgba(0, 0, 0, 1)"}:{...p,color:`rgba(255, 255, 255, ${h.alpha})`}:p}):o}function Au({id:e,width:t,height:r,repeatX:n,repeatY:i},o,s,a,u,f){let l=(0,Pu.parseLinearGradient)(o),[p,h]=s,m=o.startsWith("repeating"),b,y,S;if(l.orientation.type==="directional")b=Jd(l.orientation.value),y=Math.sqrt(Math.pow((b.x2-b.x1)*p,2)+Math.pow((b.y2-b.y1)*h,2));else if(l.orientation.type==="angular"){let{length:_,...A}=Zd($i(`${l.orientation.value.value}${l.orientation.value.unit}`)/180*Math.PI,p,h);y=_,b=A}S=m?ep(l.stops,y,b,u):b;let T=ni(m?Kd(l.stops,y):y,l.stops,u,m,f),P=`satori_bi${e}`,w=`satori_pattern_${e}`,k=M("pattern",{id:w,x:a[0]/t,y:a[1]/r,width:n?p/t:"1",height:i?h/r:"1",patternUnits:"objectBoundingBox"},M("linearGradient",{id:P,...S,spreadMethod:m?"repeat":"pad"},T.map(_=>M("stop",{offset:(_.offset??0)*100+"%","stop-color":_.color})).join(""))+M("rect",{x:0,y:0,width:p,height:h,fill:`url(#${P})`}));return[w,k]}function Kd(e,t){let r=e[e.length-1],{offset:n}=r;return n?n.unit==="%"?Number(n.value)/100*t:Number(n.value):t}function Jd(e){let t=0,r=0,n=0,i=0;return e.includes("top")?r=1:e.includes("bottom")&&(i=1),e.includes("left")?t=1:e.includes("right")&&(n=1),!t&&!n&&!r&&!i&&(r=1),{x1:t,y1:r,x2:n,y2:i}}function Zd(e,t,r){let n=Math.pow(r/t,2);e=(e%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let i,o,s,a,u,f,l,p,h=m=>{if(m===0){i=0,o=r,s=0,a=0,u=r;return}else if(m===Math.PI/2){i=0,o=0,s=t,a=0,u=t;return}if(m>0&&m<Math.PI/2){i=(n*t/2/Math.tan(m)-r/2)/(Math.tan(m)+n/Math.tan(m)),o=Math.tan(m)*i+r,s=Math.abs(t/2-i)+t/2,a=r/2-Math.abs(o-r/2),u=Math.sqrt(Math.pow(s-i,2)+Math.pow(a-o,2)),l=(t/2/Math.tan(m)-r/2)/(Math.tan(m)+1/Math.tan(m)),p=Math.tan(m)*l+r,u=2*Math.sqrt(Math.pow(t/2-l,2)+Math.pow(r/2-p,2));return}else if(m>Math.PI/2&&m<Math.PI){i=(r/2+n*t/2/Math.tan(m))/(Math.tan(m)+n/Math.tan(m)),o=Math.tan(m)*i,s=Math.abs(t/2-i)+t/2,a=r/2+Math.abs(o-r/2),l=(t/2/Math.tan(m)+r/2)/(Math.tan(m)+1/Math.tan(m)),p=Math.tan(m)*l,u=2*Math.sqrt(Math.pow(t/2-l,2)+Math.pow(r/2-p,2));return}else m>=Math.PI&&(h(m-Math.PI),f=i,i=s,s=f,f=o,o=a,a=f)};return h(e),{x1:i/t,y1:o/r,x2:s/t,y2:a/r,length:u}}function ep(e,t,r,n){let{x1:i,x2:o,y1:s,y2:a}=r,u=e[0].offset?e[0].offset.unit==="%"?Number(e[0].offset.value)/100:X(`${e[0].offset.value}${e[0].offset.unit}`,n.fontSize,t,n,!0)/t:0,f=e.at(-1).offset?e.at(-1).offset.unit==="%"?Number(e.at(-1).offset.value)/100:X(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,n.fontSize,t,n,!0)/t:1,l=(o-i)*u+i,p=(a-s)*u+s,h=(o-i)*f+i,m=(a-s)*f+s;return{x1:l,y1:p,x2:h,y2:m}}var Ru=require("css-gradient-parser");function Cu({id:e,width:t,height:r,repeatX:n,repeatY:i},o,s,a,u,f){var be;let{shape:l,stops:p,position:h,size:m,repeating:b}=(0,Ru.parseRadialGradient)(o),[y,S]=s,T=y/2,P=S/2,w=rp(h.x,h.y,y,S,u.fontSize,u);T=w.x,P=w.y;let k=tp(t,p,b,u),_=ni(k,p,u,b,f),A=`satori_radial_${e}`,F=`satori_pattern_${e}`,B=`satori_mask_${e}`,H=ip(l,m,u.fontSize,{x:T,y:P},[y,S],u,b),ae=np(l,u.fontSize,p,[y,S],u,b,H),ke=M("pattern",{id:F,x:a[0]/t,y:a[1]/r,width:n?y/t:"1",height:i?S/r:"1",patternUnits:"objectBoundingBox"},M("radialGradient",{id:A,...ae},_.map(ue=>M("stop",{offset:ue.offset||0,"stop-color":ue.color})).join(""))+M("mask",{id:B},M("rect",{x:0,y:0,width:y,height:S,fill:"#fff"}))+M("rect",{x:0,y:0,width:y,height:S,fill:((be=_.at(-1))==null?void 0:be.color)||"transparent"})+M(l,{cx:T,cy:P,width:y,height:S,...H,fill:`url(#${A})`,mask:`url(#${B})`}));return[F,ke]}function tp(e,t,r,n){if(!r)return e;let i=t.at(-1);return!i||!i.offset||i.offset.unit==="%"?e:X(`${i.offset.value}${i.offset.unit}`,+n.fontSize,e,n,!0)}function rp(e,t,r,n,i,o){let s={x:r/2,y:n/2};return e.type==="keyword"?Object.assign(s,Iu(e.value,r,n,"x")):s.x=X(`${e.value.value}${e.value.unit}`,i,r,o,!0)??r/2,t.type==="keyword"?Object.assign(s,Iu(t.value,r,n,"y")):s.y=X(`${t.value.value}${t.value.unit}`,i,n,o,!0)??n/2,s}function Iu(e,t,r,n){switch(e){case"center":return{[n]:n==="x"?t/2:r/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:t};case"bottom":return{y:r}}}function np(e,t,r,[n,i],o,s,a){let{r:u,rx:f,ratio:l=1}=a;if(!s)return{spreadMethod:"pad"};let p=r.at(-1),h=e==="circle"?u*2:f*2;return{spreadMethod:"repeat",cx:"50%",cy:"50%",r:p.offset.unit==="%"?`${Number(p.offset.value)*Math.min(i/n,1)/l}%`:Number(X(`${p.offset.value}${p.offset.unit}`,t,n,o,!0)/h)}}function ip(e,t,r,n,i,o,s){let[a,u]=i,{x:f,y:l}=n,p={},h=0,m=0;if(op(t)){if(t.some(b=>b.value.value.startsWith("-")))throw new Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0");return e==="circle"?Object.assign(p,{r:Number(X(`${t[0].value.value}${t[0].value.unit}`,r,a,o,!0))}):Object.assign(p,{rx:Number(X(`${t[0].value.value}${t[0].value.unit}`,r,a,o,!0)),ry:Number(X(`${t[1].value.value}${t[1].value.unit}`,r,u,o,!0))}),ii(p,a,u,f,l,s,e),p}switch(t[0].value){case"farthest-corner":h=Math.max(Math.abs(a-f),Math.abs(f)),m=Math.max(Math.abs(u-l),Math.abs(l));break;case"closest-corner":h=Math.min(Math.abs(a-f),Math.abs(f)),m=Math.min(Math.abs(u-l),Math.abs(l));break;case"farthest-side":return e==="circle"?p.r=Math.max(Math.abs(a-f),Math.abs(f),Math.abs(u-l),Math.abs(l)):(p.rx=Math.max(Math.abs(a-f),Math.abs(f)),p.ry=Math.max(Math.abs(u-l),Math.abs(l))),ii(p,a,u,f,l,s,e),p;case"closest-side":return e==="circle"?p.r=Math.min(Math.abs(a-f),Math.abs(f),Math.abs(u-l),Math.abs(l)):(p.rx=Math.min(Math.abs(a-f),Math.abs(f)),p.ry=Math.min(Math.abs(u-l),Math.abs(l))),ii(p,a,u,f,l,s,e),p}return e==="circle"?p.r=Math.sqrt(h*h+m*m):Object.assign(p,Lu(h,m)),ii(p,a,u,f,l,s,e),p}function ii(e,t,r,n,i,o,s){if(o)if(s==="ellipse"){let a=Math.max(Math.abs(t-n),Math.abs(n)),u=Math.max(Math.abs(r-i),Math.abs(i)),{rx:f,ry:l}=Lu(a,u);e.ratio=Math.max(f/e.rx,l/e.ry),e.ratio>1&&(e.rx*=e.ratio,e.ry*=e.ratio)}else{let a=Math.max(Math.abs(t-n),Math.abs(n)),u=Math.max(Math.abs(r-i),Math.abs(i)),f=Math.sqrt(a*a+u*u);e.ratio=f/e.r,e.ratio>1&&(e.r=f)}}function Lu(e,t){let r=t!==0?e/t:1;if(e===0)return{rx:0,ry:0};{let n=Math.sqrt(e*e+t*t*r*r)/r;return{ry:n,rx:n*r}}}function op(e){return!e.some(t=>t.type==="keyword")}var mo=Pt(require("parse-css-color"),1);function go(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function sp(e,t,r,n,i){if(!n||!i)return[t,r];if(e==="cover"){let o=t/n,s=r/i,a=Math.max(o,s);return[n*a,i*a]}if(e==="contain"){let o=t/n,s=r/i,a=Math.min(o,s);return[n*a,i*a]}if(e==="auto"||e.includes("auto")){let o=e.split(" "),s=o[0]||"auto",a=o[1]||o[0]||"auto",u=n,f=i;if(s==="auto"&&a!=="auto"){let l=go(a,r);f=l,u=n/i*l}else if(a==="auto"&&s!=="auto"){let l=go(s,t);u=l,f=i/n*l}return[u,f]}return[t,r]}function ho(e,{x:t,y:r,defaultX:n,defaultY:i}){return(e?e.split(" ").map(o=>{try{let s=new xt(o);return s.type==="length"||s.type==="number"?s.value:s.value+s.unit}catch{return null}}).filter(o=>o!==null):[n,i]).map((o,s)=>go(o,[t,r][s]))}async function Hr({id:e,width:t,height:r,left:n,top:i},{image:o,size:s,position:a,repeat:u},f,l){u=u||"repeat",l=l||"background";let p=u==="repeat-x"||u==="repeat",h=u==="repeat-y"||u==="repeat",m=s&&(s==="cover"||s==="contain"||s==="auto"||s.includes("auto")),b=o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient(")||o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("),y=m&&b?[t,r]:m?[0,0]:ho(s,{x:t,y:r,defaultX:t,defaultY:r}),S=ho(a,{x:t,y:r,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return Au({id:e,width:t,height:r,repeatX:p,repeatY:h},o,y,S,f,l);if(o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("))return Cu({id:e,width:t,height:r,repeatX:p,repeatY:h},o,y,S,f,l);if(o.startsWith("url(")){let[T,P,w]=await _r(o.slice(4,-1)),k,_;if(m){let[A,F]=sp(s,t,r,P,w);k=A,_=F}else{let A=ho(s,{x:t,y:r,defaultX:0,defaultY:0});k=l==="mask"?P||A[0]:A[0]||P,_=l==="mask"?w||A[1]:A[1]||w}return[`satori_bi${e}`,M("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:S[0]+n,y:S[1]+i,width:p?k:"100%",height:h?_:"100%"},M("image",{x:0,y:0,width:k,height:_,preserveAspectRatio:"none",href:T}))]}if((0,mo.default)(o)){let T=(0,mo.default)(o),[P,w,k,_]=T.values,F=`rgba(${P},${w},${k},${_!==void 0?_:1})`;return[`satori_bi${e}`,M("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:n,y:i,width:t,height:r},M("rect",{x:0,y:0,width:t,height:r,fill:F}))]}throw new Error(`Invalid background image: "${o}"`)}function ap([e,t]){return Math.round(e*1e3)===0&&Math.round(t*1e3)===0?0:Math.round(e*t/Math.sqrt(e*e+t*t)*1e3)/1e3}function oi(e,t,r){return r<e+t&&(r/2<e&&r/2<t?e=t=r/2:r/2<e?e=r-t:r/2<t&&(t=r-e)),[e,t]}function si(e){e[0]=e[1]=Math.min(e[0],e[1])}function ai(e,t,r,n,i){if(typeof e=="string"){let o=e.split(" ").map(a=>a.trim()),s=!o[1]&&!o[0].endsWith("%");return o[1]=o[1]||o[0],[s,[Math.min(X(o[0],n,t,i,!0),t),Math.min(X(o[1],n,r,i,!0),r)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,r)]]:[!0,void 0]}var ui=e=>e&&e[0]!==0&&e[1]!==0;function li(e){return typeof e!="string"?1:ro(e)}function fi(e,t,r,n,i){if(i===1/0)return[e,r,t];if(i===-1/0)return[e,n,t];if(i===0)return[e,[(e[0]+t[0])/2,(e[1]+t[1])/2],t];let o=i<0?r:n,s=Math.pow(2,1-Math.abs(i));if(s===0)return i>0?[e,r,t]:[e,n,t];let a=[],u=16;for(let f=0;f<=u;f++){let l=Math.PI*f/u/2,p=Math.pow(Math.sin(l),s),h=Math.pow(Math.cos(l),s);a.push([o[0]+(t[0]-o[0])*p+(e[0]-o[0])*h,o[1]+(t[1]-o[1])*p+(e[1]-o[1])*h])}return a}function or(e){return`${Math.round(e[0]*1e3)/1e3},${Math.round(e[1]*1e3)/1e3}`}function Mu(e,t,r,n){return Math.min(1,r/(e[0]+t[0]||r),n/(e[1]+t[1]||n))}function up(e,t,r,n,i,o,s){s!=null&&s.every(Boolean)&&(s=void 0);let a=e+r,u=t+n,[f,l,p,h]=i,m=[fi([e,t+f[1]],[e+f[0],t],[e,t],[e+f[0],t+f[1]],o[0]),fi([a-l[0],t],[a,t+l[1]],[a,t],[a-l[0],t+l[1]],o[1]),fi([a,u-p[1]],[a-p[0],u],[a,u],[a-p[0],u-p[1]],o[2]),fi([e+h[0],u],[e,u-h[1]],[e,u],[e+h[0],u-h[1]],o[3])];if(s){let y=s.indexOf(!0);if(y===-1)throw new Error("Invalid `partialSides`.");for(;s[(y+3)%4];)y=(y+3)%4;let S=m[y],T=Math.floor(S.length/2),P=`M${or(S[T])}`,w=y;do{let k=m[w],_=Math.floor(k.length/2);for(let B=_+1;B<k.length;B++)P+=` L${or(k[B])}`;let A=m[(w+1)%4];P+=` L${or(A[0])}`;let F=Math.floor(A.length/2);for(let B=1;B<=F;B++)P+=` L${or(A[B])}`;w=(w+1)%4}while(s[w]&&w!==y);return P}let b=`M${or(m[0][m[0].length-1])}`;for(let y=0;y<4;y++){let S=m[(y+1)%4];b+=` L${or(S[0])}`;for(let T=1;T<S.length;T++)b+=` L${or(S[T])}`}return b+" Z"}function Nu({id:e,borderRadiusPath:t,borderType:r,left:n,top:i,width:o,height:s},a){let u=`satori_brc-${e}`;return[M("clipPath",{id:u},M(r,{x:n,y:i,width:o,height:s,d:t||void 0})),u]}function Vt({left:e,top:t,width:r,height:n},i,o){let{borderTopLeftRadius:s,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:f,fontSize:l}=i,p=[li(i.cornerTopLeftShape),li(i.cornerTopRightShape),li(i.cornerBottomRightShape),li(i.cornerBottomLeftShape)],h,m,b,y;if([h,s]=ai(s,r,n,l,i),[m,a]=ai(a,r,n,l,i),[b,u]=ai(u,r,n,l,i),[y,f]=ai(f,r,n,l,i),!o&&!ui(s)&&!ui(a)&&!ui(u)&&!ui(f))return"";if(s||=[0,0],a||=[0,0],u||=[0,0],f||=[0,0],[s[0],a[0]]=oi(s[0],a[0],r),[u[0],f[0]]=oi(u[0],f[0],r),[s[1],u[1]]=oi(s[1],u[1],n),[a[1],f[1]]=oi(a[1],f[1],n),h&&si(s),m&&si(a),b&&si(u),y&&si(f),p.some(_=>_<0)){let _=Math.min(Mu(s,f,r,n),Mu(a,u,r,n));if(_<1)for(let A of[s,a,f,u])A[0]*=_,A[1]*=_}if(p.some(_=>_!==1))return up(e,t,r,n,[s,a,f,u],p,o);let S=[];S[0]=[a,a],S[1]=[f,[-f[0],f[1]]],S[2]=[u,[-u[0],-u[1]]],S[3]=[s,[s[0],-s[1]]];let T=`h${r-s[0]-a[0]} a${S[0][0]} 0 0 1 ${S[0][1]}`,P=`v${n-a[1]-f[1]} a${S[1][0]} 0 0 1 ${S[1][1]}`,w=`h${f[0]+u[0]-r} a${S[2][0]} 0 0 1 ${S[2][1]}`,k=`v${u[1]+s[1]-n} a${S[3][0]} 0 0 1 ${S[3][1]}`;if(o){let A=function(be){let ue=ap([s,a,f,u][be]);return be===0?[[e+s[0]-ue,t+s[1]-ue],[e+s[0],t]]:be===1?[[e+r-a[0]+ue,t+a[1]-ue],[e+r,t+a[1]]]:be===2?[[e+r-f[0]+ue,t+n-f[1]+ue],[e+r-f[0],t+n]]:[[e+u[0]-ue,t+n-u[1]+ue],[e,t+n-u[1]]]},_=o.indexOf(!1);if(!o.includes(!0))throw new Error("Invalid `partialSides`.");if(_===-1)_=0;else for(;!o[_];)_=(_+1)%4;let F="",B=A(_),H=`M${B[0]} A${S[(_+3)%4][0]} 0 0 1 ${B[1]}`,ae=0;for(;ae<4&&o[(_+ae)%4];ae++)F+=H+" ",H=[T,P,w,k][(_+ae)%4];let ke=(_+ae)%4;F+=H.split(" ")[0];let Te=A(ke);return F+=` A${S[(ke+3)%4][0]} 0 0 1 ${Te[0]}`,F}return`M${e+s[0]},${t} ${T} ${P} ${w} ${k}`}function Fu(e,t,r){return r[e+"Width"]===r[t+"Width"]&&r[e+"Style"]===r[t+"Style"]&&r[e+"Color"]===r[t+"Color"]}function Wu({id:e,currentClipPathId:t,borderPath:r,borderType:n,left:i,top:o,width:s,height:a},u){if(!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth))return null;let l=`satori_bc-${e}`;return[M("clipPath",{id:l,"clip-path":t?`url(#${t})`:void 0},M(n,{x:i,y:o,width:s,height:a,d:r||void 0})),l]}function Yr({left:e,top:t,width:r,height:n,props:i,asContentMask:o,maskBorderOnly:s},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!o&&!u.some(m=>a[m+"Width"]))return"";let f="",l=0;for(;l>0&&Fu(u[l],u[(l+3)%4],a);)l=(l+3)%4;let p=[!1,!1,!1,!1],h=[];for(let m=0;m<4;m++){let b=(l+m)%4,y=(l+m+1)%4,S=u[b],T=u[y];if(p[b]=!0,h=[a[S+"Width"],a[S+"Style"],a[S+"Color"],S],!Fu(S,T,a)){let P=(h[0]||0)+(o&&!s&&a[S.replace("border","padding")]||0);P&&(f+=M("path",{width:r,height:n,...i,fill:"none",stroke:o?"#000":h[2],"stroke-width":P*2,"stroke-dasharray":!o&&h[1]==="dashed"?P*2+" "+P:void 0,d:Vt({left:e,top:t,width:r,height:n},a,p)})),p=[!1,!1,!1,!1]}}if(p.some(Boolean)){let m=(h[0]||0)+(o&&!s&&a[h[3].replace("border","padding")]||0);m&&(f+=M("path",{width:r,height:n,...i,fill:"none",stroke:o?"#000":h[2],"stroke-width":m*2,"stroke-dasharray":!o&&h[1]==="dashed"?m*2+" "+m:void 0,d:Vt({left:e,top:t,width:r,height:n},a,p)}))}return f}function bo({id:e,left:t,top:r,width:n,height:i,matrix:o,borderOnly:s},a){let u=(a.borderLeftWidth||0)+(s?0:a.paddingLeft||0),f=(a.borderTopWidth||0)+(s?0:a.paddingTop||0),l=(a.borderRightWidth||0)+(s?0:a.paddingRight||0),p=(a.borderBottomWidth||0)+(s?0:a.paddingBottom||0),h={x:t+u,y:r+f,width:n-u-l,height:i-f-p};return M("mask",{id:e},M("rect",{...h,fill:"#fff",transform:a.overflow==="hidden"&&a.transform&&o?o:void 0,mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+Yr({left:t,top:r,width:n,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:s},a))}var vo=require("css-to-react-native"),Xr={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function Bu({width:e,height:t},r,n){function i(f){let l=f.match(Xr.circle);if(!l)return null;let[,p]=l,[h,m=""]=p.split("at").map(S=>S.trim()),{x:b,y}=$u(m,e,t);return{type:"circle",r:X(h,n.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),n,!0),cx:X(b,n.fontSize,e,n,!0),cy:X(y,n.fontSize,t,n,!0)}}function o(f){let l=f.match(Xr.ellipse);if(!l)return null;let[,p]=l,[h,m=""]=p.split("at").map(P=>P.trim()),[b,y]=h.split(" "),{x:S,y:T}=$u(m,e,t);return{type:"ellipse",rx:X(b||"50%",n.fontSize,e,n,!0),ry:X(y||"50%",n.fontSize,t,n,!0),cx:X(S,n.fontSize,e,n,!0),cy:X(T,n.fontSize,t,n,!0)}}function s(f){let l=f.match(Xr.path);if(!l)return null;let[p,h]=Du(l[1]);return{type:"path",d:h,"fill-rule":p}}function a(f){let l=f.match(Xr.polygon);if(!l)return null;let[p,h]=Du(l[1]);return{type:"polygon","fill-rule":p,points:h.split(",").map(m=>m.split(" ").map((b,y)=>X(b,n.fontSize,y===0?e:t,n,!0)).join(" ")).join(",")}}function u(f){let l=f.match(Xr.inset);if(!l)return null;let[p,h]=(l[1].includes("round")?l[1]:`${l[1].trim()} round 0`).split("round"),m=(0,vo.getStylesForProperty)("borderRadius",h,!0),b=Object.values(m).map(k=>String(k)).map((k,_)=>X(k,n.fontSize,_===0||_===2?t:e,n,!0)||0),y=Object.values((0,vo.getStylesForProperty)("margin",p,!0)).map(k=>String(k)).map((k,_)=>X(k,n.fontSize,_===0||_===2?t:e,n,!0)||0),S=y[3],T=y[0],P=e-(y[1]+y[3]),w=t-(y[0]+y[2]);return b.some(k=>k>0)?{type:"path",d:Vt({left:S,top:T,width:P,height:w},{...r,...m})}:{type:"rect",x:S,y:T,width:P,height:w}}return{parseCircle:i,parseEllipse:o,parsePath:s,parsePolygon:a,parseInset:u}}function Du(e){let[,t="nonzero",r]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,r]}function $u(e,t,r){let n=e.split(" "),i={x:n[0]||"50%",y:n[1]||"50%"};return n.forEach(o=>{o==="top"?i.y=0:o==="bottom"?i.y=r:o==="left"?i.x=0:o==="right"?i.x=t:o==="center"&&(i.x=t/2,i.y=r/2)}),i}function ci(e){return`satori_cp-${e}`}function Uu(e){return`url(#${ci(e)})`}function qu(e,t,r){if(t.clipPath==="none")return"";let n=Bu(e,t,r),i=t.clipPath,o={type:""};for(let s of Object.keys(n))if(o=n[s](i),o)break;if(o){let{type:s,...a}=o;return M("clipPath",{id:ci(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},M(s,a))}return""}function yo({left:e,top:t,width:r,height:n,path:i,matrix:o,id:s,currentClipPath:a,src:u},f,l){let p="",h=f.clipPath&&f.clipPath!=="none"?qu({left:e,top:t,width:r,height:n,path:i,id:s,matrix:o,currentClipPath:a,src:u},f,l):"";if(f.overflow!=="hidden"&&!u)p="";else{let b=h?`satori_ocp-${s}`:ci(s);p=M("clipPath",{id:b,"clip-path":a},M(i?"path":"rect",{x:e,y:t,width:r,height:n,d:i||void 0,transform:f.overflow==="hidden"&&f.transform&&o?o:void 0}))}let m=bo({id:`satori_om-${s}`,left:e,top:t,width:r,height:n,matrix:o,borderOnly:!u},f);return h+p+m}var lp=e=>`satori_mi-${e}`;async function xo(e,t,r){if(!t.maskImage)return["",""];let{left:n,top:i,width:o,height:s,id:a}=e,u=t.maskImage,f=u.length;if(!f)return["",""];let l=lp(a),p="";for(let h=0;h<f;h++){let m=u[h],[b,y]=await Hr({id:`${l}-${h}`,left:n,top:i,width:o,height:s},m,r,"mask");p+=y+M("rect",{x:n,y:i,width:o,height:s,fill:`url(#${b})`})}return p=M("mask",{id:l},p),[l,p]}function fp(e,t,r){let n=e.toLowerCase().trim().split(/\s+/),i=(u,f)=>({left:"0%",center:"50%",right:"100%",top:"0%",bottom:"100%"})[u]||u,o,s;if(n.length===1){let u=n[0];u==="left"||u==="center"||u==="right"?(o=i(u,"x"),s="50%"):u==="top"||u==="bottom"?(o="50%",s=i(u,"y")):(o=u,s="50%")}else{let u=n[0],f=n[1];u==="top"||u==="bottom"?(s=i(u,"y"),f==="left"||f==="right"||f==="center"?o=i(f,"x"):(o="50%",s=u==="top"||u==="bottom"?i(u,"y"):f)):(o=i(u,"x"),s=i(f,"y"))}let a=(u,f)=>{try{if(u.endsWith("%"))return f*parseFloat(u)/100;let l=new xt(u);return l.type==="length"||l.type==="number"?l.value:0}catch{return 0}};return[a(o,t),a(s,r)]}async function Qr({id:e,left:t,top:r,width:n,height:i,isInheritingTransform:o,src:s,debug:a},u,f){if(u.display==="none")return"";let l=!!s,p="rect",h="",m="",b=[],y=1,S="";u.backgroundColor&&b.push(u.backgroundColor),u.opacity!==void 0&&(y=+u.opacity),u.transform&&(h=Vr({left:t,top:r,width:n,height:i},u.transform,o,u.transformOrigin));let T="";if(u.backgroundImage){let Z=[];for(let ne=0;ne<u.backgroundImage.length;ne++){let Oe=u.backgroundImage[ne],ve=await Hr({id:e+"_"+ne,width:n,height:i,left:t,top:r},Oe,f);ve&&Z.unshift(ve)}for(let ne of Z)b.push(`url(#${ne[0]})`),m+=ne[1],ne[2]&&(T+=ne[2])}let[P,w]=await xo({id:e,left:t,top:r,width:n,height:i},u,f);m+=w;let k=P?`url(#${P})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,_=Vt({left:t,top:r,width:n,height:i},u);_&&(p="path");let A=u._inheritedClipPathId;a&&(S=M("rect",{x:t,y:r,width:n,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:h||void 0,"clip-path":A?`url(#${A})`:void 0}));let{backgroundClip:F,filter:B}=u,H=F==="text"?`url(#satori_bct-${e})`:A?`url(#${A})`:u.clipPath?Uu(e):void 0,ae=yo({left:t,top:r,width:n,height:i,path:_,id:e,matrix:h,currentClipPath:H,src:s},u,f),ke=b.map(Z=>M(p,{x:t,y:r,width:n,height:i,fill:Z,d:_||void 0,transform:h||void 0,"clip-path":u.transform?void 0:H,style:B?`filter:${B}`:void 0,mask:u.transform?void 0:k})).join(""),Te=Wu({id:e,left:t,top:r,width:n,height:i,currentClipPathId:A,borderPath:_,borderType:p},u),be;if(l){let Z=(u.borderLeftWidth||0)+(u.paddingLeft||0),ne=(u.borderTopWidth||0)+(u.paddingTop||0),Oe=(u.borderRightWidth||0)+(u.paddingRight||0),ve=(u.borderBottomWidth||0)+(u.paddingBottom||0),Re=n-Z-Oe,Pe=i-ne-ve,Ye=(u.objectPosition||"center").toString(),[Me,Ae]=fp(Ye,Re,Pe),fe=u.__naturalWidth||Re,Y=u.__naturalHeight||Pe,J,pe=Re,z=Pe,Le=t+Z,De=r+ne;if(u.objectFit==="contain"){let qe=Re/fe,Be=Pe/Y,ie=Math.min(qe,Be);pe=fe*ie,z=Y*ie,Le=t+Z+Me-pe*Me/Re,De=r+ne+Ae-z*Ae/Pe,J="none"}else if(u.objectFit==="cover"){let qe=Re/fe,Be=Pe/Y,ie=Math.max(qe,Be);pe=fe*ie,z=Y*ie,Le=t+Z+Me-pe*Me/Re,De=r+ne+Ae-z*Ae/Pe,J="none"}else if(u.objectFit==="fill")J="none";else if(u.objectFit==="scale-down")if(fe&&Y){let qe=Re/fe,Be=Pe/Y,ie=Math.min(qe,Be);if(ie>=1)pe=fe,z=Y,J="none",Le=t+Z+Me-pe*Me/Re,De=r+ne+Ae-z*Ae/Pe;else{let Tt=ie;pe=fe*Tt,z=Y*Tt,Le=t+Z+Me-pe*Me/Re,De=r+ne+Ae-z*Ae/Pe,J="none"}}else{let qe=Re/fe,Be=Pe/Y,ie=Math.min(qe,Be);pe=fe*ie,z=Y*ie,Le=t+Z+Me-pe*Me/Re,De=r+ne+Ae-z*Ae/Pe,J="none"}else J="none";u.transform&&(be=Nu({id:e,borderRadiusPath:_,borderType:p,left:t,top:r,width:n,height:i},u)),ke+=M("image",{x:Le,y:De,width:pe,height:z,href:s,preserveAspectRatio:J,transform:h||void 0,style:B?`filter:${B}`:void 0,"clip-path":u.transform?be?`url(#${be[1]})`:void 0:`url(#satori_cp-${e})`,mask:u.transform?void 0:P?`url(#${P})`:`url(#satori_om-${e})`})}if(Te){m+=Te[0];let Z=Te[1];ke+=Yr({left:t,top:r,width:n,height:i,props:{transform:h||void 0,"clip-path":`url(#${Z})`}},u)}let ue=_u({width:n,height:i,id:e,opacity:y,shape:M(p,{x:t,y:r,width:n,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:_||void 0,transform:h||void 0,"clip-path":H,mask:k})},u);return(m?M("defs",{},m):"")+(ue?ue[0]:"")+(be?be[0]:"")+ae+(y!==1?`<g opacity="${y}">`:"")+(u.transform&&(H||k)?`<g${H?` clip-path="${H}"`:""}${k?` mask="${k}"`:""}>`:"")+(T||ke)+(u.transform&&(H||k)?"</g>":"")+(y!==1?"</g>":"")+(ue?ue[1]:"")+S}var Gu=String.raw,zu=Gu`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,ju=()=>new RegExp(Gu`\p{RI}{2}|(?)${zu}(?:\u200D${zu})*`,"gu");var cp=new RegExp(ju(),"u"),wo={emoji:cp,symbol:/\p{Symbol}/u,math:/\p{Math}/u},So={"ja-JP":/\p{scx=Hira}|\p{scx=Kana}|\p{scx=Han}|[\u3000]|[\uFF00-\uFFEF]/u,"ko-KR":/\p{scx=Hangul}/u,"zh-CN":/\p{scx=Han}/u,"zh-TW":/\p{scx=Han}/u,"zh-HK":/\p{scx=Han}/u,"th-TH":/\p{scx=Thai}/u,"bn-IN":/\p{scx=Bengali}/u,"ar-AR":/\p{scx=Arabic}/u,"ta-IN":/\p{scx=Tamil}/u,"ml-IN":/\p{scx=Malayalam}/u,"he-IL":/\p{scx=Hebrew}/u,"te-IN":/\p{scx=Telugu}/u,devanagari:/\p{scx=Devanagari}/u,kannada:/\p{scx=Kannada}/u},di=Object.keys({...So,...wo});function Vu(e){return di.includes(e)}function Hu(e,t){for(let n of Object.keys(wo))if(wo[n].test(e))return[n];let r=Object.keys(So).filter(n=>So[n].test(e));if(r.length===0)return["unknown"];if(t){let n=r.findIndex(i=>i===t);n!==-1&&(r.splice(n,1),r.unshift(t))}return r}function Yu(e){if(e)return di.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*Kr(e,t){var fe;let r=await jt(),{id:n,inheritedStyle:i,parent:o,font:s,debug:a,locale:u,embedFont:f=!0,graphemeImages:l,canLoadAdditionalAssets:p,getTwStyles:h}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!br(e)||Oa(e.type)){let Y;if(!br(e))Y=po(String(e),t),yield(await Y.next()).value;else{if(ka(e.type))throw new Error("Class component is not supported.");let pe;Di(e.type)?pe=e.type.render:pe=e.type,Y=Kr(await pe(e.props),t),yield(await Y.next()).value}await Y.next();let J=yield;return(await Y.next(J)).value}let{type:m,props:b}=e,y=m;if(b&&Pa(b))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:S,children:T,tw:P,lang:w=u}=b||{},k=Yu(w);if(P){let Y=h(P,S);S=Object.assign(Y,S)}let _=r.Node.create();o.insertChild(_,o.getChildCount());let[A,F]=await io(_,y,i,S,b),B=A.transform===i.transform;if(B||(A.transform.__parent=i.transform),(A.overflow==="hidden"||A.clipPath&&A.clipPath!=="none")&&(F._inheritedClipPathId=`satori_cp-${n}`,F._inheritedMaskId=`satori_om-${n}`),A.maskImage&&(F._inheritedMaskId=`satori_mi-${n}`),A.backgroundClip==="text"){let Y={value:""};F._inheritedBackgroundClipTextPath=Y,A._inheritedBackgroundClipTextPath=Y,A.backgroundImage&&(F._inheritedBackgroundClipTextHasBackground="true",A._inheritedBackgroundClipTextHasBackground="true")}let H=Aa(T),ae=[],ke=0,Te=[];for(let Y of H){let J=Kr(Y,{id:n+"-"+ke++,parentStyle:A,inheritedStyle:F,isInheritingTransform:!0,parent:_,font:s,embedFont:f,debug:a,graphemeImages:l,canLoadAdditionalAssets:p,locale:k,getTwStyles:h,onNodeDetected:t.onNodeDetected});p?Te.push(...(await J.next()).value||[]):await J.next(),ae.push(J)}yield Te;for(let Y of ae)await Y.next();let[be,ue]=yield,{left:Z,top:ne,width:Oe,height:ve}=_.getComputedLayout();Z+=be,ne+=ue;let Re="",Pe="",Ye="",{children:Me,...Ae}=b;if((fe=t.onNodeDetected)==null||fe.call(t,{left:Z,top:ne,width:Oe,height:ve,type:y,props:Ae,key:e.key,textContent:br(Me)?void 0:Me}),y==="img"){let Y=A.__src;Pe=await Qr({id:n,left:Z,top:ne,width:Oe,height:ve,src:Y,isInheritingTransform:B,debug:a},A,F)}else if(y==="svg"){let Y=A.color,J=await su(e,Y);Pe=await Qr({id:n,left:Z,top:ne,width:Oe,height:ve,src:J,isInheritingTransform:B,debug:a},A,F)}else{let Y=S==null?void 0:S.display;if(y==="div"&&T&&typeof T!="string"&&Y!=="flex"&&Y!=="none"&&Y!=="contents")throw new Error('Expected <div> to have explicit "display: flex", "display: contents", or "display: none" if it has more than one child node.');Pe=await Qr({id:n,left:Z,top:ne,width:Oe,height:ve,isInheritingTransform:B,debug:a},A,F)}for(let Y of ae)Re+=(await Y.next([Z,ne])).value;return A._inheritedBackgroundClipTextPath&&(Ye+=M("clipPath",{id:`satori_bct-${n}`,"clip-path":A._inheritedClipPathId?`url(#${A._inheritedClipPathId})`:void 0},A._inheritedBackgroundClipTextPath.value)),Ye+Pe+Re}var Er=Pt(require("@shuding/opentype.js"),1);var Xu="unknown";function dp(e){let t=[],r=[0,0],n=[0,0],i=(o,s)=>{let a=o[0];for(let u=1;u<=s;u++){let f=u/s,l=pp(o,f);t.push({from:a,to:l}),a=l}n=o[o.length-1]};for(let o of e){if(o.type==="M"){r=n=[o.x,o.y];continue}if(o.type==="L"){let s=[o.x,o.y];t.push({from:n,to:s}),n=s;continue}if(o.type==="Q"){i([n,[o.x1,o.y1],[o.x,o.y]],12);continue}if(o.type==="C"){i([n,[o.x1,o.y1],[o.x2,o.y2],[o.x,o.y]],16);continue}o.type==="Z"&&(t.push({from:n,to:r}),n=r)}return t}function pp(e,t){let r=e;for(;r.length>1;){let n=[];for(let i=0;i<r.length-1;i++)n.push([r[i][0]+(r[i+1][0]-r[i][0])*t,r[i][1]+(r[i+1][1]-r[i][1])*t]);r=n}return r[0]}function hp(e,t){if(!t)return[];let r=t.strokeWidth,n=t.underlineY-r*.25,i=t.underlineY+r*2.5,o=dp(e);if(!o.length)return[];let s=i-n,a=Math.max(12,Math.ceil(s/.25)),u=s/a,f=n+u/2,l=new Set;for(let w=0;w<a;w++){let k=f+u*w,_=[];for(let A of o){let[F,B]=A.from,[H,ae]=A.to;if(B===ae)continue;let ke=Math.min(B,ae),Te=Math.max(B,ae);if(k<ke||k>=Te)continue;let be=(k-B)/(ae-B),ue=F+(H-F)*be;_.push(ue)}if(_.length){_.sort((A,F)=>A-F);for(let A=0;A<_.length-1;A+=2){let F=Math.min(_[A],_[A+1]),B=Math.max(_[A],_[A+1]),H=Math.floor(F),ae=Math.ceil(B);for(let ke=H;ke<ae;ke++)l.add(ke)}}}if(!l.size)return[];let p=Array.from(l.values()).sort((w,k)=>w-k),h=[],m=p[0],b=p[0];for(let w=1;w<p.length;w++){let k=p[w];k>b+1&&(h.push([m,b+1]),m=k),b=k}h.push([m,b+1]);let y=[],S=r*.6,T=h[0][0],P=h[h.length-1][1];for(let[w,k]of h){let _=Math.min(w,T)-S,A=Math.max(k,P)+S;y.push({x1:_,x2:A,y1:n,y2:i})}return y}function mp(e,t,[r,n],[i,o]){if(r!==i)return r?!i||r===e?-1:i===e?1:e===400&&r===500||e===500&&r===400?-1:e===400&&i===500||e===500&&i===400?1:e<400?r<e&&i<e?i-r:r<e?-1:i<e?1:r-i:e<r&&e<i?r-i:e<r?-1:e<i?1:i-r:1;if(n!==o){if(n===t)return-1;if(o===t)return 1}return-1}var _o=new WeakMap,Jr=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:r,style:n}){if(!this.fonts.has(t))return null;r==="normal"&&(r=400),r==="bold"&&(r=700),typeof r=="string"&&(r=Number.parseInt(r,10));let i=[...this.fonts.get(t)],o=i[0];for(let s=1;s<i.length;s++){let[,a,u]=o,[,f,l]=i[s];mp(r,n,[a,u],[f,l])>0&&(o=i[s])}return o[0]}addFonts(t){for(let r of t){let{name:n,data:i,lang:o}=r;if(o&&!Vu(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${di.join(", ")}.`);let s=o??Xu,a;if(_o.has(i))a=_o.get(i);else{a=Er.default.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0});let f=a.charToGlyphIndex;a.charToGlyphIndex=l=>{let p=f.call(a,l);return p===0&&a._trackBrokenChars&&a._trackBrokenChars.push(l),p},_o.set(i,a)}this.defaultFont||(this.defaultFont=a);let u=`${n.toLowerCase()}_${s}`;this.fonts.has(u)||this.fonts.set(u,[]),this.fonts.get(u).push([a,r.weight,r.style])}}getEngine(t=16,r="normal",{fontFamily:n="sans-serif",fontWeight:i=400,fontStyle:o="normal"},s){if(!this.fonts.size)throw new Error("No fonts are loaded. At least one font is required to calculate the layout.");n=(Array.isArray(n)?n:[n]).map(w=>w.toLowerCase());let a=[];n.forEach(w=>{let k=this.get({name:w,weight:i,style:o});if(k){a.push(k);return}let _=this.get({name:w+"_unknown",weight:i,style:o});if(_){a.push(_);return}});let u=Array.from(this.fonts.keys()),f=[],l=[],p=[];for(let w of u)if(!n.includes(w))if(s){let k=gp(w);k?k===s?f.push(this.get({name:w,weight:i,style:o})):l.push(this.get({name:w,weight:i,style:o})):p.push(this.get({name:w,weight:i,style:o}))}else p.push(this.get({name:w,weight:i,style:o}));let h=new Map,m=(w,k=!0)=>{let _=[...a,...p,...f,...k?l:[]];if(typeof w>"u")return k?_[_.length-1]:void 0;let A=w.charCodeAt(0);if(h.has(A))return h.get(A);let F=_.find((B,H)=>!!B.charToGlyphIndex(w)||k&&H===_.length-1);return F&&h.set(A,F),F},b=(w,k=!1)=>{var A,F;return((k?(F=(A=w.tables)==null?void 0:A.os2)==null?void 0:F.sTypoAscender:0)||w.ascender)/w.unitsPerEm*t},y=(w,k=!1)=>{var A,F;return((k?(F=(A=w.tables)==null?void 0:A.os2)==null?void 0:F.sTypoDescender:0)||w.descender)/w.unitsPerEm*t},S=(w,k=!1)=>{var _,A;if(typeof r=="string"&&r==="normal"){let F=(k?(A=(_=w.tables)==null?void 0:_.os2)==null?void 0:A.sTypoLineGap:0)||0;return b(w,k)-y(w,k)+F/w.unitsPerEm*t}else if(typeof r=="number")return t*r},T=w=>m(w,!1);return{has:w=>{if(w===`
|
|
7
|
+
`)return!0;let k=T(w);return k?(k._trackBrokenChars=[],k.stringToGlyphs(w),k._trackBrokenChars.length?(k._trackBrokenChars=void 0,!1):!0):!1},baseline:(w,k=typeof w>"u"?a[0]:m(w))=>{let _=b(k),A=y(k),F=_-A;return _+(S(k)-F)/2},height:(w,k=typeof w>"u"?a[0]:m(w))=>S(k),measure:(w,k)=>this.measure(m,w,k),getSVG:(w,k,_)=>this.getSVG(m,w,k,_)}}patchFontFallbackResolver(t,r){let n=[];t._trackBrokenChars=n;let i=t.stringToGlyphs;return t.stringToGlyphs=(o,...s)=>{let a=i.call(t,o,...s);for(let u=0;u<a.length;u++)if(a[u].unicode===void 0){let f=n.shift(),l=r(f);if(l!==t){let p=l.charToGlyph(f),h=t.unitsPerEm/l.unitsPerEm,m=new Er.default.Path;m.unitsPerEm=t.unitsPerEm,m.commands=p.path.commands.map(y=>{let S={...y};for(let T in S)typeof S[T]=="number"&&(S[T]*=h);return S});let b=new Er.default.Glyph({...p,advanceWidth:p.advanceWidth*h,xMin:p.xMin*h,xMax:p.xMax*h,yMin:p.yMin*h,yMax:p.yMax*h,path:m});a[u]=b}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,r,{fontSize:n,letterSpacing:i=0}){let o=t(r),s=this.patchFontFallbackResolver(o,t);try{return o.getAdvanceWidth(r,n,{letterSpacing:i/n})}finally{s()}}getSVG(t,r,{fontSize:n,top:i,left:o,letterSpacing:s=0},a){let u=t(r),f=this.patchFontFallbackResolver(u,t);try{if(n===0)return{path:"",boxes:[]};let l=new Er.default.Path,p=[],h={letterSpacing:s/n},m=new WeakMap;return u.forEachGlyph(r.replace(/\n/g,""),o,i,n,h,function(b,y,S,T){let P;if(!m.has(b))P=b.getPath(y,S,T,h),m.set(b,[y,S,P]);else{let[k,_,A]=m.get(b);P=new Er.default.Path,P.commands=A.commands.map(F=>{let B={...F};for(let H in B)typeof B[H]=="number"&&((H==="x"||H==="x1"||H==="x2")&&(B[H]+=y-k),(H==="y"||H==="y1"||H==="y2")&&(B[H]+=S-_));return B})}let w=a?hp(P.commands,a):[];w.length&&p.push(...w),l.extend(P)}),{path:l.toPathData(1),boxes:p}}finally{f()}}};function gp(e){let t=e.split("_"),r=t[t.length-1];return r===Xu?void 0:r}function To({width:e,height:t,content:r}){return M("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},r)}var Ac=Pt(sc());var rv=["ios","android","windows","macos","web"];function uc(e){return rv.includes(e)}var nv=["portrait","landscape"];function lc(e){return nv.includes(e)}var ac;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(ac||(ac={}));var se;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(se||(se={}));function Qs(e){return typeof e=="string"}function Ks(e){return typeof e=="object"}var Js;function E(e){return{kind:"complete",style:e}}function We(e,t={}){let{fractions:r}=t;if(r&&e.includes("/")){let[o="",s=""]=e.split("/",2),a=We(o),u=We(s);return!a||!u?null:[a[0]/u[0],u[1]]}let n=parseFloat(e);if(Number.isNaN(n))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[n,se.none];switch(i==null?void 0:i[1]){case"rem":return[n,se.rem];case"px":return[n,se.px];case"em":return[n,se.em];case"%":return[n,se.percent];case"vw":return[n,se.vw];case"vh":return[n,se.vh];default:return null}}function Ut(e,t,r={}){let n=Rt(t,r);return n===null?null:E({[e]:n})}function Ii(e,t,r){let n=Rt(t);return n!==null&&(r[e]=n),r}function cc(e,t){let r=Rt(t);return r===null?null:{[e]:r}}function Rt(e,t={}){if(e===void 0)return null;let r=We(String(e),t);return r?Qt(...r,t):null}function Qt(e,t,r={}){let{isNegative:n,device:i}=r;switch(t){case se.rem:return e*16*(n?-1:1);case se.px:return e*(n?-1:1);case se.percent:return`${n?"-":""}${e}%`;case se.none:return e*(n?-1:1);case se.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(Je("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case se.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(Je("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function Zs(e){let t=We(e);if(!t)return null;let[r,n]=t;switch(n){case se.rem:return r*16;case se.px:return r;default:return null}}var iv={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function ea(e){return iv[e??""]||"All"}function ta(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(n,i)=>(t=ea(i),"")),t]}function fr(e,t={}){if(e.includes("/")){let r=fc(e,{...t,fractions:!0});if(r)return r}return e[0]==="["&&(e=e.slice(1,-1)),fc(e,t)}function dt(e,t,r={}){let n=fr(t,r);return n===null?null:E({[e]:n})}function fc(e,t={}){if(e==="px")return 1;let r=We(e,t);if(!r)return null;let[n,i]=r;return t.fractions&&(i=se.percent,n*=100),i===se.none&&(n=n/4,i=se.rem),Qt(n,i,t)}function ov(...e){console.warn(...e)}function sv(...e){}var Je=typeof process>"u"||((Js=process==null?void 0:process.env)===null||Js===void 0?void 0:Js.JEST_WORKER_ID)===void 0?ov:sv;var av=[["aspect-square",E({aspectRatio:1})],["aspect-video",E({aspectRatio:16/9})],["items-center",E({alignItems:"center"})],["items-start",E({alignItems:"flex-start"})],["items-end",E({alignItems:"flex-end"})],["items-baseline",E({alignItems:"baseline"})],["items-stretch",E({alignItems:"stretch"})],["justify-start",E({justifyContent:"flex-start"})],["justify-end",E({justifyContent:"flex-end"})],["justify-center",E({justifyContent:"center"})],["justify-between",E({justifyContent:"space-between"})],["justify-around",E({justifyContent:"space-around"})],["justify-evenly",E({justifyContent:"space-evenly"})],["content-start",E({alignContent:"flex-start"})],["content-end",E({alignContent:"flex-end"})],["content-between",E({alignContent:"space-between"})],["content-around",E({alignContent:"space-around"})],["content-stretch",E({alignContent:"stretch"})],["content-center",E({alignContent:"center"})],["self-auto",E({alignSelf:"auto"})],["self-start",E({alignSelf:"flex-start"})],["self-end",E({alignSelf:"flex-end"})],["self-center",E({alignSelf:"center"})],["self-stretch",E({alignSelf:"stretch"})],["self-baseline",E({alignSelf:"baseline"})],["direction-inherit",E({direction:"inherit"})],["direction-ltr",E({direction:"ltr"})],["direction-rtl",E({direction:"rtl"})],["hidden",E({display:"none"})],["flex",E({display:"flex"})],["flex-row",E({flexDirection:"row"})],["flex-row-reverse",E({flexDirection:"row-reverse"})],["flex-col",E({flexDirection:"column"})],["flex-col-reverse",E({flexDirection:"column-reverse"})],["flex-wrap",E({flexWrap:"wrap"})],["flex-wrap-reverse",E({flexWrap:"wrap-reverse"})],["flex-nowrap",E({flexWrap:"nowrap"})],["flex-auto",E({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",E({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",E({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",E({overflow:"hidden"})],["overflow-visible",E({overflow:"visible"})],["overflow-scroll",E({overflow:"scroll"})],["absolute",E({position:"absolute"})],["relative",E({position:"relative"})],["italic",E({fontStyle:"italic"})],["not-italic",E({fontStyle:"normal"})],["oldstyle-nums",In("oldstyle-nums")],["small-caps",In("small-caps")],["lining-nums",In("lining-nums")],["tabular-nums",In("tabular-nums")],["proportional-nums",In("proportional-nums")],["font-thin",E({fontWeight:"100"})],["font-100",E({fontWeight:"100"})],["font-extralight",E({fontWeight:"200"})],["font-200",E({fontWeight:"200"})],["font-light",E({fontWeight:"300"})],["font-300",E({fontWeight:"300"})],["font-normal",E({fontWeight:"normal"})],["font-400",E({fontWeight:"400"})],["font-medium",E({fontWeight:"500"})],["font-500",E({fontWeight:"500"})],["font-semibold",E({fontWeight:"600"})],["font-600",E({fontWeight:"600"})],["font-bold",E({fontWeight:"bold"})],["font-700",E({fontWeight:"700"})],["font-extrabold",E({fontWeight:"800"})],["font-800",E({fontWeight:"800"})],["font-black",E({fontWeight:"900"})],["font-900",E({fontWeight:"900"})],["include-font-padding",E({includeFontPadding:!0})],["remove-font-padding",E({includeFontPadding:!1})],["max-w-none",E({maxWidth:"99999%"})],["text-left",E({textAlign:"left"})],["text-center",E({textAlign:"center"})],["text-right",E({textAlign:"right"})],["text-justify",E({textAlign:"justify"})],["text-auto",E({textAlign:"auto"})],["underline",E({textDecorationLine:"underline"})],["line-through",E({textDecorationLine:"line-through"})],["no-underline",E({textDecorationLine:"none"})],["uppercase",E({textTransform:"uppercase"})],["lowercase",E({textTransform:"lowercase"})],["capitalize",E({textTransform:"capitalize"})],["normal-case",E({textTransform:"none"})],["w-auto",E({width:"auto"})],["h-auto",E({height:"auto"})],["shadow-sm",E({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",E({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",E({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",E({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",E({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",E({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",E({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],ra=av;function In(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var Rn=class{constructor(t){this.ir=new Map(ra),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...ra,...t??[]])}getStyle(t){return this.styles.get(t)}setStyle(t,r){this.styles.set(t,r)}getIr(t){return this.ir.get(t)}setIr(t,r){this.ir.set(t,r)}getPrefixMatch(t){return this.prefixes.get(t)}setPrefixMatch(t,r){this.prefixes.set(t,r)}};function na(e,t,r={}){let n=t==null?void 0:t[e];if(!n)return dt("fontSize",e,r);if(typeof n=="string")return Ut("fontSize",n);let i={},[o,s]=n,a=cc("fontSize",o);if(a&&(i=a),typeof s=="string")return E(Ii("lineHeight",dc(s,i),i));let{lineHeight:u,letterSpacing:f}=s;return u&&Ii("lineHeight",dc(u,i),i),f&&Ii("letterSpacing",f,i),E(i)}function dc(e,t){let r=We(e);if(r){let[n,i]=r;if((i===se.none||i===se.em)&&typeof t.fontSize=="number")return t.fontSize*n}return e}function ia(e,t){var r;let n=(r=t==null?void 0:t[e])!==null&&r!==void 0?r:e.startsWith("[")?e.slice(1,-1):e,i=We(n);if(!i)return null;let[o,s]=i;if(s===se.none)return{kind:"dependent",complete(u){if(typeof u.fontSize!="number")return"relative line-height utilities require that font-size be set";u.lineHeight=u.fontSize*o}};let a=Qt(o,s);return a!==null?E({lineHeight:a}):null}function oa(e,t,r,n,i){let o="";if(n[0]==="[")o=n.slice(1,-1);else{let f=i==null?void 0:i[n];if(f)o=f;else{let l=fr(n);return l&&typeof l=="number"?pc(l,se.px,t,e):null}}if(o==="auto")return hc(t,e,"auto");let s=We(o);if(!s)return null;let[a,u]=s;return r&&(a=-a),pc(a,u,t,e)}function pc(e,t,r,n){let i=Qt(e,t);return i===null?null:hc(r,n,i)}function hc(e,t,r){switch(e){case"All":return{kind:"complete",style:{[`${t}Top`]:r,[`${t}Right`]:r,[`${t}Bottom`]:r,[`${t}Left`]:r}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${t}${e}`]:r}};case"Vertical":return{kind:"complete",style:{[`${t}Top`]:r,[`${t}Bottom`]:r}};case"Horizontal":return{kind:"complete",style:{[`${t}Left`]:r,[`${t}Right`]:r}};default:return null}}function sa(e){if(!e)return{};let t=Object.entries(e).reduce((i,[o,s])=>{let a=[0,1/0,0],u=typeof s=="string"?{min:s}:s,f=u.min?Zs(u.min):0;f===null?Je(`invalid screen config value: ${o}->min: ${u.min}`):a[0]=f;let l=u.max?Zs(u.max):1/0;return l===null?Je(`invalid screen config value: ${o}->max: ${u.max}`):a[1]=l,i[o]=a,i},{}),r=Object.values(t);r.sort((i,o)=>{let[s,a]=i,[u,f]=o;return a===1/0||f===1/0?s-u:a-f});let n=0;return r.forEach(i=>i[2]=n++),t}function aa(e,t){let r=t==null?void 0:t[e];if(!r)return null;if(typeof r=="string")return E({fontFamily:r});let n=r[0];return n?E({fontFamily:n}):null}function cr(e,t,r){if(!r)return null;let n;t.includes("/")&&([t="",n]=t.split("/",2));let i="";if(t.startsWith("[#")||t.startsWith("[rgb")?i=t.slice(1,-1):i=bc(t,r),!i)return null;if(n){let o=Number(n);if(!Number.isNaN(o))return i=mc(i,o/100),E({[Ri[e].color]:i})}return{kind:"dependent",complete(o){let s=Ri[e].opacity,a=o[s];typeof a=="number"&&(i=mc(i,a)),o[Ri[e].color]=i}}}function Cn(e,t){let r=parseInt(t,10);if(Number.isNaN(r))return null;let n=r/100;return{kind:"complete",style:{[Ri[e].opacity]:n}}}function mc(e,t){return e.startsWith("#")?e=uv(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function gc(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var Ri={bg:{opacity:"__opacity_bg",color:"backgroundColor"},text:{opacity:"__opacity_text",color:"color"},border:{opacity:"__opacity_border",color:"borderColor"},borderTop:{opacity:"__opacity_border",color:"borderTopColor"},borderBottom:{opacity:"__opacity_border",color:"borderBottomColor"},borderLeft:{opacity:"__opacity_border",color:"borderLeftColor"},borderRight:{opacity:"__opacity_border",color:"borderRightColor"},shadow:{opacity:"__opacity_shadow",color:"shadowColor"},tint:{opacity:"__opacity_tint",color:"tintColor"}};function uv(e){let t=e;e=e.replace(lv,(s,a,u,f)=>a+a+u+u+f+f);let r=fv.exec(e);if(!r)return Je(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let n=parseInt(r[1],16),i=parseInt(r[2],16),o=parseInt(r[3],16);return`rgba(${n}, ${i}, ${o}, 1)`}function bc(e,t){let r=t[e];if(Qs(r))return r;if(Ks(r)&&Qs(r.DEFAULT))return r.DEFAULT;let[n="",...i]=e.split("-");for(;n!==e;){let o=t[n];if(Ks(o))return bc(i.join("-"),o);if(i.length===0)return"";n=`${n}-${i.shift()}`}return""}var lv=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,fv=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function yc(e,t){let[r,n]=ta(e);if(r.match(/^(-?(\d)+)?$/))return cv(r,n,t==null?void 0:t.borderWidth);if(r=r.replace(/^-/,""),["dashed","solid","dotted"].includes(r))return E({borderStyle:r});let o="border";switch(n){case"Bottom":o="borderBottom";break;case"Top":o="borderTop";break;case"Left":o="borderLeft";break;case"Right":o="borderRight";break}let s=cr(o,r,t==null?void 0:t.borderColor);if(s)return s;let a=`border${n==="All"?"":n}Width`;r=r.replace(/^-/,"");let u=r.slice(1,-1),f=dt(a,u);return typeof(f==null?void 0:f.style[a])!="number"?null:f}function cv(e,t,r){if(!r)return null;e=e.replace(/^-/,"");let i=r[e===""?"DEFAULT":e];if(i===void 0)return null;let o=`border${t==="All"?"":t}Width`;return Ut(o,i)}function xc(e,t){if(!t)return null;let[r,n]=ta(e);r=r.replace(/^-/,""),r===""&&(r="DEFAULT");let i=`border${n==="All"?"":n}Radius`,o=t[r];if(o)return vc(Ut(i,o));let s=dt(i,r);return typeof(s==null?void 0:s.style[i])!="number"?null:vc(s)}function vc(e){if((e==null?void 0:e.kind)!=="complete")return e;let t=e.style.borderTopRadius;t!==void 0&&(e.style.borderTopLeftRadius=t,e.style.borderTopRightRadius=t,delete e.style.borderTopRadius);let r=e.style.borderBottomRadius;r!==void 0&&(e.style.borderBottomLeftRadius=r,e.style.borderBottomRightRadius=r,delete e.style.borderBottomRadius);let n=e.style.borderLeftRadius;n!==void 0&&(e.style.borderBottomLeftRadius=n,e.style.borderTopLeftRadius=n,delete e.style.borderLeftRadius);let i=e.style.borderRightRadius;return i!==void 0&&(e.style.borderBottomRightRadius=i,e.style.borderTopRightRadius=i,delete e.style.borderRightRadius),e}function Ir(e,t,r,n){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(a,u)=>(i=u==="x"?"x":"y","")));let o=n==null?void 0:n[t];if(o){let a=Rt(o,{isNegative:r});if(a!==null)return wc(e,i,a)}let s=fr(t,{isNegative:r});return s!==null?wc(e,i,s):null}function wc(e,t,r){if(e!=="inset")return E({[e]:r});switch(t){case null:return E({top:r,left:r,right:r,bottom:r});case"y":return E({top:r,bottom:r});case"x":return E({left:r,right:r})}}function Ln(e,t,r){var n;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,o=Number((n=r==null?void 0:r[i])!==null&&n!==void 0?n:t);return Number.isNaN(o)?null:E({[`flex${e}`]:o})}function Sc(e,t){var r,n;if(e=(t==null?void 0:t[e])||e,["min-content","revert","unset"].includes(e))return null;if(e.match(/^\d+(\.\d+)?$/))return E({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return E({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let o=Rt((r=i[2])!==null&&r!==void 0?r:"");return o?E({flexGrow:Number(i[1]),flexBasis:o}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let o=Rt((n=i[3])!==null&&n!==void 0?n:"");return o?E({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function ua(e,t,r={},n){let i=n==null?void 0:n[t];return i!==void 0?Ut(e,i,r):dt(e,t,r)}function Mn(e,t,r={},n){let i=Rt(n==null?void 0:n[t],r);return i?E({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),dt(e,t,r))}function _c(e,t,r){let n=r==null?void 0:r[e];if(n){let i=We(n,{isNegative:t});if(!i)return null;let[o,s]=i;if(s===se.em)return dv(o);if(s===se.percent)return Je("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."),null;let a=Qt(o,s,{isNegative:t});return a!==null?E({letterSpacing:a}):null}return dt("letterSpacing",e,{isNegative:t})}function dv(e){return{kind:"dependent",complete(t){let r=t.fontSize;if(typeof r!="number"||Number.isNaN(r))return"tracking-X relative letter spacing classes require font-size to be set";t.letterSpacing=Math.round((e*r+Number.EPSILON)*100)/100}}}function Tc(e,t){let r=t==null?void 0:t[e];if(r){let i=We(String(r));if(i)return E({opacity:i[0]})}let n=We(e);return n?E({opacity:n[0]/100}):null}function Ec(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function kc(e){if(e.includes("/")){let[r="",n=""]=e.split("/",2),i=la(r),o=la(n);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=la(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function la(e){let t=fr(e);return typeof t=="number"?t:null}var Rr=class{constructor(t,r={},n,i,o){var s,a,u,f,l,p;this.config=r,this.cache=n,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let h=t.trim().split(":"),m=[];h.length===1?this.string=t:(this.string=(s=h.pop())!==null&&s!==void 0?s:"",m=h),this.char=this.string[0];let b=sa((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let y of m)if(b[y]){let S=(u=b[y])===null||u===void 0?void 0:u[2];S!==void 0&&(this.order=((f=this.order)!==null&&f!==void 0?f:0)+S);let T=(l=i.windowDimensions)===null||l===void 0?void 0:l.width;if(T){let[P,w]=(p=b[y])!==null&&p!==void 0?p:[0,0];(T<=P||T>w)&&(this.isNull=!0)}else this.isNull=!0}else uc(y)?this.isNull=y!==o:lc(y)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==y?this.isNull=!0:this.incrementOrder():this.isNull=!0:y==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:y==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(y)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let t=this.cache.getIr(this.rest);if(t)return t;this.parseIsNegative();let r=this.parseUtility();return r?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:r}:r:{kind:"null"}}parseUtility(){var t,r,n,i,o;let s=this.config.theme,a=null;switch(this.char){case"m":case"p":{let u=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(u){let f=this.char==="m"?"margin":"padding";this.advance(((r=(t=u[0])===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+1);let l=ea(u[1]),p=oa(f,l,this.isNegative,this.rest,(n=this.config.theme)===null||n===void 0?void 0:n[f]);if(p)return p}}}if(this.consumePeeked("h-")&&(a=ua("height",this.rest,this.context,s==null?void 0:s.height),a)||this.consumePeeked("w-")&&(a=ua("width",this.rest,this.context,s==null?void 0:s.width),a)||this.consumePeeked("min-w-")&&(a=Mn("minWidth",this.rest,this.context,s==null?void 0:s.minWidth),a)||this.consumePeeked("min-h-")&&(a=Mn("minHeight",this.rest,this.context,s==null?void 0:s.minHeight),a)||this.consumePeeked("max-w-")&&(a=Mn("maxWidth",this.rest,this.context,s==null?void 0:s.maxWidth),a)||this.consumePeeked("max-h-")&&(a=Mn("maxHeight",this.rest,this.context,s==null?void 0:s.maxHeight),a)||this.consumePeeked("leading-")&&(a=ia(this.rest,s==null?void 0:s.lineHeight),a)||this.consumePeeked("text-")&&(a=na(this.rest,s==null?void 0:s.fontSize,this.context),a||(a=cr("text",this.rest,s==null?void 0:s.textColor),a)||this.consumePeeked("opacity-")&&(a=Cn("text",this.rest),a))||this.consumePeeked("font-")&&(a=aa(this.rest,s==null?void 0:s.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&Je("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=Ut("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=cr("tint",this.rest,s==null?void 0:s.colors),a)||this.consumePeeked("bg-")&&(a=cr("bg",this.rest,s==null?void 0:s.backgroundColor),a||this.consumePeeked("opacity-")&&(a=Cn("bg",this.rest),a))||this.consumePeeked("border")&&(a=yc(this.rest,s),a||this.consumePeeked("-opacity-")&&(a=Cn("border",this.rest),a))||this.consumePeeked("rounded")&&(a=xc(this.rest,s==null?void 0:s.borderRadius),a)||this.consumePeeked("bottom-")&&(a=Ir("bottom",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("top-")&&(a=Ir("top",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("left-")&&(a=Ir("left",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("right-")&&(a=Ir("right",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("inset-")&&(a=Ir("inset",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=Ln("Grow",this.rest,s==null?void 0:s.flexGrow):this.consumePeeked("shrink")?a=Ln("Shrink",this.rest,s==null?void 0:s.flexShrink):a=Sc(this.rest,s==null?void 0:s.flex),a)||this.consumePeeked("grow")&&(a=Ln("Grow",this.rest,s==null?void 0:s.flexGrow),a)||this.consumePeeked("shrink")&&(a=Ln("Shrink",this.rest,s==null?void 0:s.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=Cn("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=Ec(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=kc(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=dt("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=cr("shadow",this.rest,s==null?void 0:s.colors),a))return a;if(this.consumePeeked("elevation-")){let u=parseInt(this.rest,10);if(!Number.isNaN(u))return E({elevation:u})}if(this.consumePeeked("opacity-")&&(a=Tc(this.rest,s==null?void 0:s.opacity),a)||this.consumePeeked("tracking-")&&(a=_c(this.rest,this.isNegative,s==null?void 0:s.letterSpacing),a))return a;if(this.consumePeeked("z-")){let u=Number((o=(i=s==null?void 0:s.zIndex)===null||i===void 0?void 0:i[this.rest])!==null&&o!==void 0?o:this.rest);if(!Number.isNaN(u))return E({zIndex:u})}return Je(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(t){var r;if(t[0]!=="m")return!1;let n=t.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!n)return!1;if(!(!((r=this.context.device)===null||r===void 0)&&r.windowDimensions))return this.isNull=!0,!0;let i=this.context.device.windowDimensions,[,o="",s="",a=""]=n,u=s==="w"?i.width:i.height,f=We(a,this.context);if(f===null)return this.isNull=!0,!0;let[l,p]=f;return p!=="px"&&(this.isNull=!0),(o==="min"?u>=l:u<=l)?this.incrementOrder():this.isNull=!0,!0}advance(t=1){this.position+=t,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(t,r){return this.string.slice(this.position+t,this.position+r)}consumePeeked(t){return this.peekSlice(0,t.length)===t?(this.advance(t.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var t;this.order=((t=this.order)!==null&&t!==void 0?t:0)+1}};function Oc(e){let t=[],r=null;return e.forEach(n=>{if(typeof n=="string")t=[...t,...fa(n)];else if(Array.isArray(n))t=[...t,...n.flatMap(fa)];else if(typeof n=="object"&&n!==null)for(let[i,o]of Object.entries(n))typeof o=="boolean"?t=[...t,...o?fa(i):[]]:r?r[i]=o:r={[i]:o}}),[t.filter(Boolean).filter(pv),r]}function fa(e){return e.trim().split(/\s+/)}function pv(e,t,r){return r.indexOf(e)===t}function Pc(e){var t;return(t=e==null?void 0:e.reduce((r,n)=>({...r,...hv(n.handler)}),{}))!==null&&t!==void 0?t:{}}function hv(e){let t={};return e({addUtilities:r=>{t=r},...mv}),t}function Ct(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var mv={addComponents:Ct,addBase:Ct,addVariant:Ct,e:Ct,prefix:Ct,theme:Ct,variants:Ct,config:Ct,corePlugins:Ct,matchUtilities:Ct,postcss:null};function Ic(e,t){let r=(0,Ac.default)(gv(e)),n={},i=Pc(r.plugins),o={},s=Object.entries(i).map(([b,y])=>typeof y=="string"?(o[b]=y,[b,{kind:"null"}]):[b,E(y)]).filter(([,b])=>b.kind!=="null");function a(){return[n.windowDimensions?`w${n.windowDimensions.width}`:!1,n.windowDimensions?`h${n.windowDimensions.height}`:!1,n.fontScale?`fs${n.fontScale}`:!1,n.colorScheme==="dark"?"dark":!1,n.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let u=a(),f={};function l(){let b=f[u];if(b)return b;let y=new Rn(s);return f[u]=y,y}function p(...b){let y=l(),S={},T=[],P=[],[w,k]=Oc(b),_=w.join(" "),A=y.getStyle(_);if(A)return{...A,...k||{}};for(let F of w){let B=y.getIr(F);if(!B&&F in o){let ae=p(o[F]);y.setIr(F,E(ae)),S={...S,...ae};continue}switch(B=new Rr(F,r,y,n,t).parse(),B.kind){case"complete":S={...S,...B.style},y.setIr(F,B);break;case"dependent":T.push(B);break;case"ordered":P.push(B);break;case"null":y.setIr(F,B);break}}if(P.length>0){P.sort((F,B)=>F.order-B.order);for(let F of P)switch(F.styleIr.kind){case"complete":S={...S,...F.styleIr.style};break;case"dependent":T.push(F.styleIr);break}}if(T.length>0){for(let F of T){let B=F.complete(S);B&&Je(B)}gc(S)}return _!==""&&y.setStyle(_,S),k&&(S={...S,...k}),S}function h(b){let y=p(b.split(/\s+/g).map(S=>S.replace(/^(bg|text|border)-/,"")).map(S=>`bg-${S}`).join(" "));return typeof y.backgroundColor=="string"?y.backgroundColor:void 0}let m=(b,...y)=>{let S="";return b.forEach((T,P)=>{var w;S+=T+((w=y[P])!==null&&w!==void 0?w:"")}),p(S)};return m.style=p,m.color=h,m.prefixMatch=(...b)=>{let y=b.sort().join(":"),S=l(),T=S.getPrefixMatch(y);if(T!==void 0)return T;let k=new Rr(`${y}:flex`,r,S,n,t).parse().kind!=="null";return S.setPrefixMatch(y,k),k},m.setWindowDimensions=b=>{n.windowDimensions=b,u=a()},m.setFontScale=b=>{n.fontScale=b,u=a()},m.setPixelDensity=b=>{n.pixelDensity=b,u=a()},m.setColorScheme=b=>{n.colorScheme=b,u=a()},m}function gv(e){return{...e,content:["_no_warnings_please"]}}var vv={handler:({addUtilities:e})=>{e({"shadow-sm":{boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},shadow:{boxShadow:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"},"shadow-md":{boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},"shadow-lg":{boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"},"shadow-xl":{boxShadow:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"},"shadow-2xl":{boxShadow:"0 25px 50px -12px rgb(0 0 0 / 0.25)"},"shadow-inner":{boxShadow:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},"shadow-none":{boxShadow:"0 0 #0000"}})}};function yv(e){return Ic({...e,plugins:[...(e==null?void 0:e.plugins)??[],vv]},"web")}var Ci;function ca({width:e,height:t,config:r}){return Ci||(Ci=yv(r)),Ci.setWindowDimensions({width:+e,height:+t}),Ci}var da=new WeakMap;async function pa(e,t){let r=await jt();if(!r||!r.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+r);t.fonts=t.fonts||[];let n;da.has(t.fonts)?n=da.get(t.fonts):da.set(t.fonts,n=new Jr(t.fonts));let i="width"in t?t.width:void 0,o="height"in t?t.height:void 0,s=xv(r,t.pointScaleFactor);i&&s.setWidth(i),o&&s.setHeight(o),s.setFlexDirection(r.FLEX_DIRECTION_ROW),s.setFlexWrap(r.WRAP_WRAP),s.setAlignContent(r.ALIGN_AUTO),s.setAlignItems(r.ALIGN_FLEX_START),s.setJustifyContent(r.JUSTIFY_FLEX_START),s.setOverflow(r.OVERFLOW_HIDDEN);let a=Object.assign(Object.create(null),t.graphemeImages),u=new Set;At.clear(),qr.clear(),await ou(e);let f=Kr(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:i,_viewportHeight:o},parent:s,font:n,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,onNodeDetected:t.onNodeDetected,getTwStyles:(b,y)=>{let T={...ca({width:i,height:o,config:t.tailwindConfig})([b])};return typeof T.lineHeight=="number"&&(T.lineHeight=T.lineHeight/(+T.fontSize||y.fontSize||16)),T.shadowColor&&T.boxShadow&&(T.boxShadow=T.boxShadow.replace(/rgba?\([^)]+\)/,T.shadowColor)),T}}),l=(await f.next()).value;if(t.loadAdditionalAsset&&l.length){let b=wv(l),y=[],S={};await Promise.all(Object.entries(b).flatMap(([T,P])=>P.map(w=>{let k=`${T}_${w}`;return u.has(k)?null:(u.add(k),t.loadAdditionalAsset(T,w).then(_=>{typeof _=="string"?S[w]=_:_&&(Array.isArray(_)?y.push(..._):y.push(_))}))}))),n.addFonts(y),Object.assign(a,S)}await f.next(),s.calculateLayout(i,o,r.DIRECTION_LTR);let p=(await f.next([0,0])).value,h=s.getComputedWidth(),m=s.getComputedHeight();return s.freeRecursive(),To({width:h,height:m,content:p})}function xv(e,t){if(t){let r=e.Config.create();return r.setPointScaleFactor(t),e.Node.createWithConfig(r)}else return e.Node.create()}function wv(e){let t={},r={};for(let{word:n,locale:i}of e){let o=Hu(n,i).join("|");r[o]=r[o]||"",r[o]+=n}return Object.keys(r).forEach(n=>{t[n]=t[n]||[],n==="emoji"?t[n].push(...Rc(Ve(r[n],"grapheme"))):(t[n][0]=t[n][0]||"",t[n][0]+=Rc(Ve(r[n],"grapheme",n==="unknown"?void 0:n)).join(""))}),t}function Rc(e){return Array.from(new Set(e))}0&&(module.exports={init});
|
|
8
8
|
//# sourceMappingURL=standalone.cjs.map
|