satori 0.19.0 → 0.19.2
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/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -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.d.cts +3 -1
- package/dist/standalone.d.ts +3 -1
- package/dist/standalone.js +7 -7
- package/dist/standalone.js.map +1 -1
- package/package.json +2 -3
- package/yoga.wasm +0 -0
package/dist/standalone.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var hc=Object.create;var Rn=Object.defineProperty;var mc=Object.getOwnPropertyDescriptor;var gc=Object.getOwnPropertyNames;var vc=Object.getPrototypeOf,bc=Object.prototype.hasOwnProperty;var Kt=(e,t)=>()=>(e&&(t=e(e=0)),t);var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Er=(e,t)=>{for(var r in t)Rn(e,r,{get:t[r],enumerable:!0})},ra=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of gc(t))!bc.call(e,i)&&i!==r&&Rn(e,i,{get:()=>t[i],enumerable:!(n=mc(t,i))||n.enumerable});return e};var At=(e,t,r)=>(r=e!=null?hc(vc(e)):{},ra(t||!e||!e.__esModule?Rn(r,"default",{value:e,enumerable:!0}):r,e)),kr=e=>ra(Rn({},"__esModule",{value:!0}),e);var Ct,ba,ya,Ar,Ti,Lt,cr,Rc,Mn,Ei,dr,pr,ki,xa,Oi,Pi,ct,Ai,Ic,wa,Nn=Kt(()=>{Ct=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}({}),ba=function(e){return e[e.BorderBox=0]="BorderBox",e[e.ContentBox=1]="ContentBox",e}({}),ya=function(e){return e[e.Width=0]="Width",e[e.Height=1]="Height",e}({}),Ar=function(e){return e[e.Inherit=0]="Inherit",e[e.LTR=1]="LTR",e[e.RTL=2]="RTL",e}({}),Ti=function(e){return e[e.Flex=0]="Flex",e[e.None=1]="None",e[e.Contents=2]="Contents",e}({}),Lt=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}({}),cr=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}({}),Rc=function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e}({}),Mn=function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e}({}),Ei=function(e){return e[e.Column=0]="Column",e[e.Row=1]="Row",e[e.All=2]="All",e}({}),dr=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}({}),pr=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}({}),ki=function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e}({}),xa=function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e}({}),Oi=function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e}({}),Pi=function(e){return e[e.Static=0]="Static",e[e.Relative=1]="Relative",e[e.Absolute=2]="Absolute",e}({}),ct=function(e){return e[e.Undefined=0]="Undefined",e[e.Point=1]="Point",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto",e}({}),Ai=function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e}({}),Ic={ALIGN_AUTO:Ct.Auto,ALIGN_FLEX_START:Ct.FlexStart,ALIGN_CENTER:Ct.Center,ALIGN_FLEX_END:Ct.FlexEnd,ALIGN_STRETCH:Ct.Stretch,ALIGN_BASELINE:Ct.Baseline,ALIGN_SPACE_BETWEEN:Ct.SpaceBetween,ALIGN_SPACE_AROUND:Ct.SpaceAround,ALIGN_SPACE_EVENLY:Ct.SpaceEvenly,BOX_SIZING_BORDER_BOX:ba.BorderBox,BOX_SIZING_CONTENT_BOX:ba.ContentBox,DIMENSION_WIDTH:ya.Width,DIMENSION_HEIGHT:ya.Height,DIRECTION_INHERIT:Ar.Inherit,DIRECTION_LTR:Ar.LTR,DIRECTION_RTL:Ar.RTL,DISPLAY_FLEX:Ti.Flex,DISPLAY_NONE:Ti.None,DISPLAY_CONTENTS:Ti.Contents,EDGE_LEFT:Lt.Left,EDGE_TOP:Lt.Top,EDGE_RIGHT:Lt.Right,EDGE_BOTTOM:Lt.Bottom,EDGE_START:Lt.Start,EDGE_END:Lt.End,EDGE_HORIZONTAL:Lt.Horizontal,EDGE_VERTICAL:Lt.Vertical,EDGE_ALL:Lt.All,ERRATA_NONE:cr.None,ERRATA_STRETCH_FLEX_BASIS:cr.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:cr.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:cr.AbsolutePercentAgainstInnerSize,ERRATA_ALL:cr.All,ERRATA_CLASSIC:cr.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:Rc.WebFlexBasis,FLEX_DIRECTION_COLUMN:Mn.Column,FLEX_DIRECTION_COLUMN_REVERSE:Mn.ColumnReverse,FLEX_DIRECTION_ROW:Mn.Row,FLEX_DIRECTION_ROW_REVERSE:Mn.RowReverse,GUTTER_COLUMN:Ei.Column,GUTTER_ROW:Ei.Row,GUTTER_ALL:Ei.All,JUSTIFY_FLEX_START:dr.FlexStart,JUSTIFY_CENTER:dr.Center,JUSTIFY_FLEX_END:dr.FlexEnd,JUSTIFY_SPACE_BETWEEN:dr.SpaceBetween,JUSTIFY_SPACE_AROUND:dr.SpaceAround,JUSTIFY_SPACE_EVENLY:dr.SpaceEvenly,LOG_LEVEL_ERROR:pr.Error,LOG_LEVEL_WARN:pr.Warn,LOG_LEVEL_INFO:pr.Info,LOG_LEVEL_DEBUG:pr.Debug,LOG_LEVEL_VERBOSE:pr.Verbose,LOG_LEVEL_FATAL:pr.Fatal,MEASURE_MODE_UNDEFINED:ki.Undefined,MEASURE_MODE_EXACTLY:ki.Exactly,MEASURE_MODE_AT_MOST:ki.AtMost,NODE_TYPE_DEFAULT:xa.Default,NODE_TYPE_TEXT:xa.Text,OVERFLOW_VISIBLE:Oi.Visible,OVERFLOW_HIDDEN:Oi.Hidden,OVERFLOW_SCROLL:Oi.Scroll,POSITION_TYPE_STATIC:Pi.Static,POSITION_TYPE_RELATIVE:Pi.Relative,POSITION_TYPE_ABSOLUTE:Pi.Absolute,UNIT_UNDEFINED:ct.Undefined,UNIT_POINT:ct.Point,UNIT_PERCENT:ct.Percent,UNIT_AUTO:ct.Auto,WRAP_NO_WRAP:Ai.NoWrap,WRAP_WRAP:Ai.Wrap,WRAP_WRAP_REVERSE:Ai.WrapReverse},wa=Ic});function Ri(e){function t(i,o,s){let a=i[o];i[o]=function(){for(var u=arguments.length,f=new Array(u),c=0;c<u;c++)f[c]=arguments[c];return s.call(this,a,...f)}}for(let i of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){let o={[ct.Point]:e.Node.prototype[i],[ct.Percent]:e.Node.prototype[`${i}Percent`],[ct.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 c=u.pop(),p,m;if(c==="auto")p=ct.Auto,m=void 0;else if(typeof c=="object")p=c.unit,m=c.valueOf();else if(p=typeof c=="string"&&c.endsWith("%")?ct.Percent:ct.Point,m=parseFloat(c),c!==void 0&&!Number.isNaN(c)&&Number.isNaN(m))throw new Error(`Invalid value ${c} for ${i}`);if(!o[p])throw new Error(`Failed to execute "${i}": Unsupported unit '${c}'`);return m!==void 0?o[p].call(this,...u,m):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]:Ar.LTR;return i.call(this,o,s,a)}),{Config:e.Config,Node:e.Node,...wa}}var Sa=Kt(()=>{Nn();Nn()});var Ta={};Er(Ta,{default:()=>Cc});function Cc(e){let t={wasmBinary:e};var r;r||(r=typeof t<"u"?t:{});var n,i;r.ready=new Promise(function(l,d){n=l,i=d});var o=Object.assign({},r),s="";typeof document<"u"&&document.currentScript&&(s=document.currentScript.src),_a&&(s=_a),s.indexOf("blob:")!==0?s=s.substr(0,s.replace(/[?#].*/,"").lastIndexOf("/")+1):s="";var a=r.print||console.log.bind(console),u=r.printErr||console.warn.bind(console);Object.assign(r,o),o=null;var f;r.wasmBinary&&(f=r.wasmBinary);var c=r.noExitRuntime||!0;typeof WebAssembly!="object"&&ie("no native wasm support detected");var p,m=!1;function g(l,d,h){h=d+h;for(var v="";!(d>=h);){var y=l[d++];if(!y)break;if(y&128){var E=l[d++]&63;if((y&224)==192)v+=String.fromCharCode((y&31)<<6|E);else{var O=l[d++]&63;y=(y&240)==224?(y&15)<<12|E<<6|O:(y&7)<<18|E<<12|O<<6|l[d++]&63,65536>y?v+=String.fromCharCode(y):(y-=65536,v+=String.fromCharCode(55296|y>>10,56320|y&1023))}}else v+=String.fromCharCode(y)}return v}var b,x,w,_,M,k,T,P,N;function B(){var l=p.buffer;b=l,r.HEAP8=x=new Int8Array(l),r.HEAP16=_=new Int16Array(l),r.HEAP32=k=new Int32Array(l),r.HEAPU8=w=new Uint8Array(l),r.HEAPU16=M=new Uint16Array(l),r.HEAPU32=T=new Uint32Array(l),r.HEAPF32=P=new Float32Array(l),r.HEAPF64=N=new Float64Array(l)}var G,se=[],we=[],Ie=[];function Ee(){var l=r.preRun.shift();se.unshift(l)}var te=0,Se=null,de=null;function ie(l){throw r.onAbort&&r.onAbort(l),l="Aborted("+l+")",u(l),m=!0,l=new WebAssembly.RuntimeError(l+". Build with -sASSERTIONS for more info."),i(l),l}function me(l){return l.startsWith("data:application/octet-stream;base64,")}var be="";if(!me(be)){var ke=be;be=r.locateFile?r.locateFile(ke,s):s+ke}function ye(){var l=be;try{if(l==be&&f)return new Uint8Array(f);if(me(l))try{var d=dc(l.slice(37)),h=new Uint8Array(d.length);for(l=0;l<d.length;++l)h[l]=d.charCodeAt(l);var v=h}catch{throw Error("Converting base64 string to bytes failed.")}else v=void 0;var y=v;if(y)return y;throw"both async and sync fetching of the wasm failed"}catch(E){ie(E)}}function jt(){return f||typeof fetch!="function"?Promise.resolve().then(function(){return ye()}):fetch(be,{credentials:"same-origin"}).then(function(l){if(!l.ok)throw"failed to load wasm binary file at '"+be+"'";return l.arrayBuffer()}).catch(function(){return ye()})}function Ce(l){for(;0<l.length;)l.shift()(r)}function ot(l){if(l===void 0)return"_unknown";l=l.replace(/[^a-zA-Z0-9_]/g,"$");var d=l.charCodeAt(0);return 48<=d&&57>=d?"_"+l:l}function ht(l,d){return l=ot(l),function(){return d.apply(this,arguments)}}var U=[{},{value:void 0},{value:null},{value:!0},{value:!1}],Le=[];function Me(l){var d=Error,h=ht(l,function(v){this.name=l,this.message=v,v=Error(v).stack,v!==void 0&&(this.stack=this.toString()+`
|
|
2
|
-
`+v.replace(/^Error(:[^\n]*)?\n/,""))});return h.prototype=Object.create(d.prototype),h.prototype.constructor=h,h.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},h}var Ge=void 0;function j(l){throw new Ge(l)}var mt=l=>(l||j("Cannot use deleted val. handle = "+l),U[l].value),gt=l=>{switch(l){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var d=Le.length?Le.pop():U.length;return U[d]={ga:1,value:l},d}},wn=void 0,Sn=void 0;function xe(l){for(var d="";w[l];)d+=Sn[w[l++]];return d}var vt=[];function Xe(){for(;vt.length;){var l=vt.pop();l.M.$=!1,l.delete()}}var Dt=void 0,Qe={};function sr(l,d){for(d===void 0&&j("ptr should not be undefined");l.R;)d=l.ba(d),l=l.R;return d}var st={};function _n(l){l=Js(l);var d=xe(l);return Ot(l),d}function Vt(l,d){var h=st[l];return h===void 0&&j(d+" has unknown type "+_n(l)),h}function at(){}var bt=!1;function je(l){--l.count.value,l.count.value===0&&(l.T?l.U.W(l.T):l.P.N.W(l.O))}function Ht(l,d,h){return d===h?l:h.R===void 0?null:(l=Ht(l,d,h.R),l===null?null:h.na(l))}var ut={};function Yt(l,d){return d=sr(l,d),Qe[d]}var Xt=void 0;function Qt(l){throw new Xt(l)}function Tt(l,d){return d.P&&d.O||Qt("makeClassHandle requires ptr and ptrType"),!!d.U!=!!d.T&&Qt("Both smartPtrType and smartPtr must be specified"),d.count={value:1},Ve(Object.create(l,{M:{value:d}}))}function Ve(l){return typeof FinalizationRegistry>"u"?(Ve=d=>d,l):(bt=new FinalizationRegistry(d=>{je(d.M)}),Ve=d=>{var h=d.M;return h.T&&bt.register(d,{M:h},d),d},at=d=>{bt.unregister(d)},Ve(l))}var He={};function ar(l){for(;l.length;){var d=l.pop();l.pop()(d)}}function V(l){return this.fromWireType(k[l>>2])}var Q={},ae={};function Y(l,d,h){function v(A){A=h(A),A.length!==l.length&&Qt("Mismatched type converter count");for(var L=0;L<l.length;++L)X(l[L],A[L])}l.forEach(function(A){ae[A]=d});var y=Array(d.length),E=[],O=0;d.forEach((A,L)=>{st.hasOwnProperty(A)?y[L]=st[A]:(E.push(A),Q.hasOwnProperty(A)||(Q[A]=[]),Q[A].push(()=>{y[L]=st[A],++O,O===E.length&&v(y)}))}),E.length===0&&v(y)}function pe(l){switch(l){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+l)}}function X(l,d,h={}){if(!("argPackAdvance"in d))throw new TypeError("registerType registeredInstance requires argPackAdvance");var v=d.name;if(l||j('type "'+v+'" must have a positive integer typeid pointer'),st.hasOwnProperty(l)){if(h.ua)return;j("Cannot register type '"+v+"' twice")}st[l]=d,delete ae[l],Q.hasOwnProperty(l)&&(d=Q[l],delete Q[l],d.forEach(y=>y()))}function he(l){j(l.M.P.N.name+" instance already deleted")}function K(){}function Z(l,d,h){if(l[d].S===void 0){var v=l[d];l[d]=function(){return l[d].S.hasOwnProperty(arguments.length)||j("Function '"+h+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+l[d].S+")!"),l[d].S[arguments.length].apply(this,arguments)},l[d].S=[],l[d].S[v.Z]=v}}function Ke(l,d){r.hasOwnProperty(l)?(j("Cannot register public name '"+l+"' twice"),Z(r,l,l),r.hasOwnProperty(void 0)&&j("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),r[l].S[void 0]=d):r[l]=d}function J(l,d,h,v,y,E,O,A){this.name=l,this.constructor=d,this.X=h,this.W=v,this.R=y,this.pa=E,this.ba=O,this.na=A,this.ja=[]}function lt(l,d,h){for(;d!==h;)d.ba||j("Expected null or instance of "+h.name+", got an instance of "+d.name),l=d.ba(l),d=d.R;return l}function Be(l,d){return d===null?(this.ea&&j("null is not a valid "+this.name),0):(d.M||j('Cannot pass "'+Je(d)+'" as a '+this.name),d.M.O||j("Cannot pass deleted object as a pointer of type "+this.name),lt(d.M.O,d.M.P.N,this.N))}function yt(l,d){if(d===null){if(this.ea&&j("null is not a valid "+this.name),this.da){var h=this.fa();return l!==null&&l.push(this.W,h),h}return 0}if(d.M||j('Cannot pass "'+Je(d)+'" as a '+this.name),d.M.O||j("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&d.M.P.ca&&j("Cannot convert argument of type "+(d.M.U?d.M.U.name:d.M.P.name)+" to parameter type "+this.name),h=lt(d.M.O,d.M.P.N,this.N),this.da)switch(d.M.T===void 0&&j("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:d.M.U===this?h=d.M.T:j("Cannot convert argument of type "+(d.M.U?d.M.U.name:d.M.P.name)+" to parameter type "+this.name);break;case 1:h=d.M.T;break;case 2:if(d.M.U===this)h=d.M.T;else{var v=d.clone();h=this.xa(h,gt(function(){v.delete()})),l!==null&&l.push(this.W,h)}break;default:j("Unsupporting sharing policy")}return h}function ur(l,d){return d===null?(this.ea&&j("null is not a valid "+this.name),0):(d.M||j('Cannot pass "'+Je(d)+'" as a '+this.name),d.M.O||j("Cannot pass deleted object as a pointer of type "+this.name),d.M.P.ca&&j("Cannot convert argument of type "+d.M.P.name+" to parameter type "+this.name),lt(d.M.O,d.M.P.N,this.N))}function Oe(l,d,h,v){this.name=l,this.N=d,this.ea=h,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=yt:(this.toWireType=v?Be:ur,this.V=null)}function ue(l,d){r.hasOwnProperty(l)||Qt("Replacing nonexistant public symbol"),r[l]=d,r[l].Z=void 0}function Pe(l,d){var h=[];return function(){if(h.length=0,Object.assign(h,arguments),l.includes("j")){var v=r["dynCall_"+l];v=h&&h.length?v.apply(null,[d].concat(h)):v.call(null,d)}else v=G.get(d).apply(null,h);return v}}function _e(l,d){l=xe(l);var h=l.includes("j")?Pe(l,d):G.get(d);return typeof h!="function"&&j("unknown function pointer with signature "+l+": "+d),h}var _r=void 0;function Et(l,d){function h(E){y[E]||st[E]||(ae[E]?ae[E].forEach(h):(v.push(E),y[E]=!0))}var v=[],y={};throw d.forEach(h),new _r(l+": "+v.map(_n).join([", "]))}function Ne(l,d,h,v,y){var E=d.length;2>E&&j("argTypes array size mismatch! Must at least get return value and 'this' types!");var O=d[1]!==null&&h!==null,A=!1;for(h=1;h<d.length;++h)if(d[h]!==null&&d[h].V===void 0){A=!0;break}var L=d[0].name!=="void",I=E-2,D=Array(I),z=[],ee=[];return function(){if(arguments.length!==I&&j("function "+l+" called with "+arguments.length+" arguments, expected "+I+" args!"),ee.length=0,z.length=O?2:1,z[0]=y,O){var Te=d[1].toWireType(ee,this);z[1]=Te}for(var oe=0;oe<I;++oe)D[oe]=d[oe+2].toWireType(ee,arguments[oe]),z.push(D[oe]);if(oe=v.apply(null,z),A)ar(ee);else for(var Ye=O?1:2;Ye<d.length;Ye++){var ft=Ye===1?Te:D[Ye-2];d[Ye].V!==null&&d[Ye].V(ft)}return Te=L?d[0].fromWireType(oe):void 0,Te}}function Fe(l,d){for(var h=[],v=0;v<l;v++)h.push(T[d+4*v>>2]);return h}function De(l){4<l&&--U[l].ga===0&&(U[l]=void 0,Le.push(l))}function Je(l){if(l===null)return"null";var d=typeof l;return d==="object"||d==="array"||d==="function"?l.toString():""+l}function kt(l,d){switch(d){case 2:return function(h){return this.fromWireType(P[h>>2])};case 3:return function(h){return this.fromWireType(N[h>>3])};default:throw new TypeError("Unknown float type: "+l)}}function Tn(l,d,h){switch(d){case 0:return h?function(v){return x[v]}:function(v){return w[v]};case 1:return h?function(v){return _[v>>1]}:function(v){return M[v>>1]};case 2:return h?function(v){return k[v>>2]}:function(v){return T[v>>2]};default:throw new TypeError("Unknown integer type: "+l)}}function En(l,d){for(var h="",v=0;!(v>=d/2);++v){var y=_[l+2*v>>1];if(y==0)break;h+=String.fromCharCode(y)}return h}function kn(l,d,h){if(h===void 0&&(h=2147483647),2>h)return 0;h-=2;var v=d;h=h<2*l.length?h/2:l.length;for(var y=0;y<h;++y)_[d>>1]=l.charCodeAt(y),d+=2;return _[d>>1]=0,d-v}function ic(l){return 2*l.length}function oc(l,d){for(var h=0,v="";!(h>=d/4);){var y=k[l+4*h>>2];if(y==0)break;++h,65536<=y?(y-=65536,v+=String.fromCharCode(55296|y>>10,56320|y&1023)):v+=String.fromCharCode(y)}return v}function sc(l,d,h){if(h===void 0&&(h=2147483647),4>h)return 0;var v=d;h=v+h-4;for(var y=0;y<l.length;++y){var E=l.charCodeAt(y);if(55296<=E&&57343>=E){var O=l.charCodeAt(++y);E=65536+((E&1023)<<10)|O&1023}if(k[d>>2]=E,d+=4,d+4>h)break}return k[d>>2]=0,d-v}function ac(l){for(var d=0,h=0;h<l.length;++h){var v=l.charCodeAt(h);55296<=v&&57343>=v&&++h,d+=4}return d}var uc={};function Xs(l){var d=uc[l];return d===void 0?xe(l):d}var On=[];function lc(l){var d=On.length;return On.push(l),d}function fc(l,d){for(var h=Array(l),v=0;v<l;++v)h[v]=Vt(T[d+4*v>>2],"parameter "+v);return h}var Qs=[],cc=[null,[],[]];Ge=r.BindingError=Me("BindingError"),r.count_emval_handles=function(){for(var l=0,d=5;d<U.length;++d)U[d]!==void 0&&++l;return l},r.get_first_emval=function(){for(var l=5;l<U.length;++l)if(U[l]!==void 0)return U[l];return null},wn=r.PureVirtualError=Me("PureVirtualError");for(var Ks=Array(256),Pn=0;256>Pn;++Pn)Ks[Pn]=String.fromCharCode(Pn);Sn=Ks,r.getInheritedInstanceCount=function(){return Object.keys(Qe).length},r.getLiveInheritedInstances=function(){var l=[],d;for(d in Qe)Qe.hasOwnProperty(d)&&l.push(Qe[d]);return l},r.flushPendingDeletes=Xe,r.setDelayFunction=function(l){Dt=l,vt.length&&Dt&&Dt(Xe)},Xt=r.InternalError=Me("InternalError"),K.prototype.isAliasOf=function(l){if(!(this instanceof K&&l instanceof K))return!1;var d=this.M.P.N,h=this.M.O,v=l.M.P.N;for(l=l.M.O;d.R;)h=d.ba(h),d=d.R;for(;v.R;)l=v.ba(l),v=v.R;return d===v&&h===l},K.prototype.clone=function(){if(this.M.O||he(this),this.M.aa)return this.M.count.value+=1,this;var l=Ve,d=Object,h=d.create,v=Object.getPrototypeOf(this),y=this.M;return l=l(h.call(d,v,{M:{value:{count:y.count,$:y.$,aa:y.aa,O:y.O,P:y.P,T:y.T,U:y.U}}})),l.M.count.value+=1,l.M.$=!1,l},K.prototype.delete=function(){this.M.O||he(this),this.M.$&&!this.M.aa&&j("Object already scheduled for deletion"),at(this),je(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},K.prototype.isDeleted=function(){return!this.M.O},K.prototype.deleteLater=function(){return this.M.O||he(this),this.M.$&&!this.M.aa&&j("Object already scheduled for deletion"),vt.push(this),vt.length===1&&Dt&&Dt(Xe),this.M.$=!0,this},Oe.prototype.qa=function(l){return this.ka&&(l=this.ka(l)),l},Oe.prototype.ha=function(l){this.W&&this.W(l)},Oe.prototype.argPackAdvance=8,Oe.prototype.readValueFromPointer=V,Oe.prototype.deleteObject=function(l){l!==null&&l.delete()},Oe.prototype.fromWireType=function(l){function d(){return this.da?Tt(this.N.X,{P:this.wa,O:h,U:this,T:l}):Tt(this.N.X,{P:this,O:l})}var h=this.qa(l);if(!h)return this.ha(l),null;var v=Yt(this.N,h);if(v!==void 0)return v.M.count.value===0?(v.M.O=h,v.M.T=l,v.clone()):(v=v.clone(),this.ha(l),v);if(v=this.N.pa(h),v=ut[v],!v)return d.call(this);v=this.ca?v.la:v.pointerType;var y=Ht(h,this.N,v.N);return y===null?d.call(this):this.da?Tt(v.N.X,{P:v,O:y,U:this,T:l}):Tt(v.N.X,{P:v,O:y})},_r=r.UnboundTypeError=Me("UnboundTypeError");var dc=typeof atob=="function"?atob:function(l){var d="",h=0;l=l.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(l.charAt(h++)),y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(l.charAt(h++)),E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(l.charAt(h++)),O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(l.charAt(h++));v=v<<2|y>>4,y=(y&15)<<4|E>>2;var A=(E&3)<<6|O;d+=String.fromCharCode(v),E!==64&&(d+=String.fromCharCode(y)),O!==64&&(d+=String.fromCharCode(A))}while(h<l.length);return d},pc={l:function(l,d,h,v){ie("Assertion failed: "+(l?g(w,l):"")+", at: "+[d?d?g(w,d):"":"unknown filename",h,v?v?g(w,v):"":"unknown function"])},q:function(l,d,h){l=xe(l),d=Vt(d,"wrapper"),h=mt(h);var v=[].slice,y=d.N,E=y.X,O=y.R.X,A=y.R.constructor;l=ht(l,function(){y.R.ja.forEach(function(I){if(this[I]===O[I])throw new wn("Pure virtual function "+I+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:E}),this.__construct.apply(this,v.call(arguments))}),E.__construct=function(){this===E&&j("Pass correct 'this' to __construct");var I=A.implement.apply(void 0,[this].concat(v.call(arguments)));at(I);var D=I.M;I.notifyOnDestruction(),D.aa=!0,Object.defineProperties(this,{M:{value:D}}),Ve(this),I=D.O,I=sr(y,I),Qe.hasOwnProperty(I)?j("Tried to register registered instance: "+I):Qe[I]=this},E.__destruct=function(){this===E&&j("Pass correct 'this' to __destruct"),at(this);var I=this.M.O;I=sr(y,I),Qe.hasOwnProperty(I)?delete Qe[I]:j("Tried to unregister unregistered instance: "+I)},l.prototype=Object.create(E);for(var L in h)l.prototype[L]=h[L];return gt(l)},j:function(l){var d=He[l];delete He[l];var h=d.fa,v=d.W,y=d.ia,E=y.map(O=>O.ta).concat(y.map(O=>O.za));Y([l],E,O=>{var A={};return y.forEach((L,I)=>{var D=O[I],z=L.ra,ee=L.sa,Te=O[I+y.length],oe=L.ya,Ye=L.Aa;A[L.oa]={read:ft=>D.fromWireType(z(ee,ft)),write:(ft,Tr)=>{var Pt=[];oe(Ye,ft,Te.toWireType(Pt,Tr)),ar(Pt)}}}),[{name:d.name,fromWireType:function(L){var I={},D;for(D in A)I[D]=A[D].read(L);return v(L),I},toWireType:function(L,I){for(var D in A)if(!(D in I))throw new TypeError('Missing field: "'+D+'"');var z=h();for(D in A)A[D].write(z,I[D]);return L!==null&&L.push(v,z),z},argPackAdvance:8,readValueFromPointer:V,V:v}]})},v:function(){},B:function(l,d,h,v,y){var E=pe(h);d=xe(d),X(l,{name:d,fromWireType:function(O){return!!O},toWireType:function(O,A){return A?v:y},argPackAdvance:8,readValueFromPointer:function(O){if(h===1)var A=x;else if(h===2)A=_;else if(h===4)A=k;else throw new TypeError("Unknown boolean type size: "+d);return this.fromWireType(A[O>>E])},V:null})},f:function(l,d,h,v,y,E,O,A,L,I,D,z,ee){D=xe(D),E=_e(y,E),A&&(A=_e(O,A)),I&&(I=_e(L,I)),ee=_e(z,ee);var Te=ot(D);Ke(Te,function(){Et("Cannot construct "+D+" due to unbound types",[v])}),Y([l,d,h],v?[v]:[],function(oe){if(oe=oe[0],v)var Ye=oe.N,ft=Ye.X;else ft=K.prototype;oe=ht(Te,function(){if(Object.getPrototypeOf(this)!==Tr)throw new Ge("Use 'new' to construct "+D);if(Pt.Y===void 0)throw new Ge(D+" has no accessible constructor");var ta=Pt.Y[arguments.length];if(ta===void 0)throw new Ge("Tried to invoke ctor of "+D+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Pt.Y).toString()+") parameters instead!");return ta.apply(this,arguments)});var Tr=Object.create(ft,{constructor:{value:oe}});oe.prototype=Tr;var Pt=new J(D,oe,Tr,ee,Ye,E,A,I);Ye=new Oe(D,Pt,!0,!1),ft=new Oe(D+"*",Pt,!1,!1);var ea=new Oe(D+" const*",Pt,!1,!0);return ut[l]={pointerType:ft,la:ea},ue(Te,oe),[Ye,ft,ea]})},d:function(l,d,h,v,y,E,O){var A=Fe(h,v);d=xe(d),E=_e(y,E),Y([],[l],function(L){function I(){Et("Cannot call "+D+" due to unbound types",A)}L=L[0];var D=L.name+"."+d;d.startsWith("@@")&&(d=Symbol[d.substring(2)]);var z=L.N.constructor;return z[d]===void 0?(I.Z=h-1,z[d]=I):(Z(z,d,D),z[d].S[h-1]=I),Y([],A,function(ee){return ee=Ne(D,[ee[0],null].concat(ee.slice(1)),null,E,O),z[d].S===void 0?(ee.Z=h-1,z[d]=ee):z[d].S[h-1]=ee,[]}),[]})},p:function(l,d,h,v,y,E){0<d||ie();var O=Fe(d,h);y=_e(v,y),Y([],[l],function(A){A=A[0];var L="constructor "+A.name;if(A.N.Y===void 0&&(A.N.Y=[]),A.N.Y[d-1]!==void 0)throw new Ge("Cannot register multiple constructors with identical number of parameters ("+(d-1)+") for class '"+A.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return A.N.Y[d-1]=()=>{Et("Cannot construct "+A.name+" due to unbound types",O)},Y([],O,function(I){return I.splice(1,0,null),A.N.Y[d-1]=Ne(L,I,null,y,E),[]}),[]})},a:function(l,d,h,v,y,E,O,A){var L=Fe(h,v);d=xe(d),E=_e(y,E),Y([],[l],function(I){function D(){Et("Cannot call "+z+" due to unbound types",L)}I=I[0];var z=I.name+"."+d;d.startsWith("@@")&&(d=Symbol[d.substring(2)]),A&&I.N.ja.push(d);var ee=I.N.X,Te=ee[d];return Te===void 0||Te.S===void 0&&Te.className!==I.name&&Te.Z===h-2?(D.Z=h-2,D.className=I.name,ee[d]=D):(Z(ee,d,z),ee[d].S[h-2]=D),Y([],L,function(oe){return oe=Ne(z,oe,I,E,O),ee[d].S===void 0?(oe.Z=h-2,ee[d]=oe):ee[d].S[h-2]=oe,[]}),[]})},A:function(l,d){d=xe(d),X(l,{name:d,fromWireType:function(h){var v=mt(h);return De(h),v},toWireType:function(h,v){return gt(v)},argPackAdvance:8,readValueFromPointer:V,V:null})},n:function(l,d,h){h=pe(h),d=xe(d),X(l,{name:d,fromWireType:function(v){return v},toWireType:function(v,y){return y},argPackAdvance:8,readValueFromPointer:kt(d,h),V:null})},e:function(l,d,h,v,y){d=xe(d),y===-1&&(y=4294967295),y=pe(h);var E=A=>A;if(v===0){var O=32-8*h;E=A=>A<<O>>>O}h=d.includes("unsigned")?function(A,L){return L>>>0}:function(A,L){return L},X(l,{name:d,fromWireType:E,toWireType:h,argPackAdvance:8,readValueFromPointer:Tn(d,y,v!==0),V:null})},b:function(l,d,h){function v(E){E>>=2;var O=T;return new y(b,O[E+1],O[E])}var y=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][d];h=xe(h),X(l,{name:h,fromWireType:v,argPackAdvance:8,readValueFromPointer:v},{ua:!0})},o:function(l,d){d=xe(d);var h=d==="std::string";X(l,{name:d,fromWireType:function(v){var y=T[v>>2],E=v+4;if(h)for(var O=E,A=0;A<=y;++A){var L=E+A;if(A==y||w[L]==0){if(O=O?g(w,O,L-O):"",I===void 0)var I=O;else I+=String.fromCharCode(0),I+=O;O=L+1}}else{for(I=Array(y),A=0;A<y;++A)I[A]=String.fromCharCode(w[E+A]);I=I.join("")}return Ot(v),I},toWireType:function(v,y){y instanceof ArrayBuffer&&(y=new Uint8Array(y));var E,O=typeof y=="string";if(O||y instanceof Uint8Array||y instanceof Uint8ClampedArray||y instanceof Int8Array||j("Cannot pass non-string to std::string"),h&&O){var A=0;for(E=0;E<y.length;++E){var L=y.charCodeAt(E);127>=L?A++:2047>=L?A+=2:55296<=L&&57343>=L?(A+=4,++E):A+=3}E=A}else E=y.length;if(A=vi(4+E+1),L=A+4,T[A>>2]=E,h&&O){if(O=L,L=E+1,E=w,0<L){L=O+L-1;for(var I=0;I<y.length;++I){var D=y.charCodeAt(I);if(55296<=D&&57343>=D){var z=y.charCodeAt(++I);D=65536+((D&1023)<<10)|z&1023}if(127>=D){if(O>=L)break;E[O++]=D}else{if(2047>=D){if(O+1>=L)break;E[O++]=192|D>>6}else{if(65535>=D){if(O+2>=L)break;E[O++]=224|D>>12}else{if(O+3>=L)break;E[O++]=240|D>>18,E[O++]=128|D>>12&63}E[O++]=128|D>>6&63}E[O++]=128|D&63}}E[O]=0}}else if(O)for(O=0;O<E;++O)I=y.charCodeAt(O),255<I&&(Ot(L),j("String has UTF-16 code units that do not fit in 8 bits")),w[L+O]=I;else for(O=0;O<E;++O)w[L+O]=y[O];return v!==null&&v.push(Ot,A),A},argPackAdvance:8,readValueFromPointer:V,V:function(v){Ot(v)}})},i:function(l,d,h){if(h=xe(h),d===2)var v=En,y=kn,E=ic,O=()=>M,A=1;else d===4&&(v=oc,y=sc,E=ac,O=()=>T,A=2);X(l,{name:h,fromWireType:function(L){for(var I=T[L>>2],D=O(),z,ee=L+4,Te=0;Te<=I;++Te){var oe=L+4+Te*d;(Te==I||D[oe>>A]==0)&&(ee=v(ee,oe-ee),z===void 0?z=ee:(z+=String.fromCharCode(0),z+=ee),ee=oe+d)}return Ot(L),z},toWireType:function(L,I){typeof I!="string"&&j("Cannot pass non-string to C++ string type "+h);var D=E(I),z=vi(4+D+d);return T[z>>2]=D>>A,y(I,z+4,D+d),L!==null&&L.push(Ot,z),z},argPackAdvance:8,readValueFromPointer:V,V:function(L){Ot(L)}})},k:function(l,d,h,v,y,E){He[l]={name:xe(d),fa:_e(h,v),W:_e(y,E),ia:[]}},h:function(l,d,h,v,y,E,O,A,L,I){He[l].ia.push({oa:xe(d),ta:h,ra:_e(v,y),sa:E,za:O,ya:_e(A,L),Aa:I})},C:function(l,d){d=xe(d),X(l,{va:!0,name:d,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(l,d,h,v,y){l=On[l],d=mt(d),h=Xs(h);var E=[];return T[v>>2]=gt(E),l(d,h,E,y)},t:function(l,d,h,v){l=On[l],d=mt(d),h=Xs(h),l(d,h,null,v)},g:De,m:function(l,d){var h=fc(l,d),v=h[0];d=v.name+"_$"+h.slice(1).map(function(O){return O.name}).join("_")+"$";var y=Qs[d];if(y!==void 0)return y;var E=Array(l-1);return y=lc((O,A,L,I)=>{for(var D=0,z=0;z<l-1;++z)E[z]=h[z+1].readValueFromPointer(I+D),D+=h[z+1].argPackAdvance;for(O=O[A].apply(O,E),z=0;z<l-1;++z)h[z+1].ma&&h[z+1].ma(E[z]);if(!v.va)return v.toWireType(L,O)}),Qs[d]=y},D:function(l){4<l&&(U[l].ga+=1)},r:function(l){var d=mt(l);ar(d),De(l)},c:function(){ie("")},x:function(l,d,h){w.copyWithin(l,d,d+h)},w:function(l){var d=w.length;if(l>>>=0,2147483648<l)return!1;for(var h=1;4>=h;h*=2){var v=d*(1+.2/h);v=Math.min(v,l+100663296);var y=Math;v=Math.max(l,v),y=y.min.call(y,2147483648,v+(65536-v%65536)%65536);e:{try{p.grow(y-b.byteLength+65535>>>16),B();var E=1;break e}catch{}E=void 0}if(E)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(l,d,h,v){for(var y=0,E=0;E<h;E++){var O=T[d>>2],A=T[d+4>>2];d+=8;for(var L=0;L<A;L++){var I=w[O+L],D=cc[l];I===0||I===10?((l===1?a:u)(g(D,0)),D.length=0):D.push(I)}y+=A}return T[v>>2]=y,0}};(function(){function l(y){r.asm=y.exports,p=r.asm.E,B(),G=r.asm.J,we.unshift(r.asm.F),te--,r.monitorRunDependencies&&r.monitorRunDependencies(te),te==0&&(Se!==null&&(clearInterval(Se),Se=null),de&&(y=de,de=null,y()))}function d(y){l(y.instance)}function h(y){return jt().then(function(E){return E instanceof WebAssembly.Instance?E:WebAssembly.instantiate(E,v)}).then(function(E){return E}).then(y,function(E){u("failed to asynchronously prepare wasm: "+E),ie(E)})}var v={a:pc};if(te++,r.monitorRunDependencies&&r.monitorRunDependencies(te),r.instantiateWasm)try{return r.instantiateWasm(v,l)}catch(y){u("Module.instantiateWasm callback failed with error: "+y),i(y)}return function(){return f||typeof WebAssembly.instantiateStreaming!="function"||me(be)||typeof fetch!="function"?h(d):fetch(be,{credentials:"same-origin"}).then(function(y){return WebAssembly.instantiateStreaming(y,v).then(d,function(E){return u("wasm streaming compile failed: "+E),u("falling back to ArrayBuffer instantiation"),h(d)})})}().catch(i),{}})(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.F).apply(null,arguments)};var Js=r.___getTypeName=function(){return(Js=r.___getTypeName=r.asm.G).apply(null,arguments)};r.__embind_initialize_bindings=function(){return(r.__embind_initialize_bindings=r.asm.H).apply(null,arguments)};var vi=r._malloc=function(){return(vi=r._malloc=r.asm.I).apply(null,arguments)},Ot=r._free=function(){return(Ot=r._free=r.asm.K).apply(null,arguments)};r.dynCall_jiji=function(){return(r.dynCall_jiji=r.asm.L).apply(null,arguments)};var An;de=function l(){An||Zs(),An||(de=l)};function Zs(){function l(){if(!An&&(An=!0,r.calledRun=!0,!m)){if(Ce(we),n(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),r.postRun)for(typeof r.postRun=="function"&&(r.postRun=[r.postRun]);r.postRun.length;){var d=r.postRun.shift();Ie.unshift(d)}Ce(Ie)}}if(!(0<te)){if(r.preRun)for(typeof r.preRun=="function"&&(r.preRun=[r.preRun]);r.preRun.length;)Ee();Ce(se),0<te||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),l()},1)):l())}}if(r.preInit)for(typeof r.preInit=="function"&&(r.preInit=[r.preInit]);0<r.preInit.length;)r.preInit.pop()();return Zs(),t.ready}var _a,Ea=Kt(()=>{_a=""});async function ka(e){let{default:t}=await Promise.resolve().then(()=>(Ea(),Ta));return Ri(await t(e))}var Oa=Kt(()=>{Sa();Nn()});var Ci={};Er(Ci,{getYoga:()=>Nc,init:()=>Mc});function Mc(e){"buffer"in e?Ii(e.buffer).then(Fn):"instance"in e?Ii(e.instance).then(Fn):Ii(e).then(Fn)}function Nc(){return Lc}var Fn,Lc,Ii,Li=Kt(()=>{Oa();Lc=new Promise(e=>{Fn=e}),Ii=ka});var so=q(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});Object.defineProperty(oo,"default",{enumerable:!0,get:()=>kd});function kd(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 Su=q(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});Object.defineProperty(ao,"default",{enumerable:!0,get:()=>Od});var Od=["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 _u=q(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});Object.defineProperty(uo,"default",{enumerable:!0,get:()=>Pd});function Pd(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 lo=q((s1,Tu)=>{Tu.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 Kn={};Er(Kn,{default:()=>Ad});var Ad,Jn=Kt(()=>{Ad={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 Eu=q(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});Object.defineProperty(fo,"default",{enumerable:!0,get:()=>Cd});var Rd=Id((Jn(),kr(Kn)));function Id(e){return e&&e.__esModule?e:{default:e}}function $r({version:e,from:t,to:r}){Rd.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 Cd={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 $r({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return $r({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return $r({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return $r({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return $r({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var ku=q(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});Object.defineProperty(co,"defaults",{enumerable:!0,get:()=>Ld});function Ld(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 Ou=q(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});Object.defineProperty(po,"toPath",{enumerable:!0,get:()=>Md});function Md(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 Au=q(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});Object.defineProperty(ho,"normalizeConfig",{enumerable:!0,get:()=>Fd});var Br=Nd((Jn(),kr(Kn)));function Pu(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Pu=function(n){return n?r:t})(e)}function Nd(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Pu(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 Fd(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})()||Br.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")Br.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,c,p,m,g,b,x;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:!((c=e.content)===null||c===void 0||(p=c.extract)===null||p===void 0)&&p.DEFAULT?e.content.extract.DEFAULT:!((m=e.purge)===null||m===void 0||(g=m.options)===null||g===void 0)&&g.extractors?e.purge.options.extractors:!((b=e.content)===null||b===void 0||(x=b.options)===null||x===void 0)&&x.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,c;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||(c=f.transform)===null||c===void 0)&&c.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)){Br.default.warn("invalid-glob-braces",[`The glob pattern ${(0,Br.dim)(n)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,Br.dim)(n.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var Ru=q(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});Object.defineProperty(mo,"default",{enumerable:!0,get:()=>Dd});function Dd(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var Iu=q(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});Object.defineProperty(vo,"cloneDeep",{enumerable:!0,get:()=>go});function go(e){return Array.isArray(e)?e.map(t=>go(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,go(r)])):e}});var bo=q((Zn,Cu)=>{"use strict";Zn.__esModule=!0;Zn.default=Bd;function Wd(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 $d=/\\/;function Bd(e){var t=$d.test(e);if(!t)return e;for(var r="",n=0;n<e.length;n++){if(e[n]==="\\"){var i=Wd(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}Cu.exports=Zn.default});var Mu=q((ei,Lu)=>{"use strict";ei.__esModule=!0;ei.default=qd;function qd(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}Lu.exports=ei.default});var Fu=q((ti,Nu)=>{"use strict";ti.__esModule=!0;ti.default=Ud;function Ud(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]}}Nu.exports=ti.default});var Wu=q((ri,Du)=>{"use strict";ri.__esModule=!0;ri.default=zd;function zd(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}Du.exports=ri.default});var qr=q(wt=>{"use strict";wt.__esModule=!0;wt.stripComments=wt.ensureObject=wt.getProp=wt.unesc=void 0;var Gd=ni(bo());wt.unesc=Gd.default;var jd=ni(Mu());wt.getProp=jd.default;var Vd=ni(Fu());wt.ensureObject=Vd.default;var Hd=ni(Wu());wt.stripComments=Hd.default;function ni(e){return e&&e.__esModule?e:{default:e}}});var Mt=q((Ur,qu)=>{"use strict";Ur.__esModule=!0;Ur.default=void 0;var $u=qr();function Bu(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 Yd(e,t,r){return t&&Bu(e.prototype,t),r&&Bu(e,r),e}var Xd=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},Qd=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=Xd(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("")},Yd(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,$u.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,$u.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=n}}]),e}();Ur.default=Qd;qu.exports=Ur.default});var Re=q(fe=>{"use strict";fe.__esModule=!0;fe.UNIVERSAL=fe.ATTRIBUTE=fe.CLASS=fe.COMBINATOR=fe.COMMENT=fe.ID=fe.NESTING=fe.PSEUDO=fe.ROOT=fe.SELECTOR=fe.STRING=fe.TAG=void 0;var Kd="tag";fe.TAG=Kd;var Jd="string";fe.STRING=Jd;var Zd="selector";fe.SELECTOR=Zd;var ep="root";fe.ROOT=ep;var tp="pseudo";fe.PSEUDO=tp;var rp="nesting";fe.NESTING=rp;var np="id";fe.ID=np;var ip="comment";fe.COMMENT=ip;var op="combinator";fe.COMBINATOR=op;var sp="class";fe.CLASS=sp;var ap="attribute";fe.ATTRIBUTE=ap;var up="universal";fe.UNIVERSAL=up});var ii=q((zr,ju)=>{"use strict";zr.__esModule=!0;zr.default=void 0;var lp=cp(Mt()),Nt=fp(Re());function Gu(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Gu=function(){return e},e}function fp(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Gu();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 cp(e){return e&&e.__esModule?e:{default:e}}function dp(e,t){var r;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(r=pp(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 pp(e,t){if(e){if(typeof e=="string")return Uu(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 Uu(e,t)}}function Uu(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 zu(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 hp(e,t,r){return t&&zu(e.prototype,t),r&&zu(e,r),e}function mp(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 gp=function(e){mp(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=dp(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===Nt.ATTRIBUTE)return i.call(o,s)})},r.walkClasses=function(i){var o=this;return this.walk(function(s){if(s.type===Nt.CLASS)return i.call(o,s)})},r.walkCombinators=function(i){var o=this;return this.walk(function(s){if(s.type===Nt.COMBINATOR)return i.call(o,s)})},r.walkComments=function(i){var o=this;return this.walk(function(s){if(s.type===Nt.COMMENT)return i.call(o,s)})},r.walkIds=function(i){var o=this;return this.walk(function(s){if(s.type===Nt.ID)return i.call(o,s)})},r.walkNesting=function(i){var o=this;return this.walk(function(s){if(s.type===Nt.NESTING)return i.call(o,s)})},r.walkPseudos=function(i){var o=this;return this.walk(function(s){if(s.type===Nt.PSEUDO)return i.call(o,s)})},r.walkTags=function(i){var o=this;return this.walk(function(s){if(s.type===Nt.TAG)return i.call(o,s)})},r.walkUniversals=function(i){var o=this;return this.walk(function(s){if(s.type===Nt.UNIVERSAL)return i.call(o,s)})},r.split=function(i){var o=this,s=[];return this.reduce(function(a,u,f){var c=i.call(o,u);return s.push(u),c?(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("")},hp(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}(lp.default);zr.default=gp;ju.exports=zr.default});var wo=q((Gr,Hu)=>{"use strict";Gr.__esModule=!0;Gr.default=void 0;var vp=yp(ii()),bp=Re();function yp(e){return e&&e.__esModule?e:{default:e}}function Vu(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 xp(e,t,r){return t&&Vu(e.prototype,t),r&&Vu(e,r),e}function wp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xo(e,t)}function xo(e,t){return xo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},xo(e,t)}var Sp=function(e){wp(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=bp.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)},xp(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(vp.default);Gr.default=Sp;Hu.exports=Gr.default});var _o=q((jr,Yu)=>{"use strict";jr.__esModule=!0;jr.default=void 0;var _p=Ep(ii()),Tp=Re();function Ep(e){return e&&e.__esModule?e:{default:e}}function kp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,So(e,t)}function So(e,t){return So=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},So(e,t)}var Op=function(e){kp(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Tp.SELECTOR,n}return t}(_p.default);jr.default=Op;Yu.exports=jr.default});var oi=q((m1,Xu)=>{"use strict";var Pp={},Ap=Pp.hasOwnProperty,Rp=function(t,r){if(!t)return r;var n={};for(var i in r)n[i]=Ap.call(t,i)?t[i]:r[i];return n},Ip=/[ -,\.\/:-@\[-\^`\{-~]/,Cp=/[ -,\.\/:-@\[\]\^`\{-~]/,Lp=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,To=function e(t,r){r=Rp(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++),c=f.charCodeAt(),p=void 0;if(c<32||c>126){if(c>=55296&&c<=56319&&a<u){var m=t.charCodeAt(a++);(m&64512)==56320?c=((c&1023)<<10)+(m&1023)+65536:a--}p="\\"+c.toString(16).toUpperCase()+" "}else r.escapeEverything?Ip.test(f)?p="\\"+f:p="\\"+c.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(f)?p="\\"+c.toString(16).toUpperCase()+" ":f=="\\"||!i&&(f=='"'&&n==f||f=="'"&&n==f)||i&&Cp.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(Lp,function(g,b,x){return b&&b.length%2?g:(b||"")+x}),!i&&r.wrap?n+s+n:s};To.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};To.version="3.0.0";Xu.exports=To});var ko=q((Vr,Ju)=>{"use strict";Vr.__esModule=!0;Vr.default=void 0;var Mp=Ku(oi()),Np=qr(),Fp=Ku(Mt()),Dp=Re();function Ku(e){return e&&e.__esModule?e:{default:e}}function Qu(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 Wp(e,t,r){return t&&Qu(e.prototype,t),r&&Qu(e,r),e}function $p(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Eo(e,t)}function Eo(e,t){return Eo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Eo(e,t)}var Bp=function(e){$p(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=Dp.CLASS,i._constructed=!0,i}var r=t.prototype;return r.valueToString=function(){return"."+e.prototype.valueToString.call(this)},Wp(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=(0,Mp.default)(i,{isIdentifier:!0});o!==i?((0,Np.ensureObject)(this,"raws"),this.raws.value=o):this.raws&&delete this.raws.value}this._value=i}}]),t}(Fp.default);Vr.default=Bp;Ju.exports=Vr.default});var Po=q((Hr,Zu)=>{"use strict";Hr.__esModule=!0;Hr.default=void 0;var qp=zp(Mt()),Up=Re();function zp(e){return e&&e.__esModule?e:{default:e}}function Gp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Oo(e,t)}function Oo(e,t){return Oo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Oo(e,t)}var jp=function(e){Gp(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Up.COMMENT,n}return t}(qp.default);Hr.default=jp;Zu.exports=Hr.default});var Ro=q((Yr,el)=>{"use strict";Yr.__esModule=!0;Yr.default=void 0;var Vp=Yp(Mt()),Hp=Re();function Yp(e){return e&&e.__esModule?e:{default:e}}function Xp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ao(e,t)}function Ao(e,t){return Ao=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ao(e,t)}var Qp=function(e){Xp(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=Hp.ID,i}var r=t.prototype;return r.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(Vp.default);Yr.default=Qp;el.exports=Yr.default});var si=q((Xr,nl)=>{"use strict";Xr.__esModule=!0;Xr.default=void 0;var Kp=rl(oi()),Jp=qr(),Zp=rl(Mt());function rl(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 eh(e,t,r){return t&&tl(e.prototype,t),r&&tl(e,r),e}function th(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Io(e,t)}function Io(e,t){return Io=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Io(e,t)}var rh=function(e){th(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))},eh(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,Kp.default)(i,{isIdentifier:!0});this._namespace=i,o!==i?((0,Jp.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}(Zp.default);Xr.default=rh;nl.exports=Xr.default});var Lo=q((Qr,il)=>{"use strict";Qr.__esModule=!0;Qr.default=void 0;var nh=oh(si()),ih=Re();function oh(e){return e&&e.__esModule?e:{default:e}}function sh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Co(e,t)}function Co(e,t){return Co=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Co(e,t)}var ah=function(e){sh(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=ih.TAG,n}return t}(nh.default);Qr.default=ah;il.exports=Qr.default});var No=q((Kr,ol)=>{"use strict";Kr.__esModule=!0;Kr.default=void 0;var uh=fh(Mt()),lh=Re();function fh(e){return e&&e.__esModule?e:{default:e}}function ch(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mo(e,t)}function Mo(e,t){return Mo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Mo(e,t)}var dh=function(e){ch(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=lh.STRING,n}return t}(uh.default);Kr.default=dh;ol.exports=Kr.default});var Do=q((Jr,sl)=>{"use strict";Jr.__esModule=!0;Jr.default=void 0;var ph=mh(ii()),hh=Re();function mh(e){return e&&e.__esModule?e:{default:e}}function gh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fo(e,t)}function Fo(e,t){return Fo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Fo(e,t)}var vh=function(e){gh(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=hh.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}(ph.default);Jr.default=vh;sl.exports=Jr.default});var ul=q((g1,al)=>{al.exports=function(t,r){return function(...n){return console.warn(r),t(...n)}}});var zo=q(tn=>{"use strict";tn.__esModule=!0;tn.unescapeValue=Uo;tn.default=void 0;var Zr=qo(oi()),bh=qo(bo()),yh=qo(si()),xh=Re(),Wo;function qo(e){return e&&e.__esModule?e:{default:e}}function ll(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 wh(e,t,r){return t&&ll(e.prototype,t),r&&ll(e,r),e}function Sh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bo(e,t)}function Bo(e,t){return Bo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Bo(e,t)}var en=ul(),_h=/^('|")([^]*)\1$/,Th=en(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),Eh=en(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),kh=en(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function Uo(e){var t=!1,r=null,n=e,i=n.match(_h);return i&&(r=i[1],n=i[2]),n=(0,bh.default)(n),n!==e&&(t=!0),{deprecatedUsage:t,unescaped:n,quoteMark:r}}function Oh(e){if(e.quoteMark!==void 0||e.value===void 0)return e;kh();var t=Uo(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 ai=function(e){Sh(t,e);function t(n){var i;return n===void 0&&(n={}),i=e.call(this,Oh(n))||this,i.type=xh.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:en(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:en(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=$o[o],a=(0,Zr.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,Zr.default)(o,{isIdentifier:!0});if(u===o)return t.NO_QUOTE;var f=this.preferredQuoteMark(i);if(f===t.NO_QUOTE){var c=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,p=$o[c],m=(0,Zr.default)(o,p);if(m.length<u.length)return c}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,Zr.default)(this._value,$o[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,Zr.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=fl);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 c=this.stringifyProperty("value");if(i==="value")return c?o:-1;o+=c.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=" "),fl(s,a)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},wh(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){Eh()}},{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=Uo(i),s=o.deprecatedUsage,a=o.unescaped,u=o.quoteMark;if(s&&Th(),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}(yh.default);tn.default=ai;ai.NO_QUOTE=null;ai.SINGLE_QUOTE="'";ai.DOUBLE_QUOTE='"';var $o=(Wo={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Wo[null]={isIdentifier:!0},Wo);function fl(e,t){return""+t.before+e+t.after}});var jo=q((rn,cl)=>{"use strict";rn.__esModule=!0;rn.default=void 0;var Ph=Rh(si()),Ah=Re();function Rh(e){return e&&e.__esModule?e:{default: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 Ch=function(e){Ih(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Ah.UNIVERSAL,n.value="*",n}return t}(Ph.default);rn.default=Ch;cl.exports=rn.default});var Ho=q((nn,dl)=>{"use strict";nn.__esModule=!0;nn.default=void 0;var Lh=Nh(Mt()),Mh=Re();function Nh(e){return e&&e.__esModule?e:{default:e}}function Fh(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 Dh=function(e){Fh(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Mh.COMBINATOR,n}return t}(Lh.default);nn.default=Dh;dl.exports=nn.default});var Xo=q((on,pl)=>{"use strict";on.__esModule=!0;on.default=void 0;var Wh=Bh(Mt()),$h=Re();function Bh(e){return e&&e.__esModule?e:{default:e}}function qh(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){qh(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=$h.NESTING,n.value="&",n}return t}(Wh.default);on.default=Uh;pl.exports=on.default});var ml=q((ui,hl)=>{"use strict";ui.__esModule=!0;ui.default=zh;function zh(e){return e.sort(function(t,r){return t-r})}hl.exports=ui.default});var Qo=q($=>{"use strict";$.__esModule=!0;$.combinator=$.word=$.comment=$.str=$.tab=$.newline=$.feed=$.cr=$.backslash=$.bang=$.slash=$.doubleQuote=$.singleQuote=$.space=$.greaterThan=$.pipe=$.equals=$.plus=$.caret=$.tilde=$.dollar=$.closeSquare=$.openSquare=$.closeParenthesis=$.openParenthesis=$.semicolon=$.colon=$.comma=$.at=$.asterisk=$.ampersand=void 0;var Gh=38;$.ampersand=Gh;var jh=42;$.asterisk=jh;var Vh=64;$.at=Vh;var Hh=44;$.comma=Hh;var Yh=58;$.colon=Yh;var Xh=59;$.semicolon=Xh;var Qh=40;$.openParenthesis=Qh;var Kh=41;$.closeParenthesis=Kh;var Jh=91;$.openSquare=Jh;var Zh=93;$.closeSquare=Zh;var em=36;$.dollar=em;var tm=126;$.tilde=tm;var rm=94;$.caret=rm;var nm=43;$.plus=nm;var im=61;$.equals=im;var om=124;$.pipe=om;var sm=62;$.greaterThan=sm;var am=32;$.space=am;var gl=39;$.singleQuote=gl;var um=34;$.doubleQuote=um;var lm=47;$.slash=lm;var fm=33;$.bang=fm;var cm=92;$.backslash=cm;var dm=13;$.cr=dm;var pm=12;$.feed=pm;var hm=10;$.newline=hm;var mm=9;$.tab=mm;var gm=gl;$.str=gm;var vm=-1;$.comment=vm;var bm=-2;$.word=bm;var ym=-3;$.combinator=ym});var yl=q(sn=>{"use strict";sn.__esModule=!0;sn.default=km;sn.FIELDS=void 0;var F=xm(Qo()),vr,le;function bl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return bl=function(){return e},e}function xm(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 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 wm=(vr={},vr[F.tab]=!0,vr[F.newline]=!0,vr[F.cr]=!0,vr[F.feed]=!0,vr),Sm=(le={},le[F.space]=!0,le[F.tab]=!0,le[F.newline]=!0,le[F.cr]=!0,le[F.feed]=!0,le[F.ampersand]=!0,le[F.asterisk]=!0,le[F.bang]=!0,le[F.comma]=!0,le[F.colon]=!0,le[F.semicolon]=!0,le[F.openParenthesis]=!0,le[F.closeParenthesis]=!0,le[F.openSquare]=!0,le[F.closeSquare]=!0,le[F.singleQuote]=!0,le[F.doubleQuote]=!0,le[F.plus]=!0,le[F.pipe]=!0,le[F.tilde]=!0,le[F.greaterThan]=!0,le[F.equals]=!0,le[F.dollar]=!0,le[F.caret]=!0,le[F.slash]=!0,le),Ko={},vl="0123456789abcdefABCDEF";for(li=0;li<vl.length;li++)Ko[vl.charCodeAt(li)]=!0;var li;function _m(e,t){var r=t,n;do{if(n=e.charCodeAt(r),Sm[n])return r-1;n===F.backslash?r=Tm(e,r)+1:r++}while(r<e.length);return r-1}function Tm(e,t){var r=t,n=e.charCodeAt(r+1);if(!wm[n])if(Ko[n]){var i=0;do r++,i++,n=e.charCodeAt(r+1);while(Ko[n]&&i<6);i<6&&n===F.space&&r++}else r++;return r}var Em={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};sn.FIELDS=Em;function km(e){var t=[],r=e.css.valueOf(),n=r,i=n.length,o=-1,s=1,a=0,u=0,f,c,p,m,g,b,x,w,_,M,k,T,P;function N(B,G){if(e.safe)r+=G,_=r.length-1;else throw e.error("Unclosed "+B,s,a-o,a)}for(;a<i;){switch(f=r.charCodeAt(a),f===F.newline&&(o=a,s+=1),f){case F.space:case F.tab:case F.newline:case F.cr:case F.feed:_=a;do _+=1,f=r.charCodeAt(_),f===F.newline&&(o=_,s+=1);while(f===F.space||f===F.newline||f===F.tab||f===F.cr||f===F.feed);P=F.space,m=s,p=_-o-1,u=_;break;case F.plus:case F.greaterThan:case F.tilde:case F.pipe:_=a;do _+=1,f=r.charCodeAt(_);while(f===F.plus||f===F.greaterThan||f===F.tilde||f===F.pipe);P=F.combinator,m=s,p=a-o,u=_;break;case F.asterisk:case F.ampersand:case F.bang:case F.comma:case F.equals:case F.dollar:case F.caret:case F.openSquare:case F.closeSquare:case F.colon:case F.semicolon:case F.openParenthesis:case F.closeParenthesis:_=a,P=f,m=s,p=a-o,u=_+1;break;case F.singleQuote:case F.doubleQuote:T=f===F.singleQuote?"'":'"',_=a;do for(g=!1,_=r.indexOf(T,_+1),_===-1&&N("quote",T),b=_;r.charCodeAt(b-1)===F.backslash;)b-=1,g=!g;while(g);P=F.str,m=s,p=a-o,u=_+1;break;default:f===F.slash&&r.charCodeAt(a+1)===F.asterisk?(_=r.indexOf("*/",a+2)+1,_===0&&N("comment","*/"),c=r.slice(a,_+1),w=c.split(`
|
|
4
|
-
`),x=w.length-1,x>0?(M=s+x,k=_-w[x].length):(M=s,k=o),P=F.comment,s=M,m=M,p=_-k):f===F.slash?(_=a,P=f,m=s,p=a-o,u=_+1):(_=_m(r,a),P=F.word,m=s,p=_-o),u=_+1;break}t.push([P,s,a-o,m,p,a,u]),k&&(o=k,k=null),a=u}return t}});var Ol=q((an,kl)=>{"use strict";an.__esModule=!0;an.default=void 0;var Om=et(wo()),Jo=et(_o()),Pm=et(ko()),xl=et(Po()),Am=et(Ro()),Rm=et(Lo()),Zo=et(No()),Im=et(Do()),wl=fi(zo()),Cm=et(jo()),es=et(Ho()),Lm=et(Xo()),Mm=et(ml()),R=fi(yl()),W=fi(Qo()),Nm=fi(Re()),ge=qr(),er,ts;function El(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return El=function(){return e},e}function fi(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=El();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 et(e){return e&&e.__esModule?e:{default:e}}function Sl(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 Fm(e,t,r){return t&&Sl(e.prototype,t),r&&Sl(e,r),e}var is=(er={},er[W.space]=!0,er[W.cr]=!0,er[W.feed]=!0,er[W.newline]=!0,er[W.tab]=!0,er),Dm=Object.assign({},is,(ts={},ts[W.comment]=!0,ts));function _l(e){return{line:e[R.FIELDS.START_LINE],column:e[R.FIELDS.START_COL]}}function Tl(e){return{line:e[R.FIELDS.END_LINE],column:e[R.FIELDS.END_COL]}}function tr(e,t,r,n){return{start:{line:e,column:t},end:{line:r,column:n}}}function br(e){return tr(e[R.FIELDS.START_LINE],e[R.FIELDS.START_COL],e[R.FIELDS.END_LINE],e[R.FIELDS.END_COL])}function rs(e,t){if(e)return tr(e[R.FIELDS.START_LINE],e[R.FIELDS.START_COL],t[R.FIELDS.END_LINE],t[R.FIELDS.END_COL])}function yr(e,t){var r=e[t];if(typeof r=="string")return r.indexOf("\\")!==-1&&((0,ge.ensureObject)(e,"raws"),e[t]=(0,ge.unesc)(r),e.raws[t]===void 0&&(e.raws[t]=r)),e}function ns(e,t){for(var r=-1,n=[];(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}function Wm(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,r){return r===e.indexOf(t)})}var $m=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,R.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=rs(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Om.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new Jo.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[R.FIELDS.TYPE]!==W.closeSquare;)n.push(this.currToken),this.position++;if(this.currToken[R.FIELDS.TYPE]!==W.closeSquare)return this.expected("closing square bracket",this.currToken[R.FIELDS.START_POS]);var o=n.length,s={source:tr(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[R.FIELDS.START_POS]};if(o===1&&!~[W.word].indexOf(n[0][R.FIELDS.TYPE]))return this.expected("attribute",n[0][R.FIELDS.START_POS]);for(var a=0,u="",f="",c=null,p=!1;a<o;){var m=n[a],g=this.content(m),b=n[a+1];switch(m[R.FIELDS.TYPE]){case W.space:if(p=!0,this.options.lossy)break;if(c){(0,ge.ensureObject)(s,"spaces",c);var x=s.spaces[c].after||"";s.spaces[c].after=x+g;var w=(0,ge.getProp)(s,"raws","spaces",c,"after")||null;w&&(s.raws.spaces[c].after=w+g)}else u=u+g,f=f+g;break;case W.asterisk:if(b[R.FIELDS.TYPE]===W.equals)s.operator=g,c="operator";else if((!s.namespace||c==="namespace"&&!p)&&b){u&&((0,ge.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),f&&((0,ge.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,f=""),s.namespace=(s.namespace||"")+g;var _=(0,ge.getProp)(s,"raws","namespace")||null;_&&(s.raws.namespace+=g),c="namespace"}p=!1;break;case W.dollar:if(c==="value"){var M=(0,ge.getProp)(s,"raws","value");s.value+="$",M&&(s.raws.value=M+"$");break}case W.caret:b[R.FIELDS.TYPE]===W.equals&&(s.operator=g,c="operator"),p=!1;break;case W.combinator:if(g==="~"&&b[R.FIELDS.TYPE]===W.equals&&(s.operator=g,c="operator"),g!=="|"){p=!1;break}b[R.FIELDS.TYPE]===W.equals?(s.operator=g,c="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),p=!1;break;case W.word:if(b&&this.content(b)==="|"&&n[a+2]&&n[a+2][R.FIELDS.TYPE]!==W.equals&&!s.operator&&!s.namespace)s.namespace=g,c="namespace";else if(!s.attribute||c==="attribute"&&!p){u&&((0,ge.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),f&&((0,ge.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=f,f=""),s.attribute=(s.attribute||"")+g;var k=(0,ge.getProp)(s,"raws","attribute")||null;k&&(s.raws.attribute+=g),c="attribute"}else if(!s.value&&s.value!==""||c==="value"&&!p){var T=(0,ge.unesc)(g),P=(0,ge.getProp)(s,"raws","value")||"",N=s.value||"";s.value=N+T,s.quoteMark=null,(T!==g||P)&&((0,ge.ensureObject)(s,"raws"),s.raws.value=(P||N)+g),c="value"}else{var B=g==="i"||g==="I";(s.value||s.value==="")&&(s.quoteMark||p)?(s.insensitive=B,(!B||g==="I")&&((0,ge.ensureObject)(s,"raws"),s.raws.insensitiveFlag=g),c="insensitive",u&&((0,ge.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),f&&((0,ge.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=f,f="")):(s.value||s.value==="")&&(c="value",s.value+=g,s.raws.value&&(s.raws.value+=g))}p=!1;break;case W.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:m[R.FIELDS.START_POS]});var G=(0,wl.unescapeValue)(g),se=G.unescaped,we=G.quoteMark;s.value=se,s.quoteMark=we,c="value",(0,ge.ensureObject)(s,"raws"),s.raws.value=g,p=!1;break;case W.equals:if(!s.attribute)return this.expected("attribute",m[R.FIELDS.START_POS],g);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:m[R.FIELDS.START_POS]});s.operator=s.operator?s.operator+g:g,c="operator",p=!1;break;case W.comment:if(c)if(p||b&&b[R.FIELDS.TYPE]===W.space||c==="insensitive"){var Ie=(0,ge.getProp)(s,"spaces",c,"after")||"",Ee=(0,ge.getProp)(s,"raws","spaces",c,"after")||Ie;(0,ge.ensureObject)(s,"raws","spaces",c),s.raws.spaces[c].after=Ee+g}else{var te=s[c]||"",Se=(0,ge.getProp)(s,"raws",c)||te;(0,ge.ensureObject)(s,"raws"),s.raws[c]=Se+g}else f=f+g;break;default:return this.error('Unexpected "'+g+'" found.',{index:m[R.FIELDS.START_POS]})}a++}yr(s,"attribute"),yr(s,"namespace"),this.newNode(new wl.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(is[this.currToken[R.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[R.FIELDS.TYPE]===W.comment){var u={};s&&(u.before=s,s=""),a=new xl.default({value:this.content(),source:br(this.currToken),sourceIndex:this.currToken[R.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],c=this.tokens[this.position-1];o.push(new Zo.default({value:"",source:tr(f[R.FIELDS.START_LINE],f[R.FIELDS.START_COL],c[R.FIELDS.END_LINE],c[R.FIELDS.END_COL]),sourceIndex:f[R.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 c=o.lossySpace(f.spaces.before,i),p=o.lossySpace(f.rawSpaceBefore,i);s+=c+o.lossySpace(f.spaces.after,i&&c.length===0),a+=c+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][R.FIELDS.TYPE]===W.slash&&this.tokens[n+1]&&this.tokens[n+1][R.FIELDS.TYPE]===W.word&&this.tokens[n+2]&&this.tokens[n+2][R.FIELDS.TYPE]===W.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var n=this.content(this.tokens[this.position+1]),i=(0,ge.unesc)(n).toLowerCase(),o={};i!==n&&(o.value="/"+n+"/");var s=new es.default({value:"/"+i+"/",source:tr(this.currToken[R.FIELDS.START_LINE],this.currToken[R.FIELDS.START_COL],this.tokens[this.position+2][R.FIELDS.END_LINE],this.tokens[this.position+2][R.FIELDS.END_COL]),sourceIndex:this.currToken[R.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][R.FIELDS.TYPE]===W.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(P){return n.newNode(P)})}return}var c=this.currToken,p=void 0;i>this.position&&(p=this.parseWhitespaceEquivalentTokens(i));var m;if(this.isNamedCombinator()?m=this.namedCombinator():this.currToken[R.FIELDS.TYPE]===W.combinator?(m=new es.default({value:this.content(),source:br(this.currToken),sourceIndex:this.currToken[R.FIELDS.START_POS]}),this.position++):is[this.currToken[R.FIELDS.TYPE]]||p||this.unexpected(),m){if(p){var g=this.convertWhitespaceNodesToSpace(p),b=g.space,x=g.rawSpace;m.spaces.before=b,m.rawSpaceBefore=x}}else{var w=this.convertWhitespaceNodesToSpace(p,!0),_=w.space,M=w.rawSpace;M||(M=_);var k={},T={spaces:{}};_.endsWith(" ")&&M.endsWith(" ")?(k.before=_.slice(0,_.length-1),T.spaces.before=M.slice(0,M.length-1)):_.startsWith(" ")&&M.startsWith(" ")?(k.after=_.slice(1),T.spaces.after=M.slice(1)):T.value=M,m=new es.default({value:" ",source:rs(c,this.tokens[this.position-1]),sourceIndex:c[R.FIELDS.START_POS],spaces:k,raws:T})}return this.currToken&&this.currToken[R.FIELDS.TYPE]===W.space&&(m.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(m)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var n=new Jo.default({source:{start:_l(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 xl.default({value:this.content(),source:br(n),sourceIndex:n[R.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[R.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[R.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[R.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[R.FIELDS.START_POS])},t.namespace=function(){var n=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[R.FIELDS.TYPE]===W.word)return this.position++,this.word(n);if(this.nextToken[R.FIELDS.TYPE]===W.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 Lm.default({value:this.content(),source:br(i),sourceIndex:i[R.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var n=this.current.last,i=1;if(this.position++,n&&n.type===Nm.PSEUDO){var o=new Jo.default({source:{start:_l(this.tokens[this.position-1])}}),s=this.current;for(n.append(o),this.current=o;this.position<this.tokens.length&&i;)this.currToken[R.FIELDS.TYPE]===W.openParenthesis&&i++,this.currToken[R.FIELDS.TYPE]===W.closeParenthesis&&i--,i?this.parse():(this.current.source.end=Tl(this.currToken),this.current.parent.source.end=Tl(this.currToken),this.position++);this.current=s}else{for(var a=this.currToken,u="(",f;this.position<this.tokens.length&&i;)this.currToken[R.FIELDS.TYPE]===W.openParenthesis&&i++,this.currToken[R.FIELDS.TYPE]===W.closeParenthesis&&i--,f=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;n?n.appendToPropertyAndEscape("value",u,u):this.newNode(new Zo.default({value:u,source:tr(a[R.FIELDS.START_LINE],a[R.FIELDS.START_COL],f[R.FIELDS.END_LINE],f[R.FIELDS.END_COL]),sourceIndex:a[R.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[R.FIELDS.START_POS])},t.pseudo=function(){for(var n=this,i="",o=this.currToken;this.currToken&&this.currToken[R.FIELDS.TYPE]===W.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[R.FIELDS.TYPE]===W.word)this.splitWord(!1,function(s,a){i+=s,n.newNode(new Im.default({value:i,source:rs(o,n.currToken),sourceIndex:o[R.FIELDS.START_POS]})),a>1&&n.nextToken&&n.nextToken[R.FIELDS.TYPE]===W.openParenthesis&&n.error("Misplaced parenthesis.",{index:n.nextToken[R.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[R.FIELDS.START_POS])},t.space=function(){var n=this.content();this.position===0||this.prevToken[R.FIELDS.TYPE]===W.comma||this.prevToken[R.FIELDS.TYPE]===W.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[R.FIELDS.TYPE]===W.comma||this.nextToken[R.FIELDS.TYPE]===W.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(n),this.position++):this.combinator()},t.string=function(){var n=this.currToken;this.newNode(new Zo.default({value:this.content(),source:br(n),sourceIndex:n[R.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 Cm.default({value:this.content(),source:br(o),sourceIndex:o[R.FIELDS.START_POS]}),n),this.position++},t.splitWord=function(n,i){for(var o=this,s=this.nextToken,a=this.content();s&&~[W.dollar,W.caret,W.equals,W.word].indexOf(s[R.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var f=this.nextToken;f&&f[R.FIELDS.TYPE]===W.space&&(a+=this.requiredSpace(this.content(f)),this.position++)}s=this.nextToken}var c=ns(a,".").filter(function(b){var x=a[b-1]==="\\",w=/^\d+\.\d+%$/.test(a);return!x&&!w}),p=ns(a,"#").filter(function(b){return a[b-1]!=="\\"}),m=ns(a,"#{");m.length&&(p=p.filter(function(b){return!~m.indexOf(b)}));var g=(0,Mm.default)(Wm([0].concat(c,p)));g.forEach(function(b,x){var w=g[x+1]||a.length,_=a.slice(b,w);if(x===0&&i)return i.call(o,_,g.length);var M,k=o.currToken,T=k[R.FIELDS.START_POS]+g[x],P=tr(k[1],k[2]+b,k[3],k[2]+(w-1));if(~c.indexOf(b)){var N={value:_.slice(1),source:P,sourceIndex:T};M=new Pm.default(yr(N,"value"))}else if(~p.indexOf(b)){var B={value:_.slice(1),source:P,sourceIndex:T};M=new Am.default(yr(B,"value"))}else{var G={value:_,source:P,sourceIndex:T};yr(G,"value"),M=new Rm.default(G)}o.newNode(M,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[R.FIELDS.TYPE]){case W.space:this.space();break;case W.comment:this.comment();break;case W.openParenthesis:this.parentheses();break;case W.closeParenthesis:n&&this.missingParenthesis();break;case W.openSquare:this.attribute();break;case W.dollar:case W.caret:case W.equals:case W.word:this.word();break;case W.colon:this.pseudo();break;case W.comma:this.comma();break;case W.asterisk:this.universal();break;case W.ampersand:this.nesting();break;case W.slash:case W.combinator:this.combinator();break;case W.str:this.string();break;case W.closeSquare:this.missingSquareBracket();case W.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[R.FIELDS.TYPE]===W.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,yr(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[R.FIELDS.START_POS],n[R.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(n){n===void 0&&(n=this.position+1);for(var i=n;i<this.tokens.length;)if(Dm[this.tokens[i][R.FIELDS.TYPE]]){i++;continue}else return i;return-1},Fm(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}();an.default=$m;kl.exports=an.default});var Al=q((un,Pl)=>{"use strict";un.__esModule=!0;un.default=void 0;var Bm=qm(Ol());function qm(e){return e&&e.__esModule?e:{default:e}}var Um=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 Bm.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 c=void 0;return o._shouldUpdateSelector(n,i)&&(c=u.toString(),n.selector=c),{transform:f,root:u,string:c}}).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}();un.default=Um;Pl.exports=un.default});var Rl=q(ce=>{"use strict";ce.__esModule=!0;ce.universal=ce.tag=ce.string=ce.selector=ce.root=ce.pseudo=ce.nesting=ce.id=ce.comment=ce.combinator=ce.className=ce.attribute=void 0;var zm=tt(zo()),Gm=tt(ko()),jm=tt(Ho()),Vm=tt(Po()),Hm=tt(Ro()),Ym=tt(Xo()),Xm=tt(Do()),Qm=tt(wo()),Km=tt(_o()),Jm=tt(No()),Zm=tt(Lo()),e0=tt(jo());function tt(e){return e&&e.__esModule?e:{default:e}}var t0=function(t){return new zm.default(t)};ce.attribute=t0;var r0=function(t){return new Gm.default(t)};ce.className=r0;var n0=function(t){return new jm.default(t)};ce.combinator=n0;var i0=function(t){return new Vm.default(t)};ce.comment=i0;var o0=function(t){return new Hm.default(t)};ce.id=o0;var s0=function(t){return new Ym.default(t)};ce.nesting=s0;var a0=function(t){return new Xm.default(t)};ce.pseudo=a0;var u0=function(t){return new Qm.default(t)};ce.root=u0;var l0=function(t){return new Km.default(t)};ce.selector=l0;var f0=function(t){return new Jm.default(t)};ce.string=f0;var c0=function(t){return new Zm.default(t)};ce.tag=c0;var d0=function(t){return new e0.default(t)};ce.universal=d0});var Ml=q(re=>{"use strict";re.__esModule=!0;re.isNode=os;re.isPseudoElement=Ll;re.isPseudoClass=_0;re.isContainer=T0;re.isNamespace=E0;re.isUniversal=re.isTag=re.isString=re.isSelector=re.isRoot=re.isPseudo=re.isNesting=re.isIdentifier=re.isComment=re.isCombinator=re.isClassName=re.isAttribute=void 0;var ve=Re(),qe,p0=(qe={},qe[ve.ATTRIBUTE]=!0,qe[ve.CLASS]=!0,qe[ve.COMBINATOR]=!0,qe[ve.COMMENT]=!0,qe[ve.ID]=!0,qe[ve.NESTING]=!0,qe[ve.PSEUDO]=!0,qe[ve.ROOT]=!0,qe[ve.SELECTOR]=!0,qe[ve.STRING]=!0,qe[ve.TAG]=!0,qe[ve.UNIVERSAL]=!0,qe);function os(e){return typeof e=="object"&&p0[e.type]}function rt(e,t){return os(t)&&t.type===e}var Il=rt.bind(null,ve.ATTRIBUTE);re.isAttribute=Il;var h0=rt.bind(null,ve.CLASS);re.isClassName=h0;var m0=rt.bind(null,ve.COMBINATOR);re.isCombinator=m0;var g0=rt.bind(null,ve.COMMENT);re.isComment=g0;var v0=rt.bind(null,ve.ID);re.isIdentifier=v0;var b0=rt.bind(null,ve.NESTING);re.isNesting=b0;var ss=rt.bind(null,ve.PSEUDO);re.isPseudo=ss;var y0=rt.bind(null,ve.ROOT);re.isRoot=y0;var x0=rt.bind(null,ve.SELECTOR);re.isSelector=x0;var w0=rt.bind(null,ve.STRING);re.isString=w0;var Cl=rt.bind(null,ve.TAG);re.isTag=Cl;var S0=rt.bind(null,ve.UNIVERSAL);re.isUniversal=S0;function Ll(e){return ss(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 _0(e){return ss(e)&&!Ll(e)}function T0(e){return!!(os(e)&&e.walk)}function E0(e){return Il(e)||Cl(e)}});var Nl=q(pt=>{"use strict";pt.__esModule=!0;var as=Re();Object.keys(as).forEach(function(e){e==="default"||e==="__esModule"||e in pt&&pt[e]===as[e]||(pt[e]=as[e])});var us=Rl();Object.keys(us).forEach(function(e){e==="default"||e==="__esModule"||e in pt&&pt[e]===us[e]||(pt[e]=us[e])});var ls=Ml();Object.keys(ls).forEach(function(e){e==="default"||e==="__esModule"||e in pt&&pt[e]===ls[e]||(pt[e]=ls[e])})});var Wl=q((ln,Dl)=>{"use strict";ln.__esModule=!0;ln.default=void 0;var k0=A0(Al()),O0=P0(Nl());function Fl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Fl=function(){return e},e}function P0(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Fl();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 A0(e){return e&&e.__esModule?e:{default:e}}var fs=function(t){return new k0.default(t)};Object.assign(fs,O0);delete fs.__esModule;var R0=fs;ln.default=R0;Dl.exports=ln.default});var $l=q(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});Object.defineProperty(cs,"default",{enumerable:!0,get:()=>I0});function I0(e){return e.replace(/\\,/g,"\\2c ")}});var ql=q((T1,Bl)=>{"use strict";Bl.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 ps=q(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});function C0(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}C0(ds,{parseColor:()=>W0,formatColor:()=>$0});var Ul=L0(ql());function L0(e){return e&&e.__esModule?e:{default:e}}var M0=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,N0=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,qt=/(?:\d+|\d*\.\d+)%?/,ci=/(?:\s*,\s*|\s+)/,zl=/\s*[,/]\s*/,Ut=/var\(--(?:[^ )]*?)\)/,F0=new RegExp(`^(rgb)a?\\(\\s*(${qt.source}|${Ut.source})(?:${ci.source}(${qt.source}|${Ut.source}))?(?:${ci.source}(${qt.source}|${Ut.source}))?(?:${zl.source}(${qt.source}|${Ut.source}))?\\s*\\)$`),D0=new RegExp(`^(hsl)a?\\(\\s*((?:${qt.source})(?:deg|rad|grad|turn)?|${Ut.source})(?:${ci.source}(${qt.source}|${Ut.source}))?(?:${ci.source}(${qt.source}|${Ut.source}))?(?:${zl.source}(${qt.source}|${Ut.source}))?\\s*\\)$`);function W0(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 Ul.default)return{mode:"rgb",color:Ul.default[e].map(u=>u.toString())};let i=e.replace(N0,(u,f,c,p,m)=>["#",f,f,c,c,p,p,m?m+m:""].join("")).match(M0);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(F0))!==null&&o!==void 0?o:e.match(D0);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 $0({mode:e,color:t,alpha:r}){let n=r!==void 0;return`${e}(${t.join(" ")}${n?` / ${r}`:""})`}});var ms=q(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});function B0(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}B0(hs,{withAlphaValue:()=>q0,default:()=>U0});var di=ps();function q0(e,t,r){if(typeof e=="function")return e({opacityValue:t});let n=(0,di.parseColor)(e,{loose:!0});return n===null?r:(0,di.formatColor)({...n,alpha:t})}function U0({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,di.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,di.formatColor)({...i,alpha:`var(${r})`})]))}}});var Yl=q(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});function z0(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}z0(gs,{pattern:()=>j0,withoutCapturing:()=>jl,any:()=>Vl,optional:()=>V0,zeroOrMore:()=>H0,nestedBrackets:()=>Hl,escape:()=>rr});var Gl=/[\\^$.*+?()[\]{}|]/g,G0=RegExp(Gl.source);function fn(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function j0(e){return new RegExp(fn(e),"g")}function jl(e){return new RegExp(`(?:${fn(e)})`,"g")}function Vl(e){return`(?:${e.map(fn).join("|")})`}function V0(e){return`(?:${fn(e)})?`}function H0(e){return`(?:${fn(e)})*`}function Hl(e,t,r=1){return jl([rr(e),/[^\s]*/,r===1?`[^${rr(e)}${rr(t)}s]*`:Vl([`[^${rr(e)}${rr(t)}s]*`,Hl(e,t,r-1)]),/[^\s]*/,rr(t)])}function rr(e){return e&&G0.test(e)?e.replace(Gl,"\\$&"):e||""}});var Ql=q(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});Object.defineProperty(vs,"splitAtTopLevelOnly",{enumerable:!0,get:()=>Q0});var Y0=X0(Yl());function Xl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Xl=function(n){return n?r:t})(e)}function X0(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Xl(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*Q0(e,t){let r=new RegExp(`[(){}\\[\\]${Y0.escape(t)}]`,"g"),n=0,i=0,o=!1,s=0,a=0,u=t.length;for(let f of e.matchAll(r)){let c=f[0]===t[s],p=s===u-1,m=c&&p;f[0]==="("&&n++,f[0]===")"&&n--,f[0]==="["&&n++,f[0]==="]"&&n--,f[0]==="{"&&n++,f[0]==="}"&&n--,c&&n===0&&(a===0&&(a=f.index),s++),m&&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 Jl=q(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});function K0(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}K0(bs,{parseBoxShadowValue:()=>tg,formatBoxShadowValue:()=>rg});var J0=Ql(),Z0=new Set(["inset","inherit","initial","revert","unset"]),eg=/\ +(?![^(]*\))/g,Kl=/^-?(\d+|\.\d+)(.*?)$/g;function tg(e){return Array.from((0,J0.splitAtTopLevelOnly)(e,",")).map(r=>{let n=r.trim(),i={raw:n},o=n.split(eg),s=new Set;for(let a of o)Kl.lastIndex=0,!s.has("KEYWORD")&&Z0.has(a)?(i.keyword=a,s.add("KEYWORD")):Kl.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 rg(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 sf=q(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});function ng(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}ng(xs,{normalize:()=>zt,url:()=>tf,number:()=>sg,percentage:()=>rf,length:()=>nf,lineWidth:()=>lg,shadow:()=>fg,color:()=>cg,image:()=>dg,gradient:()=>of,position:()=>mg,familyName:()=>gg,genericName:()=>bg,absoluteSize:()=>xg,relativeSize:()=>Sg});var ig=ps(),og=Jl(),ys=["min","max","clamp","calc"],ef=/,(?![^(]*\))/g,pi=/_(?![^(]*\))/g;function zt(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(r=>/^url\(.*?\)$/.test(r)?r:zt(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 tf(e){return e.startsWith("url(")}function sg(e){return!isNaN(Number(e))||ys.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function rf(e){return e.split(pi).every(t=>/%$/g.test(t)||ys.some(r=>new RegExp(`^${r}\\(.+?%`).test(t)))}var ag=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],Zl=`(?:${ag.join("|")})`;function nf(e){return e.split(pi).every(t=>t==="0"||new RegExp(`${Zl}$`).test(t)||ys.some(r=>new RegExp(`^${r}\\(.+?${Zl}`).test(t)))}var ug=new Set(["thin","medium","thick"]);function lg(e){return ug.has(e)}function fg(e){let t=(0,og.parseBoxShadowValue)(zt(e));for(let r of t)if(!r.valid)return!1;return!0}function cg(e){let t=0;return e.split(pi).every(n=>(n=zt(n),n.startsWith("var(")?!0:(0,ig.parseColor)(n,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function dg(e){let t=0;return e.split(ef).every(n=>(n=zt(n),n.startsWith("var(")?!0:tf(n)||of(n)||["element(","image(","cross-fade(","image-set("].some(i=>n.startsWith(i))?(t++,!0):!1))?t>0:!1}var pg=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function of(e){e=zt(e);for(let t of pg)if(e.startsWith(`${t}(`))return!0;return!1}var hg=new Set(["center","top","right","bottom","left"]);function mg(e){let t=0;return e.split(pi).every(n=>(n=zt(n),n.startsWith("var(")?!0:hg.has(n)||nf(n)||rf(n)?(t++,!0):!1))?t>0:!1}function gg(e){let t=0;return e.split(ef).every(n=>(n=zt(n),n.startsWith("var(")?!0:n.includes(" ")&&!/(['"])([^"']+)\1/g.test(n)||/^\d/g.test(n)?!1:(t++,!0)))?t>0:!1}var vg=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function bg(e){return vg.has(e)}var yg=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function xg(e){return yg.has(e)}var wg=new Set(["larger","smaller"]);function Sg(e){return wg.has(e)}});var hf=q(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});function _g(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}_g(_s,{updateAllClasses:()=>kg,asValue:()=>dn,parseColorFormat:()=>ws,asColor:()=>cf,asLookupValue:()=>df,coerceValue:()=>Rg});var Tg=Ss(Wl()),Eg=Ss($l()),af=ms(),Ue=sf(),uf=Ss(so());function Ss(e){return e&&e.__esModule?e:{default:e}}function kg(e,t){return(0,Tg.default)(i=>{i.walkClasses(o=>{let s=t(o.value);o.value=s,o.raws&&o.raws.value&&(o.raws.value=(0,Eg.default)(o.raws.value))})}).processSync(e)}function ff(e,t){if(!cn(e))return;let r=e.slice(1,-1);if(t(r))return(0,Ue.normalize)(r)}function Og(e,t={},r){let n=t[e];if(n!==void 0)return(0,uf.default)(n);if(cn(e)){let i=ff(e,r);return i===void 0?void 0:(0,uf.default)(i)}}function dn(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("-")?Og(e.slice(1),t.values,r):ff(e,r)}function cn(e){return e.startsWith("[")&&e.endsWith("]")}function Pg(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function ws(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:r=1})=>t.replace("<alpha-value>",r)}return e}function cf(e,t={},{tailwindConfig:r={}}={}){var n;if(((n=t.values)===null||n===void 0?void 0:n[e])!==void 0){var i;return ws((i=t.values)===null||i===void 0?void 0:i[e])}let[o,s]=Pg(e);if(s!==void 0){var a,u,f,c;let p=(c=(a=t.values)===null||a===void 0?void 0:a[o])!==null&&c!==void 0?c:cn(o)?o.slice(1,-1):void 0;return p===void 0?void 0:(p=ws(p),cn(s)?(0,af.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,af.withAlphaValue)(p,r.theme.opacity[s]))}return dn(e,t,{validate:Ue.color})}function df(e,t={}){var r;return(r=t.values)===null||r===void 0?void 0:r[e]}function nt(e){return(t,r)=>dn(t,r,{validate:e})}var pf={any:dn,color:cf,url:nt(Ue.url),image:nt(Ue.image),length:nt(Ue.length),percentage:nt(Ue.percentage),position:nt(Ue.position),lookup:df,"generic-name":nt(Ue.genericName),"family-name":nt(Ue.familyName),number:nt(Ue.number),"line-width":nt(Ue.lineWidth),"absolute-size":nt(Ue.absoluteSize),"relative-size":nt(Ue.relativeSize),shadow:nt(Ue.shadow)},lf=Object.keys(pf);function Ag(e,t){let r=e.indexOf(t);return r===-1?[void 0,e]:[e.slice(0,r),e.slice(r+1)]}function Rg(e,t,r,n){if(cn(t)){let i=t.slice(1,-1),[o,s]=Ag(i,":");if(!/^[\w-_]+$/g.test(o))s=i;else if(o!==void 0&&!lf.includes(o))return[];if(s.length>0&&lf.includes(o))return[dn(`[${s}]`,r),o]}for(let i of[].concat(e)){let o=pf[i](t,r,{tailwindConfig:n});if(o!==void 0)return[o,i]}return[]}});var mf=q(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Object.defineProperty(Ts,"default",{enumerable:!0,get:()=>Ig});function Ig(e){return typeof e=="function"?e({}):e}});var xf=q(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});Object.defineProperty(ks,"default",{enumerable:!0,get:()=>Kg});var Cg=nr(so()),Lg=nr(Su()),Mg=nr(_u()),Ng=nr(lo()),Fg=nr(Eu()),bf=ku(),gf=Ou(),Dg=Au(),Wg=nr(Ru()),$g=Iu(),Bg=hf(),qg=ms(),Ug=nr(mf());function nr(e){return e&&e.__esModule?e:{default:e}}function xr(e){return typeof e=="function"}function pn(e){return typeof e=="object"&&e!==null}function hn(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?pn(e[i])&&pn(n[i])?e[i]=hn(e[i],n[i],r):e[i]=n[i]:e[i]=o}return e}var Es={colors:Fg.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,r)=>{let n=(0,Cg.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 zg(e,...t){return xr(e)?e(...t):e}function Gg(e){return e.reduce((t,{extend:r})=>hn(t,r,(n,i)=>n===void 0?[i]:Array.isArray(n)?[i,...n]:[i,n]),{})}function jg(e){return{...e.reduce((t,r)=>(0,bf.defaults)(t,r),{}),extend:Gg(e)}}function vf(e,t){if(Array.isArray(e)&&pn(e[0]))return e.concat(t);if(Array.isArray(t)&&pn(t[0])&&pn(e))return[e,...t];if(Array.isArray(t))return t}function Vg({extend:e,...t}){return hn(t,e,(r,n)=>!xr(r)&&!n.some(xr)?hn({},r,...n,vf):(i,o)=>hn({},...[r,...n].map(s=>zg(s,i,o)),vf))}function*Hg(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 Yg(e){let t=(r,n)=>{for(let i of Hg(r)){let o=0,s=e;for(;s!=null&&o<i.length;)s=s[i[o++]],s=xr(s)&&(i.alpha===void 0||o<=i.length-1)?s(t,Es):s;if(s!==void 0){if(i.alpha!==void 0){let a=(0,Bg.parseColorFormat)(s);return(0,qg.withAlphaValue)(a,i.alpha,(0,Ug.default)(a))}return(0,Wg.default)(s)?(0,$g.cloneDeep)(s):s}}return n};return Object.assign(t,{theme:t,...Es}),Object.keys(e).reduce((r,n)=>(r[n]=xr(e[n])?e[n](t,Es):e[n],r),{})}function yf(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,...yf([(s=o==null?void 0:o.config)!==null&&s!==void 0?s:{}])]})}),t}function Xg(e){return[...e].reduceRight((r,n)=>xr(n)?n({corePlugins:r}):(0,Mg.default)(n,r),Lg.default)}function Qg(e){return[...e].reduceRight((r,n)=>[...r,...n],[])}function Kg(e){let t=[...yf(e),{prefix:"",important:!1,separator:":",variantOrder:Ng.default.variantOrder}];var r,n;return(0,Dg.normalizeConfig)((0,bf.defaults)({theme:Yg(Vg(jg(t.map(i=>(r=i==null?void 0:i.theme)!==null&&r!==void 0?r:{})))),corePlugins:Xg(t.map(i=>i.corePlugins)),plugins:Qg(e.map(i=>(n=i==null?void 0:i.plugins)!==null&&n!==void 0?n:[]))},...t))}});var wf={};Er(wf,{default:()=>Jg});var Jg,Sf=Kt(()=>{Jg={yellow:e=>e}});var kf=q(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});function Zg(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Zg(Os,{flagEnabled:()=>rv,issueFlagNotices:()=>nv,default:()=>iv});var ev=Ef((Sf(),kr(wf))),tv=Ef((Jn(),kr(Kn)));function Ef(e){return e&&e.__esModule?e:{default:e}}var _f={optimizeUniversalDefaults:!1},mn={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function rv(e,t){if(mn.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:_f[t])!==null&&i!==void 0?i:!1)}if(mn.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:_f[t])!==null&&a!==void 0?a:!1)}return!1}function Tf(e){if(e.experimental==="all")return mn.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(r=>mn.experimental.includes(r)&&e.experimental[r])}function nv(e){if(process.env.JEST_WORKER_ID===void 0&&Tf(e).length>0){let t=Tf(e).map(r=>ev.default.yellow(r)).join(", ");tv.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 iv=mn});var Pf=q(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Object.defineProperty(Ps,"default",{enumerable:!0,get:()=>Of});var ov=av(lo()),sv=kf();function av(e){return e&&e.__esModule?e:{default:e}}function Of(e){var t;let r=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[ov.default]).slice().reverse().flatMap(o=>Of(typeof o=="function"?o():o)),n={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(n).filter(o=>(0,sv.flagEnabled)(e,o)).map(o=>n[o]);return[e,...i,...r]}});var Rf=q(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});Object.defineProperty(As,"default",{enumerable:!0,get:()=>fv});var uv=Af(xf()),lv=Af(Pf());function Af(e){return e&&e.__esModule?e:{default:e}}function fv(...e){let[,...t]=(0,lv.default)(e[0]);return(0,uv.default)([...e,...t])}});var Cf=q((D1,If)=>{var Rs=Rf();If.exports=(Rs.__esModule?Rs:{default:Rs}).default});var Iv={};Er(Iv,{default:()=>Ys,init:()=>Pa});module.exports=kr(Iv);var aa=At(require("linebreak"),1);var Or=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yc=Or((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),xc=Or((e,t)=>{t.exports=["deg","grad","rad","turn"]}),wc=Or((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),Sc=Or((e,t)=>{t.exports=["Hz","kHz"]}),_c=Or((e,t)=>{t.exports=["s","ms"]}),Tc=yc(),na=xc(),ia=wc(),oa=Sc(),sa=_c();function yi(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(Ec(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=bi(e),this.unit="%";return}var t=Oc(e);if(!t){this.type="number",this.value=bi(e);return}this.type=Ac(t),this.value=bi(e.substr(0,e.length-t.length)),this.unit=t}yi.prototype.valueOf=function(){return this.value};yi.prototype.toString=function(){return this.value+(this.unit||"")};function Rt(e){return new yi(e)}function Ec(e){var t=e.match(/\./g);return t?t.length:0}function bi(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var kc=[].concat(na,oa,Tc,ia,sa);function Oc(e){var t=e.match(/\D+$/),r=t&&t[0];if(r&&kc.indexOf(r)===-1)throw new Error("Invalid unit: "+r);return r}var Pc=Object.assign(In(na,"angle"),In(oa,"frequency"),In(ia,"resolution"),In(sa,"time"));function In(e,t){return Object.fromEntries(e.map(r=>[r,t]))}function Ac(e){return Pc[e]||"length"}function lr(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function ua(e){return/^class\s/.test(e.toString())}function Si(e){return e&&e.$$typeof===Symbol.for("react.forward_ref")}function la(e){return typeof e=="function"||Si(e)}function fa(e){return"dangerouslySetInnerHTML"in e}function ca(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 H(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 Rt(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 Rt(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 Pr(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 $e(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 xi,wi,da=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e));function We(e,t,r){if(!xi||!wi){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");xi=new Intl.Segmenter(r,{granularity:"word"}),wi=new Intl.Segmenter(r,{granularity:"grapheme"})}if(t==="grapheme")return[...wi.segment(e)].map(n=>n.segment);{let n=[...xi.segment(e)].map(s=>s.segment),i=[],o=0;for(;o<n.length;){let s=n[o];if(s=="\xA0"){let a=o===0?"":i.pop(),u=o===n.length-1?"":n[o+1];i.push(a+"\xA0"+u),o+=2}else i.push(s),o++}return i}}function C(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 pa(e=20){let t=new Map;function r(o,s){if(t.size>=e){let a=t.keys().next().value;t.delete(a)}t.set(o,s)}function n(o){if(!t.has(o))return;let a=t.get(o);return t.delete(o),t.set(o,a),a}function i(){t.clear()}return{set:r,get:n,clear:i}}function fr(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Cn(e){return typeof e=="string"}function ha(e){return typeof e=="number"}function ma(e){return typeof e>"u"}function It(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 Wt(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 ga(e,t){if(t==="break-all")return{words:We(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:We(e,"word"),requiredBreaks:[]};let r=new aa.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 va=e=>e.replaceAll(/([A-Z])/g,(t,r)=>`-${r.toLowerCase()}`);function Ln(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 Pa(e){return Promise.resolve().then(()=>(Li(),Ci)).then(t=>t.init(e))}function $t(){return Promise.resolve().then(()=>(Li(),Ci)).then(e=>e.getYoga())}var Fc="image/avif",Dc="image/webp",Dn="image/apng",Wn="image/png",$n="image/jpeg",Bn="image/gif",Mi="image/svg+xml";function Ia(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 Ca(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function La(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var xt=pa(100),Rr=new Map,Wc=[Wn,Dn,$n,Bn,Mi];function $c(e){let t="",r=new Uint8Array(e);for(let n=0;n<r.byteLength;n++)t+=String.fromCharCode(r[n]);return btoa(t)}function Bc(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 Aa(e,t){let r=t.match(/<svg[^>]*>/)[0],n=r.match(/viewBox=['"](.+)['"]/),i=n?fr(n[1]):null,o=r.match(/width=['"](\d*\.\d+|\d+)['"]/),s=r.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!i&&(!o||!s))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let a=i?[i[2],i[3]]:[+o[1],+s[1]],u=a[0]/a[1];return o&&s?[+o[1],+s[1]]:o?[+o[1],+o[1]/u]:s?[+s[1]*u,+s[1]]:[a[0],a[1]]}function Ra(e){let t,r=qc(new Uint8Array(e));switch(r){case Wn:case Dn:t=La(e);break;case Bn:t=Ca(e);break;case $n:t=Ia(e);break}if(!Wc.includes(r))throw new Error(`Unsupported image type: ${r||"unknown"}`);return[`data:${r};base64,${$c(e)}`,t]}async function hr(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[i,o]=Ra(e);return[i,...o]}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 i;try{i=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:o,encodingType:s,dataString:a}=i;if(o===Mi){let u=s==="base64"?atob(a):decodeURIComponent(a.replace(/ /g,"%20")),f=s==="base64"?e:`data:image/svg+xml;base64,${btoa(u)}`,c=Aa(e,u);return xt.set(e,[f,...c]),[f,...c]}else if(s==="base64"){let u,f=Bc(a);switch(o){case Wn:case Dn:u=La(f);break;case Bn:u=Ca(f);break;case $n:u=Ia(f);break}return xt.set(e,[e,...u]),[e,...u]}else return console.warn("Image data URI resolved without size:"+e),xt.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Rr.has(e))return Rr.get(e);let t=xt.get(e);if(t)return t;let r=e,n=fetch(r).then(i=>{let o=i.headers.get("content-type");return o==="image/svg+xml"||o==="application/svg+xml"?i.text():i.arrayBuffer()}).then(i=>{if(typeof i=="string")try{let a=`data:image/svg+xml;base64,${btoa(i)}`,u=Aa(r,i);return[a,...u]}catch(a){throw new Error(`Failed to parse SVG image: ${a.message}`)}let[o,s]=Ra(i);return[o,...s]}).then(i=>(xt.set(r,i),i)).catch(i=>(console.error(`Can't load image ${r}: `+i.message),xt.set(r,[]),[]));return Rr.set(r,n),n}function qc(e){return[255,216,255].every((t,r)=>e[r]===t)?$n:[137,80,78,71,13,10,26,10].every((t,r)=>e[r]===t)?Uc(e)?Dn:Wn:[71,73,70,56].every((t,r)=>e[r]===t)?Bn:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,r)=>!t||e[r]===t)?Dc:[60,63,120,109,108].every((t,r)=>e[r]===t)?Mi:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,r)=>!t||e[r]===t)?Fc:null}function Uc(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 Ni={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"},zc=/[\r\n%#()<>?[\\\]^`{|}"']/g;function Fi(e,t){if(!e)return"";if(Array.isArray(e))return e.map(f=>Fi(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,c])=>(typeof c=="string"&&c.toLowerCase()==="currentcolor"&&(c=s),f==="href"&&r==="image"?` ${Ni[f]||f}="${xt.get(c)[0]}"`:` ${Ni[f]||f}="${c}"`)).join("")}`,u=i?` style="${Object.entries(i).map(([f,c])=>`${va(f)}:${c}`).join(";")}"`:"";return`<${r}${a}${u}>${Fi(n,s)}</${r}>`}async function Ma(e){let t=new Set,r=n=>{if(n&&lr(n)){if(Array.isArray(n)){n.forEach(i=>r(i));return}else typeof n=="object"&&(n.type==="image"?t.has(n.props.href)||t.add(n.props.href):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=>hr(n)))}async function Na(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 c=(a==null?void 0:a.color)||t,p=fr(r),m=p?p[3]/p[2]:null;return i=i||m&&o?o/m:null,o=o||m&&i?i*m:null,f.width=i,f.height=o,r&&(f.viewBox=r),`data:image/svg+xml;utf8,${`<svg ${Object.entries(f).map(([g,b])=>(typeof b=="string"&&b.toLowerCase()==="currentcolor"&&(b=c),` ${Ni[g]||g}="${b}"`)).join("")}>${Fi(u,c)}</svg>`.replace(zc,encodeURIComponent)}`}var Ze="flex",Fa={p:{display:Ze,marginTop:"1em",marginBottom:"1em"},div:{display:Ze},blockquote:{display:Ze,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:Ze,textAlign:"center"},hr:{display:Ze,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:Ze,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:Ze,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:Ze,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:Ze,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:Ze,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:Ze,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:Ze,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var Gc=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath","_inheritedBackgroundClipTextHasBackground"]);function Di(e){let t={};for(let r in e)Gc.has(r)&&(t[r]=e[r]);return t}var dt=require("css-to-react-native"),za=require("css-background-parser"),Ga=require("css-box-shadow"),ja=At(require("parse-css-color"),1);var Da=At(require("postcss-value-parser"),1);function jc(e,t){try{let r=new Rt(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 Wi(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=jc(e,t);return n.absolute?{[r?"xAbsolute":"yAbsolute"]:n.absolute}:n.relative?{[r?"xRelative":"yRelative"]:n.relative}:{}}}}function $i(e,t){if(typeof e=="number")return{xAbsolute:e};let r;try{r=(0,Da.default)(e).nodes.filter(n=>n.type==="word").map(n=>n.value)}catch{return{}}return r.length===1?Wi(r[0],t,!0):r.length===2?((r[0]==="top"||r[0]==="bottom"||r[1]==="left"||r[1]==="right")&&r.reverse(),{...Wi(r[0],t,!0),...Wi(r[1],t,!1)}):{}}var Wa=require("css-to-react-native");function Ir(e,t){let r=(0,Wa.getPropertyName)(`mask-${t}`);return e[r]||e[`WebkitM${r.substring(1)}`]}function $a(e){let t=e.maskImage||e.WebkitMaskImage,r={position:Ir(e,"position")||"0% 0%",size:Ir(e,"size")||"100% 100%",repeat:Ir(e,"repeat")||"repeat",origin:Ir(e,"origin")||"border-box",clip:Ir(e,"origin")||"border-box"};return Ln(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...r}))}var Vc=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),Hc=new Set(["lineHeight"]);function Yc(e,t,r,n){return e==="textDecoration"&&!r.includes(t.textDecorationColor)&&(t.textDecorationColor=n),t}function Jt(e,t){let r=Number(t);return isNaN(r)?t:Vc.has(e)?Hc.has(e)?r:String(t):r+"px"}function Xc(e,t,r){if(e==="zIndex")return console.warn("`z-index` is currently not supported."),{[e]:t};if(e==="lineHeight")return{lineHeight:Jt(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(n=>n.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[n,i]=t.split("/"),o=(0,dt.getStylesForProperty)(e,n,!0),s=(0,dt.getStylesForProperty)(e,i,!0);for(let a in o)s[a]=Jt(e,o[a])+" "+Jt(e,s[a]);return s}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let n=(0,dt.getStylesForProperty)("border",t,!0);n.borderWidth===1&&!String(t).includes("1px")&&(n.borderWidth=3),n.borderColor==="black"&&!String(t).includes("black")&&(n.borderColor=r);let i={Width:Jt(e+"Width",n.borderWidth),Style:$e(n.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:n.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,Ga.parse)(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let n={},i=t.replace(/(-?[\d.]+%)/g,(s,a)=>{let u=~~(Math.random()*1e9);return n[u]=a,u+"px"}),o=(0,dt.getStylesForProperty)("transform",i,!0);for(let s of o.transform)for(let a in s)n[s[a]]&&(s[a]=n[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,dt.getStylesForProperty)("backgroundImage",t,!0):(0,dt.getStylesForProperty)("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let n={},i=Ln(t);for(let o of i){let s=(0,dt.getStylesForProperty)("textShadow",o,!0);for(let a in s)n[a]?n[a].push(s[a]):n[a]=[s[a]]}return n}if(e==="WebkitTextStroke"){t=t.toString().trim();let n=t.split(" ");if(n.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:Jt(e,n[0]),WebkitTextStrokeColor:Jt(e,n[1])}}}function Ba(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var qa=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function Va(e){if(typeof e=="string"&&qa.test(e.trim()))return e.trim().replace(qa,(t,r,n,i,o)=>`rgba(${r}, ${n}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=Va(e[t]);return e}return e}function qn(e,t){let r={};if(e){let i=Kc(e.color,t.color);r.color=i;for(let o in e){if(o.startsWith("_")){r[o]=e[o];continue}if(o==="color")continue;let s=(0,dt.getPropertyName)(o),a=Zc(e[o],i);try{let u=Xc(s,a,i)||Yc(s,(0,dt.getStylesForProperty)(s,Jt(s,a),!0),a,i);Object.assign(r,u)}catch(u){throw new Error(u.message+(u.message.includes(a)?`
|
|
5
|
-
`+
|
|
6
|
-
in CSS rule \`${s}: ${a}\`.${Ba(s)}`))}}}if(r.backgroundImage){let{backgrounds:i}=(0,za.parseElementStyle)(r);r.backgroundImage=i}(r.maskImage||r.WebkitMaskImage)&&(r.maskImage=$a(r));let n=Qc(r.fontSize,t.fontSize);typeof r.fontSize<"u"&&(r.fontSize=n),r.transformOrigin&&(r.transformOrigin=$i(r.transformOrigin,n));for(let i in r){let o=r[i];if(i==="lineHeight")typeof o=="string"&&o!=="normal"&&(o=r[i]=H(o,n,n,t,!0)/n);else{if(typeof o=="string"){let s=H(o,n,n,t);typeof s<"u"&&(r[i]=s),o=r[i]}if(typeof o=="string"||typeof o=="object"){let s=Va(o);s&&(r[i]=s),o=r[i]}}if(i==="opacity"&&typeof o=="number"&&(r.opacity=o*t.opacity),i==="transform"){let s=o;for(let a of s){let u=Object.keys(a)[0],f=a[u],c=typeof f=="string"?H(f,n,n,t)??f:f;a[u]=c}}if(i==="textShadowRadius"){let s=o;r.textShadowRadius=s.map(a=>H(a,n,0,t,!1))}if(i==="textShadowOffset"){let s=o;r.textShadowOffset=s.map(({height:a,width:u})=>({height:H(a,n,0,t,!1),width:H(u,n,0,t,!1)}))}}return r}function Qc(e,t){if(typeof e=="number")return e;try{let r=new Rt(e);switch(r.unit){case"em":return r.value*t;case"rem":return r.value*16}}catch{return t}}function Ua(e){if(e.startsWith("hsl")){let t=(0,ja.default)(e),[r,n,i]=t.values;return`hsl(${[r,`${n}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function Kc(e,t){return e&&e.toLowerCase()!=="currentcolor"?Ua(e):Ua(t)}function Jc(e,t){return e.replace(/currentcolor/gi,t)}function Zc(e,t){return Cn(e)&&(e=Jc(e,t)),e}async function Bi(e,t,r,n,i){let o=await $t(),s={...r,...qn(Fa[t],r),...qn(n,r)};if(t==="img"){let[a,u,f]=await hr(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 c=f/u,p=(s.borderLeftWidth||0)+(s.borderRightWidth||0)+(s.paddingLeft||0)+(s.paddingRight||0),m=(s.borderTopWidth||0)+(s.borderBottomWidth||0)+(s.paddingTop||0)+(s.paddingBottom||0),g=s.width||i.width,b=s.height||i.height,x=typeof g=="number"&&typeof b=="number";x&&(g-=p,b-=m),g===void 0&&b===void 0?(g="100%",e.setAspectRatio(1/c)):g===void 0?typeof b=="number"?g=b/c:e.setAspectRatio(1/c):b===void 0&&(typeof g=="number"?b=g*c:e.setAspectRatio(1/c)),s.width=x?g+p:g,s.height=x?b+m:b,s.__src=a}if(t==="svg"){let a=i.viewBox||i.viewbox,u=fr(a),f=u?u[3]/u[2]:null,{width:c,height:p}=i;typeof c>"u"&&p?f==null?c=0:typeof p=="string"&&p.endsWith("%")?c=parseInt(p)/f+"%":(p=H(p,r.fontSize,1,r),c=p/f):typeof p>"u"&&c?f==null?c=0:typeof c=="string"&&c.endsWith("%")?p=parseInt(c)*f+"%":(c=H(c,r.fontSize,1,r),p=c*f):(typeof c<"u"&&(c=H(c,r.fontSize,1,r)||c),typeof p<"u"&&(p=H(p,r.fontSize,1,r)||p),c||=u==null?void 0:u[2],p||=u==null?void 0:u[3]),!s.width&&c&&(s.width=c),!s.height&&p&&(s.height=p)}return e.setDisplay($e(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($e(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($e(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($e(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($e(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($e(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($e(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(Wt(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(It(s.maxHeight,"maxHeight")),typeof s.maxWidth<"u"&&e.setMaxWidth(It(s.maxWidth,"maxWidth")),typeof s.minHeight<"u"&&e.setMinHeight(It(s.minHeight,"minHeight")),typeof s.minWidth<"u"&&e.setMinWidth(It(s.minWidth,"minWidth")),e.setOverflow($e(s.overflow,{visible:o.OVERFLOW_VISIBLE,hidden:o.OVERFLOW_HIDDEN},o.OVERFLOW_VISIBLE,"overflow")),e.setMargin(o.EDGE_TOP,Wt(s.marginTop||0)),e.setMargin(o.EDGE_BOTTOM,Wt(s.marginBottom||0)),e.setMargin(o.EDGE_LEFT,Wt(s.marginLeft||0)),e.setMargin(o.EDGE_RIGHT,Wt(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($e(s.boxSizing,{"border-box":o.BOX_SIZING_BORDER_BOX,"content-box":o.BOX_SIZING_CONTENT_BOX},o.BOX_SIZING_BORDER_BOX,"boxSizing")),e.setPositionType($e(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,It(s.top,"top")),typeof s.bottom<"u"&&e.setPosition(o.EDGE_BOTTOM,It(s.bottom,"bottom")),typeof s.left<"u"&&e.setPosition(o.EDGE_LEFT,It(s.left,"left")),typeof s.right<"u"&&e.setPosition(o.EDGE_RIGHT,It(s.right,"right")),typeof s.height<"u"?e.setHeight(Wt(s.height,"height")):e.setHeightAuto(),typeof s.width<"u"?e.setWidth(Wt(s.width,"width")):e.setWidthAuto(),[s,Di(s)]}var qi=At(require("escape-html"),1);var Ha=[1,0,0,1,0,0];function ed(e,t,r){let n=[...Ha];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=[...Ha];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,c=Math.cos(f),p=Math.sin(f);u[0]=c,u[1]=p,u[2]=-p,u[3]=c;break}case"skewX":u[2]=Math.tan(a*Math.PI/180);break;case"skewY":u[1]=Math.tan(a*Math.PI/180);break}n=Pr(u,n)}e.splice(0,e.length),e.push(...n),e.__resolved=!0}function Cr({left:e,top:t,width:r,height:n},i,o,s){let a;i.__resolved||ed(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,c=(s==null?void 0:s.yAbsolute)??((s==null?void 0:s.yRelative)??50)*n/100,p=e+f,m=t+c;a=Pr([1,0,0,1,p,m],Pr(u,[1,0,0,1,-p,-m])),u.__parent&&(a=Pr(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(f=>f.toFixed(2)).join(",")})`}function Ya({left:e,top:t,width:r,height:n,isInheritingTransform:i},o){let s="",a=1;return o.transform&&(s=Cr({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 Ui({id:e,content:t,filter:r,left:n,top:i,width:o,height:s,matrix:a,opacity:u,image:f,clipPathId:c,debug:p,shape:m,decorationShape:g},b){let x="";if(p&&(x=C("rect",{x:n,y:i-s,width:o,height:s,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a||void 0,"clip-path":c?`url(#${c})`:void 0})),f){let _={href:f,x:n,y:i,width:o,height:s,transform:a||void 0,"clip-path":c?`url(#${c})`:void 0,style:b.filter?`filter:${b.filter}`:void 0};return[(r?`${r}<g filter="url(#satori_s-${e})">`:"")+C("image",{..._,opacity:u!==1?u:void 0})+(g||"")+(r?"</g>":"")+x,""]}let w={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":c?`url(#${c})`: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})">`:"")+C("text",{...w,fill:b.color,opacity:u!==1?u:void 0},(0,qi.default)(t))+(g||"")+(r?"</g>":"")+x,m?C("text",w,(0,qi.default)(t)):""]}function td(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 Un=1.1;function Xa({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,c=0,p=r;for(let m=0;m<o;m++){let g=n.shadowRadius[m]*n.shadowRadius[m]/4;if(u=Math.min(n.shadowOffset[m].width-g,u),f=Math.max(n.shadowOffset[m].width+g+t,f),c=Math.min(n.shadowOffset[m].height-g,c),p=Math.max(n.shadowOffset[m].height+g+r,p),i){let b=`satori_s-${e}-result-${m}`;s+=C("feGaussianBlur",{in:"SourceAlpha",stdDeviation:n.shadowRadius[m]/2,result:`${b}-blur`})+C("feOffset",{in:`${b}-blur`,dx:n.shadowOffset[m].width,dy:n.shadowOffset[m].height,result:`${b}-offset`})+C("feFlood",{"flood-color":n.shadowColor[m],"flood-opacity":1,result:`${b}-color`})+C("feComposite",{in:`${b}-color`,in2:`${b}-offset`,operator:"in",result:o>1?b:void 0})}else s+=C("feDropShadow",{dx:n.shadowOffset[m].width,dy:n.shadowOffset[m].height,stdDeviation:n.shadowRadius[m]/2,"flood-color":n.shadowColor[m],"flood-opacity":1,...o>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${m}`}:{}});o>1&&(a=C("feMergeNode",{in:`satori_s-${e}-result-${m}`})+a)}return C("filter",{id:`satori_s-${e}`,x:(u/t*100*Un).toFixed(2)+"%",y:(c/r*100*Un).toFixed(2)+"%",width:((f-u)/t*100*Un).toFixed(2)+"%",height:((p-c)/r*100*Un).toFixed(2)+"%"},s+(a?C("feMerge",{},a):""))}function Qa({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="",c=o.boxShadow[u];c.spreadRadius&&c.inset&&(c.spreadRadius=-c.spreadRadius);let p=c.blurRadius*c.blurRadius/4+(c.spreadRadius||0),m=Math.min(-p-(c.inset?c.offsetX:0),0),g=Math.max(p+e-(c.inset?c.offsetX:0),e),b=Math.min(-p-(c.inset?c.offsetY:0),0),x=Math.max(p+t-(c.inset?c.offsetY:0),t),w=`satori_s-${i}-${u}`,_=`satori_ms-${i}-${u}`,M=c.spreadRadius?r.replace('stroke-width="0"',`stroke-width="${c.spreadRadius*2}"`):r;f+=C("mask",{id:_,maskUnits:"userSpaceOnUse"},C("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:c.inset?"#000":"#fff"})+M.replace('fill="#fff"',c.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let k=M.replace(/d="([^"]+)"/,(T,P)=>'d="'+td(P,c.offsetX,c.offsetY)+'"').replace(/x="([^"]+)"/,(T,P)=>'x="'+(parseFloat(P)+c.offsetX)+'"').replace(/y="([^"]+)"/,(T,P)=>'y="'+(parseFloat(P)+c.offsetY)+'"');c.spreadRadius&&c.spreadRadius<0&&(f+=C("mask",{id:_+"-neg",maskUnits:"userSpaceOnUse"},k.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-c.spreadRadius*2}"`))),c.spreadRadius&&c.spreadRadius<0&&(k=C("g",{mask:`url(#${_}-neg)`},k)),f+=C("defs",{},C("filter",{id:w,x:`${m/e*100}%`,y:`${b/t*100}%`,width:`${(g-m)/e*100}%`,height:`${(x-b)/t*100}%`},C("feGaussianBlur",{stdDeviation:c.blurRadius/2,result:"b"})+C("feFlood",{"flood-color":c.color,in:"SourceGraphic",result:"f"})+C("feComposite",{in:"f",in2:"b",operator:c.inset?"out":"in"})))+C("g",{mask:`url(#${_})`,filter:`url(#${w})`,opacity:n},k),c.inset?a+=f:s+=f}return[s,a]}function zi({width:e,left:t,top:r,ascender:n,clipPathId:i,matrix:o},s){let{textDecorationColor:a,textDecorationStyle:u,textDecorationLine:f,fontSize:c,color:p}=s;if(!f||f==="none")return"";let m=Math.max(1,c*.1),g=f==="line-through"?r+n*.7:f==="underline"?r+n*1.1:r,b=u==="dashed"?`${m*1.2} ${m*2}`:u==="dotted"?`0 ${m*2}`:void 0,x=u==="double"?C("line",{x1:t,y1:g+m+1,x2:t+e,y2:g+m+1,stroke:a||p,"stroke-width":m,"stroke-dasharray":b,"stroke-linecap":u==="dotted"?"round":"square",transform:o}):"";return(i?`<g clip-path="url(#${i})">`:"")+C("line",{x1:t,y1:g,x2:t+e,y2:g,stroke:a||p,"stroke-width":m,"stroke-dasharray":b,"stroke-linecap":u==="dotted"?"round":"square",transform:o})+x+(i?"</g>":"")}function Gi(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var Zt=Gi("U+0020"),ji=Gi("U+0009"),mr=Gi("U+2026");function Ka(e,t,r){let{fontSize:n,letterSpacing:i}=r,o=new Map;function s(f){if(o.has(f))return o.get(f);let c=e.measure(f,{fontSize:n,letterSpacing:i});return o.set(f,c),c}function a(f){let c=0;for(let p of f)t(p)?c+=n:c+=s(p);return c}function u(f){return a(We(f,"grapheme"))}return{measureGrapheme:s,measureGraphemeArray:a,measureText:u}}function Ja(e,t,r){let{textTransform:n,whiteSpace:i,wordBreak:o}=t;e=rd(e,n,r);let{content:s,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=od(e,i),{words:f,requiredBreaks:c,allowBreakWord:p}=id(s,o),[m,g]=nd(t,u);return{words:f,requiredBreaks:c,allowSoftWrap:u,allowBreakWord:p,processedContent:s,shouldCollapseTabsAndSpaces:a,lineLimit:m,blockEllipsis:g}}function rd(e,t,r){return t==="uppercase"?e=e.toLocaleUpperCase(r):t==="lowercase"?e=e.toLocaleLowerCase(r):t==="capitalize"&&(e=We(e,"word",r).map(n=>We(n,"grapheme",r).map((i,o)=>o===0?i.toLocaleUpperCase(r):i).join("")).join("")),e}function nd(e,t){let{textOverflow:r,lineClamp:n,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:s,display:a}=e;if(a==="block"&&n){let[u,f=mr]=sd(n);if(u)return[u,f]}return r==="ellipsis"&&a==="-webkit-box"&&o==="vertical"&&ha(i)&&i>0?[i,mr]:r==="ellipsis"&&s==="hidden"&&!t?[1,mr]:[1/0]}function id(e,t){let r=["break-all","break-word"].includes(t),{words:n,requiredBreaks:i}=ga(e,t);return{words:n,requiredBreaks:i,allowBreakWord:r}}function od(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,Zt)),n&&(e=e.replace(/([ ]|\t)+/g,Zt).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:n,allowSoftWrap:i}}function sd(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 Hi=At(require("parse-css-color"),1),ad=new Set([ji]);function ud(e){return ad.has(e)}function Vi(e){if(e==="transparent")return!0;let t=(0,Hi.default)(e);return t?t.alpha===0:!1}function Za(e){if(!e)return!1;let t=(0,Hi.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*Yi(e,t){let r=await $t(),{parentStyle:n,inheritedStyle:i,parent:o,font:s,id:a,isInheritingTransform:u,debug:f,embedFont:c,graphemeImages:p,locale:m,canLoadAdditionalAssets:g}=t,{textAlign:b,lineHeight:x,textWrap:w,fontSize:_,filter:M,tabSize:k=8,letterSpacing:T,_inheritedBackgroundClipTextPath:P,_inheritedBackgroundClipTextHasBackground:N,flexShrink:B}=n,{words:G,requiredBreaks:se,allowSoftWrap:we,allowBreakWord:Ie,processedContent:Ee,shouldCollapseTabsAndSpaces:te,lineLimit:Se,blockEllipsis:de}=Ja(e,n,m),ie=ld(r,b);o.insertChild(ie,o.getChildCount()),ma(B)&&o.setFlexShrink(1);let me=s.getEngine(_,x,n,m),be=g?We(Ee,"grapheme").filter(V=>!ud(V)&&!me.has(V)):[];yield be.map(V=>({word:V,locale:m})),be.length&&(me=s.getEngine(_,x,n,m));function ke(V){return!!(p&&p[V])}let{measureGrapheme:ye,measureGraphemeArray:jt,measureText:Ce}=Ka(me,ke,{fontSize:_,letterSpacing:T}),ot=Cn(k)?H(k,_,1,n):ye(Zt)*k,ht=(V,Q)=>{if(V.length===0)return{originWidth:0,endingSpacesWidth:0,text:V};let{index:ae,tabCount:Y}=fd(V),pe=0;if(Y>0){let he=V.slice(0,ae),K=V.slice(ae+Y),Z=Ce(he),Ke=Z+Q;pe=(ot===0?Z:(Math.floor(Ke/ot)+Y)*ot)+Ce(K)}else pe=Ce(V);let X=V.trimEnd()===V?pe:Ce(V.trimEnd());return{originWidth:pe,endingSpacesWidth:pe-X,text:V}},U=[],Le=[],Me=[],Ge=[],j=[];function mt(V){let Q=0,ae=0,Y=-1,pe=0,X=0,he=0,K=0;U=[],Me=[0],Ge=[],j=[];let Z=0,Ke=0;for(;Z<G.length&&Q<Se;){let J=G[Z],lt=se[Z],Be=0,{originWidth:yt,endingSpacesWidth:ur,text:Oe}=ht(J,X);J=Oe,Be=yt;let ue=ur;lt&&he===0&&(he=me.height(J));let Pe=b==="justify",_e=Z&&X+Be>V+ue&&we;if(Ie&&Be>V&&(!X||_e||lt)){let Ne=We(J,"grapheme");G.splice(Z,1,...Ne),X>0&&(U.push(X-Ke),Le.push(K),Q++,pe+=he,X=0,he=0,K=0,Me.push(1),Y=-1),Ke=ue;continue}if(lt||_e)te&&J===Zt&&(Be=0),U.push(X-Ke),Le.push(K),Q++,pe+=he,X=Be,he=Be?Math.round(me.height(J)):0,K=Be?Math.round(me.baseline(J)):0,Me.push(1),Y=-1,lt||(ae=Math.max(ae,V));else{X+=Be;let Ne=Math.round(me.height(J));Ne>he&&(he=Ne,K=Math.round(me.baseline(J))),Pe&&Me[Me.length-1]++}Pe&&Y++,ae=Math.max(ae,X);let Et=X-Be;if(Be===0)j.push({y:pe,x:Et,width:0,line:Q,lineIndex:Y,isImage:!1});else{let Ne=We(J,"word");for(let Fe=0;Fe<Ne.length;Fe++){let De=Ne[Fe],Je=0,kt=!1;ke(De)?(Je=_,kt=!0):Je=ye(De),Ge.push(De),j.push({y:pe,x:Et,width:Je,line:Q,lineIndex:Y,isImage:kt}),Et+=Je}}Z++,Ke=ue}return X&&(Q<Se&&(pe+=he),Q++,U.push(X),Le.push(K)),{width:ae,height:pe}}let gt={width:0,height:0};ie.setMeasureFunc(V=>{let{width:Q,height:ae}=mt(V);if(w==="balance"){let pe=Q/2,X=Q,he=Q;for(;pe+1<X;){he=(pe+X)/2;let{height:Z}=mt(he);Z>ae?pe=he:X=he}mt(X);let K=Math.ceil(X);return gt={width:K,height:ae},{width:K,height:ae}}if(w==="pretty"&&U[U.length-1]<Q/3){let he=Q*.9,K=mt(he);if(K.height<=ae*1.3)return gt={width:Q,height:K.height},{width:Q,height:K.height}}let Y=Math.ceil(Q);return gt={width:Y,height:ae},{width:Y,height:ae}});let[wn,Sn]=yield,xe="",vt="",Xe=i._inheritedClipPathId,Dt=i._inheritedMaskId,{left:Qe,top:sr,width:st,height:_n}=ie.getComputedLayout(),Vt=o.getComputedWidth()-o.getComputedPadding(r.EDGE_LEFT)-o.getComputedPadding(r.EDGE_RIGHT)-o.getComputedBorder(r.EDGE_LEFT)-o.getComputedBorder(r.EDGE_RIGHT),at=wn+Qe,bt=Sn+sr,{matrix:je,opacity:Ht}=Ya({left:Qe,top:sr,width:st,height:_n,isInheritingTransform:u},n),ut="";if(n.textShadowOffset){let{textShadowColor:V,textShadowOffset:Q,textShadowRadius:ae}=n;ut=Xa({width:gt.width,height:gt.height,id:a},{shadowColor:V,shadowOffset:Q,shadowRadius:ae},Vi(n.color)||N&&Za(n.color)),ut=C("defs",{},ut)}let Yt="",Xt="",Qt="",Tt=-1,Ve={},He=null,ar=0;for(let V=0;V<Ge.length;V++){let Q=j[V],ae=j[V+1];if(!Q)continue;let Y=Ge[V],pe=null,X=!1,he=p?p[Y]:null,K=Q.y,Z=Q.x,Ke=Q.width,J=Q.line;if(J===Tt)continue;let lt=!1;if(U.length>1){let ue=st-U[J];if(b==="right"||b==="end")Z+=ue;else if(b==="center")Z+=ue/2;else if(b==="justify"&&J<U.length-1){let Pe=Me[J],_e=Pe>1?ue/(Pe-1):0;Z+=_e*Q.lineIndex,lt=!0}Z=Math.round(Z)}let Be=Le[J],yt=me.baseline(Y),ur=me.height(Y),Oe=Be-yt;if(Ve[J]||(Ve[J]=[Z,bt+K+Oe,yt,lt?st:U[J]]),Se!==1/0){let Ne=function(Fe,De){let Je=We(De,"grapheme",m),kt="",Tn=0;for(let En of Je){let kn=Fe+jt([kt+En]);if(kt&&kn+Pe>Vt)break;kt+=En,Tn=kn}return{subset:kt,resolvedWidth:Tn}},ue=de,Pe=ye(de);Pe>Vt&&(ue=mr,Pe=ye(ue));let _e=ye(Zt),_r=J<U.length-1;if(J+1===Se&&(_r||U[J]>Vt)){if(Z+Ke+Pe+_e>Vt){let{subset:Fe,resolvedWidth:De}=Ne(Z,Y);Y=Fe+ue,Tt=J,Ve[J][2]=De,X=!0}else if(ae&&ae.line!==J)if(b==="center"){let{subset:Fe,resolvedWidth:De}=Ne(Z,Y);Y=Fe+ue,Tt=J,Ve[J][2]=De,X=!0}else{let Fe=Ge[V+1],{subset:De,resolvedWidth:Je}=Ne(Ke+Z,Fe);Y=Y+De+ue,Tt=J,Ve[J][2]=Je,X=!0}}}if(he)K+=0;else if(c){if(!Y.includes(ji)&&!da.includes(Y)&&Ge[V+1]&&ae&&!ae.isImage&&K===ae.y&&!X){He===null&&(ar=Z),He=He===null?Y:He+Y;continue}let ue=He===null?Y:He+Y,Pe=He===null?Z:ar,_e=Q.width+Z-Pe;pe=me.getSVG(ue.replace(/(\t)+/g,""),{fontSize:_,left:at+Pe,top:bt+K+yt+Oe,letterSpacing:T}),He=null,f&&(Qt+=C("rect",{x:at+Pe,y:bt+K+Oe,width:_e,height:ur,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:je||void 0,"clip-path":Xe?`url(#${Xe})`:void 0})+C("line",{x1:at+Z,x2:at+Z+Q.width,y1:bt+K+Oe+yt,y2:bt+K+Oe+yt,stroke:"#14c000","stroke-width":1,transform:je||void 0,"clip-path":Xe?`url(#${Xe})`:void 0}))}else K+=yt+Oe;if(n.textDecorationLine){let ue=Ve[J];ue&&!ue[4]&&(Yt+=zi({left:at+ue[0],top:ue[1],width:ue[3],ascender:ue[2],clipPathId:Xe,matrix:je},n),ue[4]=1)}if(pe!==null)Xt+=pe+" ";else{let[ue,Pe]=Ui({content:Y,filter:ut,id:a,left:at+Z,top:bt+K,width:Ke,height:ur,matrix:je,opacity:Ht,image:he,clipPathId:Xe,debug:f,shape:!!P,decorationShape:Yt},n);xe+=ue,vt+=Pe,Yt=""}if(X)break}if(Xt){let V=(!Vi(n.color)||ut)&&Ht!==0?`<g ${Dt?`mask="url(#${Dt})"`:""} ${Xe?`clip-path="url(#${Xe})"`:""}>`+C("path",{fill:ut&&(Vi(n.color)||N&&Za(n.color))?"black":n.color,d:Xt,transform:je||void 0,opacity:Ht!==1?Ht:void 0,style:M?`filter:${M}`: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>":"";P&&(vt=C("path",{d:Xt,transform:je||void 0})),xe+=(ut?ut+C("g",{filter:`url(#satori_s-${a})`},V+Yt):V+Yt)+Qt}return vt&&(n._inheritedBackgroundClipTextPath.value+=vt),xe}function ld(e,t){let r=e.Node.create();return r.setAlignItems(e.ALIGN_BASELINE),r.setJustifyContent($e(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 fd(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}var tu=require("css-gradient-parser");var eu=At(require("parse-css-color"),1);function zn(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:m}=p;if(!o.length&&(o.push({offset:0,color:m}),!p.offset||p.offset.value==="0"))continue;let g=typeof p.offset>"u"?void 0:p.offset.unit==="%"?+p.offset.value/a:Number(H(`${p.offset.value}${p.offset.unit}`,r.fontSize,e,r,!0))/e;o.push({offset:g,color:m})}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,c=1;for(let p=0;p<o.length;p++)if(typeof o[p].offset>"u"){for(c<p&&(c=p);typeof o[c].offset>"u";)c++;o[p].offset=(o[c].offset-o[f].offset)/(c-f)*(p-f)+o[f].offset}else f=p;return i==="mask"?o.map(p=>{let m=(0,eu.default)(p.color);return m?m.alpha===0?{...p,color:"rgba(0, 0, 0, 1)"}:{...p,color:`rgba(255, 255, 255, ${m.alpha})`}:p}):o}function ru({id:e,width:t,height:r,repeatX:n,repeatY:i},o,s,a,u,f){let c=(0,tu.parseLinearGradient)(o),[p,m]=s,g=o.startsWith("repeating"),b,x,w;if(c.orientation.type==="directional")b=dd(c.orientation.value),x=Math.sqrt(Math.pow((b.x2-b.x1)*p,2)+Math.pow((b.y2-b.y1)*m,2));else if(c.orientation.type==="angular"){let{length:P,...N}=pd(_i(`${c.orientation.value.value}${c.orientation.value.unit}`)/180*Math.PI,p,m);x=P,b=N}w=g?hd(c.stops,x,b,u):b;let _=zn(g?cd(c.stops,x):x,c.stops,u,g,f),M=`satori_bi${e}`,k=`satori_pattern_${e}`,T=C("pattern",{id:k,x:a[0]/t,y:a[1]/r,width:n?p/t:"1",height:i?m/r:"1",patternUnits:"objectBoundingBox"},C("linearGradient",{id:M,...w,spreadMethod:g?"repeat":"pad"},_.map(P=>C("stop",{offset:(P.offset??0)*100+"%","stop-color":P.color})).join(""))+C("rect",{x:0,y:0,width:p,height:m,fill:`url(#${M})`}));return[k,T]}function cd(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 dd(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 pd(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,c,p,m=g=>{if(g===0){i=0,o=r,s=0,a=0,u=r;return}else if(g===Math.PI/2){i=0,o=0,s=t,a=0,u=t;return}if(g>0&&g<Math.PI/2){i=(n*t/2/Math.tan(g)-r/2)/(Math.tan(g)+n/Math.tan(g)),o=Math.tan(g)*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)),c=(t/2/Math.tan(g)-r/2)/(Math.tan(g)+1/Math.tan(g)),p=Math.tan(g)*c+r,u=2*Math.sqrt(Math.pow(t/2-c,2)+Math.pow(r/2-p,2));return}else if(g>Math.PI/2&&g<Math.PI){i=(r/2+n*t/2/Math.tan(g))/(Math.tan(g)+n/Math.tan(g)),o=Math.tan(g)*i,s=Math.abs(t/2-i)+t/2,a=r/2+Math.abs(o-r/2),c=(t/2/Math.tan(g)+r/2)/(Math.tan(g)+1/Math.tan(g)),p=Math.tan(g)*c,u=2*Math.sqrt(Math.pow(t/2-c,2)+Math.pow(r/2-p,2));return}else g>=Math.PI&&(m(g-Math.PI),f=i,i=s,s=f,f=o,o=a,a=f)};return m(e),{x1:i/t,y1:o/r,x2:s/t,y2:a/r,length:u}}function hd(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:H(`${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:H(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,n.fontSize,t,n,!0)/t:1,c=(o-i)*u+i,p=(a-s)*u+s,m=(o-i)*f+i,g=(a-s)*f+s;return{x1:c,y1:p,x2:m,y2:g}}var iu=require("css-gradient-parser");function ou({id:e,width:t,height:r,repeatX:n,repeatY:i},o,s,a,u,f){var te;let{shape:c,stops:p,position:m,size:g,repeating:b}=(0,iu.parseRadialGradient)(o),[x,w]=s,_=x/2,M=w/2,k=gd(m.x,m.y,x,w,u.fontSize,u);_=k.x,M=k.y;let T=md(t,p,b,u),P=zn(T,p,u,b,f),N=`satori_radial_${e}`,B=`satori_pattern_${e}`,G=`satori_mask_${e}`,se=bd(c,g,u.fontSize,{x:_,y:M},[x,w],u,b),we=vd(c,u.fontSize,p,[x,w],u,b,se),Ie=C("pattern",{id:B,x:a[0]/t,y:a[1]/r,width:n?x/t:"1",height:i?w/r:"1",patternUnits:"objectBoundingBox"},C("radialGradient",{id:N,...we},P.map(Se=>C("stop",{offset:Se.offset||0,"stop-color":Se.color})).join(""))+C("mask",{id:G},C("rect",{x:0,y:0,width:x,height:w,fill:"#fff"}))+C("rect",{x:0,y:0,width:x,height:w,fill:((te=P.at(-1))==null?void 0:te.color)||"transparent"})+C(c,{cx:_,cy:M,width:x,height:w,...se,fill:`url(#${N})`,mask:`url(#${G})`}));return[B,Ie]}function md(e,t,r,n){if(!r)return e;let i=t.at(-1);return!i||!i.offset||i.offset.unit==="%"?e:H(`${i.offset.value}${i.offset.unit}`,+n.fontSize,e,n,!0)}function gd(e,t,r,n,i,o){let s={x:r/2,y:n/2};return e.type==="keyword"?Object.assign(s,nu(e.value,r,n,"x")):s.x=H(`${e.value.value}${e.value.unit}`,i,r,o,!0)??r/2,t.type==="keyword"?Object.assign(s,nu(t.value,r,n,"y")):s.y=H(`${t.value.value}${t.value.unit}`,i,n,o,!0)??n/2,s}function nu(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 vd(e,t,r,[n,i],o,s,a){let{r:u,rx:f,ratio:c=1}=a;if(!s)return{spreadMethod:"pad"};let p=r.at(-1),m=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)/c}%`:Number(H(`${p.offset.value}${p.offset.unit}`,t,n,o,!0)/m)}}function bd(e,t,r,n,i,o,s){let[a,u]=i,{x:f,y:c}=n,p={},m=0,g=0;if(yd(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(H(`${t[0].value.value}${t[0].value.unit}`,r,a,o,!0))}):Object.assign(p,{rx:Number(H(`${t[0].value.value}${t[0].value.unit}`,r,a,o,!0)),ry:Number(H(`${t[1].value.value}${t[1].value.unit}`,r,u,o,!0))}),Gn(p,a,u,f,c,s,e),p}switch(t[0].value){case"farthest-corner":m=Math.max(Math.abs(a-f),Math.abs(f)),g=Math.max(Math.abs(u-c),Math.abs(c));break;case"closest-corner":m=Math.min(Math.abs(a-f),Math.abs(f)),g=Math.min(Math.abs(u-c),Math.abs(c));break;case"farthest-side":return e==="circle"?p.r=Math.max(Math.abs(a-f),Math.abs(f),Math.abs(u-c),Math.abs(c)):(p.rx=Math.max(Math.abs(a-f),Math.abs(f)),p.ry=Math.max(Math.abs(u-c),Math.abs(c))),Gn(p,a,u,f,c,s,e),p;case"closest-side":return e==="circle"?p.r=Math.min(Math.abs(a-f),Math.abs(f),Math.abs(u-c),Math.abs(c)):(p.rx=Math.min(Math.abs(a-f),Math.abs(f)),p.ry=Math.min(Math.abs(u-c),Math.abs(c))),Gn(p,a,u,f,c,s,e),p}return e==="circle"?p.r=Math.sqrt(m*m+g*g):Object.assign(p,su(m,g)),Gn(p,a,u,f,c,s,e),p}function Gn(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:c}=su(a,u);e.ratio=Math.max(f/e.rx,c/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 su(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 yd(e){return!e.some(t=>t.type==="keyword")}var Qi=At(require("parse-css-color"),1);function xd(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function Xi(e,{x:t,y:r,defaultX:n,defaultY:i}){return(e?e.split(" ").map(o=>{try{let s=new Rt(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)=>xd(o,[t,r][s]))}async function Lr({id:e,width:t,height:r,left:n,top:i},{image:o,size:s,position:a,repeat:u},f,c){u=u||"repeat",c=c||"background";let p=u==="repeat-x"||u==="repeat",m=u==="repeat-y"||u==="repeat",g=Xi(s,{x:t,y:r,defaultX:t,defaultY:r}),b=Xi(a,{x:t,y:r,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return ru({id:e,width:t,height:r,repeatX:p,repeatY:m},o,g,b,f,c);if(o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("))return ou({id:e,width:t,height:r,repeatX:p,repeatY:m},o,g,b,f,c);if(o.startsWith("url(")){let x=Xi(s,{x:t,y:r,defaultX:0,defaultY:0}),[w,_,M]=await hr(o.slice(4,-1)),k=c==="mask"?_||x[0]:x[0]||_,T=c==="mask"?M||x[1]:x[1]||M;return[`satori_bi${e}`,C("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:b[0]+n,y:b[1]+i,width:p?k:"100%",height:m?T:"100%"},C("image",{x:0,y:0,width:k,height:T,preserveAspectRatio:"none",href:w}))]}if((0,Qi.default)(o)){let x=(0,Qi.default)(o),[w,_,M,k]=x.values,P=`rgba(${w},${_},${M},${k!==void 0?k:1})`;return[`satori_bi${e}`,C("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:n,y:i,width:t,height:r},C("rect",{x:0,y:0,width:t,height:r,fill:P}))]}throw new Error(`Invalid background image: "${o}"`)}function wd([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 jn(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 Vn(e){e[0]=e[1]=Math.min(e[0],e[1])}function Hn(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(H(o[0],n,t,i,!0),t),Math.min(H(o[1],n,r,i,!0),r)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,r)]]:[!0,void 0]}var Yn=e=>e&&e[0]!==0&&e[1]!==0;function au({id:e,borderRadiusPath:t,borderType:r,left:n,top:i,width:o,height:s},a){let u=`satori_brc-${e}`;return[C("clipPath",{id:u},C(r,{x:n,y:i,width:o,height:s,d:t||void 0})),u]}function Bt({left:e,top:t,width:r,height:n},i,o){let{borderTopLeftRadius:s,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:f,fontSize:c}=i,p,m,g,b;if([p,s]=Hn(s,r,n,c,i),[m,a]=Hn(a,r,n,c,i),[g,u]=Hn(u,r,n,c,i),[b,f]=Hn(f,r,n,c,i),!o&&!Yn(s)&&!Yn(a)&&!Yn(u)&&!Yn(f))return"";s||=[0,0],a||=[0,0],u||=[0,0],f||=[0,0],[s[0],a[0]]=jn(s[0],a[0],r),[u[0],f[0]]=jn(u[0],f[0],r),[s[1],u[1]]=jn(s[1],u[1],n),[a[1],f[1]]=jn(a[1],f[1],n),p&&Vn(s),m&&Vn(a),g&&Vn(u),b&&Vn(f);let x=[];x[0]=[a,a],x[1]=[f,[-f[0],f[1]]],x[2]=[u,[-u[0],-u[1]]],x[3]=[s,[s[0],-s[1]]];let w=`h${r-s[0]-a[0]} a${x[0][0]} 0 0 1 ${x[0][1]}`,_=`v${n-a[1]-f[1]} a${x[1][0]} 0 0 1 ${x[1][1]}`,M=`h${f[0]+u[0]-r} a${x[2][0]} 0 0 1 ${x[2][1]}`,k=`v${u[1]+s[1]-n} a${x[3][0]} 0 0 1 ${x[3][1]}`;if(o){let P=function(Ee){let te=wd([s,a,f,u][Ee]);return Ee===0?[[e+s[0]-te,t+s[1]-te],[e+s[0],t]]:Ee===1?[[e+r-a[0]+te,t+a[1]-te],[e+r,t+a[1]]]:Ee===2?[[e+r-f[0]+te,t+n-f[1]+te],[e+r-f[0],t+n]]:[[e+u[0]-te,t+n-u[1]+te],[e,t+n-u[1]]]},T=o.indexOf(!1);if(!o.includes(!0))throw new Error("Invalid `partialSides`.");if(T===-1)T=0;else for(;!o[T];)T=(T+1)%4;let N="",B=P(T),G=`M${B[0]} A${x[(T+3)%4][0]} 0 0 1 ${B[1]}`,se=0;for(;se<4&&o[(T+se)%4];se++)N+=G+" ",G=[w,_,M,k][(T+se)%4];let we=(T+se)%4;N+=G.split(" ")[0];let Ie=P(we);return N+=` A${x[(we+3)%4][0]} 0 0 1 ${Ie[0]}`,N}return`M${e+s[0]},${t} ${w} ${_} ${M} ${k}`}function uu(e,t,r){return r[e+"Width"]===r[t+"Width"]&&r[e+"Style"]===r[t+"Style"]&&r[e+"Color"]===r[t+"Color"]}function lu({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 c=`satori_bc-${e}`;return[C("clipPath",{id:c,"clip-path":t?`url(#${t})`:void 0},C(n,{x:i,y:o,width:s,height:a,d:r||void 0})),c]}function Mr({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(g=>a[g+"Width"]))return"";let f="",c=0;for(;c>0&&uu(u[c],u[(c+3)%4],a);)c=(c+3)%4;let p=[!1,!1,!1,!1],m=[];for(let g=0;g<4;g++){let b=(c+g)%4,x=(c+g+1)%4,w=u[b],_=u[x];if(p[b]=!0,m=[a[w+"Width"],a[w+"Style"],a[w+"Color"],w],!uu(w,_,a)){let M=(m[0]||0)+(o&&!s&&a[w.replace("border","padding")]||0);M&&(f+=C("path",{width:r,height:n,...i,fill:"none",stroke:o?"#000":m[2],"stroke-width":M*2,"stroke-dasharray":!o&&m[1]==="dashed"?M*2+" "+M:void 0,d:Bt({left:e,top:t,width:r,height:n},a,p)})),p=[!1,!1,!1,!1]}}if(p.some(Boolean)){let g=(m[0]||0)+(o&&!s&&a[m[3].replace("border","padding")]||0);g&&(f+=C("path",{width:r,height:n,...i,fill:"none",stroke:o?"#000":m[2],"stroke-width":g*2,"stroke-dasharray":!o&&m[1]==="dashed"?g*2+" "+g:void 0,d:Bt({left:e,top:t,width:r,height:n},a,p)}))}return f}function Ki({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),c=(a.borderRightWidth||0)+(s?0:a.paddingRight||0),p=(a.borderBottomWidth||0)+(s?0:a.paddingBottom||0),m={x:t+u,y:r+f,width:n-u-c,height:i-f-p};return C("mask",{id:e},C("rect",{...m,fill:"#fff",transform:a.overflow==="hidden"&&a.transform&&o?o:void 0,mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+Mr({left:t,top:r,width:n,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:s},a))}var Ji=require("css-to-react-native"),Nr={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function du({width:e,height:t},r,n){function i(f){let c=f.match(Nr.circle);if(!c)return null;let[,p]=c,[m,g=""]=p.split("at").map(w=>w.trim()),{x:b,y:x}=cu(g,e,t);return{type:"circle",r:H(m,n.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),n,!0),cx:H(b,n.fontSize,e,n,!0),cy:H(x,n.fontSize,t,n,!0)}}function o(f){let c=f.match(Nr.ellipse);if(!c)return null;let[,p]=c,[m,g=""]=p.split("at").map(M=>M.trim()),[b,x]=m.split(" "),{x:w,y:_}=cu(g,e,t);return{type:"ellipse",rx:H(b||"50%",n.fontSize,e,n,!0),ry:H(x||"50%",n.fontSize,t,n,!0),cx:H(w,n.fontSize,e,n,!0),cy:H(_,n.fontSize,t,n,!0)}}function s(f){let c=f.match(Nr.path);if(!c)return null;let[p,m]=fu(c[1]);return{type:"path",d:m,"fill-rule":p}}function a(f){let c=f.match(Nr.polygon);if(!c)return null;let[p,m]=fu(c[1]);return{type:"polygon","fill-rule":p,points:m.split(",").map(g=>g.split(" ").map((b,x)=>H(b,n.fontSize,x===0?e:t,n,!0)).join(" ")).join(",")}}function u(f){let c=f.match(Nr.inset);if(!c)return null;let[p,m]=(c[1].includes("round")?c[1]:`${c[1].trim()} round 0`).split("round"),g=(0,Ji.getStylesForProperty)("borderRadius",m,!0),b=Object.values(g).map(T=>String(T)).map((T,P)=>H(T,n.fontSize,P===0||P===2?t:e,n,!0)||0),x=Object.values((0,Ji.getStylesForProperty)("margin",p,!0)).map(T=>String(T)).map((T,P)=>H(T,n.fontSize,P===0||P===2?t:e,n,!0)||0),w=x[3],_=x[0],M=e-(x[1]+x[3]),k=t-(x[0]+x[2]);return b.some(T=>T>0)?{type:"path",d:Bt({left:w,top:_,width:M,height:k},{...r,...g})}:{type:"rect",x:w,y:_,width:M,height:k}}return{parseCircle:i,parseEllipse:o,parsePath:s,parsePolygon:a,parseInset:u}}function fu(e){let[,t="nonzero",r]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,r]}function cu(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 Xn(e){return`satori_cp-${e}`}function pu(e){return`url(#${Xn(e)})`}function hu(e,t,r){if(t.clipPath==="none")return"";let n=du(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 C("clipPath",{id:Xn(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},C(s,a))}return""}function Zi({left:e,top:t,width:r,height:n,path:i,matrix:o,id:s,currentClipPath:a,src:u},f,c){let p="",m=f.clipPath&&f.clipPath!=="none"?hu({left:e,top:t,width:r,height:n,path:i,id:s,matrix:o,currentClipPath:a,src:u},f,c):"";if(f.overflow!=="hidden"&&!u)p="";else{let b=m?`satori_ocp-${s}`:Xn(s);p=C("clipPath",{id:b,"clip-path":a},C(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 g=Ki({id:`satori_om-${s}`,left:e,top:t,width:r,height:n,matrix:o,borderOnly:!u},f);return m+p+g}var Sd=e=>`satori_mi-${e}`;async function eo(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 c=Sd(a),p="";for(let m=0;m<f;m++){let g=u[m],[b,x]=await Lr({id:`${c}-${m}`,left:n,top:i,width:o,height:s},g,r,"mask");p+=x+C("rect",{x:n,y:i,width:o,height:s,fill:`url(#${b})`})}return p=C("mask",{id:c},p),[c,p]}async function Fr({id:e,left:t,top:r,width:n,height:i,isInheritingTransform:o,src:s,debug:a},u,f){if(u.display==="none")return"";let c=!!s,p="rect",m="",g="",b=[],x=1,w="";u.backgroundColor&&b.push(u.backgroundColor),u.opacity!==void 0&&(x=+u.opacity),u.transform&&(m=Cr({left:t,top:r,width:n,height:i},u.transform,o,u.transformOrigin));let _="";if(u.backgroundImage){let de=[];for(let ie=0;ie<u.backgroundImage.length;ie++){let me=u.backgroundImage[ie],be=await Lr({id:e+"_"+ie,width:n,height:i,left:t,top:r},me,f);be&&de.unshift(be)}for(let ie of de)b.push(`url(#${ie[0]})`),g+=ie[1],ie[2]&&(_+=ie[2])}let[M,k]=await eo({id:e,left:t,top:r,width:n,height:i},u,f);g+=k;let T=M?`url(#${M})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,P=Bt({left:t,top:r,width:n,height:i},u);P&&(p="path");let N=u._inheritedClipPathId;a&&(w=C("rect",{x:t,y:r,width:n,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:m||void 0,"clip-path":N?`url(#${N})`:void 0}));let{backgroundClip:B,filter:G}=u,se=B==="text"?`url(#satori_bct-${e})`:N?`url(#${N})`:u.clipPath?pu(e):void 0,we=Zi({left:t,top:r,width:n,height:i,path:P,id:e,matrix:m,currentClipPath:se,src:s},u,f),Ie=b.map(de=>C(p,{x:t,y:r,width:n,height:i,fill:de,d:P||void 0,transform:m||void 0,"clip-path":u.transform?void 0:se,style:G?`filter:${G}`:void 0,mask:u.transform?void 0:T})).join(""),Ee=lu({id:e,left:t,top:r,width:n,height:i,currentClipPathId:N,borderPath:P,borderType:p},u),te;if(c){let de=(u.borderLeftWidth||0)+(u.paddingLeft||0),ie=(u.borderTopWidth||0)+(u.paddingTop||0),me=(u.borderRightWidth||0)+(u.paddingRight||0),be=(u.borderBottomWidth||0)+(u.paddingBottom||0),ke="Mid",ye="Mid",Ce=(u.objectPosition||"center").toString().trim().toLowerCase().split(/\s+/);if(Ce.length===1)switch(Ce[0]){case"left":ke="Min",ye="Mid";break;case"right":ke="Max",ye="Mid";break;case"top":ke="Mid",ye="Min";break;case"bottom":ke="Mid",ye="Max";break;case"center":ke="Mid",ye="Mid";break}else if(Ce.length===2)for(let U of Ce)U==="left"?ke="Min":U==="right"?ke="Max":U==="center"?ke="Mid":U==="top"?ye="Min":U==="bottom"&&(ye="Max");let ot=`x${ke}Y${ye}`,ht=u.objectFit==="contain"?ot:u.objectFit==="cover"?`${ot} slice`:"none";u.transform&&(te=au({id:e,borderRadiusPath:P,borderType:p,left:t,top:r,width:n,height:i},u)),Ie+=C("image",{x:t+de,y:r+ie,width:n-de-me,height:i-ie-be,href:s,preserveAspectRatio:ht,transform:m||void 0,style:G?`filter:${G}`:void 0,"clip-path":u.transform?te?`url(#${te[1]})`:void 0:`url(#satori_cp-${e})`,mask:u.transform?void 0:M?`url(#${M})`:`url(#satori_om-${e})`})}if(Ee){g+=Ee[0];let de=Ee[1];Ie+=Mr({left:t,top:r,width:n,height:i,props:{transform:m||void 0,"clip-path":`url(#${de})`}},u)}let Se=Qa({width:n,height:i,id:e,opacity:x,shape:C(p,{x:t,y:r,width:n,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:P||void 0,transform:m||void 0,"clip-path":se,mask:T})},u);return(g?C("defs",{},g):"")+(Se?Se[0]:"")+(te?te[0]:"")+we+(x!==1?`<g opacity="${x}">`:"")+(u.transform&&(se||T)?`<g${se?` clip-path="${se}"`:""}${T?` mask="${T}"`:""}>`:"")+(_||Ie)+(u.transform&&(se||T)?"</g>":"")+(x!==1?"</g>":"")+(Se?Se[1]:"")+w}var gu=String.raw,mu=gu`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,vu=()=>new RegExp(gu`\p{RI}{2}|(?)${mu}(?:\u200D${mu})*`,"gu");var _d=new RegExp(vu(),"u"),to={emoji:_d,symbol:/\p{Symbol}/u,math:/\p{Math}/u},ro={"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},Qn=Object.keys({...ro,...to});function bu(e){return Qn.includes(e)}function yu(e,t){for(let n of Object.keys(to))if(to[n].test(e))return[n];let r=Object.keys(ro).filter(n=>ro[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 xu(e){if(e)return Qn.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*Dr(e,t){var ht;let r=await $t(),{id:n,inheritedStyle:i,parent:o,font:s,debug:a,locale:u,embedFont:f=!0,graphemeImages:c,canLoadAdditionalAssets:p,getTwStyles:m}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!lr(e)||la(e.type)){let U;if(!lr(e))U=Yi(String(e),t),yield(await U.next()).value;else{if(ua(e.type))throw new Error("Class component is not supported.");let Me;Si(e.type)?Me=e.type.render:Me=e.type,U=Dr(await Me(e.props),t),yield(await U.next()).value}await U.next();let Le=yield;return(await U.next(Le)).value}let{type:g,props:b}=e,x=g;if(b&&fa(b))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:w,children:_,tw:M,lang:k=u}=b||{},T=xu(k);if(M){let U=m(M,w);w=Object.assign(U,w)}let P=r.Node.create();o.insertChild(P,o.getChildCount());let[N,B]=await Bi(P,x,i,w,b),G=N.transform===i.transform;if(G||(N.transform.__parent=i.transform),(N.overflow==="hidden"||N.clipPath&&N.clipPath!=="none")&&(B._inheritedClipPathId=`satori_cp-${n}`,B._inheritedMaskId=`satori_om-${n}`),N.maskImage&&(B._inheritedMaskId=`satori_mi-${n}`),N.backgroundClip==="text"){let U={value:""};B._inheritedBackgroundClipTextPath=U,N._inheritedBackgroundClipTextPath=U,N.backgroundImage&&(B._inheritedBackgroundClipTextHasBackground="true",N._inheritedBackgroundClipTextHasBackground="true")}let se=ca(_),we=[],Ie=0,Ee=[];for(let U of se){let Le=Dr(U,{id:n+"-"+Ie++,parentStyle:N,inheritedStyle:B,isInheritingTransform:!0,parent:P,font:s,embedFont:f,debug:a,graphemeImages:c,canLoadAdditionalAssets:p,locale:T,getTwStyles:m,onNodeDetected:t.onNodeDetected});p?Ee.push(...(await Le.next()).value||[]):await Le.next(),we.push(Le)}yield Ee;for(let U of we)await U.next();let[te,Se]=yield,{left:de,top:ie,width:me,height:be}=P.getComputedLayout();de+=te,ie+=Se;let ke="",ye="",jt="",{children:Ce,...ot}=b;if((ht=t.onNodeDetected)==null||ht.call(t,{left:de,top:ie,width:me,height:be,type:x,props:ot,key:e.key,textContent:lr(Ce)?void 0:Ce}),x==="img"){let U=N.__src;ye=await Fr({id:n,left:de,top:ie,width:me,height:be,src:U,isInheritingTransform:G,debug:a},N,B)}else if(x==="svg"){let U=N.color,Le=await Na(e,U);ye=await Fr({id:n,left:de,top:ie,width:me,height:be,src:Le,isInheritingTransform:G,debug:a},N,B)}else{let U=w==null?void 0:w.display;if(x==="div"&&_&&typeof _!="string"&&U!=="flex"&&U!=="none"&&U!=="contents")throw new Error('Expected <div> to have explicit "display: flex", "display: contents", or "display: none" if it has more than one child node.');ye=await Fr({id:n,left:de,top:ie,width:me,height:be,isInheritingTransform:G,debug:a},N,B)}for(let U of we)ke+=(await U.next([de,ie])).value;return N._inheritedBackgroundClipTextPath&&(jt+=C("clipPath",{id:`satori_bct-${n}`,"clip-path":N._inheritedClipPathId?`url(#${N._inheritedClipPathId})`:void 0},N._inheritedBackgroundClipTextPath.value)),jt+ye+ke}var gr=At(require("@shuding/opentype.js"),1);var wu="unknown";function Td(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 no=new WeakMap,Wr=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,c]=i[s];Td(r,n,[a,u],[f,c])>0&&(o=i[s])}return o[0]}addFonts(t){for(let r of t){let{name:n,data:i,lang:o}=r;if(o&&!bu(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${Qn.join(", ")}.`);let s=o??wu,a;if(no.has(i))a=no.get(i);else{a=gr.default.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0});let f=a.charToGlyphIndex;a.charToGlyphIndex=c=>{let p=f.call(a,c);return p===0&&a._trackBrokenChars&&a._trackBrokenChars.push(c),p},no.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(k=>k.toLowerCase());let a=[];n.forEach(k=>{let T=this.get({name:k,weight:i,style:o});if(T){a.push(T);return}let P=this.get({name:k+"_unknown",weight:i,style:o});if(P){a.push(P);return}});let u=Array.from(this.fonts.keys()),f=[],c=[],p=[];for(let k of u)if(!n.includes(k))if(s){let T=Ed(k);T?T===s?f.push(this.get({name:k,weight:i,style:o})):c.push(this.get({name:k,weight:i,style:o})):p.push(this.get({name:k,weight:i,style:o}))}else p.push(this.get({name:k,weight:i,style:o}));let m=new Map,g=(k,T=!0)=>{let P=[...a,...p,...f,...T?c:[]];if(typeof k>"u")return T?P[P.length-1]:void 0;let N=k.charCodeAt(0);if(m.has(N))return m.get(N);let B=P.find((G,se)=>!!G.charToGlyphIndex(k)||T&&se===P.length-1);return B&&m.set(N,B),B},b=(k,T=!1)=>{var N,B;return((T?(B=(N=k.tables)==null?void 0:N.os2)==null?void 0:B.sTypoAscender:0)||k.ascender)/k.unitsPerEm*t},x=(k,T=!1)=>{var N,B;return((T?(B=(N=k.tables)==null?void 0:N.os2)==null?void 0:B.sTypoDescender:0)||k.descender)/k.unitsPerEm*t},w=(k,T=!1)=>{var P,N;if(typeof r=="string"&&r==="normal"){let B=(T?(N=(P=k.tables)==null?void 0:P.os2)==null?void 0:N.sTypoLineGap:0)||0;return b(k,T)-x(k,T)+B/k.unitsPerEm*t}else if(typeof r=="number")return t*r},_=k=>g(k,!1);return{has:k=>{if(k===`
|
|
7
|
-
`)return!0;let T=_(k);return T?(T._trackBrokenChars=[],T.stringToGlyphs(k),T._trackBrokenChars.length?(T._trackBrokenChars=void 0,!1):!0):!1},baseline:(k,T=typeof k>"u"?a[0]:g(k))=>{let P=b(T),N=x(T),B=P-N;return P+(w(T)-B)/2},height:(k,T=typeof k>"u"?a[0]:g(k))=>w(T),measure:(k,T)=>this.measure(g,k,T),getSVG:(k,T)=>this.getSVG(g,k,T)}}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(),c=r(f);if(c!==t){let p=c.charToGlyph(f),m=t.unitsPerEm/c.unitsPerEm,g=new gr.default.Path;g.unitsPerEm=t.unitsPerEm,g.commands=p.path.commands.map(x=>{let w={...x};for(let _ in w)typeof w[_]=="number"&&(w[_]*=m);return w});let b=new gr.default.Glyph({...p,advanceWidth:p.advanceWidth*m,xMin:p.xMin*m,xMax:p.xMax*m,yMin:p.yMin*m,yMax:p.yMax*m,path:g});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}){let a=t(r),u=this.patchFontFallbackResolver(a,t);try{if(n===0)return"";let f=new gr.default.Path,c={letterSpacing:s/n},p=new WeakMap;return a.forEachGlyph(r.replace(/\n/g,""),o,i,n,c,function(m,g,b,x){let w;if(!p.has(m))w=m.getPath(g,b,x,c),p.set(m,[g,b,w]);else{let[_,M,k]=p.get(m);w=new gr.default.Path,w.commands=k.commands.map(T=>{let P={...T};for(let N in P)typeof P[N]=="number"&&((N==="x"||N==="x1"||N==="x2")&&(P[N]+=g-_),(N==="y"||N==="y1"||N==="y2")&&(P[N]+=b-M));return P})}f.extend(w)}),f.toPathData(1)}finally{u()}}};function Ed(e){let t=e.split("_"),r=t[t.length-1];return r===wu?void 0:r}function io({width:e,height:t,content:r}){return C("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},r)}var tc=At(Cf());var cv=["ios","android","windows","macos","web"];function Mf(e){return cv.includes(e)}var dv=["portrait","landscape"];function Nf(e){return dv.includes(e)}var Lf;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(Lf||(Lf={}));var ne;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(ne||(ne={}));function Is(e){return typeof e=="string"}function Cs(e){return typeof e=="object"}var Ls;function S(e){return{kind:"complete",style:e}}function Ae(e,t={}){let{fractions:r}=t;if(r&&e.includes("/")){let[o="",s=""]=e.split("/",2),a=Ae(o),u=Ae(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,ne.none];switch(i==null?void 0:i[1]){case"rem":return[n,ne.rem];case"px":return[n,ne.px];case"em":return[n,ne.em];case"%":return[n,ne.percent];case"vw":return[n,ne.vw];case"vh":return[n,ne.vh];default:return null}}function Ft(e,t,r={}){let n=St(t,r);return n===null?null:S({[e]:n})}function hi(e,t,r){let n=St(t);return n!==null&&(r[e]=n),r}function Df(e,t){let r=St(t);return r===null?null:{[e]:r}}function St(e,t={}){if(e===void 0)return null;let r=Ae(String(e),t);return r?Gt(...r,t):null}function Gt(e,t,r={}){let{isNegative:n,device:i}=r;switch(t){case ne.rem:return e*16*(n?-1:1);case ne.px:return e*(n?-1:1);case ne.percent:return`${n?"-":""}${e}%`;case ne.none:return e*(n?-1:1);case ne.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(ze("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case ne.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(ze("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function Ms(e){let t=Ae(e);if(!t)return null;let[r,n]=t;switch(n){case ne.rem:return r*16;case ne.px:return r;default:return null}}var pv={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function Ns(e){return pv[e??""]||"All"}function Fs(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(n,i)=>(t=Ns(i),"")),t]}function ir(e,t={}){if(e.includes("/")){let r=Ff(e,{...t,fractions:!0});if(r)return r}return e[0]==="["&&(e=e.slice(1,-1)),Ff(e,t)}function it(e,t,r={}){let n=ir(t,r);return n===null?null:S({[e]:n})}function Ff(e,t={}){if(e==="px")return 1;let r=Ae(e,t);if(!r)return null;let[n,i]=r;return t.fractions&&(i=ne.percent,n*=100),i===ne.none&&(n=n/4,i=ne.rem),Gt(n,i,t)}function hv(...e){console.warn(...e)}function mv(...e){}var ze=typeof process>"u"||((Ls=process==null?void 0:process.env)===null||Ls===void 0?void 0:Ls.JEST_WORKER_ID)===void 0?hv:mv;var gv=[["aspect-square",S({aspectRatio:1})],["aspect-video",S({aspectRatio:16/9})],["items-center",S({alignItems:"center"})],["items-start",S({alignItems:"flex-start"})],["items-end",S({alignItems:"flex-end"})],["items-baseline",S({alignItems:"baseline"})],["items-stretch",S({alignItems:"stretch"})],["justify-start",S({justifyContent:"flex-start"})],["justify-end",S({justifyContent:"flex-end"})],["justify-center",S({justifyContent:"center"})],["justify-between",S({justifyContent:"space-between"})],["justify-around",S({justifyContent:"space-around"})],["justify-evenly",S({justifyContent:"space-evenly"})],["content-start",S({alignContent:"flex-start"})],["content-end",S({alignContent:"flex-end"})],["content-between",S({alignContent:"space-between"})],["content-around",S({alignContent:"space-around"})],["content-stretch",S({alignContent:"stretch"})],["content-center",S({alignContent:"center"})],["self-auto",S({alignSelf:"auto"})],["self-start",S({alignSelf:"flex-start"})],["self-end",S({alignSelf:"flex-end"})],["self-center",S({alignSelf:"center"})],["self-stretch",S({alignSelf:"stretch"})],["self-baseline",S({alignSelf:"baseline"})],["direction-inherit",S({direction:"inherit"})],["direction-ltr",S({direction:"ltr"})],["direction-rtl",S({direction:"rtl"})],["hidden",S({display:"none"})],["flex",S({display:"flex"})],["flex-row",S({flexDirection:"row"})],["flex-row-reverse",S({flexDirection:"row-reverse"})],["flex-col",S({flexDirection:"column"})],["flex-col-reverse",S({flexDirection:"column-reverse"})],["flex-wrap",S({flexWrap:"wrap"})],["flex-wrap-reverse",S({flexWrap:"wrap-reverse"})],["flex-nowrap",S({flexWrap:"nowrap"})],["flex-auto",S({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",S({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",S({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",S({overflow:"hidden"})],["overflow-visible",S({overflow:"visible"})],["overflow-scroll",S({overflow:"scroll"})],["absolute",S({position:"absolute"})],["relative",S({position:"relative"})],["italic",S({fontStyle:"italic"})],["not-italic",S({fontStyle:"normal"})],["oldstyle-nums",gn("oldstyle-nums")],["small-caps",gn("small-caps")],["lining-nums",gn("lining-nums")],["tabular-nums",gn("tabular-nums")],["proportional-nums",gn("proportional-nums")],["font-thin",S({fontWeight:"100"})],["font-100",S({fontWeight:"100"})],["font-extralight",S({fontWeight:"200"})],["font-200",S({fontWeight:"200"})],["font-light",S({fontWeight:"300"})],["font-300",S({fontWeight:"300"})],["font-normal",S({fontWeight:"normal"})],["font-400",S({fontWeight:"400"})],["font-medium",S({fontWeight:"500"})],["font-500",S({fontWeight:"500"})],["font-semibold",S({fontWeight:"600"})],["font-600",S({fontWeight:"600"})],["font-bold",S({fontWeight:"bold"})],["font-700",S({fontWeight:"700"})],["font-extrabold",S({fontWeight:"800"})],["font-800",S({fontWeight:"800"})],["font-black",S({fontWeight:"900"})],["font-900",S({fontWeight:"900"})],["include-font-padding",S({includeFontPadding:!0})],["remove-font-padding",S({includeFontPadding:!1})],["max-w-none",S({maxWidth:"99999%"})],["text-left",S({textAlign:"left"})],["text-center",S({textAlign:"center"})],["text-right",S({textAlign:"right"})],["text-justify",S({textAlign:"justify"})],["text-auto",S({textAlign:"auto"})],["underline",S({textDecorationLine:"underline"})],["line-through",S({textDecorationLine:"line-through"})],["no-underline",S({textDecorationLine:"none"})],["uppercase",S({textTransform:"uppercase"})],["lowercase",S({textTransform:"lowercase"})],["capitalize",S({textTransform:"capitalize"})],["normal-case",S({textTransform:"none"})],["w-auto",S({width:"auto"})],["h-auto",S({height:"auto"})],["shadow-sm",S({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",S({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",S({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",S({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",S({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",S({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",S({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],Ds=gv;function gn(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var vn=class{constructor(t){this.ir=new Map(Ds),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...Ds,...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 Ws(e,t,r={}){let n=t==null?void 0:t[e];if(!n)return it("fontSize",e,r);if(typeof n=="string")return Ft("fontSize",n);let i={},[o,s]=n,a=Df("fontSize",o);if(a&&(i=a),typeof s=="string")return S(hi("lineHeight",Wf(s,i),i));let{lineHeight:u,letterSpacing:f}=s;return u&&hi("lineHeight",Wf(u,i),i),f&&hi("letterSpacing",f,i),S(i)}function Wf(e,t){let r=Ae(e);if(r){let[n,i]=r;if((i===ne.none||i===ne.em)&&typeof t.fontSize=="number")return t.fontSize*n}return e}function $s(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=Ae(n);if(!i)return null;let[o,s]=i;if(s===ne.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=Gt(o,s);return a!==null?S({lineHeight:a}):null}function Bs(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 c=ir(n);return c&&typeof c=="number"?$f(c,ne.px,t,e):null}}if(o==="auto")return Bf(t,e,"auto");let s=Ae(o);if(!s)return null;let[a,u]=s;return r&&(a=-a),$f(a,u,t,e)}function $f(e,t,r,n){let i=Gt(e,t);return i===null?null:Bf(r,n,i)}function Bf(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 qs(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?Ms(u.min):0;f===null?ze(`invalid screen config value: ${o}->min: ${u.min}`):a[0]=f;let c=u.max?Ms(u.max):1/0;return c===null?ze(`invalid screen config value: ${o}->max: ${u.max}`):a[1]=c,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 Us(e,t){let r=t==null?void 0:t[e];if(!r)return null;if(typeof r=="string")return S({fontFamily:r});let n=r[0];return n?S({fontFamily:n}):null}function or(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=zf(t,r),!i)return null;if(n){let o=Number(n);if(!Number.isNaN(o))return i=qf(i,o/100),S({[mi[e].color]:i})}return{kind:"dependent",complete(o){let s=mi[e].opacity,a=o[s];typeof a=="number"&&(i=qf(i,a)),o[mi[e].color]=i}}}function bn(e,t){let r=parseInt(t,10);if(Number.isNaN(r))return null;let n=r/100;return{kind:"complete",style:{[mi[e].opacity]:n}}}function qf(e,t){return e.startsWith("#")?e=vv(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function Uf(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var mi={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 vv(e){let t=e;e=e.replace(bv,(s,a,u,f)=>a+a+u+u+f+f);let r=yv.exec(e);if(!r)return ze(`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 zf(e,t){let r=t[e];if(Is(r))return r;if(Cs(r)&&Is(r.DEFAULT))return r.DEFAULT;let[n="",...i]=e.split("-");for(;n!==e;){let o=t[n];if(Cs(o))return zf(i.join("-"),o);if(i.length===0)return"";n=`${n}-${i.shift()}`}return""}var bv=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,yv=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function jf(e,t){let[r,n]=Fs(e);if(r.match(/^(-?(\d)+)?$/))return xv(r,n,t==null?void 0:t.borderWidth);if(r=r.replace(/^-/,""),["dashed","solid","dotted"].includes(r))return S({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=or(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=it(a,u);return typeof(f==null?void 0:f.style[a])!="number"?null:f}function xv(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 Ft(o,i)}function Vf(e,t){if(!t)return null;let[r,n]=Fs(e);r=r.replace(/^-/,""),r===""&&(r="DEFAULT");let i=`border${n==="All"?"":n}Radius`,o=t[r];if(o)return Gf(Ft(i,o));let s=it(i,r);return typeof(s==null?void 0:s.style[i])!="number"?null:Gf(s)}function Gf(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 wr(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=St(o,{isNegative:r});if(a!==null)return Hf(e,i,a)}let s=ir(t,{isNegative:r});return s!==null?Hf(e,i,s):null}function Hf(e,t,r){if(e!=="inset")return S({[e]:r});switch(t){case null:return S({top:r,left:r,right:r,bottom:r});case"y":return S({top:r,bottom:r});case"x":return S({left:r,right:r})}}function yn(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:S({[`flex${e}`]:o})}function Yf(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 S({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return S({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let o=St((r=i[2])!==null&&r!==void 0?r:"");return o?S({flexGrow:Number(i[1]),flexBasis:o}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let o=St((n=i[3])!==null&&n!==void 0?n:"");return o?S({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function zs(e,t,r={},n){let i=n==null?void 0:n[t];return i!==void 0?Ft(e,i,r):it(e,t,r)}function xn(e,t,r={},n){let i=St(n==null?void 0:n[t],r);return i?S({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),it(e,t,r))}function Xf(e,t,r){let n=r==null?void 0:r[e];if(n){let i=Ae(n,{isNegative:t});if(!i)return null;let[o,s]=i;if(s===ne.em)return wv(o);if(s===ne.percent)return ze("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=Gt(o,s,{isNegative:t});return a!==null?S({letterSpacing:a}):null}return it("letterSpacing",e,{isNegative:t})}function wv(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 Qf(e,t){let r=t==null?void 0:t[e];if(r){let i=Ae(String(r));if(i)return S({opacity:i[0]})}let n=Ae(e);return n?S({opacity:n[0]/100}):null}function Kf(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function Jf(e){if(e.includes("/")){let[r="",n=""]=e.split("/",2),i=Gs(r),o=Gs(n);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=Gs(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function Gs(e){let t=ir(e);return typeof t=="number"?t:null}var Sr=class{constructor(t,r={},n,i,o){var s,a,u,f,c,p;this.config=r,this.cache=n,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let m=t.trim().split(":"),g=[];m.length===1?this.string=t:(this.string=(s=m.pop())!==null&&s!==void 0?s:"",g=m),this.char=this.string[0];let b=qs((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let x of g)if(b[x]){let w=(u=b[x])===null||u===void 0?void 0:u[2];w!==void 0&&(this.order=((f=this.order)!==null&&f!==void 0?f:0)+w);let _=(c=i.windowDimensions)===null||c===void 0?void 0:c.width;if(_){let[M,k]=(p=b[x])!==null&&p!==void 0?p:[0,0];(_<=M||_>k)&&(this.isNull=!0)}else this.isNull=!0}else Mf(x)?this.isNull=x!==o:Nf(x)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==x?this.isNull=!0:this.incrementOrder():this.isNull=!0:x==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:x==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(x)||(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 c=Ns(u[1]),p=Bs(f,c,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=zs("height",this.rest,this.context,s==null?void 0:s.height),a)||this.consumePeeked("w-")&&(a=zs("width",this.rest,this.context,s==null?void 0:s.width),a)||this.consumePeeked("min-w-")&&(a=xn("minWidth",this.rest,this.context,s==null?void 0:s.minWidth),a)||this.consumePeeked("min-h-")&&(a=xn("minHeight",this.rest,this.context,s==null?void 0:s.minHeight),a)||this.consumePeeked("max-w-")&&(a=xn("maxWidth",this.rest,this.context,s==null?void 0:s.maxWidth),a)||this.consumePeeked("max-h-")&&(a=xn("maxHeight",this.rest,this.context,s==null?void 0:s.maxHeight),a)||this.consumePeeked("leading-")&&(a=$s(this.rest,s==null?void 0:s.lineHeight),a)||this.consumePeeked("text-")&&(a=Ws(this.rest,s==null?void 0:s.fontSize,this.context),a||(a=or("text",this.rest,s==null?void 0:s.textColor),a)||this.consumePeeked("opacity-")&&(a=bn("text",this.rest),a))||this.consumePeeked("font-")&&(a=Us(this.rest,s==null?void 0:s.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&ze("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=Ft("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=or("tint",this.rest,s==null?void 0:s.colors),a)||this.consumePeeked("bg-")&&(a=or("bg",this.rest,s==null?void 0:s.backgroundColor),a||this.consumePeeked("opacity-")&&(a=bn("bg",this.rest),a))||this.consumePeeked("border")&&(a=jf(this.rest,s),a||this.consumePeeked("-opacity-")&&(a=bn("border",this.rest),a))||this.consumePeeked("rounded")&&(a=Vf(this.rest,s==null?void 0:s.borderRadius),a)||this.consumePeeked("bottom-")&&(a=wr("bottom",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("top-")&&(a=wr("top",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("left-")&&(a=wr("left",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("right-")&&(a=wr("right",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("inset-")&&(a=wr("inset",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=yn("Grow",this.rest,s==null?void 0:s.flexGrow):this.consumePeeked("shrink")?a=yn("Shrink",this.rest,s==null?void 0:s.flexShrink):a=Yf(this.rest,s==null?void 0:s.flex),a)||this.consumePeeked("grow")&&(a=yn("Grow",this.rest,s==null?void 0:s.flexGrow),a)||this.consumePeeked("shrink")&&(a=yn("Shrink",this.rest,s==null?void 0:s.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=bn("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=Kf(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=Jf(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=it("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=or("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 S({elevation:u})}if(this.consumePeeked("opacity-")&&(a=Qf(this.rest,s==null?void 0:s.opacity),a)||this.consumePeeked("tracking-")&&(a=Xf(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 S({zIndex:u})}return ze(`\`${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=Ae(a,this.context);if(f===null)return this.isNull=!0,!0;let[c,p]=f;return p!=="px"&&(this.isNull=!0),(o==="min"?u>=c:u<=c)?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 Zf(e){let t=[],r=null;return e.forEach(n=>{if(typeof n=="string")t=[...t,...js(n)];else if(Array.isArray(n))t=[...t,...n.flatMap(js)];else if(typeof n=="object"&&n!==null)for(let[i,o]of Object.entries(n))typeof o=="boolean"?t=[...t,...o?js(i):[]]:r?r[i]=o:r={[i]:o}}),[t.filter(Boolean).filter(Sv),r]}function js(e){return e.trim().split(/\s+/)}function Sv(e,t,r){return r.indexOf(e)===t}function ec(e){var t;return(t=e==null?void 0:e.reduce((r,n)=>({...r,..._v(n.handler)}),{}))!==null&&t!==void 0?t:{}}function _v(e){let t={};return e({addUtilities:r=>{t=r},...Tv}),t}function _t(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var Tv={addComponents:_t,addBase:_t,addVariant:_t,e:_t,prefix:_t,theme:_t,variants:_t,config:_t,corePlugins:_t,matchUtilities:_t,postcss:null};function rc(e,t){let r=(0,tc.default)(Ev(e)),n={},i=ec(r.plugins),o={},s=Object.entries(i).map(([b,x])=>typeof x=="string"?(o[b]=x,[b,{kind:"null"}]):[b,S(x)]).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 c(){let b=f[u];if(b)return b;let x=new vn(s);return f[u]=x,x}function p(...b){let x=c(),w={},_=[],M=[],[k,T]=Zf(b),P=k.join(" "),N=x.getStyle(P);if(N)return{...N,...T||{}};for(let B of k){let G=x.getIr(B);if(!G&&B in o){let we=p(o[B]);x.setIr(B,S(we)),w={...w,...we};continue}switch(G=new Sr(B,r,x,n,t).parse(),G.kind){case"complete":w={...w,...G.style},x.setIr(B,G);break;case"dependent":_.push(G);break;case"ordered":M.push(G);break;case"null":x.setIr(B,G);break}}if(M.length>0){M.sort((B,G)=>B.order-G.order);for(let B of M)switch(B.styleIr.kind){case"complete":w={...w,...B.styleIr.style};break;case"dependent":_.push(B.styleIr);break}}if(_.length>0){for(let B of _){let G=B.complete(w);G&&ze(G)}Uf(w)}return P!==""&&x.setStyle(P,w),T&&(w={...w,...T}),w}function m(b){let x=p(b.split(/\s+/g).map(w=>w.replace(/^(bg|text|border)-/,"")).map(w=>`bg-${w}`).join(" "));return typeof x.backgroundColor=="string"?x.backgroundColor:void 0}let g=(b,...x)=>{let w="";return b.forEach((_,M)=>{var k;w+=_+((k=x[M])!==null&&k!==void 0?k:"")}),p(w)};return g.style=p,g.color=m,g.prefixMatch=(...b)=>{let x=b.sort().join(":"),w=c(),_=w.getPrefixMatch(x);if(_!==void 0)return _;let T=new Sr(`${x}:flex`,r,w,n,t).parse().kind!=="null";return w.setPrefixMatch(x,T),T},g.setWindowDimensions=b=>{n.windowDimensions=b,u=a()},g.setFontScale=b=>{n.fontScale=b,u=a()},g.setPixelDensity=b=>{n.pixelDensity=b,u=a()},g.setColorScheme=b=>{n.colorScheme=b,u=a()},g}function Ev(e){return{...e,content:["_no_warnings_please"]}}var Ov={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 Pv(e){return rc({...e,plugins:[...(e==null?void 0:e.plugins)??[],Ov]},"web")}var gi;function Vs({width:e,height:t,config:r}){return gi||(gi=Pv(r)),gi.setWindowDimensions({width:+e,height:+t}),gi}var Hs=new WeakMap;async function Ys(e,t){let r=await $t();if(!r||!r.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+r);t.fonts=t.fonts||[];let n;Hs.has(t.fonts)?n=Hs.get(t.fonts):Hs.set(t.fonts,n=new Wr(t.fonts));let i="width"in t?t.width:void 0,o="height"in t?t.height:void 0,s=Av(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={...t.graphemeImages},u=new Set;xt.clear(),Rr.clear(),await Ma(e);let f=Dr(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,x)=>{let _={...Vs({width:i,height:o,config:t.tailwindConfig})([b])};return typeof _.lineHeight=="number"&&(_.lineHeight=_.lineHeight/(+_.fontSize||x.fontSize||16)),_.shadowColor&&_.boxShadow&&(_.boxShadow=_.boxShadow.replace(/rgba?\([^)]+\)/,_.shadowColor)),_}}),c=(await f.next()).value;if(t.loadAdditionalAsset&&c.length){let b=Rv(c),x=[],w={};await Promise.all(Object.entries(b).flatMap(([_,M])=>M.map(k=>{let T=`${_}_${k}`;return u.has(T)?null:(u.add(T),t.loadAdditionalAsset(_,k).then(P=>{typeof P=="string"?w[k]=P:P&&(Array.isArray(P)?x.push(...P):x.push(P))}))}))),n.addFonts(x),Object.assign(a,w)}await f.next(),s.calculateLayout(i,o,r.DIRECTION_LTR);let p=(await f.next([0,0])).value,m=s.getComputedWidth(),g=s.getComputedHeight();return s.freeRecursive(),io({width:m,height:g,content:p})}function Av(e,t){if(t){let r=e.Config.create();return r.setPointScaleFactor(t),e.Node.createWithConfig(r)}else return e.Node.create()}function Rv(e){let t={},r={};for(let{word:n,locale:i}of e){let o=yu(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(...nc(We(r[n],"grapheme"))):(t[n][0]=t[n][0]||"",t[n][0]+=nc(We(r[n],"grapheme",n==="unknown"?void 0:n)).join(""))}),t}function nc(e){return Array.from(new Set(e))}0&&(module.exports={init});
|
|
1
|
+
var pc=Object.create;var Ln=Object.defineProperty;var hc=Object.getOwnPropertyDescriptor;var mc=Object.getOwnPropertyNames;var gc=Object.getPrototypeOf,bc=Object.prototype.hasOwnProperty;var er=(e,t)=>()=>(e&&(t=e(e=0)),t);var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ar=(e,t)=>{for(var n in t)Ln(e,n,{get:t[n],enumerable:!0})},ia=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mc(t))!bc.call(e,i)&&i!==n&&Ln(e,i,{get:()=>t[i],enumerable:!(r=hc(t,i))||r.enumerable});return e};var Mt=(e,t,n)=>(n=e!=null?pc(gc(e)):{},ia(t||!e||!e.__esModule?Ln(n,"default",{value:e,enumerable:!0}):n,e)),Ir=e=>ia(Ln({},"__esModule",{value:!0}),e);var Dt,xa,wa,Lr,Ei,Ft,mr,Ac,Dn,Oi,gr,br,Pi,Sa,Ai,Ii,ht,Ri,Ic,_a,Fn=er(()=>{Dt=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}({}),xa=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}({}),Lr=function(e){return e[e.Inherit=0]="Inherit",e[e.LTR=1]="LTR",e[e.RTL=2]="RTL",e}({}),Ei=function(e){return e[e.Flex=0]="Flex",e[e.None=1]="None",e[e.Contents=2]="Contents",e}({}),Ft=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}({}),mr=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}({}),Ac=function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e}({}),Dn=function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e}({}),Oi=function(e){return e[e.Column=0]="Column",e[e.Row=1]="Row",e[e.All=2]="All",e}({}),gr=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}({}),br=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}({}),Pi=function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e}({}),Sa=function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e}({}),Ai=function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e}({}),Ii=function(e){return e[e.Static=0]="Static",e[e.Relative=1]="Relative",e[e.Absolute=2]="Absolute",e}({}),ht=function(e){return e[e.Undefined=0]="Undefined",e[e.Point=1]="Point",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto",e}({}),Ri=function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e}({}),Ic={ALIGN_AUTO:Dt.Auto,ALIGN_FLEX_START:Dt.FlexStart,ALIGN_CENTER:Dt.Center,ALIGN_FLEX_END:Dt.FlexEnd,ALIGN_STRETCH:Dt.Stretch,ALIGN_BASELINE:Dt.Baseline,ALIGN_SPACE_BETWEEN:Dt.SpaceBetween,ALIGN_SPACE_AROUND:Dt.SpaceAround,ALIGN_SPACE_EVENLY:Dt.SpaceEvenly,BOX_SIZING_BORDER_BOX:xa.BorderBox,BOX_SIZING_CONTENT_BOX:xa.ContentBox,DIMENSION_WIDTH:wa.Width,DIMENSION_HEIGHT:wa.Height,DIRECTION_INHERIT:Lr.Inherit,DIRECTION_LTR:Lr.LTR,DIRECTION_RTL:Lr.RTL,DISPLAY_FLEX:Ei.Flex,DISPLAY_NONE:Ei.None,DISPLAY_CONTENTS:Ei.Contents,EDGE_LEFT:Ft.Left,EDGE_TOP:Ft.Top,EDGE_RIGHT:Ft.Right,EDGE_BOTTOM:Ft.Bottom,EDGE_START:Ft.Start,EDGE_END:Ft.End,EDGE_HORIZONTAL:Ft.Horizontal,EDGE_VERTICAL:Ft.Vertical,EDGE_ALL:Ft.All,ERRATA_NONE:mr.None,ERRATA_STRETCH_FLEX_BASIS:mr.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:mr.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:mr.AbsolutePercentAgainstInnerSize,ERRATA_ALL:mr.All,ERRATA_CLASSIC:mr.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:Ac.WebFlexBasis,FLEX_DIRECTION_COLUMN:Dn.Column,FLEX_DIRECTION_COLUMN_REVERSE:Dn.ColumnReverse,FLEX_DIRECTION_ROW:Dn.Row,FLEX_DIRECTION_ROW_REVERSE:Dn.RowReverse,GUTTER_COLUMN:Oi.Column,GUTTER_ROW:Oi.Row,GUTTER_ALL:Oi.All,JUSTIFY_FLEX_START:gr.FlexStart,JUSTIFY_CENTER:gr.Center,JUSTIFY_FLEX_END:gr.FlexEnd,JUSTIFY_SPACE_BETWEEN:gr.SpaceBetween,JUSTIFY_SPACE_AROUND:gr.SpaceAround,JUSTIFY_SPACE_EVENLY:gr.SpaceEvenly,LOG_LEVEL_ERROR:br.Error,LOG_LEVEL_WARN:br.Warn,LOG_LEVEL_INFO:br.Info,LOG_LEVEL_DEBUG:br.Debug,LOG_LEVEL_VERBOSE:br.Verbose,LOG_LEVEL_FATAL:br.Fatal,MEASURE_MODE_UNDEFINED:Pi.Undefined,MEASURE_MODE_EXACTLY:Pi.Exactly,MEASURE_MODE_AT_MOST:Pi.AtMost,NODE_TYPE_DEFAULT:Sa.Default,NODE_TYPE_TEXT:Sa.Text,OVERFLOW_VISIBLE:Ai.Visible,OVERFLOW_HIDDEN:Ai.Hidden,OVERFLOW_SCROLL:Ai.Scroll,POSITION_TYPE_STATIC:Ii.Static,POSITION_TYPE_RELATIVE:Ii.Relative,POSITION_TYPE_ABSOLUTE:Ii.Absolute,UNIT_UNDEFINED:ht.Undefined,UNIT_POINT:ht.Point,UNIT_PERCENT:ht.Percent,UNIT_AUTO:ht.Auto,WRAP_NO_WRAP:Ri.NoWrap,WRAP_WRAP:Ri.Wrap,WRAP_WRAP_REVERSE:Ri.WrapReverse},_a=Ic});function Ci(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={[ht.Point]:e.Node.prototype[i],[ht.Percent]:e.Node.prototype[`${i}Percent`],[ht.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=ht.Auto,h=void 0;else if(typeof l=="object")p=l.unit,h=l.valueOf();else if(p=typeof l=="string"&&l.endsWith("%")?ht.Percent:ht.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]:Lr.LTR;return i.call(this,o,s,a)}),{Config:e.Config,Node:e.Node,..._a}}var Ta=er(()=>{Fn();Fn()});var Ea={};Ar(Ea,{default:()=>Rc});function Rc(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),ka&&(o=ka),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"&&de("no native wasm support detected");var l,p=!1;function h(c,d,m){m=d+m;for(var v="";!(d>=m);){var x=c[d++];if(!x)break;if(x&128){var E=c[d++]&63;if((x&224)==192)v+=String.fromCharCode((x&31)<<6|E);else{var P=c[d++]&63;x=(x&240)==224?(x&15)<<12|E<<6|P:(x&7)<<18|E<<12|P<<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 g,b,y,k,S,I,w,T,O;function C(){var c=l.buffer;g=c,t.HEAP8=b=new Int8Array(c),t.HEAP16=k=new Int16Array(c),t.HEAP32=I=new Int32Array(c),t.HEAPU8=y=new Uint8Array(c),t.HEAPU16=S=new Uint16Array(c),t.HEAPU32=w=new Uint32Array(c),t.HEAPF32=T=new Float32Array(c),t.HEAPF64=O=new Float64Array(c)}var D,q=[],Y=[],ue=[];function _e(){var c=t.preRun.shift();q.unshift(c)}var ce=0,oe=null,ve=null;function de(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 le(c){return c.startsWith("data:application/octet-stream;base64,")}var ee="";if(!le(ee)){var Le=ee;ee=t.locateFile?t.locateFile(Le,o):o+Le}function Oe(){var c=ee;try{if(c==ee&&u)return new Uint8Array(u);if(le(c))try{var d=cc(c.slice(37)),m=new Uint8Array(d.length);for(c=0;c<d.length;++c)m[c]=d.charCodeAt(c);var v=m}catch{throw Error("Converting base64 string to bytes failed.")}else v=void 0;var x=v;if(x)return x;throw"both async and sync fetching of the wasm failed"}catch(E){de(E)}}function Te(){return u||typeof fetch!="function"?Promise.resolve().then(function(){return Oe()}):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 Oe()})}function Tt(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 Je(c,d){return c=Me(c),function(){return d.apply(this,arguments)}}var Pe=[{},{value:void 0},{value:null},{value:!0},{value:!1}],G=[];function Ie(c){var d=Error,m=Je(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 m.prototype=Object.create(d.prototype),m.prototype.constructor=m,m.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},m}var Re=void 0;function V(c){throw new Re(c)}var ut=c=>(c||V("Cannot use deleted val. handle = "+c),Pe[c].value),kt=c=>{switch(c){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var d=G.length?G.pop():Pe.length;return Pe[d]={ga:1,value:c},d}},Ut=void 0,kn=void 0;function Ee(c){for(var d="";y[c];)d+=kn[y[c++]];return d}var bt=[];function zt(){for(;bt.length;){var c=bt.pop();c.M.$=!1,c.delete()}}var Be=void 0,Ze={};function lr(c,d){for(d===void 0&&V("ptr should not be undefined");c.R;)d=c.ba(d),c=c.R;return d}var vt={};function fr(c){c=ea(c);var d=Ee(c);return Ct(c),d}function En(c,d){var m=vt[c];return m===void 0&&V(d+" has unknown type "+fr(c)),m}function Et(){}var lt=!1;function ft(c){--c.count.value,c.count.value===0&&(c.T?c.U.W(c.T):c.P.N.W(c.O))}function He(c,d,m){return d===m?c:m.R===void 0?null:(c=He(c,d,m.R),c===null?null:m.na(c))}var Jt={};function ct(c,d){return d=lr(c,d),Ze[d]}var Ot=void 0;function Pt(c){throw new Ot(c)}function Zt(c,d){return d.P&&d.O||Pt("makeClassHandle requires ptr and ptrType"),!!d.U!=!!d.T&&Pt("Both smartPtrType and smartPtr must be specified"),d.count={value:1},dt(Object.create(c,{M:{value:d}}))}function dt(c){return typeof FinalizationRegistry>"u"?(dt=d=>d,c):(lt=new FinalizationRegistry(d=>{ft(d.M)}),dt=d=>{var m=d.M;return m.T&<.register(d,{M:m},d),d},Et=d=>{lt.unregister(d)},dt(c))}var $e={};function At(c){for(;c.length;){var d=c.pop();c.pop()(d)}}function qe(c){return this.fromWireType(I[c>>2])}var It={},H={};function j(c,d,m){function v(A){A=m(A),A.length!==c.length&&Pt("Mismatched type converter count");for(var N=0;N<c.length;++N)Q(c[N],A[N])}c.forEach(function(A){H[A]=d});var x=Array(d.length),E=[],P=0;d.forEach((A,N)=>{vt.hasOwnProperty(A)?x[N]=vt[A]:(E.push(A),It.hasOwnProperty(A)||(It[A]=[]),It[A].push(()=>{x[N]=vt[A],++P,P===E.length&&v(x)}))}),E.length===0&&v(x)}function se(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 Q(c,d,m={}){if(!("argPackAdvance"in d))throw new TypeError("registerType registeredInstance requires argPackAdvance");var v=d.name;if(c||V('type "'+v+'" must have a positive integer typeid pointer'),vt.hasOwnProperty(c)){if(m.ua)return;V("Cannot register type '"+v+"' twice")}vt[c]=d,delete H[c],It.hasOwnProperty(c)&&(d=It[c],delete It[c],d.forEach(x=>x()))}function ge(c){V(c.M.P.N.name+" instance already deleted")}function J(){}function pe(c,d,m){if(c[d].S===void 0){var v=c[d];c[d]=function(){return c[d].S.hasOwnProperty(arguments.length)||V("Function '"+m+"' 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 ie(c,d){t.hasOwnProperty(c)?(V("Cannot register public name '"+c+"' twice"),pe(t,c,c),t.hasOwnProperty(void 0)&&V("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),t[c].S[void 0]=d):t[c]=d}function te(c,d,m,v,x,E,P,A){this.name=c,this.constructor=d,this.X=m,this.W=v,this.R=x,this.pa=E,this.ba=P,this.na=A,this.ja=[]}function Ue(c,d,m){for(;d!==m;)d.ba||V("Expected null or instance of "+m.name+", got an instance of "+d.name),c=d.ba(c),d=d.R;return c}function K(c,d){return d===null?(this.ea&&V("null is not a valid "+this.name),0):(d.M||V('Cannot pass "'+Qe(d)+'" as a '+this.name),d.M.O||V("Cannot pass deleted object as a pointer of type "+this.name),Ue(d.M.O,d.M.P.N,this.N))}function yt(c,d){if(d===null){if(this.ea&&V("null is not a valid "+this.name),this.da){var m=this.fa();return c!==null&&c.push(this.W,m),m}return 0}if(d.M||V('Cannot pass "'+Qe(d)+'" as a '+this.name),d.M.O||V("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&d.M.P.ca&&V("Cannot convert argument of type "+(d.M.U?d.M.U.name:d.M.P.name)+" to parameter type "+this.name),m=Ue(d.M.O,d.M.P.N,this.N),this.da)switch(d.M.T===void 0&&V("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:d.M.U===this?m=d.M.T:V("Cannot convert argument of type "+(d.M.U?d.M.U.name:d.M.P.name)+" to parameter type "+this.name);break;case 1:m=d.M.T;break;case 2:if(d.M.U===this)m=d.M.T;else{var v=d.clone();m=this.xa(m,kt(function(){v.delete()})),c!==null&&c.push(this.W,m)}break;default:V("Unsupporting sharing policy")}return m}function Ne(c,d){return d===null?(this.ea&&V("null is not a valid "+this.name),0):(d.M||V('Cannot pass "'+Qe(d)+'" as a '+this.name),d.M.O||V("Cannot pass deleted object as a pointer of type "+this.name),d.M.P.ca&&V("Cannot convert argument of type "+d.M.P.name+" to parameter type "+this.name),Ue(d.M.O,d.M.P.N,this.N))}function Ye(c,d,m,v){this.name=c,this.N=d,this.ea=m,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=yt:(this.toWireType=v?K:Ne,this.V=null)}function et(c,d){t.hasOwnProperty(c)||Pt("Replacing nonexistant public symbol"),t[c]=d,t[c].Z=void 0}function cr(c,d){var m=[];return function(){if(m.length=0,Object.assign(m,arguments),c.includes("j")){var v=t["dynCall_"+c];v=m&&m.length?v.apply(null,[d].concat(m)):v.call(null,d)}else v=D.get(d).apply(null,m);return v}}function we(c,d){c=Ee(c);var m=c.includes("j")?cr(c,d):D.get(d);return typeof m!="function"&&V("unknown function pointer with signature "+c+": "+d),m}var Gt=void 0;function be(c,d){function m(E){x[E]||vt[E]||(H[E]?H[E].forEach(m):(v.push(E),x[E]=!0))}var v=[],x={};throw d.forEach(m),new Gt(c+": "+v.map(fr).join([", "]))}function Se(c,d,m,v,x){var E=d.length;2>E&&V("argTypes array size mismatch! Must at least get return value and 'this' types!");var P=d[1]!==null&&m!==null,A=!1;for(m=1;m<d.length;++m)if(d[m]!==null&&d[m].V===void 0){A=!0;break}var N=d[0].name!=="void",L=E-2,F=Array(L),z=[],Z=[];return function(){if(arguments.length!==L&&V("function "+c+" called with "+arguments.length+" arguments, expected "+L+" args!"),Z.length=0,z.length=P?2:1,z[0]=x,P){var ke=d[1].toWireType(Z,this);z[1]=ke}for(var ae=0;ae<L;++ae)F[ae]=d[ae+2].toWireType(Z,arguments[ae]),z.push(F[ae]);if(ae=v.apply(null,z),A)At(Z);else for(var Ke=P?1:2;Ke<d.length;Ke++){var pt=Ke===1?ke:F[Ke-2];d[Ke].V!==null&&d[Ke].V(pt)}return ke=N?d[0].fromWireType(ae):void 0,ke}}function Xe(c,d){for(var m=[],v=0;v<c;v++)m.push(w[d+4*v>>2]);return m}function We(c){4<c&&--Pe[c].ga===0&&(Pe[c]=void 0,G.push(c))}function Qe(c){if(c===null)return"null";var d=typeof c;return d==="object"||d==="array"||d==="function"?c.toString():""+c}function Rt(c,d){switch(d){case 2:return function(m){return this.fromWireType(T[m>>2])};case 3:return function(m){return this.fromWireType(O[m>>3])};default:throw new TypeError("Unknown float type: "+c)}}function ze(c,d,m){switch(d){case 0:return m?function(v){return b[v]}:function(v){return y[v]};case 1:return m?function(v){return k[v>>1]}:function(v){return S[v>>1]};case 2:return m?function(v){return I[v>>2]}:function(v){return w[v>>2]};default:throw new TypeError("Unknown integer type: "+c)}}function tt(c,d){for(var m="",v=0;!(v>=d/2);++v){var x=k[c+2*v>>1];if(x==0)break;m+=String.fromCharCode(x)}return m}function Or(c,d,m){if(m===void 0&&(m=2147483647),2>m)return 0;m-=2;var v=d;m=m<2*c.length?m/2:c.length;for(var x=0;x<m;++x)k[d>>1]=c.charCodeAt(x),d+=2;return k[d>>1]=0,d-v}function dr(c){return 2*c.length}function On(c,d){for(var m=0,v="";!(m>=d/4);){var x=I[c+4*m>>2];if(x==0)break;++m,65536<=x?(x-=65536,v+=String.fromCharCode(55296|x>>10,56320|x&1023)):v+=String.fromCharCode(x)}return v}function Pn(c,d,m){if(m===void 0&&(m=2147483647),4>m)return 0;var v=d;m=v+m-4;for(var x=0;x<c.length;++x){var E=c.charCodeAt(x);if(55296<=E&&57343>=E){var P=c.charCodeAt(++x);E=65536+((E&1023)<<10)|P&1023}if(I[d>>2]=E,d+=4,d+4>m)break}return I[d>>2]=0,d-v}function An(c){for(var d=0,m=0;m<c.length;++m){var v=c.charCodeAt(m);55296<=v&&57343>=v&&++m,d+=4}return d}var ac={};function Ks(c){var d=ac[c];return d===void 0?Ee(c):d}var In=[];function uc(c){var d=In.length;return In.push(c),d}function lc(c,d){for(var m=Array(c),v=0;v<c;++v)m[v]=En(w[d+4*v>>2],"parameter "+v);return m}var Js=[],fc=[null,[],[]];Re=t.BindingError=Ie("BindingError"),t.count_emval_handles=function(){for(var c=0,d=5;d<Pe.length;++d)Pe[d]!==void 0&&++c;return c},t.get_first_emval=function(){for(var c=5;c<Pe.length;++c)if(Pe[c]!==void 0)return Pe[c];return null},Ut=t.PureVirtualError=Ie("PureVirtualError");for(var Zs=Array(256),Rn=0;256>Rn;++Rn)Zs[Rn]=String.fromCharCode(Rn);kn=Zs,t.getInheritedInstanceCount=function(){return Object.keys(Ze).length},t.getLiveInheritedInstances=function(){var c=[],d;for(d in Ze)Ze.hasOwnProperty(d)&&c.push(Ze[d]);return c},t.flushPendingDeletes=zt,t.setDelayFunction=function(c){Be=c,bt.length&&Be&&Be(zt)},Ot=t.InternalError=Ie("InternalError"),J.prototype.isAliasOf=function(c){if(!(this instanceof J&&c instanceof J))return!1;var d=this.M.P.N,m=this.M.O,v=c.M.P.N;for(c=c.M.O;d.R;)m=d.ba(m),d=d.R;for(;v.R;)c=v.ba(c),v=v.R;return d===v&&m===c},J.prototype.clone=function(){if(this.M.O||ge(this),this.M.aa)return this.M.count.value+=1,this;var c=dt,d=Object,m=d.create,v=Object.getPrototypeOf(this),x=this.M;return c=c(m.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},J.prototype.delete=function(){this.M.O||ge(this),this.M.$&&!this.M.aa&&V("Object already scheduled for deletion"),Et(this),ft(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},J.prototype.isDeleted=function(){return!this.M.O},J.prototype.deleteLater=function(){return this.M.O||ge(this),this.M.$&&!this.M.aa&&V("Object already scheduled for deletion"),bt.push(this),bt.length===1&&Be&&Be(zt),this.M.$=!0,this},Ye.prototype.qa=function(c){return this.ka&&(c=this.ka(c)),c},Ye.prototype.ha=function(c){this.W&&this.W(c)},Ye.prototype.argPackAdvance=8,Ye.prototype.readValueFromPointer=qe,Ye.prototype.deleteObject=function(c){c!==null&&c.delete()},Ye.prototype.fromWireType=function(c){function d(){return this.da?Zt(this.N.X,{P:this.wa,O:m,U:this,T:c}):Zt(this.N.X,{P:this,O:c})}var m=this.qa(c);if(!m)return this.ha(c),null;var v=ct(this.N,m);if(v!==void 0)return v.M.count.value===0?(v.M.O=m,v.M.T=c,v.clone()):(v=v.clone(),this.ha(c),v);if(v=this.N.pa(m),v=Jt[v],!v)return d.call(this);v=this.ca?v.la:v.pointerType;var x=He(m,this.N,v.N);return x===null?d.call(this):this.da?Zt(v.N.X,{P:v,O:x,U:this,T:c}):Zt(v.N.X,{P:v,O:x})},Gt=t.UnboundTypeError=Ie("UnboundTypeError");var cc=typeof atob=="function"?atob:function(c){var d="",m=0;c=c.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(m++)),x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(m++)),E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(m++)),P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(m++));v=v<<2|x>>4,x=(x&15)<<4|E>>2;var A=(E&3)<<6|P;d+=String.fromCharCode(v),E!==64&&(d+=String.fromCharCode(x)),P!==64&&(d+=String.fromCharCode(A))}while(m<c.length);return d},dc={l:function(c,d,m,v){de("Assertion failed: "+(c?h(y,c):"")+", at: "+[d?d?h(y,d):"":"unknown filename",m,v?v?h(y,v):"":"unknown function"])},q:function(c,d,m){c=Ee(c),d=En(d,"wrapper"),m=ut(m);var v=[].slice,x=d.N,E=x.X,P=x.R.X,A=x.R.constructor;c=Je(c,function(){x.R.ja.forEach(function(L){if(this[L]===P[L])throw new Ut("Pure virtual function "+L+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:E}),this.__construct.apply(this,v.call(arguments))}),E.__construct=function(){this===E&&V("Pass correct 'this' to __construct");var L=A.implement.apply(void 0,[this].concat(v.call(arguments)));Et(L);var F=L.M;L.notifyOnDestruction(),F.aa=!0,Object.defineProperties(this,{M:{value:F}}),dt(this),L=F.O,L=lr(x,L),Ze.hasOwnProperty(L)?V("Tried to register registered instance: "+L):Ze[L]=this},E.__destruct=function(){this===E&&V("Pass correct 'this' to __destruct"),Et(this);var L=this.M.O;L=lr(x,L),Ze.hasOwnProperty(L)?delete Ze[L]:V("Tried to unregister unregistered instance: "+L)},c.prototype=Object.create(E);for(var N in m)c.prototype[N]=m[N];return kt(c)},j:function(c){var d=$e[c];delete $e[c];var m=d.fa,v=d.W,x=d.ia,E=x.map(P=>P.ta).concat(x.map(P=>P.za));j([c],E,P=>{var A={};return x.forEach((N,L)=>{var F=P[L],z=N.ra,Z=N.sa,ke=P[L+x.length],ae=N.ya,Ke=N.Aa;A[N.oa]={read:pt=>F.fromWireType(z(Z,pt)),write:(pt,Pr)=>{var Lt=[];ae(Ke,pt,ke.toWireType(Lt,Pr)),At(Lt)}}}),[{name:d.name,fromWireType:function(N){var L={},F;for(F in A)L[F]=A[F].read(N);return v(N),L},toWireType:function(N,L){for(var F in A)if(!(F in L))throw new TypeError('Missing field: "'+F+'"');var z=m();for(F in A)A[F].write(z,L[F]);return N!==null&&N.push(v,z),z},argPackAdvance:8,readValueFromPointer:qe,V:v}]})},v:function(){},B:function(c,d,m,v,x){var E=se(m);d=Ee(d),Q(c,{name:d,fromWireType:function(P){return!!P},toWireType:function(P,A){return A?v:x},argPackAdvance:8,readValueFromPointer:function(P){if(m===1)var A=b;else if(m===2)A=k;else if(m===4)A=I;else throw new TypeError("Unknown boolean type size: "+d);return this.fromWireType(A[P>>E])},V:null})},f:function(c,d,m,v,x,E,P,A,N,L,F,z,Z){F=Ee(F),E=we(x,E),A&&(A=we(P,A)),L&&(L=we(N,L)),Z=we(z,Z);var ke=Me(F);ie(ke,function(){be("Cannot construct "+F+" due to unbound types",[v])}),j([c,d,m],v?[v]:[],function(ae){if(ae=ae[0],v)var Ke=ae.N,pt=Ke.X;else pt=J.prototype;ae=Je(ke,function(){if(Object.getPrototypeOf(this)!==Pr)throw new Re("Use 'new' to construct "+F);if(Lt.Y===void 0)throw new Re(F+" has no accessible constructor");var na=Lt.Y[arguments.length];if(na===void 0)throw new Re("Tried to invoke ctor of "+F+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Lt.Y).toString()+") parameters instead!");return na.apply(this,arguments)});var Pr=Object.create(pt,{constructor:{value:ae}});ae.prototype=Pr;var Lt=new te(F,ae,Pr,Z,Ke,E,A,L);Ke=new Ye(F,Lt,!0,!1),pt=new Ye(F+"*",Lt,!1,!1);var ra=new Ye(F+" const*",Lt,!1,!0);return Jt[c]={pointerType:pt,la:ra},et(ke,ae),[Ke,pt,ra]})},d:function(c,d,m,v,x,E,P){var A=Xe(m,v);d=Ee(d),E=we(x,E),j([],[c],function(N){function L(){be("Cannot call "+F+" due to unbound types",A)}N=N[0];var F=N.name+"."+d;d.startsWith("@@")&&(d=Symbol[d.substring(2)]);var z=N.N.constructor;return z[d]===void 0?(L.Z=m-1,z[d]=L):(pe(z,d,F),z[d].S[m-1]=L),j([],A,function(Z){return Z=Se(F,[Z[0],null].concat(Z.slice(1)),null,E,P),z[d].S===void 0?(Z.Z=m-1,z[d]=Z):z[d].S[m-1]=Z,[]}),[]})},p:function(c,d,m,v,x,E){0<d||de();var P=Xe(d,m);x=we(v,x),j([],[c],function(A){A=A[0];var N="constructor "+A.name;if(A.N.Y===void 0&&(A.N.Y=[]),A.N.Y[d-1]!==void 0)throw new Re("Cannot register multiple constructors with identical number of parameters ("+(d-1)+") for class '"+A.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return A.N.Y[d-1]=()=>{be("Cannot construct "+A.name+" due to unbound types",P)},j([],P,function(L){return L.splice(1,0,null),A.N.Y[d-1]=Se(N,L,null,x,E),[]}),[]})},a:function(c,d,m,v,x,E,P,A){var N=Xe(m,v);d=Ee(d),E=we(x,E),j([],[c],function(L){function F(){be("Cannot call "+z+" due to unbound types",N)}L=L[0];var z=L.name+"."+d;d.startsWith("@@")&&(d=Symbol[d.substring(2)]),A&&L.N.ja.push(d);var Z=L.N.X,ke=Z[d];return ke===void 0||ke.S===void 0&&ke.className!==L.name&&ke.Z===m-2?(F.Z=m-2,F.className=L.name,Z[d]=F):(pe(Z,d,z),Z[d].S[m-2]=F),j([],N,function(ae){return ae=Se(z,ae,L,E,P),Z[d].S===void 0?(ae.Z=m-2,Z[d]=ae):Z[d].S[m-2]=ae,[]}),[]})},A:function(c,d){d=Ee(d),Q(c,{name:d,fromWireType:function(m){var v=ut(m);return We(m),v},toWireType:function(m,v){return kt(v)},argPackAdvance:8,readValueFromPointer:qe,V:null})},n:function(c,d,m){m=se(m),d=Ee(d),Q(c,{name:d,fromWireType:function(v){return v},toWireType:function(v,x){return x},argPackAdvance:8,readValueFromPointer:Rt(d,m),V:null})},e:function(c,d,m,v,x){d=Ee(d),x===-1&&(x=4294967295),x=se(m);var E=A=>A;if(v===0){var P=32-8*m;E=A=>A<<P>>>P}m=d.includes("unsigned")?function(A,N){return N>>>0}:function(A,N){return N},Q(c,{name:d,fromWireType:E,toWireType:m,argPackAdvance:8,readValueFromPointer:ze(d,x,v!==0),V:null})},b:function(c,d,m){function v(E){E>>=2;var P=w;return new x(g,P[E+1],P[E])}var x=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][d];m=Ee(m),Q(c,{name:m,fromWireType:v,argPackAdvance:8,readValueFromPointer:v},{ua:!0})},o:function(c,d){d=Ee(d);var m=d==="std::string";Q(c,{name:d,fromWireType:function(v){var x=w[v>>2],E=v+4;if(m)for(var P=E,A=0;A<=x;++A){var N=E+A;if(A==x||y[N]==0){if(P=P?h(y,P,N-P):"",L===void 0)var L=P;else L+=String.fromCharCode(0),L+=P;P=N+1}}else{for(L=Array(x),A=0;A<x;++A)L[A]=String.fromCharCode(y[E+A]);L=L.join("")}return Ct(v),L},toWireType:function(v,x){x instanceof ArrayBuffer&&(x=new Uint8Array(x));var E,P=typeof x=="string";if(P||x instanceof Uint8Array||x instanceof Uint8ClampedArray||x instanceof Int8Array||V("Cannot pass non-string to std::string"),m&&P){var A=0;for(E=0;E<x.length;++E){var N=x.charCodeAt(E);127>=N?A++:2047>=N?A+=2:55296<=N&&57343>=N?(A+=4,++E):A+=3}E=A}else E=x.length;if(A=yi(4+E+1),N=A+4,w[A>>2]=E,m&&P){if(P=N,N=E+1,E=y,0<N){N=P+N-1;for(var L=0;L<x.length;++L){var F=x.charCodeAt(L);if(55296<=F&&57343>=F){var z=x.charCodeAt(++L);F=65536+((F&1023)<<10)|z&1023}if(127>=F){if(P>=N)break;E[P++]=F}else{if(2047>=F){if(P+1>=N)break;E[P++]=192|F>>6}else{if(65535>=F){if(P+2>=N)break;E[P++]=224|F>>12}else{if(P+3>=N)break;E[P++]=240|F>>18,E[P++]=128|F>>12&63}E[P++]=128|F>>6&63}E[P++]=128|F&63}}E[P]=0}}else if(P)for(P=0;P<E;++P)L=x.charCodeAt(P),255<L&&(Ct(N),V("String has UTF-16 code units that do not fit in 8 bits")),y[N+P]=L;else for(P=0;P<E;++P)y[N+P]=x[P];return v!==null&&v.push(Ct,A),A},argPackAdvance:8,readValueFromPointer:qe,V:function(v){Ct(v)}})},i:function(c,d,m){if(m=Ee(m),d===2)var v=tt,x=Or,E=dr,P=()=>S,A=1;else d===4&&(v=On,x=Pn,E=An,P=()=>w,A=2);Q(c,{name:m,fromWireType:function(N){for(var L=w[N>>2],F=P(),z,Z=N+4,ke=0;ke<=L;++ke){var ae=N+4+ke*d;(ke==L||F[ae>>A]==0)&&(Z=v(Z,ae-Z),z===void 0?z=Z:(z+=String.fromCharCode(0),z+=Z),Z=ae+d)}return Ct(N),z},toWireType:function(N,L){typeof L!="string"&&V("Cannot pass non-string to C++ string type "+m);var F=E(L),z=yi(4+F+d);return w[z>>2]=F>>A,x(L,z+4,F+d),N!==null&&N.push(Ct,z),z},argPackAdvance:8,readValueFromPointer:qe,V:function(N){Ct(N)}})},k:function(c,d,m,v,x,E){$e[c]={name:Ee(d),fa:we(m,v),W:we(x,E),ia:[]}},h:function(c,d,m,v,x,E,P,A,N,L){$e[c].ia.push({oa:Ee(d),ta:m,ra:we(v,x),sa:E,za:P,ya:we(A,N),Aa:L})},C:function(c,d){d=Ee(d),Q(c,{va:!0,name:d,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(c,d,m,v,x){c=In[c],d=ut(d),m=Ks(m);var E=[];return w[v>>2]=kt(E),c(d,m,E,x)},t:function(c,d,m,v){c=In[c],d=ut(d),m=Ks(m),c(d,m,null,v)},g:We,m:function(c,d){var m=lc(c,d),v=m[0];d=v.name+"_$"+m.slice(1).map(function(P){return P.name}).join("_")+"$";var x=Js[d];if(x!==void 0)return x;var E=Array(c-1);return x=uc((P,A,N,L)=>{for(var F=0,z=0;z<c-1;++z)E[z]=m[z+1].readValueFromPointer(L+F),F+=m[z+1].argPackAdvance;for(P=P[A].apply(P,E),z=0;z<c-1;++z)m[z+1].ma&&m[z+1].ma(E[z]);if(!v.va)return v.toWireType(N,P)}),Js[d]=x},D:function(c){4<c&&(Pe[c].ga+=1)},r:function(c){var d=ut(c);At(d),We(c)},c:function(){de("")},x:function(c,d,m){y.copyWithin(c,d,d+m)},w:function(c){var d=y.length;if(c>>>=0,2147483648<c)return!1;for(var m=1;4>=m;m*=2){var v=d*(1+.2/m);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-g.byteLength+65535>>>16),C();var E=1;break e}catch{}E=void 0}if(E)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(c,d,m,v){for(var x=0,E=0;E<m;E++){var P=w[d>>2],A=w[d+4>>2];d+=8;for(var N=0;N<A;N++){var L=y[P+N],F=fc[c];L===0||L===10?((c===1?s:a)(h(F,0)),F.length=0):F.push(L)}x+=A}return w[v>>2]=x,0}};(function(){function c(x){t.asm=x.exports,l=t.asm.E,C(),D=t.asm.J,Y.unshift(t.asm.F),ce--,t.monitorRunDependencies&&t.monitorRunDependencies(ce),ce==0&&(oe!==null&&(clearInterval(oe),oe=null),ve&&(x=ve,ve=null,x()))}function d(x){c(x.instance)}function m(x){return Te().then(function(E){return E instanceof WebAssembly.Instance?E:WebAssembly.instantiate(E,v)}).then(function(E){return E}).then(x,function(E){a("failed to asynchronously prepare wasm: "+E),de(E)})}var v={a:dc};if(ce++,t.monitorRunDependencies&&t.monitorRunDependencies(ce),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"||le(ee)||typeof fetch!="function"?m(d):fetch(ee,{credentials:"same-origin"}).then(function(x){return WebAssembly.instantiateStreaming(x,v).then(d,function(E){return a("wasm streaming compile failed: "+E),a("falling back to ArrayBuffer instantiation"),m(d)})})}().catch(r),{}})(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.F).apply(null,arguments)};var ea=t.___getTypeName=function(){return(ea=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 yi=t._malloc=function(){return(yi=t._malloc=t.asm.I).apply(null,arguments)},Ct=t._free=function(){return(Ct=t._free=t.asm.K).apply(null,arguments)};t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.L).apply(null,arguments)};var Cn;ve=function c(){Cn||ta(),Cn||(ve=c)};function ta(){function c(){if(!Cn&&(Cn=!0,t.calledRun=!0,!p)){if(Tt(Y),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();ue.unshift(d)}Tt(ue)}}if(!(0<ce)){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)_e();Tt(q),0<ce||(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 ta(),e.ready}var ka,Oa=er(()=>{ka=""});async function Pa(e){let{default:t}=await Promise.resolve().then(()=>(Oa(),Ea));return Ci(await t(e))}var Aa=er(()=>{Ta();Fn()});var Mi={};Ar(Mi,{getYoga:()=>Wc,init:()=>Nc});async function Mc(e,t){let n=e;if((typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=await fetch(n)),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 Nc(e){Cc({instantiateWasm(t,n){return Mc(e,t).then(({instance:r})=>{n(r)}).catch(Li),{}}}).then(Ia).catch(Li)}function Wc(){return Lc}var Cc,Ia,Li,Lc,Ni=er(()=>{Aa();Cc=Pa,Lc=new Promise((e,t)=>{Ia=e,Li=t})});var uo=U(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});Object.defineProperty(ao,"default",{enumerable:!0,get:()=>Rd});function Rd(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 ku=U(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});Object.defineProperty(lo,"default",{enumerable:!0,get:()=>Cd});var Cd=["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 Eu=U(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});Object.defineProperty(fo,"default",{enumerable:!0,get:()=>Ld});function Ld(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 co=U((cx,Ou)=>{Ou.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 Zn={};Ar(Zn,{default:()=>Md});var Md,ei=er(()=>{Md={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 Pu=U(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});Object.defineProperty(po,"default",{enumerable:!0,get:()=>Dd});var Nd=Wd((ei(),Ir(Zn)));function Wd(e){return e&&e.__esModule?e:{default:e}}function zr({version:e,from:t,to:n}){Nd.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 Dd={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 Au=U(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});Object.defineProperty(ho,"defaults",{enumerable:!0,get:()=>Fd});function Fd(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 Iu=U(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});Object.defineProperty(mo,"toPath",{enumerable:!0,get:()=>Bd});function Bd(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 Cu=U(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});Object.defineProperty(go,"normalizeConfig",{enumerable:!0,get:()=>qd});var Gr=$d((ei(),Ir(Zn)));function Ru(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ru=function(r){return r?n:t})(e)}function $d(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ru(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 qd(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})()||Gr.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")Gr.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,g,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||(g=h.options)===null||g===void 0)&&g.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)){Gr.default.warn("invalid-glob-braces",[`The glob pattern ${(0,Gr.dim)(r)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,Gr.dim)(r.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var Lu=U(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});Object.defineProperty(bo,"default",{enumerable:!0,get:()=>Ud});function Ud(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var Mu=U(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});Object.defineProperty(yo,"cloneDeep",{enumerable:!0,get:()=>vo});function vo(e){return Array.isArray(e)?e.map(t=>vo(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,vo(n)])):e}});var xo=U((ti,Nu)=>{"use strict";ti.__esModule=!0;ti.default=jd;function zd(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 Gd=/\\/;function jd(e){var t=Gd.test(e);if(!t)return e;for(var n="",r=0;r<e.length;r++){if(e[r]==="\\"){var i=zd(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}Nu.exports=ti.default});var Du=U((ri,Wu)=>{"use strict";ri.__esModule=!0;ri.default=Vd;function Vd(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}Wu.exports=ri.default});var Bu=U((ni,Fu)=>{"use strict";ni.__esModule=!0;ni.default=Hd;function Hd(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]}}Fu.exports=ni.default});var qu=U((ii,$u)=>{"use strict";ii.__esModule=!0;ii.default=Yd;function Yd(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}$u.exports=ii.default});var jr=U(wt=>{"use strict";wt.__esModule=!0;wt.stripComments=wt.ensureObject=wt.getProp=wt.unesc=void 0;var Xd=oi(xo());wt.unesc=Xd.default;var Qd=oi(Du());wt.getProp=Qd.default;var Kd=oi(Bu());wt.ensureObject=Kd.default;var Jd=oi(qu());wt.stripComments=Jd.default;function oi(e){return e&&e.__esModule?e:{default:e}}});var Bt=U((Vr,Gu)=>{"use strict";Vr.__esModule=!0;Vr.default=void 0;var Uu=jr();function zu(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 Zd(e,t,n){return t&&zu(e.prototype,t),n&&zu(e,n),e}var ep=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},tp=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=ep(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("")},Zd(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,Uu.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,Uu.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=r}}]),e}();Vr.default=tp;Gu.exports=Vr.default});var Ce=U(he=>{"use strict";he.__esModule=!0;he.UNIVERSAL=he.ATTRIBUTE=he.CLASS=he.COMBINATOR=he.COMMENT=he.ID=he.NESTING=he.PSEUDO=he.ROOT=he.SELECTOR=he.STRING=he.TAG=void 0;var rp="tag";he.TAG=rp;var np="string";he.STRING=np;var ip="selector";he.SELECTOR=ip;var op="root";he.ROOT=op;var sp="pseudo";he.PSEUDO=sp;var ap="nesting";he.NESTING=ap;var up="id";he.ID=up;var lp="comment";he.COMMENT=lp;var fp="combinator";he.COMBINATOR=fp;var cp="class";he.CLASS=cp;var dp="attribute";he.ATTRIBUTE=dp;var pp="universal";he.UNIVERSAL=pp});var si=U((Hr,Yu)=>{"use strict";Hr.__esModule=!0;Hr.default=void 0;var hp=gp(Bt()),$t=mp(Ce());function Hu(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Hu=function(){return e},e}function mp(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Hu();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 gp(e){return e&&e.__esModule?e:{default:e}}function bp(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=vp(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 vp(e,t){if(e){if(typeof e=="string")return ju(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 ju(e,t)}}function ju(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 Vu(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 yp(e,t,n){return t&&Vu(e.prototype,t),n&&Vu(e,n),e}function xp(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 wp=function(e){xp(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=bp(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===$t.ATTRIBUTE)return i.call(o,s)})},n.walkClasses=function(i){var o=this;return this.walk(function(s){if(s.type===$t.CLASS)return i.call(o,s)})},n.walkCombinators=function(i){var o=this;return this.walk(function(s){if(s.type===$t.COMBINATOR)return i.call(o,s)})},n.walkComments=function(i){var o=this;return this.walk(function(s){if(s.type===$t.COMMENT)return i.call(o,s)})},n.walkIds=function(i){var o=this;return this.walk(function(s){if(s.type===$t.ID)return i.call(o,s)})},n.walkNesting=function(i){var o=this;return this.walk(function(s){if(s.type===$t.NESTING)return i.call(o,s)})},n.walkPseudos=function(i){var o=this;return this.walk(function(s){if(s.type===$t.PSEUDO)return i.call(o,s)})},n.walkTags=function(i){var o=this;return this.walk(function(s){if(s.type===$t.TAG)return i.call(o,s)})},n.walkUniversals=function(i){var o=this;return this.walk(function(s){if(s.type===$t.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("")},yp(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}(hp.default);Hr.default=wp;Yu.exports=Hr.default});var _o=U((Yr,Qu)=>{"use strict";Yr.__esModule=!0;Yr.default=void 0;var Sp=Tp(si()),_p=Ce();function Tp(e){return e&&e.__esModule?e:{default:e}}function Xu(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&&Xu(e.prototype,t),n&&Xu(e,n),e}function Ep(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,So(e,t)}function So(e,t){return So=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},So(e,t)}var Op=function(e){Ep(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=_p.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)},kp(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(Sp.default);Yr.default=Op;Qu.exports=Yr.default});var ko=U((Xr,Ku)=>{"use strict";Xr.__esModule=!0;Xr.default=void 0;var Pp=Ip(si()),Ap=Ce();function Ip(e){return e&&e.__esModule?e:{default:e}}function Rp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,To(e,t)}function To(e,t){return To=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},To(e,t)}var Cp=function(e){Rp(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Ap.SELECTOR,r}return t}(Pp.default);Xr.default=Cp;Ku.exports=Xr.default});var ai=U((xx,Ju)=>{"use strict";var Lp={},Mp=Lp.hasOwnProperty,Np=function(t,n){if(!t)return n;var r={};for(var i in n)r[i]=Mp.call(t,i)?t[i]:n[i];return r},Wp=/[ -,\.\/:-@\[-\^`\{-~]/,Dp=/[ -,\.\/:-@\[\]\^`\{-~]/,Fp=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Eo=function e(t,n){n=Np(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?Wp.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&&Dp.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(Fp,function(g,b,y){return b&&b.length%2?g:(b||"")+y}),!i&&n.wrap?r+s+r:s};Eo.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Eo.version="3.0.0";Ju.exports=Eo});var Po=U((Qr,tl)=>{"use strict";Qr.__esModule=!0;Qr.default=void 0;var Bp=el(ai()),$p=jr(),qp=el(Bt()),Up=Ce();function el(e){return e&&e.__esModule?e:{default:e}}function Zu(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 zp(e,t,n){return t&&Zu(e.prototype,t),n&&Zu(e,n),e}function Gp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Oo(e,t)}function Oo(e,t){return Oo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Oo(e,t)}var jp=function(e){Gp(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Up.CLASS,i._constructed=!0,i}var n=t.prototype;return n.valueToString=function(){return"."+e.prototype.valueToString.call(this)},zp(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=(0,Bp.default)(i,{isIdentifier:!0});o!==i?((0,$p.ensureObject)(this,"raws"),this.raws.value=o):this.raws&&delete this.raws.value}this._value=i}}]),t}(qp.default);Qr.default=jp;tl.exports=Qr.default});var Io=U((Kr,rl)=>{"use strict";Kr.__esModule=!0;Kr.default=void 0;var Vp=Yp(Bt()),Hp=Ce();function Yp(e){return e&&e.__esModule?e:{default:e}}function Xp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ao(e,t)}function Ao(e,t){return Ao=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ao(e,t)}var Qp=function(e){Xp(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Hp.COMMENT,r}return t}(Vp.default);Kr.default=Qp;rl.exports=Kr.default});var Co=U((Jr,nl)=>{"use strict";Jr.__esModule=!0;Jr.default=void 0;var Kp=Zp(Bt()),Jp=Ce();function Zp(e){return e&&e.__esModule?e:{default:e}}function eh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ro(e,t)}function Ro(e,t){return Ro=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ro(e,t)}var th=function(e){eh(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Jp.ID,i}var n=t.prototype;return n.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(Kp.default);Jr.default=th;nl.exports=Jr.default});var ui=U((Zr,sl)=>{"use strict";Zr.__esModule=!0;Zr.default=void 0;var rh=ol(ai()),nh=jr(),ih=ol(Bt());function ol(e){return e&&e.__esModule?e:{default:e}}function il(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 oh(e,t,n){return t&&il(e.prototype,t),n&&il(e,n),e}function sh(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 ah=function(e){sh(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))},oh(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,rh.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}(ih.default);Zr.default=ah;sl.exports=Zr.default});var No=U((en,al)=>{"use strict";en.__esModule=!0;en.default=void 0;var uh=fh(ui()),lh=Ce();function fh(e){return e&&e.__esModule?e:{default:e}}function ch(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 dh=function(e){ch(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=lh.TAG,r}return t}(uh.default);en.default=dh;al.exports=en.default});var Do=U((tn,ul)=>{"use strict";tn.__esModule=!0;tn.default=void 0;var ph=mh(Bt()),hh=Ce();function mh(e){return e&&e.__esModule?e:{default:e}}function gh(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 bh=function(e){gh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=hh.STRING,r}return t}(ph.default);tn.default=bh;ul.exports=tn.default});var Bo=U((rn,ll)=>{"use strict";rn.__esModule=!0;rn.default=void 0;var vh=xh(si()),yh=Ce();function xh(e){return e&&e.__esModule?e:{default:e}}function wh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fo(e,t)}function Fo(e,t){return Fo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Fo(e,t)}var Sh=function(e){wh(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=yh.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}(vh.default);rn.default=Sh;ll.exports=rn.default});var cl=U((wx,fl)=>{fl.exports=function(t,n){return function(...r){return console.warn(n),t(...r)}}});var jo=U(sn=>{"use strict";sn.__esModule=!0;sn.unescapeValue=Go;sn.default=void 0;var nn=zo(ai()),_h=zo(xo()),Th=zo(ui()),kh=Ce(),$o;function zo(e){return e&&e.__esModule?e:{default:e}}function dl(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 Eh(e,t,n){return t&&dl(e.prototype,t),n&&dl(e,n),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 on=cl(),Ph=/^('|")([^]*)\1$/,Ah=on(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),Ih=on(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),Rh=on(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function Go(e){var t=!1,n=null,r=e,i=r.match(Ph);return i&&(n=i[1],r=i[2]),r=(0,_h.default)(r),r!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}function Ch(e){if(e.quoteMark!==void 0||e.value===void 0)return e;Rh();var t=Go(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 li=function(e){Oh(t,e);function t(r){var i;return r===void 0&&(r={}),i=e.call(this,Ch(r))||this,i.type=kh.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:on(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:on(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=qo[o],a=(0,nn.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,nn.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=qo[l],h=(0,nn.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,nn.default)(this._value,qo[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,nn.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=pl);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=" "),pl(s,a)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},Eh(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){Ih()}},{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=Go(i),s=o.deprecatedUsage,a=o.unescaped,u=o.quoteMark;if(s&&Ah(),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}(Th.default);sn.default=li;li.NO_QUOTE=null;li.SINGLE_QUOTE="'";li.DOUBLE_QUOTE='"';var qo=($o={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},$o[null]={isIdentifier:!0},$o);function pl(e,t){return""+t.before+e+t.after}});var Ho=U((an,hl)=>{"use strict";an.__esModule=!0;an.default=void 0;var Lh=Nh(ui()),Mh=Ce();function Nh(e){return e&&e.__esModule?e:{default:e}}function Wh(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 Dh=function(e){Wh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Mh.UNIVERSAL,r.value="*",r}return t}(Lh.default);an.default=Dh;hl.exports=an.default});var Xo=U((un,ml)=>{"use strict";un.__esModule=!0;un.default=void 0;var Fh=$h(Bt()),Bh=Ce();function $h(e){return e&&e.__esModule?e:{default:e}}function qh(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 Uh=function(e){qh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Bh.COMBINATOR,r}return t}(Fh.default);un.default=Uh;ml.exports=un.default});var Ko=U((ln,gl)=>{"use strict";ln.__esModule=!0;ln.default=void 0;var zh=jh(Bt()),Gh=Ce();function jh(e){return e&&e.__esModule?e:{default: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(r,i){return r.__proto__=i,r},Qo(e,t)}var Hh=function(e){Vh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Gh.NESTING,r.value="&",r}return t}(zh.default);ln.default=Hh;gl.exports=ln.default});var vl=U((fi,bl)=>{"use strict";fi.__esModule=!0;fi.default=Yh;function Yh(e){return e.sort(function(t,n){return t-n})}bl.exports=fi.default});var Jo=U($=>{"use strict";$.__esModule=!0;$.combinator=$.word=$.comment=$.str=$.tab=$.newline=$.feed=$.cr=$.backslash=$.bang=$.slash=$.doubleQuote=$.singleQuote=$.space=$.greaterThan=$.pipe=$.equals=$.plus=$.caret=$.tilde=$.dollar=$.closeSquare=$.openSquare=$.closeParenthesis=$.openParenthesis=$.semicolon=$.colon=$.comma=$.at=$.asterisk=$.ampersand=void 0;var Xh=38;$.ampersand=Xh;var Qh=42;$.asterisk=Qh;var Kh=64;$.at=Kh;var Jh=44;$.comma=Jh;var Zh=58;$.colon=Zh;var em=59;$.semicolon=em;var tm=40;$.openParenthesis=tm;var rm=41;$.closeParenthesis=rm;var nm=91;$.openSquare=nm;var im=93;$.closeSquare=im;var om=36;$.dollar=om;var sm=126;$.tilde=sm;var am=94;$.caret=am;var um=43;$.plus=um;var lm=61;$.equals=lm;var fm=124;$.pipe=fm;var cm=62;$.greaterThan=cm;var dm=32;$.space=dm;var yl=39;$.singleQuote=yl;var pm=34;$.doubleQuote=pm;var hm=47;$.slash=hm;var mm=33;$.bang=mm;var gm=92;$.backslash=gm;var bm=13;$.cr=bm;var vm=12;$.feed=vm;var ym=10;$.newline=ym;var xm=9;$.tab=xm;var wm=yl;$.str=wm;var Sm=-1;$.comment=Sm;var _m=-2;$.word=_m;var Tm=-3;$.combinator=Tm});var Sl=U(fn=>{"use strict";fn.__esModule=!0;fn.default=Rm;fn.FIELDS=void 0;var W=km(Jo()),wr,fe;function wl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return wl=function(){return e},e}function km(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=wl();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 Em=(wr={},wr[W.tab]=!0,wr[W.newline]=!0,wr[W.cr]=!0,wr[W.feed]=!0,wr),Om=(fe={},fe[W.space]=!0,fe[W.tab]=!0,fe[W.newline]=!0,fe[W.cr]=!0,fe[W.feed]=!0,fe[W.ampersand]=!0,fe[W.asterisk]=!0,fe[W.bang]=!0,fe[W.comma]=!0,fe[W.colon]=!0,fe[W.semicolon]=!0,fe[W.openParenthesis]=!0,fe[W.closeParenthesis]=!0,fe[W.openSquare]=!0,fe[W.closeSquare]=!0,fe[W.singleQuote]=!0,fe[W.doubleQuote]=!0,fe[W.plus]=!0,fe[W.pipe]=!0,fe[W.tilde]=!0,fe[W.greaterThan]=!0,fe[W.equals]=!0,fe[W.dollar]=!0,fe[W.caret]=!0,fe[W.slash]=!0,fe),Zo={},xl="0123456789abcdefABCDEF";for(ci=0;ci<xl.length;ci++)Zo[xl.charCodeAt(ci)]=!0;var ci;function Pm(e,t){var n=t,r;do{if(r=e.charCodeAt(n),Om[r])return n-1;r===W.backslash?n=Am(e,n)+1:n++}while(n<e.length);return n-1}function Am(e,t){var n=t,r=e.charCodeAt(n+1);if(!Em[r])if(Zo[r]){var i=0;do n++,i++,r=e.charCodeAt(n+1);while(Zo[r]&&i<6);i<6&&r===W.space&&n++}else n++;return n}var Im={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};fn.FIELDS=Im;function Rm(e){var t=[],n=e.css.valueOf(),r=n,i=r.length,o=-1,s=1,a=0,u=0,f,l,p,h,g,b,y,k,S,I,w,T,O;function C(D,q){if(e.safe)n+=q,S=n.length-1;else throw e.error("Unclosed "+D,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:S=a;do S+=1,f=n.charCodeAt(S),f===W.newline&&(o=S,s+=1);while(f===W.space||f===W.newline||f===W.tab||f===W.cr||f===W.feed);O=W.space,h=s,p=S-o-1,u=S;break;case W.plus:case W.greaterThan:case W.tilde:case W.pipe:S=a;do S+=1,f=n.charCodeAt(S);while(f===W.plus||f===W.greaterThan||f===W.tilde||f===W.pipe);O=W.combinator,h=s,p=a-o,u=S;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:S=a,O=f,h=s,p=a-o,u=S+1;break;case W.singleQuote:case W.doubleQuote:T=f===W.singleQuote?"'":'"',S=a;do for(g=!1,S=n.indexOf(T,S+1),S===-1&&C("quote",T),b=S;n.charCodeAt(b-1)===W.backslash;)b-=1,g=!g;while(g);O=W.str,h=s,p=a-o,u=S+1;break;default:f===W.slash&&n.charCodeAt(a+1)===W.asterisk?(S=n.indexOf("*/",a+2)+1,S===0&&C("comment","*/"),l=n.slice(a,S+1),k=l.split(`
|
|
4
|
+
`),y=k.length-1,y>0?(I=s+y,w=S-k[y].length):(I=s,w=o),O=W.comment,s=I,h=I,p=S-w):f===W.slash?(S=a,O=f,h=s,p=a-o,u=S+1):(S=Pm(n,a),O=W.word,h=s,p=S-o),u=S+1;break}t.push([O,s,a-o,h,p,a,u]),w&&(o=w,w=null),a=u}return t}});var Il=U((cn,Al)=>{"use strict";cn.__esModule=!0;cn.default=void 0;var Cm=nt(_o()),es=nt(ko()),Lm=nt(Po()),_l=nt(Io()),Mm=nt(Co()),Nm=nt(No()),ts=nt(Do()),Wm=nt(Bo()),Tl=di(jo()),Dm=nt(Ho()),rs=nt(Xo()),Fm=nt(Ko()),Bm=nt(vl()),R=di(Sl()),B=di(Jo()),$m=di(Ce()),ye=jr(),nr,ns;function Pl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Pl=function(){return e},e}function di(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Pl();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 nt(e){return e&&e.__esModule?e:{default:e}}function kl(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 qm(e,t,n){return t&&kl(e.prototype,t),n&&kl(e,n),e}var ss=(nr={},nr[B.space]=!0,nr[B.cr]=!0,nr[B.feed]=!0,nr[B.newline]=!0,nr[B.tab]=!0,nr),Um=Object.assign({},ss,(ns={},ns[B.comment]=!0,ns));function El(e){return{line:e[R.FIELDS.START_LINE],column:e[R.FIELDS.START_COL]}}function Ol(e){return{line:e[R.FIELDS.END_LINE],column:e[R.FIELDS.END_COL]}}function ir(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function Sr(e){return ir(e[R.FIELDS.START_LINE],e[R.FIELDS.START_COL],e[R.FIELDS.END_LINE],e[R.FIELDS.END_COL])}function is(e,t){if(e)return ir(e[R.FIELDS.START_LINE],e[R.FIELDS.START_COL],t[R.FIELDS.END_LINE],t[R.FIELDS.END_COL])}function _r(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,ye.ensureObject)(e,"raws"),e[t]=(0,ye.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function os(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function zm(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var Gm=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,R.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=is(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Cm.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new es.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[R.FIELDS.TYPE]!==B.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[R.FIELDS.TYPE]!==B.closeSquare)return this.expected("closing square bracket",this.currToken[R.FIELDS.START_POS]);var o=r.length,s={source:ir(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[R.FIELDS.START_POS]};if(o===1&&!~[B.word].indexOf(r[0][R.FIELDS.TYPE]))return this.expected("attribute",r[0][R.FIELDS.START_POS]);for(var a=0,u="",f="",l=null,p=!1;a<o;){var h=r[a],g=this.content(h),b=r[a+1];switch(h[R.FIELDS.TYPE]){case B.space:if(p=!0,this.options.lossy)break;if(l){(0,ye.ensureObject)(s,"spaces",l);var y=s.spaces[l].after||"";s.spaces[l].after=y+g;var k=(0,ye.getProp)(s,"raws","spaces",l,"after")||null;k&&(s.raws.spaces[l].after=k+g)}else u=u+g,f=f+g;break;case B.asterisk:if(b[R.FIELDS.TYPE]===B.equals)s.operator=g,l="operator";else if((!s.namespace||l==="namespace"&&!p)&&b){u&&((0,ye.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),f&&((0,ye.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,f=""),s.namespace=(s.namespace||"")+g;var S=(0,ye.getProp)(s,"raws","namespace")||null;S&&(s.raws.namespace+=g),l="namespace"}p=!1;break;case B.dollar:if(l==="value"){var I=(0,ye.getProp)(s,"raws","value");s.value+="$",I&&(s.raws.value=I+"$");break}case B.caret:b[R.FIELDS.TYPE]===B.equals&&(s.operator=g,l="operator"),p=!1;break;case B.combinator:if(g==="~"&&b[R.FIELDS.TYPE]===B.equals&&(s.operator=g,l="operator"),g!=="|"){p=!1;break}b[R.FIELDS.TYPE]===B.equals?(s.operator=g,l="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),p=!1;break;case B.word:if(b&&this.content(b)==="|"&&r[a+2]&&r[a+2][R.FIELDS.TYPE]!==B.equals&&!s.operator&&!s.namespace)s.namespace=g,l="namespace";else if(!s.attribute||l==="attribute"&&!p){u&&((0,ye.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),f&&((0,ye.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=f,f=""),s.attribute=(s.attribute||"")+g;var w=(0,ye.getProp)(s,"raws","attribute")||null;w&&(s.raws.attribute+=g),l="attribute"}else if(!s.value&&s.value!==""||l==="value"&&!p){var T=(0,ye.unesc)(g),O=(0,ye.getProp)(s,"raws","value")||"",C=s.value||"";s.value=C+T,s.quoteMark=null,(T!==g||O)&&((0,ye.ensureObject)(s,"raws"),s.raws.value=(O||C)+g),l="value"}else{var D=g==="i"||g==="I";(s.value||s.value==="")&&(s.quoteMark||p)?(s.insensitive=D,(!D||g==="I")&&((0,ye.ensureObject)(s,"raws"),s.raws.insensitiveFlag=g),l="insensitive",u&&((0,ye.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),f&&((0,ye.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=f,f="")):(s.value||s.value==="")&&(l="value",s.value+=g,s.raws.value&&(s.raws.value+=g))}p=!1;break;case B.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:h[R.FIELDS.START_POS]});var q=(0,Tl.unescapeValue)(g),Y=q.unescaped,ue=q.quoteMark;s.value=Y,s.quoteMark=ue,l="value",(0,ye.ensureObject)(s,"raws"),s.raws.value=g,p=!1;break;case B.equals:if(!s.attribute)return this.expected("attribute",h[R.FIELDS.START_POS],g);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:h[R.FIELDS.START_POS]});s.operator=s.operator?s.operator+g:g,l="operator",p=!1;break;case B.comment:if(l)if(p||b&&b[R.FIELDS.TYPE]===B.space||l==="insensitive"){var _e=(0,ye.getProp)(s,"spaces",l,"after")||"",ce=(0,ye.getProp)(s,"raws","spaces",l,"after")||_e;(0,ye.ensureObject)(s,"raws","spaces",l),s.raws.spaces[l].after=ce+g}else{var oe=s[l]||"",ve=(0,ye.getProp)(s,"raws",l)||oe;(0,ye.ensureObject)(s,"raws"),s.raws[l]=ve+g}else f=f+g;break;default:return this.error('Unexpected "'+g+'" found.',{index:h[R.FIELDS.START_POS]})}a++}_r(s,"attribute"),_r(s,"namespace"),this.newNode(new Tl.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(ss[this.currToken[R.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[R.FIELDS.TYPE]===B.comment){var u={};s&&(u.before=s,s=""),a=new _l.default({value:this.content(),source:Sr(this.currToken),sourceIndex:this.currToken[R.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 ts.default({value:"",source:ir(f[R.FIELDS.START_LINE],f[R.FIELDS.START_COL],l[R.FIELDS.END_LINE],l[R.FIELDS.END_COL]),sourceIndex:f[R.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][R.FIELDS.TYPE]===B.slash&&this.tokens[r+1]&&this.tokens[r+1][R.FIELDS.TYPE]===B.word&&this.tokens[r+2]&&this.tokens[r+2][R.FIELDS.TYPE]===B.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var r=this.content(this.tokens[this.position+1]),i=(0,ye.unesc)(r).toLowerCase(),o={};i!==r&&(o.value="/"+r+"/");var s=new rs.default({value:"/"+i+"/",source:ir(this.currToken[R.FIELDS.START_LINE],this.currToken[R.FIELDS.START_COL],this.tokens[this.position+2][R.FIELDS.END_LINE],this.tokens[this.position+2][R.FIELDS.END_COL]),sourceIndex:this.currToken[R.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][R.FIELDS.TYPE]===B.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[R.FIELDS.TYPE]===B.combinator?(h=new rs.default({value:this.content(),source:Sr(this.currToken),sourceIndex:this.currToken[R.FIELDS.START_POS]}),this.position++):ss[this.currToken[R.FIELDS.TYPE]]||p||this.unexpected(),h){if(p){var g=this.convertWhitespaceNodesToSpace(p),b=g.space,y=g.rawSpace;h.spaces.before=b,h.rawSpaceBefore=y}}else{var k=this.convertWhitespaceNodesToSpace(p,!0),S=k.space,I=k.rawSpace;I||(I=S);var w={},T={spaces:{}};S.endsWith(" ")&&I.endsWith(" ")?(w.before=S.slice(0,S.length-1),T.spaces.before=I.slice(0,I.length-1)):S.startsWith(" ")&&I.startsWith(" ")?(w.after=S.slice(1),T.spaces.after=I.slice(1)):T.value=I,h=new rs.default({value:" ",source:is(l,this.tokens[this.position-1]),sourceIndex:l[R.FIELDS.START_POS],spaces:w,raws:T})}return this.currToken&&this.currToken[R.FIELDS.TYPE]===B.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 es.default({source:{start:El(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 _l.default({value:this.content(),source:Sr(r),sourceIndex:r[R.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[R.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[R.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[R.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[R.FIELDS.START_POS])},t.namespace=function(){var r=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[R.FIELDS.TYPE]===B.word)return this.position++,this.word(r);if(this.nextToken[R.FIELDS.TYPE]===B.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 Fm.default({value:this.content(),source:Sr(i),sourceIndex:i[R.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var r=this.current.last,i=1;if(this.position++,r&&r.type===$m.PSEUDO){var o=new es.default({source:{start:El(this.tokens[this.position-1])}}),s=this.current;for(r.append(o),this.current=o;this.position<this.tokens.length&&i;)this.currToken[R.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[R.FIELDS.TYPE]===B.closeParenthesis&&i--,i?this.parse():(this.current.source.end=Ol(this.currToken),this.current.parent.source.end=Ol(this.currToken),this.position++);this.current=s}else{for(var a=this.currToken,u="(",f;this.position<this.tokens.length&&i;)this.currToken[R.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[R.FIELDS.TYPE]===B.closeParenthesis&&i--,f=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;r?r.appendToPropertyAndEscape("value",u,u):this.newNode(new ts.default({value:u,source:ir(a[R.FIELDS.START_LINE],a[R.FIELDS.START_COL],f[R.FIELDS.END_LINE],f[R.FIELDS.END_COL]),sourceIndex:a[R.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[R.FIELDS.START_POS])},t.pseudo=function(){for(var r=this,i="",o=this.currToken;this.currToken&&this.currToken[R.FIELDS.TYPE]===B.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[R.FIELDS.TYPE]===B.word)this.splitWord(!1,function(s,a){i+=s,r.newNode(new Wm.default({value:i,source:is(o,r.currToken),sourceIndex:o[R.FIELDS.START_POS]})),a>1&&r.nextToken&&r.nextToken[R.FIELDS.TYPE]===B.openParenthesis&&r.error("Misplaced parenthesis.",{index:r.nextToken[R.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[R.FIELDS.START_POS])},t.space=function(){var r=this.content();this.position===0||this.prevToken[R.FIELDS.TYPE]===B.comma||this.prevToken[R.FIELDS.TYPE]===B.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[R.FIELDS.TYPE]===B.comma||this.nextToken[R.FIELDS.TYPE]===B.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(r),this.position++):this.combinator()},t.string=function(){var r=this.currToken;this.newNode(new ts.default({value:this.content(),source:Sr(r),sourceIndex:r[R.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 Dm.default({value:this.content(),source:Sr(o),sourceIndex:o[R.FIELDS.START_POS]}),r),this.position++},t.splitWord=function(r,i){for(var o=this,s=this.nextToken,a=this.content();s&&~[B.dollar,B.caret,B.equals,B.word].indexOf(s[R.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var f=this.nextToken;f&&f[R.FIELDS.TYPE]===B.space&&(a+=this.requiredSpace(this.content(f)),this.position++)}s=this.nextToken}var l=os(a,".").filter(function(b){var y=a[b-1]==="\\",k=/^\d+\.\d+%$/.test(a);return!y&&!k}),p=os(a,"#").filter(function(b){return a[b-1]!=="\\"}),h=os(a,"#{");h.length&&(p=p.filter(function(b){return!~h.indexOf(b)}));var g=(0,Bm.default)(zm([0].concat(l,p)));g.forEach(function(b,y){var k=g[y+1]||a.length,S=a.slice(b,k);if(y===0&&i)return i.call(o,S,g.length);var I,w=o.currToken,T=w[R.FIELDS.START_POS]+g[y],O=ir(w[1],w[2]+b,w[3],w[2]+(k-1));if(~l.indexOf(b)){var C={value:S.slice(1),source:O,sourceIndex:T};I=new Lm.default(_r(C,"value"))}else if(~p.indexOf(b)){var D={value:S.slice(1),source:O,sourceIndex:T};I=new Mm.default(_r(D,"value"))}else{var q={value:S,source:O,sourceIndex:T};_r(q,"value"),I=new Nm.default(q)}o.newNode(I,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[R.FIELDS.TYPE]){case B.space:this.space();break;case B.comment:this.comment();break;case B.openParenthesis:this.parentheses();break;case B.closeParenthesis:r&&this.missingParenthesis();break;case B.openSquare:this.attribute();break;case B.dollar:case B.caret:case B.equals:case B.word:this.word();break;case B.colon:this.pseudo();break;case B.comma:this.comma();break;case B.asterisk:this.universal();break;case B.ampersand:this.nesting();break;case B.slash:case B.combinator:this.combinator();break;case B.str:this.string();break;case B.closeSquare:this.missingSquareBracket();case B.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[R.FIELDS.TYPE]===B.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,_r(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[R.FIELDS.START_POS],r[R.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(r){r===void 0&&(r=this.position+1);for(var i=r;i<this.tokens.length;)if(Um[this.tokens[i][R.FIELDS.TYPE]]){i++;continue}else return i;return-1},qm(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}();cn.default=Gm;Al.exports=cn.default});var Cl=U((dn,Rl)=>{"use strict";dn.__esModule=!0;dn.default=void 0;var jm=Vm(Il());function Vm(e){return e&&e.__esModule?e:{default:e}}var Hm=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 jm.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}();dn.default=Hm;Rl.exports=dn.default});var Ll=U(me=>{"use strict";me.__esModule=!0;me.universal=me.tag=me.string=me.selector=me.root=me.pseudo=me.nesting=me.id=me.comment=me.combinator=me.className=me.attribute=void 0;var Ym=it(jo()),Xm=it(Po()),Qm=it(Xo()),Km=it(Io()),Jm=it(Co()),Zm=it(Ko()),e0=it(Bo()),t0=it(_o()),r0=it(ko()),n0=it(Do()),i0=it(No()),o0=it(Ho());function it(e){return e&&e.__esModule?e:{default:e}}var s0=function(t){return new Ym.default(t)};me.attribute=s0;var a0=function(t){return new Xm.default(t)};me.className=a0;var u0=function(t){return new Qm.default(t)};me.combinator=u0;var l0=function(t){return new Km.default(t)};me.comment=l0;var f0=function(t){return new Jm.default(t)};me.id=f0;var c0=function(t){return new Zm.default(t)};me.nesting=c0;var d0=function(t){return new e0.default(t)};me.pseudo=d0;var p0=function(t){return new t0.default(t)};me.root=p0;var h0=function(t){return new r0.default(t)};me.selector=h0;var m0=function(t){return new n0.default(t)};me.string=m0;var g0=function(t){return new i0.default(t)};me.tag=g0;var b0=function(t){return new o0.default(t)};me.universal=b0});var Dl=U(re=>{"use strict";re.__esModule=!0;re.isNode=as;re.isPseudoElement=Wl;re.isPseudoClass=P0;re.isContainer=A0;re.isNamespace=I0;re.isUniversal=re.isTag=re.isString=re.isSelector=re.isRoot=re.isPseudo=re.isNesting=re.isIdentifier=re.isComment=re.isCombinator=re.isClassName=re.isAttribute=void 0;var xe=Ce(),Ge,v0=(Ge={},Ge[xe.ATTRIBUTE]=!0,Ge[xe.CLASS]=!0,Ge[xe.COMBINATOR]=!0,Ge[xe.COMMENT]=!0,Ge[xe.ID]=!0,Ge[xe.NESTING]=!0,Ge[xe.PSEUDO]=!0,Ge[xe.ROOT]=!0,Ge[xe.SELECTOR]=!0,Ge[xe.STRING]=!0,Ge[xe.TAG]=!0,Ge[xe.UNIVERSAL]=!0,Ge);function as(e){return typeof e=="object"&&v0[e.type]}function ot(e,t){return as(t)&&t.type===e}var Ml=ot.bind(null,xe.ATTRIBUTE);re.isAttribute=Ml;var y0=ot.bind(null,xe.CLASS);re.isClassName=y0;var x0=ot.bind(null,xe.COMBINATOR);re.isCombinator=x0;var w0=ot.bind(null,xe.COMMENT);re.isComment=w0;var S0=ot.bind(null,xe.ID);re.isIdentifier=S0;var _0=ot.bind(null,xe.NESTING);re.isNesting=_0;var us=ot.bind(null,xe.PSEUDO);re.isPseudo=us;var T0=ot.bind(null,xe.ROOT);re.isRoot=T0;var k0=ot.bind(null,xe.SELECTOR);re.isSelector=k0;var E0=ot.bind(null,xe.STRING);re.isString=E0;var Nl=ot.bind(null,xe.TAG);re.isTag=Nl;var O0=ot.bind(null,xe.UNIVERSAL);re.isUniversal=O0;function Wl(e){return us(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 P0(e){return us(e)&&!Wl(e)}function A0(e){return!!(as(e)&&e.walk)}function I0(e){return Ml(e)||Nl(e)}});var Fl=U(gt=>{"use strict";gt.__esModule=!0;var ls=Ce();Object.keys(ls).forEach(function(e){e==="default"||e==="__esModule"||e in gt&>[e]===ls[e]||(gt[e]=ls[e])});var fs=Ll();Object.keys(fs).forEach(function(e){e==="default"||e==="__esModule"||e in gt&>[e]===fs[e]||(gt[e]=fs[e])});var cs=Dl();Object.keys(cs).forEach(function(e){e==="default"||e==="__esModule"||e in gt&>[e]===cs[e]||(gt[e]=cs[e])})});var ql=U((pn,$l)=>{"use strict";pn.__esModule=!0;pn.default=void 0;var R0=M0(Cl()),C0=L0(Fl());function Bl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Bl=function(){return e},e}function L0(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}function M0(e){return e&&e.__esModule?e:{default:e}}var ds=function(t){return new R0.default(t)};Object.assign(ds,C0);delete ds.__esModule;var N0=ds;pn.default=N0;$l.exports=pn.default});var Ul=U(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});Object.defineProperty(ps,"default",{enumerable:!0,get:()=>W0});function W0(e){return e.replace(/\\,/g,"\\2c ")}});var Gl=U((Ax,zl)=>{"use strict";zl.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 ms=U(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});function D0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}D0(hs,{parseColor:()=>z0,formatColor:()=>G0});var jl=F0(Gl());function F0(e){return e&&e.__esModule?e:{default:e}}var B0=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,$0=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Yt=/(?:\d+|\d*\.\d+)%?/,pi=/(?:\s*,\s*|\s+)/,Vl=/\s*[,/]\s*/,Xt=/var\(--(?:[^ )]*?)\)/,q0=new RegExp(`^(rgb)a?\\(\\s*(${Yt.source}|${Xt.source})(?:${pi.source}(${Yt.source}|${Xt.source}))?(?:${pi.source}(${Yt.source}|${Xt.source}))?(?:${Vl.source}(${Yt.source}|${Xt.source}))?\\s*\\)$`),U0=new RegExp(`^(hsl)a?\\(\\s*((?:${Yt.source})(?:deg|rad|grad|turn)?|${Xt.source})(?:${pi.source}(${Yt.source}|${Xt.source}))?(?:${pi.source}(${Yt.source}|${Xt.source}))?(?:${Vl.source}(${Yt.source}|${Xt.source}))?\\s*\\)$`);function z0(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 jl.default)return{mode:"rgb",color:jl.default[e].map(u=>u.toString())};let i=e.replace($0,(u,f,l,p,h)=>["#",f,f,l,l,p,p,h?h+h:""].join("")).match(B0);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(q0))!==null&&o!==void 0?o:e.match(U0);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 G0({mode:e,color:t,alpha:n}){let r=n!==void 0;return`${e}(${t.join(" ")}${r?` / ${n}`:""})`}});var bs=U(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});function j0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}j0(gs,{withAlphaValue:()=>V0,default:()=>H0});var hi=ms();function V0(e,t,n){if(typeof e=="function")return e({opacityValue:t});let r=(0,hi.parseColor)(e,{loose:!0});return r===null?n:(0,hi.formatColor)({...r,alpha:t})}function H0({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,hi.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,hi.formatColor)({...i,alpha:`var(${n})`})]))}}});var Kl=U(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});function Y0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Y0(vs,{pattern:()=>Q0,withoutCapturing:()=>Yl,any:()=>Xl,optional:()=>K0,zeroOrMore:()=>J0,nestedBrackets:()=>Ql,escape:()=>or});var Hl=/[\\^$.*+?()[\]{}|]/g,X0=RegExp(Hl.source);function hn(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function Q0(e){return new RegExp(hn(e),"g")}function Yl(e){return new RegExp(`(?:${hn(e)})`,"g")}function Xl(e){return`(?:${e.map(hn).join("|")})`}function K0(e){return`(?:${hn(e)})?`}function J0(e){return`(?:${hn(e)})*`}function Ql(e,t,n=1){return Yl([or(e),/[^\s]*/,n===1?`[^${or(e)}${or(t)}s]*`:Xl([`[^${or(e)}${or(t)}s]*`,Ql(e,t,n-1)]),/[^\s]*/,or(t)])}function or(e){return e&&X0.test(e)?e.replace(Hl,"\\$&"):e||""}});var Zl=U(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});Object.defineProperty(ys,"splitAtTopLevelOnly",{enumerable:!0,get:()=>tg});var Z0=eg(Kl());function Jl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Jl=function(r){return r?n:t})(e)}function eg(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Jl(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*tg(e,t){let n=new RegExp(`[(){}\\[\\]${Z0.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 tf=U(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});function rg(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}rg(xs,{parseBoxShadowValue:()=>sg,formatBoxShadowValue:()=>ag});var ng=Zl(),ig=new Set(["inset","inherit","initial","revert","unset"]),og=/\ +(?![^(]*\))/g,ef=/^-?(\d+|\.\d+)(.*?)$/g;function sg(e){return Array.from((0,ng.splitAtTopLevelOnly)(e,",")).map(n=>{let r=n.trim(),i={raw:r},o=r.split(og),s=new Set;for(let a of o)ef.lastIndex=0,!s.has("KEYWORD")&&ig.has(a)?(i.keyword=a,s.add("KEYWORD")):ef.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 ag(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 lf=U(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});function ug(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}ug(Ss,{normalize:()=>Qt,url:()=>of,number:()=>cg,percentage:()=>sf,length:()=>af,lineWidth:()=>hg,shadow:()=>mg,color:()=>gg,image:()=>bg,gradient:()=>uf,position:()=>xg,familyName:()=>wg,genericName:()=>_g,absoluteSize:()=>kg,relativeSize:()=>Og});var lg=ms(),fg=tf(),ws=["min","max","clamp","calc"],nf=/,(?![^(]*\))/g,mi=/_(?![^(]*\))/g;function Qt(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(n=>/^url\(.*?\)$/.test(n)?n:Qt(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 of(e){return e.startsWith("url(")}function cg(e){return!isNaN(Number(e))||ws.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function sf(e){return e.split(mi).every(t=>/%$/g.test(t)||ws.some(n=>new RegExp(`^${n}\\(.+?%`).test(t)))}var dg=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],rf=`(?:${dg.join("|")})`;function af(e){return e.split(mi).every(t=>t==="0"||new RegExp(`${rf}$`).test(t)||ws.some(n=>new RegExp(`^${n}\\(.+?${rf}`).test(t)))}var pg=new Set(["thin","medium","thick"]);function hg(e){return pg.has(e)}function mg(e){let t=(0,fg.parseBoxShadowValue)(Qt(e));for(let n of t)if(!n.valid)return!1;return!0}function gg(e){let t=0;return e.split(mi).every(r=>(r=Qt(r),r.startsWith("var(")?!0:(0,lg.parseColor)(r,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function bg(e){let t=0;return e.split(nf).every(r=>(r=Qt(r),r.startsWith("var(")?!0:of(r)||uf(r)||["element(","image(","cross-fade(","image-set("].some(i=>r.startsWith(i))?(t++,!0):!1))?t>0:!1}var vg=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function uf(e){e=Qt(e);for(let t of vg)if(e.startsWith(`${t}(`))return!0;return!1}var yg=new Set(["center","top","right","bottom","left"]);function xg(e){let t=0;return e.split(mi).every(r=>(r=Qt(r),r.startsWith("var(")?!0:yg.has(r)||af(r)||sf(r)?(t++,!0):!1))?t>0:!1}function wg(e){let t=0;return e.split(nf).every(r=>(r=Qt(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(t++,!0)))?t>0:!1}var Sg=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function _g(e){return Sg.has(e)}var Tg=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function kg(e){return Tg.has(e)}var Eg=new Set(["larger","smaller"]);function Og(e){return Eg.has(e)}});var bf=U(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});function Pg(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Pg(ks,{updateAllClasses:()=>Rg,asValue:()=>gn,parseColorFormat:()=>_s,asColor:()=>hf,asLookupValue:()=>mf,coerceValue:()=>Ng});var Ag=Ts(ql()),Ig=Ts(Ul()),ff=bs(),je=lf(),cf=Ts(uo());function Ts(e){return e&&e.__esModule?e:{default:e}}function Rg(e,t){return(0,Ag.default)(i=>{i.walkClasses(o=>{let s=t(o.value);o.value=s,o.raws&&o.raws.value&&(o.raws.value=(0,Ig.default)(o.raws.value))})}).processSync(e)}function pf(e,t){if(!mn(e))return;let n=e.slice(1,-1);if(t(n))return(0,je.normalize)(n)}function Cg(e,t={},n){let r=t[e];if(r!==void 0)return(0,cf.default)(r);if(mn(e)){let i=pf(e,n);return i===void 0?void 0:(0,cf.default)(i)}}function gn(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("-")?Cg(e.slice(1),t.values,n):pf(e,n)}function mn(e){return e.startsWith("[")&&e.endsWith("]")}function Lg(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function _s(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:n=1})=>t.replace("<alpha-value>",n)}return e}function hf(e,t={},{tailwindConfig:n={}}={}){var r;if(((r=t.values)===null||r===void 0?void 0:r[e])!==void 0){var i;return _s((i=t.values)===null||i===void 0?void 0:i[e])}let[o,s]=Lg(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:mn(o)?o.slice(1,-1):void 0;return p===void 0?void 0:(p=_s(p),mn(s)?(0,ff.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,ff.withAlphaValue)(p,n.theme.opacity[s]))}return gn(e,t,{validate:je.color})}function mf(e,t={}){var n;return(n=t.values)===null||n===void 0?void 0:n[e]}function st(e){return(t,n)=>gn(t,n,{validate:e})}var gf={any:gn,color:hf,url:st(je.url),image:st(je.image),length:st(je.length),percentage:st(je.percentage),position:st(je.position),lookup:mf,"generic-name":st(je.genericName),"family-name":st(je.familyName),number:st(je.number),"line-width":st(je.lineWidth),"absolute-size":st(je.absoluteSize),"relative-size":st(je.relativeSize),shadow:st(je.shadow)},df=Object.keys(gf);function Mg(e,t){let n=e.indexOf(t);return n===-1?[void 0,e]:[e.slice(0,n),e.slice(n+1)]}function Ng(e,t,n,r){if(mn(t)){let i=t.slice(1,-1),[o,s]=Mg(i,":");if(!/^[\w-_]+$/g.test(o))s=i;else if(o!==void 0&&!df.includes(o))return[];if(s.length>0&&df.includes(o))return[gn(`[${s}]`,n),o]}for(let i of[].concat(e)){let o=gf[i](t,n,{tailwindConfig:r});if(o!==void 0)return[o,i]}return[]}});var vf=U(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Object.defineProperty(Es,"default",{enumerable:!0,get:()=>Wg});function Wg(e){return typeof e=="function"?e({}):e}});var _f=U(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Object.defineProperty(Ps,"default",{enumerable:!0,get:()=>rb});var Dg=sr(uo()),Fg=sr(ku()),Bg=sr(Eu()),$g=sr(co()),qg=sr(Pu()),wf=Au(),yf=Iu(),Ug=Cu(),zg=sr(Lu()),Gg=Mu(),jg=bf(),Vg=bs(),Hg=sr(vf());function sr(e){return e&&e.__esModule?e:{default:e}}function Tr(e){return typeof e=="function"}function bn(e){return typeof e=="object"&&e!==null}function vn(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?bn(e[i])&&bn(r[i])?e[i]=vn(e[i],r[i],n):e[i]=r[i]:e[i]=o}return e}var Os={colors:qg.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,n)=>{let r=(0,Dg.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 Yg(e,...t){return Tr(e)?e(...t):e}function Xg(e){return e.reduce((t,{extend:n})=>vn(t,n,(r,i)=>r===void 0?[i]:Array.isArray(r)?[i,...r]:[i,r]),{})}function Qg(e){return{...e.reduce((t,n)=>(0,wf.defaults)(t,n),{}),extend:Xg(e)}}function xf(e,t){if(Array.isArray(e)&&bn(e[0]))return e.concat(t);if(Array.isArray(t)&&bn(t[0])&&bn(e))return[e,...t];if(Array.isArray(t))return t}function Kg({extend:e,...t}){return vn(t,e,(n,r)=>!Tr(n)&&!r.some(Tr)?vn({},n,...r,xf):(i,o)=>vn({},...[n,...r].map(s=>Yg(s,i,o)),xf))}function*Jg(e){let t=(0,yf.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,yf.toPath)(i);s.alpha=o,yield s}}function Zg(e){let t=(n,r)=>{for(let i of Jg(n)){let o=0,s=e;for(;s!=null&&o<i.length;)s=s[i[o++]],s=Tr(s)&&(i.alpha===void 0||o<=i.length-1)?s(t,Os):s;if(s!==void 0){if(i.alpha!==void 0){let a=(0,jg.parseColorFormat)(s);return(0,Vg.withAlphaValue)(a,i.alpha,(0,Hg.default)(a))}return(0,zg.default)(s)?(0,Gg.cloneDeep)(s):s}}return r};return Object.assign(t,{theme:t,...Os}),Object.keys(e).reduce((n,r)=>(n[r]=Tr(e[r])?e[r](t,Os):e[r],n),{})}function Sf(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,...Sf([(s=o==null?void 0:o.config)!==null&&s!==void 0?s:{}])]})}),t}function eb(e){return[...e].reduceRight((n,r)=>Tr(r)?r({corePlugins:n}):(0,Bg.default)(r,n),Fg.default)}function tb(e){return[...e].reduceRight((n,r)=>[...n,...r],[])}function rb(e){let t=[...Sf(e),{prefix:"",important:!1,separator:":",variantOrder:$g.default.variantOrder}];var n,r;return(0,Ug.normalizeConfig)((0,wf.defaults)({theme:Zg(Kg(Qg(t.map(i=>(n=i==null?void 0:i.theme)!==null&&n!==void 0?n:{})))),corePlugins:eb(t.map(i=>i.corePlugins)),plugins:tb(e.map(i=>(r=i==null?void 0:i.plugins)!==null&&r!==void 0?r:[]))},...t))}});var Tf={};Ar(Tf,{default:()=>nb});var nb,kf=er(()=>{nb={yellow:e=>e}});var Af=U(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});function ib(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}ib(As,{flagEnabled:()=>ab,issueFlagNotices:()=>ub,default:()=>lb});var ob=Pf((kf(),Ir(Tf))),sb=Pf((ei(),Ir(Zn)));function Pf(e){return e&&e.__esModule?e:{default:e}}var Ef={optimizeUniversalDefaults:!1},yn={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function ab(e,t){if(yn.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:Ef[t])!==null&&i!==void 0?i:!1)}if(yn.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:Ef[t])!==null&&a!==void 0?a:!1)}return!1}function Of(e){if(e.experimental==="all")return yn.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(n=>yn.experimental.includes(n)&&e.experimental[n])}function ub(e){if(process.env.JEST_WORKER_ID===void 0&&Of(e).length>0){let t=Of(e).map(n=>ob.default.yellow(n)).join(", ");sb.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 lb=yn});var Rf=U(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Object.defineProperty(Is,"default",{enumerable:!0,get:()=>If});var fb=db(co()),cb=Af();function db(e){return e&&e.__esModule?e:{default:e}}function If(e){var t;let n=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[fb.default]).slice().reverse().flatMap(o=>If(typeof o=="function"?o():o)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(r).filter(o=>(0,cb.flagEnabled)(e,o)).map(o=>r[o]);return[e,...i,...n]}});var Lf=U(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Object.defineProperty(Rs,"default",{enumerable:!0,get:()=>mb});var pb=Cf(_f()),hb=Cf(Rf());function Cf(e){return e&&e.__esModule?e:{default:e}}function mb(...e){let[,...t]=(0,hb.default)(e[0]);return(0,pb.default)([...e,...t])}});var Nf=U((Ux,Mf)=>{var Cs=Lf();Mf.exports=(Cs.__esModule?Cs:{default:Cs}).default});var Wb={};Ar(Wb,{default:()=>Qs,init:()=>Ra});module.exports=Ir(Wb);var la=Mt(require("linebreak"),1);var Rr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vc=Rr((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),yc=Rr((e,t)=>{t.exports=["deg","grad","rad","turn"]}),xc=Rr((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),wc=Rr((e,t)=>{t.exports=["Hz","kHz"]}),Sc=Rr((e,t)=>{t.exports=["s","ms"]}),_c=vc(),oa=yc(),sa=xc(),aa=wc(),ua=Sc();function wi(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(Tc(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=xi(e),this.unit="%";return}var t=Ec(e);if(!t){this.type="number",this.value=xi(e);return}this.type=Pc(t),this.value=xi(e.substr(0,e.length-t.length)),this.unit=t}wi.prototype.valueOf=function(){return this.value};wi.prototype.toString=function(){return this.value+(this.unit||"")};function Nt(e){return new wi(e)}function Tc(e){var t=e.match(/\./g);return t?t.length:0}function xi(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var kc=[].concat(oa,aa,_c,sa,ua);function Ec(e){var t=e.match(/\D+$/),n=t&&t[0];if(n&&kc.indexOf(n)===-1)throw new Error("Invalid unit: "+n);return n}var Oc=Object.assign(Mn(oa,"angle"),Mn(aa,"frequency"),Mn(sa,"resolution"),Mn(ua,"time"));function Mn(e,t){return Object.fromEntries(e.map(n=>[n,t]))}function Pc(e){return Oc[e]||"length"}function pr(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function fa(e){return/^class\s/.test(e.toString())}function Ti(e){return e&&e.$$typeof===Symbol.for("react.forward_ref")}function ca(e){return typeof e=="function"||Ti(e)}function da(e){return"dangerouslySetInnerHTML"in e}function pa(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 Nt(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 ki(e);if(o.type==="percentage"&&i)return o.value/100*n}}catch{}}function ki(e){let t=new Nt(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 Cr(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 Fe(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 Si,_i,ha=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e));function De(e,t,n){if(!Si||!_i){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");Si=new Intl.Segmenter(n,{granularity:"word"}),_i=new Intl.Segmenter(n,{granularity:"grapheme"})}if(t==="grapheme")return[..._i.segment(e)].map(r=>r.segment);{let r=[...Si.segment(e)].map(s=>s.segment),i=[],o=0;for(;o<r.length;){let s=r[o];if(s=="\xA0"){let a=o===0?"":i.pop(),u=o===r.length-1?"":r[o+1];i.push(a+"\xA0"+u),o+=2}else i.push(s),o++}return 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 ma(e=20){let t=new Map;function n(o,s){if(t.size>=e){let a=t.keys().next().value;t.delete(a)}t.set(o,s)}function r(o){if(!t.has(o))return;let a=t.get(o);return t.delete(o),t.set(o,a),a}function i(){t.clear()}return{set:n,get:r,clear:i}}function hr(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Nn(e){return typeof e=="string"}function ga(e){return typeof e=="number"}function ba(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 jt(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 va(e,t){if(t==="break-all")return{words:De(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:De(e,"word"),requiredBreaks:[]};let n=new la.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 ya=e=>e.replaceAll(/([A-Z])/g,(t,n)=>`-${n.toLowerCase()}`);function Wn(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 Ra(e){return Promise.resolve().then(()=>(Ni(),Mi)).then(t=>t.init(e))}function Vt(){return Promise.resolve().then(()=>(Ni(),Mi)).then(e=>e.getYoga())}var Dc="image/avif",Fc="image/webp",Bn="image/apng",$n="image/png",qn="image/jpeg",Un="image/gif",Wi="image/svg+xml";function Ma(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 Na(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function Wa(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var xt=ma(100),Mr=new Map,Bc=[$n,Bn,qn,Un,Wi];function $c(e){let t="",n=new Uint8Array(e);for(let r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return btoa(t)}function qc(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 Ca(e,t){let n=t.match(/<svg[^>]*>/)[0],r=n.match(/viewBox=['"](.+)['"]/),i=r?hr(r[1]):null,o=n.match(/width=['"](\d*\.\d+|\d+)['"]/),s=n.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!i&&(!o||!s))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let a=i?[i[2],i[3]]:[+o[1],+s[1]],u=a[0]/a[1];return o&&s?[+o[1],+s[1]]:o?[+o[1],+o[1]/u]:s?[+s[1]*u,+s[1]]:[a[0],a[1]]}function La(e){let t,n=Uc(new Uint8Array(e));switch(n){case $n:case Bn:t=Wa(e);break;case Un:t=Na(e);break;case qn:t=Ma(e);break}if(!Bc.includes(n))throw new Error(`Unsupported image type: ${n||"unknown"}`);return[`data:${n};base64,${$c(e)}`,t]}async function vr(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[i,o]=La(e);return[i,...o]}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 i;try{i=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:o,encodingType:s,dataString:a}=i;if(o===Wi){let u=s==="base64"?atob(a):decodeURIComponent(a.replace(/ /g,"%20")),f=s==="base64"?e:`data:image/svg+xml;base64,${btoa(u)}`,l=Ca(e,u);return xt.set(e,[f,...l]),[f,...l]}else if(s==="base64"){let u,f=qc(a);switch(o){case $n:case Bn:u=Wa(f);break;case Un:u=Na(f);break;case qn:u=Ma(f);break}return xt.set(e,[e,...u]),[e,...u]}else return console.warn("Image data URI resolved without size:"+e),xt.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Mr.has(e))return Mr.get(e);let t=xt.get(e);if(t)return t;let n=e,r=fetch(n).then(i=>{let o=i.headers.get("content-type");return o==="image/svg+xml"||o==="application/svg+xml"?i.text():i.arrayBuffer()}).then(i=>{if(typeof i=="string")try{let a=`data:image/svg+xml;base64,${btoa(i)}`,u=Ca(n,i);return[a,...u]}catch(a){throw new Error(`Failed to parse SVG image: ${a.message}`)}let[o,s]=La(i);return[o,...s]}).then(i=>(xt.set(n,i),i)).catch(i=>(console.error(`Can't load image ${n}: `+i.message),xt.set(n,[]),[]));return Mr.set(n,r),r}function Uc(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)?zc(e)?Bn:$n:[71,73,70,56].every((t,n)=>e[n]===t)?Un:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,n)=>!t||e[n]===t)?Fc:[60,63,120,109,108].every((t,n)=>e[n]===t)?Wi:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,n)=>!t||e[n]===t)?Dc:null}function zc(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 Di={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"},Gc=/[\r\n%#()<>?[\\\]^`{|}"']/g;function Fi(e,t){if(!e)return"";if(Array.isArray(e))return e.map(f=>Fi(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"&&n==="image"?` ${Di[f]||f}="${xt.get(l)[0]}"`:` ${Di[f]||f}="${l}"`)).join("")}`,u=i?` style="${Object.entries(i).map(([f,l])=>`${ya(f)}:${l}`).join(";")}"`:"";return`<${n}${a}${u}>${Fi(r,s)}</${n}>`}async function Da(e){let t=new Set,n=r=>{if(r&&pr(r)){if(Array.isArray(r)){r.forEach(i=>n(i));return}else typeof r=="object"&&(r.type==="image"?t.has(r.props.href)||t.add(r.props.href):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=>vr(r)))}async function Fa(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=hr(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(([g,b])=>(typeof b=="string"&&b.toLowerCase()==="currentcolor"&&(b=l),` ${Di[g]||g}="${b}"`)).join("")}>${Fi(u,l)}</svg>`.replace(Gc,encodeURIComponent)}`}var rt="flex",Ba={p:{display:rt,marginTop:"1em",marginBottom:"1em"},div:{display:rt},blockquote:{display:rt,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:rt,textAlign:"center"},hr:{display:rt,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:rt,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:rt,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:rt,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:rt,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:rt,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:rt,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:rt,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var jc=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","textDecorationSkipInk","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath","_inheritedBackgroundClipTextHasBackground"]);function Bi(e){let t={};for(let n in e)jc.has(n)&&(t[n]=e[n]);return t}var mt=require("css-to-react-native"),Va=require("css-background-parser"),Ha=require("css-box-shadow"),Ya=Mt(require("parse-css-color"),1);var $a=Mt(require("postcss-value-parser"),1);function Vc(e,t){try{let n=new Nt(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 $i(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=Vc(e,t);return r.absolute?{[n?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[n?"xRelative":"yRelative"]:r.relative}:{}}}}function qi(e,t){if(typeof e=="number")return{xAbsolute:e};let n;try{n=(0,$a.default)(e).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return n.length===1?$i(n[0],t,!0):n.length===2?((n[0]==="top"||n[0]==="bottom"||n[1]==="left"||n[1]==="right")&&n.reverse(),{...$i(n[0],t,!0),...$i(n[1],t,!1)}):{}}var qa=require("css-to-react-native");function Nr(e,t){let n=(0,qa.getPropertyName)(`mask-${t}`);return e[n]||e[`WebkitM${n.substring(1)}`]}function Ua(e){let t=e.maskImage||e.WebkitMaskImage,n={position:Nr(e,"position")||"0% 0%",size:Nr(e,"size")||"100% 100%",repeat:Nr(e,"repeat")||"repeat",origin:Nr(e,"origin")||"border-box",clip:Nr(e,"origin")||"border-box"};return Wn(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...n}))}var Hc=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),Yc=new Set(["lineHeight"]);function Xc(e,t,n,r){return e==="textDecoration"&&!n.includes(t.textDecorationColor)&&(t.textDecorationColor=r),t}function tr(e,t){let n=Number(t);return isNaN(n)?t:Hc.has(e)?Yc.has(e)?n:String(t):n+"px"}function Qc(e,t,n){if(e==="zIndex")return console.warn("`z-index` is currently not supported."),{[e]:t};if(e==="lineHeight")return{lineHeight:tr(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,mt.getStylesForProperty)(e,r,!0),s=(0,mt.getStylesForProperty)(e,i,!0);for(let a in o)s[a]=tr(e,o[a])+" "+tr(e,s[a]);return s}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let r=(0,mt.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:tr(e+"Width",r.borderWidth),Style:Fe(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,Ha.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,mt.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,mt.getStylesForProperty)("backgroundImage",t,!0):(0,mt.getStylesForProperty)("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let r={},i=Wn(t);for(let o of i){let s=(0,mt.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:tr(e,r[0]),WebkitTextStrokeColor:tr(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 za(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var Ga=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function Xa(e){if(typeof e=="string"&&Ga.test(e.trim()))return e.trim().replace(Ga,(t,n,r,i,o)=>`rgba(${n}, ${r}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=Xa(e[t]);return e}return e}function zn(e,t){let n={};if(e){let i=Jc(e.color,t.color);n.color=i;for(let o in e){if(o.startsWith("_")){n[o]=e[o];continue}if(o==="color")continue;let s=(0,mt.getPropertyName)(o),a=ed(e[o],i);try{let u=Qc(s,a,i)||Xc(s,(0,mt.getStylesForProperty)(s,tr(s,a),!0),a,i);Object.assign(n,u)}catch(u){throw new Error(u.message+(u.message.includes(a)?`
|
|
5
|
+
`+za(s):`
|
|
6
|
+
in CSS rule \`${s}: ${a}\`.${za(s)}`))}}}if(n.backgroundImage){let{backgrounds:i}=(0,Va.parseElementStyle)(n);n.backgroundImage=i}(n.maskImage||n.WebkitMaskImage)&&(n.maskImage=Ua(n));let r=Kc(n.fontSize,t.fontSize);typeof n.fontSize<"u"&&(n.fontSize=r),n.transformOrigin&&(n.transformOrigin=qi(n.transformOrigin,r));for(let i in n){let o=n[i];if(i==="lineHeight")typeof o=="string"&&o!=="normal"&&(o=n[i]=X(o,r,r,t,!0)/r);else{if(typeof o=="string"){let s=X(o,r,r,t);typeof s<"u"&&(n[i]=s),o=n[i]}if(typeof o=="string"||typeof o=="object"){let s=Xa(o);s&&(n[i]=s),o=n[i]}}if(i==="opacity"&&typeof o=="number"&&(n.opacity=o*t.opacity),i==="transform"){let s=o;for(let a of s){let u=Object.keys(a)[0],f=a[u],l=typeof f=="string"?X(f,r,r,t)??f:f;a[u]=l}}if(i==="textShadowRadius"){let s=o;n.textShadowRadius=s.map(a=>X(a,r,0,t,!1))}if(i==="textShadowOffset"){let s=o;n.textShadowOffset=s.map(({height:a,width:u})=>({height:X(a,r,0,t,!1),width:X(u,r,0,t,!1)}))}}return n}function Kc(e,t){if(typeof e=="number")return e;try{let n=new Nt(e);switch(n.unit){case"em":return n.value*t;case"rem":return n.value*16}}catch{return t}}function ja(e){if(e.startsWith("hsl")){let t=(0,Ya.default)(e),[n,r,i]=t.values;return`hsl(${[n,`${r}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function Jc(e,t){return e&&e.toLowerCase()!=="currentcolor"?ja(e):ja(t)}function Zc(e,t){return e.replace(/currentcolor/gi,t)}function ed(e,t){return Nn(e)&&(e=Zc(e,t)),e}async function Ui(e,t,n,r,i){let o=await Vt(),s={...n,...zn(Ba[t],n),...zn(r,n)};if(t==="img"){let[a,u,f]=await vr(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),g=s.width||i.width,b=s.height||i.height,y=typeof g=="number"&&typeof b=="number";y&&(g-=p,b-=h),g===void 0&&b===void 0?(g="100%",e.setAspectRatio(1/l)):g===void 0?typeof b=="number"?g=b/l:e.setAspectRatio(1/l):b===void 0&&(typeof g=="number"?b=g*l:e.setAspectRatio(1/l)),s.width=y?g+p:g,s.height=y?b+h:b,s.__src=a}if(t==="svg"){let a=i.viewBox||i.viewbox,u=hr(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(Fe(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(Fe(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(Fe(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(Fe(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(Fe(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(Fe(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(Fe(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(jt(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(Fe(s.overflow,{visible:o.OVERFLOW_VISIBLE,hidden:o.OVERFLOW_HIDDEN},o.OVERFLOW_VISIBLE,"overflow")),e.setMargin(o.EDGE_TOP,jt(s.marginTop||0)),e.setMargin(o.EDGE_BOTTOM,jt(s.marginBottom||0)),e.setMargin(o.EDGE_LEFT,jt(s.marginLeft||0)),e.setMargin(o.EDGE_RIGHT,jt(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(Fe(s.boxSizing,{"border-box":o.BOX_SIZING_BORDER_BOX,"content-box":o.BOX_SIZING_CONTENT_BOX},o.BOX_SIZING_BORDER_BOX,"boxSizing")),e.setPositionType(Fe(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(jt(s.height,"height")):e.setHeightAuto(),typeof s.width<"u"?e.setWidth(jt(s.width,"width")):e.setWidthAuto(),[s,Bi(s)]}var zi=Mt(require("escape-html"),1);var Qa=[1,0,0,1,0,0];function td(e,t,n){let r=[...Qa];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=[...Qa];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=Cr(u,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function Wr({left:e,top:t,width:n,height:r},i,o,s){let a;i.__resolved||td(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=Cr([1,0,0,1,p,h],Cr(u,[1,0,0,1,-p,-h])),u.__parent&&(a=Cr(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(f=>f.toFixed(2)).join(",")})`}function Ka({left:e,top:t,width:n,height:r,isInheritingTransform:i},o){let s="",a=1;return o.transform&&(s=Wr({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 Gi({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:g},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 S={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",{...S,opacity:u!==1?u:void 0})+(g||"")+(n?"</g>":"")+y,""]}let k={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",{...k,fill:b.color,opacity:u!==1?u:void 0},(0,zi.default)(t))+(g||"")+(n?"</g>":"")+y,h?M("text",k,(0,zi.default)(t)):""]}function rd(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 Gn=1.1;function Ja({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 g=r.shadowRadius[h]*r.shadowRadius[h]/4;if(u=Math.min(r.shadowOffset[h].width-g,u),f=Math.max(r.shadowOffset[h].width+g+t,f),l=Math.min(r.shadowOffset[h].height-g,l),p=Math.max(r.shadowOffset[h].height+g+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*Gn).toFixed(2)+"%",y:(l/n*100*Gn).toFixed(2)+"%",width:((f-u)/t*100*Gn).toFixed(2)+"%",height:((p-l)/n*100*Gn).toFixed(2)+"%"},s+(a?M("feMerge",{},a):""))}function Za({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),g=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),k=`satori_s-${i}-${u}`,S=`satori_ms-${i}-${u}`,I=l.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${l.spreadRadius*2}"`):n;f+=M("mask",{id:S,maskUnits:"userSpaceOnUse"},M("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:l.inset?"#000":"#fff"})+I.replace('fill="#fff"',l.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let w=I.replace(/d="([^"]+)"/,(T,O)=>'d="'+rd(O,l.offsetX,l.offsetY)+'"').replace(/x="([^"]+)"/,(T,O)=>'x="'+(parseFloat(O)+l.offsetX)+'"').replace(/y="([^"]+)"/,(T,O)=>'y="'+(parseFloat(O)+l.offsetY)+'"');l.spreadRadius&&l.spreadRadius<0&&(f+=M("mask",{id:S+"-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(#${S}-neg)`},w)),f+=M("defs",{},M("filter",{id:k,x:`${h/e*100}%`,y:`${b/t*100}%`,width:`${(g-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(#${S})`,filter:`url(#${k})`,opacity:r},w),l.inset?a+=f:s+=f}return[s,a]}function nd(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),g=Math.min(t,p.x2+a);if(h>=g)continue;if(u.length===0){u.push([h,g]);continue}let b=u[u.length-1];h<=b[1]?b[1]=Math.max(b[1],g):u.push([h,g])}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 ji({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:g}=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,k=f==="dashed"?`${b*1.2} ${b*2}`:f==="dotted"?`0 ${b*2}`:void 0,S=l==="underline"&&(p||"auto")!=="none"&&(s==null?void 0:s.length),I=n+r,w=S?nd(t,t+e,s,y,b,I):[[t,t+e]],T=f==="double"?w.map(([O,C])=>M("line",{x1:O,y1:y+b+1,x2:C,y2:y+b+1,stroke:u||g,"stroke-width":b,"stroke-dasharray":k,"stroke-linecap":f==="dotted"?"round":"square",transform:o})).join(""):"";return(i?`<g clip-path="url(#${i})">`:"")+w.map(([O,C])=>M("line",{x1:O,y1:y,x2:C,y2:y,stroke:u||g,"stroke-width":b,"stroke-dasharray":k,"stroke-linecap":f==="dotted"?"round":"square",transform:o})).join("")+T+(i?"</g>":"")}function Vi(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var rr=Vi("U+0020"),Hi=Vi("U+0009"),yr=Vi("U+2026");function eu(e,t,n){let{fontSize:r,letterSpacing:i}=n,o=new Map;function s(f){if(o.has(f))return o.get(f);let l=e.measure(f,{fontSize:r,letterSpacing:i});return 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(De(f,"grapheme"))}return{measureGrapheme:s,measureGraphemeArray:a,measureText:u}}function tu(e,t,n){let{textTransform:r,whiteSpace:i,wordBreak:o}=t;e=id(e,r,n);let{content:s,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=ad(e,i),{words:f,requiredBreaks:l,allowBreakWord:p}=sd(s,o),[h,g]=od(t,u);return{words:f,requiredBreaks:l,allowSoftWrap:u,allowBreakWord:p,processedContent:s,shouldCollapseTabsAndSpaces:a,lineLimit:h,blockEllipsis:g}}function id(e,t,n){return t==="uppercase"?e=e.toLocaleUpperCase(n):t==="lowercase"?e=e.toLocaleLowerCase(n):t==="capitalize"&&(e=De(e,"word",n).map(r=>De(r,"grapheme",n).map((i,o)=>o===0?i.toLocaleUpperCase(n):i).join("")).join("")),e}function od(e,t){let{textOverflow:n,lineClamp:r,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:s,display:a}=e;if(a==="block"&&r){let[u,f=yr]=ud(r);if(u)return[u,f]}return n==="ellipsis"&&a==="-webkit-box"&&o==="vertical"&&ga(i)&&i>0?[i,yr]:n==="ellipsis"&&s==="hidden"&&!t?[1,yr]:[1/0]}function sd(e,t){let n=["break-all","break-word"].includes(t),{words:r,requiredBreaks:i}=va(e,t);return{words:r,requiredBreaks:i,allowBreakWord:n}}function ad(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,rr)),r&&(e=e.replace(/([ ]|\t)+/g,rr).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:r,allowSoftWrap:i}}function ud(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 Xi=Mt(require("parse-css-color"),1),ld=new Set([Hi]);function fd(e){return ld.has(e)}function Yi(e){if(e==="transparent")return!0;let t=(0,Xi.default)(e);return t?t.alpha===0:!1}function ru(e){if(!e)return!1;let t=(0,Xi.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*Qi(e,t){let n=await Vt(),{parentStyle:r,inheritedStyle:i,parent:o,font:s,id:a,isInheritingTransform:u,debug:f,embedFont:l,graphemeImages:p,locale:h,canLoadAdditionalAssets:g}=t,{textAlign:b,lineHeight:y,textWrap:k,fontSize:S,filter:I,tabSize:w=8,letterSpacing:T,_inheritedBackgroundClipTextPath:O,_inheritedBackgroundClipTextHasBackground:C,flexShrink:D}=r,{words:q,requiredBreaks:Y,allowSoftWrap:ue,allowBreakWord:_e,processedContent:ce,shouldCollapseTabsAndSpaces:oe,lineLimit:ve,blockEllipsis:de}=tu(e,r,h),le=cd(n,b);o.insertChild(le,o.getChildCount()),ba(D)&&o.setFlexShrink(1);let ee=s.getEngine(S,y,r,h),Le=g?De(ce,"grapheme").filter(H=>!fd(H)&&!ee.has(H)):[];yield Le.map(H=>({word:H,locale:h})),Le.length&&(ee=s.getEngine(S,y,r,h));function Oe(H){return!!(p&&p[H])}let{measureGrapheme:Te,measureGraphemeArray:Tt,measureText:Me}=eu(ee,Oe,{fontSize:S,letterSpacing:T}),Je=Nn(w)?X(w,S,1,r):Te(rr)*w,Pe=(H,j)=>{if(H.length===0)return{originWidth:0,endingSpacesWidth:0,text:H};let{index:se,tabCount:Q}=dd(H),ge=0;if(Q>0){let pe=H.slice(0,se),ie=H.slice(se+Q),te=Me(pe),Ue=te+j;ge=(Je===0?te:(Math.floor(Ue/Je)+Q)*Je)+Me(ie)}else ge=Me(H);let J=H.trimEnd()===H?ge:Me(H.trimEnd());return{originWidth:ge,endingSpacesWidth:ge-J,text:H}},G=[],Ie=[],Re=[],V=[],ut=[];function kt(H){let j=0,se=0,Q=-1,ge=0,J=0,pe=0,ie=0;G=[],Re=[0],V=[],ut=[];let te=0,Ue=0;for(;te<q.length&&j<ve;){let K=q[te],yt=Y[te],Ne=0,{originWidth:Ye,endingSpacesWidth:et,text:cr}=Pe(K,J);K=cr,Ne=Ye;let we=et;yt&&pe===0&&(pe=ee.height(K));let Gt=b==="justify",be=te&&J+Ne>H+we&&ue;if(_e&&Ne>H&&(!J||be||yt)){let We=De(K,"grapheme");q.splice(te,1,...We),J>0&&(G.push(J-Ue),Ie.push(ie),j++,ge+=pe,J=0,pe=0,ie=0,Re.push(1),Q=-1),Ue=we;continue}if(yt||be)oe&&K===rr&&(Ne=0),G.push(J-Ue),Ie.push(ie),j++,ge+=pe,J=Ne,pe=Ne?Math.round(ee.height(K)):0,ie=Ne?Math.round(ee.baseline(K)):0,Re.push(1),Q=-1,yt||(se=Math.max(se,H));else{J+=Ne;let We=Math.round(ee.height(K));We>pe&&(pe=We,ie=Math.round(ee.baseline(K))),Gt&&Re[Re.length-1]++}Gt&&Q++,se=Math.max(se,J);let Xe=J-Ne;if(Ne===0)ut.push({y:ge,x:Xe,width:0,line:j,lineIndex:Q,isImage:!1});else{let We=De(K,"word");for(let Qe=0;Qe<We.length;Qe++){let Rt=We[Qe],ze=0,tt=!1;Oe(Rt)?(ze=S,tt=!0):ze=Te(Rt),V.push(Rt),ut.push({y:ge,x:Xe,width:ze,line:j,lineIndex:Q,isImage:tt}),Xe+=ze}}te++,Ue=we}return J&&(j<ve&&(ge+=pe),j++,G.push(J),Ie.push(ie)),{width:se,height:ge}}let Ut={width:0,height:0};le.setMeasureFunc(H=>{let{width:j,height:se}=kt(H);if(k==="balance"){let ge=j/2,J=j,pe=j;for(;ge+1<J;){pe=(ge+J)/2;let{height:te}=kt(pe);te>se?ge=pe:J=pe}kt(J);let ie=Math.ceil(J);return Ut={width:ie,height:se},{width:ie,height:se}}if(k==="pretty"&&G[G.length-1]<j/3){let pe=j*.9,ie=kt(pe);if(ie.height<=se*1.3)return Ut={width:j,height:ie.height},{width:j,height:ie.height}}let Q=Math.ceil(j);return Ut={width:Q,height:se},{width:Q,height:se}});let[kn,Ee]=yield,bt="",zt="",Be=i._inheritedClipPathId,Ze=i._inheritedMaskId,{left:lr,top:vt,width:fr,height:En}=le.getComputedLayout(),Et=o.getComputedWidth()-o.getComputedPadding(n.EDGE_LEFT)-o.getComputedPadding(n.EDGE_RIGHT)-o.getComputedBorder(n.EDGE_LEFT)-o.getComputedBorder(n.EDGE_RIGHT),lt=kn+lr,ft=Ee+vt,{matrix:He,opacity:Jt}=Ka({left:lr,top:vt,width:fr,height:En,isInheritingTransform:u},r),ct="";if(r.textShadowOffset){let{textShadowColor:H,textShadowOffset:j,textShadowRadius:se}=r;ct=Ja({width:Ut.width,height:Ut.height,id:a},{shadowColor:H,shadowOffset:j,shadowRadius:se},Yi(r.color)||C&&ru(r.color)),ct=M("defs",{},ct)}let Ot="",Pt="",Zt="",dt=-1,$e={},At={},qe=null,It=0;for(let H=0;H<V.length;H++){let j=ut[H],se=ut[H+1];if(!j)continue;let Q=V[H],ge=null,J=!1,pe=p?p[Q]:null,ie=j.y,te=j.x,Ue=j.width,K=j.line,yt=r.textDecorationLine==="underline"&&(r.textDecorationSkipInk||"auto")!=="none";if(K===dt)continue;let Ne=!1;if(G.length>1){let be=fr-G[K];if(b==="right"||b==="end")te+=be;else if(b==="center")te+=be/2;else if(b==="justify"&&K<G.length-1){let Se=Re[K],Xe=Se>1?be/(Se-1):0;te+=Xe*j.lineIndex,Ne=!0}te=Math.round(te)}let Ye=Ie[K],et=ee.baseline(Q),cr=ee.height(Q),we=Ye-et,Gt=be=>!yt||r.textDecorationLine!=="underline"?void 0:{underlineY:ft+be+we+et+et*.1,strokeWidth:Math.max(1,S*.1)};if($e[K]||($e[K]={left:te,top:ft+ie+we,ascender:et,width:Ne?fr:G[K]}),ve!==1/0){let Rt=function(ze,tt){let Or=De(tt,"grapheme",h),dr="",On=0;for(let Pn of Or){let An=ze+Tt([dr+Pn]);if(dr&&An+Se>Et)break;dr+=Pn,On=An}return{subset:dr,resolvedWidth:On}},be=de,Se=Te(de);Se>Et&&(be=yr,Se=Te(be));let Xe=Te(rr),We=K<G.length-1;if(K+1===ve&&(We||G[K]>Et)){if(te+Ue+Se+Xe>Et){let{subset:ze,resolvedWidth:tt}=Rt(te,Q);Q=ze+be,dt=K,$e[K].width=Math.max(0,tt-$e[K].left),J=!0}else if(se&&se.line!==K)if(b==="center"){let{subset:ze,resolvedWidth:tt}=Rt(te,Q);Q=ze+be,dt=K,$e[K].width=Math.max(0,tt-$e[K].left),J=!0}else{let ze=V[H+1],{subset:tt,resolvedWidth:Or}=Rt(Ue+te,ze);Q=Q+tt+be,dt=K,$e[K].width=Math.max(0,Or-$e[K].left),J=!0}}}if(pe)ie+=0;else if(l){if(!Q.includes(Hi)&&!ha.includes(Q)&&V[H+1]&&se&&!se.isImage&&ie===se.y&&!J){qe===null&&(It=te),qe=qe===null?Q:qe+Q;continue}let be=qe===null?Q:qe+Q,Se=qe===null?te:It,Xe=j.width+te-Se,We=Gt(ie),Qe=ee.getSVG(be.replace(/(\t)+/g,""),{fontSize:S,left:lt+Se,top:ft+ie+et+we,letterSpacing:T},We);ge=Qe.path,yt&&Qe.boxes&&Qe.boxes.length&&(At[K]||(At[K]=[])).push(...Qe.boxes),qe=null,f&&(Zt+=M("rect",{x:lt+Se,y:ft+ie+we,width:Xe,height:cr,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:He||void 0,"clip-path":Be?`url(#${Be})`:void 0})+M("line",{x1:lt+te,x2:lt+te+j.width,y1:ft+ie+we+et,y2:ft+ie+we+et,stroke:"#14c000","stroke-width":1,transform:He||void 0,"clip-path":Be?`url(#${Be})`:void 0}))}else if(ie+=et+we,yt&&!pe){let be=Gt(ie),Se=ee.getSVG(Q.replace(/(\t)+/g,""),{fontSize:S,left:lt+te,top:ft+ie,letterSpacing:T},be);Se.boxes&&Se.boxes.length&&(At[K]||(At[K]=[])).push(...Se.boxes)}if(ge!==null)Pt+=ge+" ";else{let[be,Se]=Gi({content:Q,filter:ct,id:a,left:lt+te,top:ft+ie,width:Ue,height:cr,matrix:He,opacity:Jt,image:pe,clipPathId:Be,debug:f,shape:!!O},r);bt+=be,zt+=Se}if(J)break}if(r.textDecorationLine&&(Ot=Object.entries($e).map(([H,j])=>{if(!j)return"";let se=At[H]||[];return ji({left:lt+j.left,top:j.top,width:j.width,ascender:j.ascender,clipPathId:Be,matrix:He,glyphBoxes:se},r)}).join("")),Pt){let H=(!Yi(r.color)||ct)&&Jt!==0?`<g ${Ze?`mask="url(#${Ze})"`:""} ${Be?`clip-path="url(#${Be})"`:""}>`+M("path",{fill:ct&&(Yi(r.color)||C&&ru(r.color))?"black":r.color,d:Pt,transform:He||void 0,opacity:Jt!==1?Jt:void 0,style:I?`filter:${I}`: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>":"";O&&(zt=M("path",{d:Pt,transform:He||void 0})),bt+=(ct?ct+M("g",{filter:`url(#satori_s-${a})`},H+Ot):H+Ot)+Zt}else Ot&&(bt+=ct?M("g",{filter:`url(#satori_s-${a})`},Ot):Ot);return zt&&(r._inheritedBackgroundClipTextPath.value+=zt),bt}function cd(e,t){let n=e.Node.create();return n.setAlignItems(e.ALIGN_BASELINE),n.setJustifyContent(Fe(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 dd(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}var iu=require("css-gradient-parser");var nu=Mt(require("parse-css-color"),1);function jn(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 g=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:g,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,nu.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 ou({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,f){let l=(0,iu.parseLinearGradient)(o),[p,h]=s,g=o.startsWith("repeating"),b,y,k;if(l.orientation.type==="directional")b=hd(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,...C}=md(ki(`${l.orientation.value.value}${l.orientation.value.unit}`)/180*Math.PI,p,h);y=O,b=C}k=g?gd(l.stops,y,b,u):b;let S=jn(g?pd(l.stops,y):y,l.stops,u,g,f),I=`satori_bi${e}`,w=`satori_pattern_${e}`,T=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:I,...k,spreadMethod:g?"repeat":"pad"},S.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(#${I})`}));return[w,T]}function pd(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 hd(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 md(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=g=>{if(g===0){i=0,o=n,s=0,a=0,u=n;return}else if(g===Math.PI/2){i=0,o=0,s=t,a=0,u=t;return}if(g>0&&g<Math.PI/2){i=(r*t/2/Math.tan(g)-n/2)/(Math.tan(g)+r/Math.tan(g)),o=Math.tan(g)*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(g)-n/2)/(Math.tan(g)+1/Math.tan(g)),p=Math.tan(g)*l+n,u=2*Math.sqrt(Math.pow(t/2-l,2)+Math.pow(n/2-p,2));return}else if(g>Math.PI/2&&g<Math.PI){i=(n/2+r*t/2/Math.tan(g))/(Math.tan(g)+r/Math.tan(g)),o=Math.tan(g)*i,s=Math.abs(t/2-i)+t/2,a=n/2+Math.abs(o-n/2),l=(t/2/Math.tan(g)+n/2)/(Math.tan(g)+1/Math.tan(g)),p=Math.tan(g)*l,u=2*Math.sqrt(Math.pow(t/2-l,2)+Math.pow(n/2-p,2));return}else g>=Math.PI&&(h(g-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 gd(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,g=(a-s)*f+s;return{x1:l,y1:p,x2:h,y2:g}}var au=require("css-gradient-parser");function uu({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,f){var oe;let{shape:l,stops:p,position:h,size:g,repeating:b}=(0,au.parseRadialGradient)(o),[y,k]=s,S=y/2,I=k/2,w=vd(h.x,h.y,y,k,u.fontSize,u);S=w.x,I=w.y;let T=bd(t,p,b,u),O=jn(T,p,u,b,f),C=`satori_radial_${e}`,D=`satori_pattern_${e}`,q=`satori_mask_${e}`,Y=xd(l,g,u.fontSize,{x:S,y:I},[y,k],u,b),ue=yd(l,u.fontSize,p,[y,k],u,b,Y),_e=M("pattern",{id:D,x:a[0]/t,y:a[1]/n,width:r?y/t:"1",height:i?k/n:"1",patternUnits:"objectBoundingBox"},M("radialGradient",{id:C,...ue},O.map(ve=>M("stop",{offset:ve.offset||0,"stop-color":ve.color})).join(""))+M("mask",{id:q},M("rect",{x:0,y:0,width:y,height:k,fill:"#fff"}))+M("rect",{x:0,y:0,width:y,height:k,fill:((oe=O.at(-1))==null?void 0:oe.color)||"transparent"})+M(l,{cx:S,cy:I,width:y,height:k,...Y,fill:`url(#${C})`,mask:`url(#${q})`}));return[D,_e]}function bd(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 vd(e,t,n,r,i,o){let s={x:n/2,y:r/2};return e.type==="keyword"?Object.assign(s,su(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,su(t.value,n,r,"y")):s.y=X(`${t.value.value}${t.value.unit}`,i,r,o,!0)??r/2,s}function su(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 yd(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 xd(e,t,n,r,i,o,s){let[a,u]=i,{x:f,y:l}=r,p={},h=0,g=0;if(wd(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))}),Vn(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)),g=Math.max(Math.abs(u-l),Math.abs(l));break;case"closest-corner":h=Math.min(Math.abs(a-f),Math.abs(f)),g=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))),Vn(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))),Vn(p,a,u,f,l,s,e),p}return e==="circle"?p.r=Math.sqrt(h*h+g*g):Object.assign(p,lu(h,g)),Vn(p,a,u,f,l,s,e),p}function Vn(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}=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-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 lu(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 wd(e){return!e.some(t=>t.type==="keyword")}var Ji=Mt(require("parse-css-color"),1);function Sd(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function Ki(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(o=>{try{let s=new Nt(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)=>Sd(o,[t,n][s]))}async function Dr({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",g=Ki(s,{x:t,y:n,defaultX:t,defaultY:n}),b=Ki(a,{x:t,y:n,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return ou({id:e,width:t,height:n,repeatX:p,repeatY:h},o,g,b,f,l);if(o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("))return uu({id:e,width:t,height:n,repeatX:p,repeatY:h},o,g,b,f,l);if(o.startsWith("url(")){let y=Ki(s,{x:t,y:n,defaultX:0,defaultY:0}),[k,S,I]=await vr(o.slice(4,-1)),w=l==="mask"?S||y[0]:y[0]||S,T=l==="mask"?I||y[1]:y[1]||I;return[`satori_bi${e}`,M("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:b[0]+r,y:b[1]+i,width:p?w:"100%",height:h?T:"100%"},M("image",{x:0,y:0,width:w,height:T,preserveAspectRatio:"none",href:k}))]}if((0,Ji.default)(o)){let y=(0,Ji.default)(o),[k,S,I,w]=y.values,O=`rgba(${k},${S},${I},${w!==void 0?w: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:O}))]}throw new Error(`Invalid background image: "${o}"`)}function _d([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 Hn(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 Yn(e){e[0]=e[1]=Math.min(e[0],e[1])}function Xn(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 Qn=e=>e&&e[0]!==0&&e[1]!==0;function fu({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 Ht({left:e,top:t,width:n,height:r},i,o){let{borderTopLeftRadius:s,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:f,fontSize:l}=i,p,h,g,b;if([p,s]=Xn(s,n,r,l,i),[h,a]=Xn(a,n,r,l,i),[g,u]=Xn(u,n,r,l,i),[b,f]=Xn(f,n,r,l,i),!o&&!Qn(s)&&!Qn(a)&&!Qn(u)&&!Qn(f))return"";s||=[0,0],a||=[0,0],u||=[0,0],f||=[0,0],[s[0],a[0]]=Hn(s[0],a[0],n),[u[0],f[0]]=Hn(u[0],f[0],n),[s[1],u[1]]=Hn(s[1],u[1],r),[a[1],f[1]]=Hn(a[1],f[1],r),p&&Yn(s),h&&Yn(a),g&&Yn(u),b&&Yn(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 k=`h${n-s[0]-a[0]} a${y[0][0]} 0 0 1 ${y[0][1]}`,S=`v${r-a[1]-f[1]} a${y[1][0]} 0 0 1 ${y[1][1]}`,I=`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(ce){let oe=_d([s,a,f,u][ce]);return ce===0?[[e+s[0]-oe,t+s[1]-oe],[e+s[0],t]]:ce===1?[[e+n-a[0]+oe,t+a[1]-oe],[e+n,t+a[1]]]:ce===2?[[e+n-f[0]+oe,t+r-f[1]+oe],[e+n-f[0],t+r]]:[[e+u[0]-oe,t+r-u[1]+oe],[e,t+r-u[1]]]},T=o.indexOf(!1);if(!o.includes(!0))throw new Error("Invalid `partialSides`.");if(T===-1)T=0;else for(;!o[T];)T=(T+1)%4;let C="",D=O(T),q=`M${D[0]} A${y[(T+3)%4][0]} 0 0 1 ${D[1]}`,Y=0;for(;Y<4&&o[(T+Y)%4];Y++)C+=q+" ",q=[k,S,I,w][(T+Y)%4];let ue=(T+Y)%4;C+=q.split(" ")[0];let _e=O(ue);return C+=` A${y[(ue+3)%4][0]} 0 0 1 ${_e[0]}`,C}return`M${e+s[0]},${t} ${k} ${S} ${I} ${w}`}function cu(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function du({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 Fr({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(g=>a[g+"Width"]))return"";let f="",l=0;for(;l>0&&cu(u[l],u[(l+3)%4],a);)l=(l+3)%4;let p=[!1,!1,!1,!1],h=[];for(let g=0;g<4;g++){let b=(l+g)%4,y=(l+g+1)%4,k=u[b],S=u[y];if(p[b]=!0,h=[a[k+"Width"],a[k+"Style"],a[k+"Color"],k],!cu(k,S,a)){let I=(h[0]||0)+(o&&!s&&a[k.replace("border","padding")]||0);I&&(f+=M("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":h[2],"stroke-width":I*2,"stroke-dasharray":!o&&h[1]==="dashed"?I*2+" "+I:void 0,d:Ht({left:e,top:t,width:n,height:r},a,p)})),p=[!1,!1,!1,!1]}}if(p.some(Boolean)){let g=(h[0]||0)+(o&&!s&&a[h[3].replace("border","padding")]||0);g&&(f+=M("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":h[2],"stroke-width":g*2,"stroke-dasharray":!o&&h[1]==="dashed"?g*2+" "+g:void 0,d:Ht({left:e,top:t,width:n,height:r},a,p)}))}return f}function Zi({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})+Fr({left:t,top:n,width:r,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:s},a))}var eo=require("css-to-react-native"),Br={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(Br.circle);if(!l)return null;let[,p]=l,[h,g=""]=p.split("at").map(k=>k.trim()),{x:b,y}=hu(g,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(Br.ellipse);if(!l)return null;let[,p]=l,[h,g=""]=p.split("at").map(I=>I.trim()),[b,y]=h.split(" "),{x:k,y:S}=hu(g,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(k,r.fontSize,e,r,!0),cy:X(S,r.fontSize,t,r,!0)}}function s(f){let l=f.match(Br.path);if(!l)return null;let[p,h]=pu(l[1]);return{type:"path",d:h,"fill-rule":p}}function a(f){let l=f.match(Br.polygon);if(!l)return null;let[p,h]=pu(l[1]);return{type:"polygon","fill-rule":p,points:h.split(",").map(g=>g.split(" ").map((b,y)=>X(b,r.fontSize,y===0?e:t,r,!0)).join(" ")).join(",")}}function u(f){let l=f.match(Br.inset);if(!l)return null;let[p,h]=(l[1].includes("round")?l[1]:`${l[1].trim()} round 0`).split("round"),g=(0,eo.getStylesForProperty)("borderRadius",h,!0),b=Object.values(g).map(T=>String(T)).map((T,O)=>X(T,r.fontSize,O===0||O===2?t:e,r,!0)||0),y=Object.values((0,eo.getStylesForProperty)("margin",p,!0)).map(T=>String(T)).map((T,O)=>X(T,r.fontSize,O===0||O===2?t:e,r,!0)||0),k=y[3],S=y[0],I=e-(y[1]+y[3]),w=t-(y[0]+y[2]);return b.some(T=>T>0)?{type:"path",d:Ht({left:k,top:S,width:I,height:w},{...n,...g})}:{type:"rect",x:k,y:S,width:I,height:w}}return{parseCircle:i,parseEllipse:o,parsePath:s,parsePolygon:a,parseInset:u}}function pu(e){let[,t="nonzero",n]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,n]}function hu(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 Kn(e){return`satori_cp-${e}`}function gu(e){return`url(#${Kn(e)})`}function bu(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:Kn(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},M(s,a))}return""}function to({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"?bu({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}`:Kn(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 g=Zi({id:`satori_om-${s}`,left:e,top:t,width:n,height:r,matrix:o,borderOnly:!u},f);return h+p+g}var Td=e=>`satori_mi-${e}`;async function ro(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=Td(a),p="";for(let h=0;h<f;h++){let g=u[h],[b,y]=await Dr({id:`${l}-${h}`,left:r,top:i,width:o,height:s},g,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]}async function $r({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="",g="",b=[],y=1,k="";u.backgroundColor&&b.push(u.backgroundColor),u.opacity!==void 0&&(y=+u.opacity),u.transform&&(h=Wr({left:t,top:n,width:r,height:i},u.transform,o,u.transformOrigin));let S="";if(u.backgroundImage){let de=[];for(let le=0;le<u.backgroundImage.length;le++){let ee=u.backgroundImage[le],Le=await Dr({id:e+"_"+le,width:r,height:i,left:t,top:n},ee,f);Le&&de.unshift(Le)}for(let le of de)b.push(`url(#${le[0]})`),g+=le[1],le[2]&&(S+=le[2])}let[I,w]=await ro({id:e,left:t,top:n,width:r,height:i},u,f);g+=w;let T=I?`url(#${I})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,O=Ht({left:t,top:n,width:r,height:i},u);O&&(p="path");let C=u._inheritedClipPathId;a&&(k=M("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:h||void 0,"clip-path":C?`url(#${C})`:void 0}));let{backgroundClip:D,filter:q}=u,Y=D==="text"?`url(#satori_bct-${e})`:C?`url(#${C})`:u.clipPath?gu(e):void 0,ue=to({left:t,top:n,width:r,height:i,path:O,id:e,matrix:h,currentClipPath:Y,src:s},u,f),_e=b.map(de=>M(p,{x:t,y:n,width:r,height:i,fill:de,d:O||void 0,transform:h||void 0,"clip-path":u.transform?void 0:Y,style:q?`filter:${q}`:void 0,mask:u.transform?void 0:T})).join(""),ce=du({id:e,left:t,top:n,width:r,height:i,currentClipPathId:C,borderPath:O,borderType:p},u),oe;if(l){let de=(u.borderLeftWidth||0)+(u.paddingLeft||0),le=(u.borderTopWidth||0)+(u.paddingTop||0),ee=(u.borderRightWidth||0)+(u.paddingRight||0),Le=(u.borderBottomWidth||0)+(u.paddingBottom||0),Oe="Mid",Te="Mid",Me=(u.objectPosition||"center").toString().trim().toLowerCase().split(/\s+/);if(Me.length===1)switch(Me[0]){case"left":Oe="Min",Te="Mid";break;case"right":Oe="Max",Te="Mid";break;case"top":Oe="Mid",Te="Min";break;case"bottom":Oe="Mid",Te="Max";break;case"center":Oe="Mid",Te="Mid";break}else if(Me.length===2)for(let G of Me)G==="left"?Oe="Min":G==="right"?Oe="Max":G==="center"?Oe="Mid":G==="top"?Te="Min":G==="bottom"&&(Te="Max");let Je=`x${Oe}Y${Te}`,Pe=u.objectFit==="contain"?Je:u.objectFit==="cover"?`${Je} slice`:"none";u.transform&&(oe=fu({id:e,borderRadiusPath:O,borderType:p,left:t,top:n,width:r,height:i},u)),_e+=M("image",{x:t+de,y:n+le,width:r-de-ee,height:i-le-Le,href:s,preserveAspectRatio:Pe,transform:h||void 0,style:q?`filter:${q}`:void 0,"clip-path":u.transform?oe?`url(#${oe[1]})`:void 0:`url(#satori_cp-${e})`,mask:u.transform?void 0:I?`url(#${I})`:`url(#satori_om-${e})`})}if(ce){g+=ce[0];let de=ce[1];_e+=Fr({left:t,top:n,width:r,height:i,props:{transform:h||void 0,"clip-path":`url(#${de})`}},u)}let ve=Za({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":Y,mask:T})},u);return(g?M("defs",{},g):"")+(ve?ve[0]:"")+(oe?oe[0]:"")+ue+(y!==1?`<g opacity="${y}">`:"")+(u.transform&&(Y||T)?`<g${Y?` clip-path="${Y}"`:""}${T?` mask="${T}"`:""}>`:"")+(S||_e)+(u.transform&&(Y||T)?"</g>":"")+(y!==1?"</g>":"")+(ve?ve[1]:"")+k}var yu=String.raw,vu=yu`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,xu=()=>new RegExp(yu`\p{RI}{2}|(?)${vu}(?:\u200D${vu})*`,"gu");var kd=new RegExp(xu(),"u"),no={emoji:kd,symbol:/\p{Symbol}/u,math:/\p{Math}/u},io={"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},Jn=Object.keys({...io,...no});function wu(e){return Jn.includes(e)}function Su(e,t){for(let r of Object.keys(no))if(no[r].test(e))return[r];let n=Object.keys(io).filter(r=>io[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 _u(e){if(e)return Jn.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*qr(e,t){var Pe;let n=await Vt(),{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(!pr(e)||ca(e.type)){let G;if(!pr(e))G=Qi(String(e),t),yield(await G.next()).value;else{if(fa(e.type))throw new Error("Class component is not supported.");let Re;Ti(e.type)?Re=e.type.render:Re=e.type,G=qr(await Re(e.props),t),yield(await G.next()).value}await G.next();let Ie=yield;return(await G.next(Ie)).value}let{type:g,props:b}=e,y=g;if(b&&da(b))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:k,children:S,tw:I,lang:w=u}=b||{},T=_u(w);if(I){let G=h(I,k);k=Object.assign(G,k)}let O=n.Node.create();o.insertChild(O,o.getChildCount());let[C,D]=await Ui(O,y,i,k,b),q=C.transform===i.transform;if(q||(C.transform.__parent=i.transform),(C.overflow==="hidden"||C.clipPath&&C.clipPath!=="none")&&(D._inheritedClipPathId=`satori_cp-${r}`,D._inheritedMaskId=`satori_om-${r}`),C.maskImage&&(D._inheritedMaskId=`satori_mi-${r}`),C.backgroundClip==="text"){let G={value:""};D._inheritedBackgroundClipTextPath=G,C._inheritedBackgroundClipTextPath=G,C.backgroundImage&&(D._inheritedBackgroundClipTextHasBackground="true",C._inheritedBackgroundClipTextHasBackground="true")}let Y=pa(S),ue=[],_e=0,ce=[];for(let G of Y){let Ie=qr(G,{id:r+"-"+_e++,parentStyle:C,inheritedStyle:D,isInheritingTransform:!0,parent:O,font:s,embedFont:f,debug:a,graphemeImages:l,canLoadAdditionalAssets:p,locale:T,getTwStyles:h,onNodeDetected:t.onNodeDetected});p?ce.push(...(await Ie.next()).value||[]):await Ie.next(),ue.push(Ie)}yield ce;for(let G of ue)await G.next();let[oe,ve]=yield,{left:de,top:le,width:ee,height:Le}=O.getComputedLayout();de+=oe,le+=ve;let Oe="",Te="",Tt="",{children:Me,...Je}=b;if((Pe=t.onNodeDetected)==null||Pe.call(t,{left:de,top:le,width:ee,height:Le,type:y,props:Je,key:e.key,textContent:pr(Me)?void 0:Me}),y==="img"){let G=C.__src;Te=await $r({id:r,left:de,top:le,width:ee,height:Le,src:G,isInheritingTransform:q,debug:a},C,D)}else if(y==="svg"){let G=C.color,Ie=await Fa(e,G);Te=await $r({id:r,left:de,top:le,width:ee,height:Le,src:Ie,isInheritingTransform:q,debug:a},C,D)}else{let G=k==null?void 0:k.display;if(y==="div"&&S&&typeof S!="string"&&G!=="flex"&&G!=="none"&&G!=="contents")throw new Error('Expected <div> to have explicit "display: flex", "display: contents", or "display: none" if it has more than one child node.');Te=await $r({id:r,left:de,top:le,width:ee,height:Le,isInheritingTransform:q,debug:a},C,D)}for(let G of ue)Oe+=(await G.next([de,le])).value;return C._inheritedBackgroundClipTextPath&&(Tt+=M("clipPath",{id:`satori_bct-${r}`,"clip-path":C._inheritedClipPathId?`url(#${C._inheritedClipPathId})`:void 0},C._inheritedBackgroundClipTextPath.value)),Tt+Te+Oe}var xr=Mt(require("@shuding/opentype.js"),1);var Tu="unknown";function Ed(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=Od(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 Od(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 Pd(e,t){if(!t)return[];let n=t.strokeWidth,r=t.underlineY-n*.25,i=t.underlineY+n*2.5,o=Ed(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 T=f+u*w,O=[];for(let C of o){let[D,q]=C.from,[Y,ue]=C.to;if(q===ue)continue;let _e=Math.min(q,ue),ce=Math.max(q,ue);if(T<_e||T>=ce)continue;let oe=(T-q)/(ue-q),ve=D+(Y-D)*oe;O.push(ve)}if(O.length){O.sort((C,D)=>C-D);for(let C=0;C<O.length-1;C+=2){let D=Math.min(O[C],O[C+1]),q=Math.max(O[C],O[C+1]),Y=Math.floor(D),ue=Math.ceil(q);for(let _e=Y;_e<ue;_e++)l.add(_e)}}}if(!l.size)return[];let p=Array.from(l.values()).sort((w,T)=>w-T),h=[],g=p[0],b=p[0];for(let w=1;w<p.length;w++){let T=p[w];T>b+1&&(h.push([g,b+1]),g=T),b=T}h.push([g,b+1]);let y=[],k=n*.6,S=h[0][0],I=h[h.length-1][1];for(let[w,T]of h){let O=Math.min(w,S)-k,C=Math.max(T,I)+k;y.push({x1:O,x2:C,y1:r,y2:i})}return y}function Ad(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 oo=new WeakMap,Ur=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];Ad(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&&!wu(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${Jn.join(", ")}.`);let s=o??Tu,a;if(oo.has(i))a=oo.get(i);else{a=xr.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},oo.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 T=this.get({name:w,weight:i,style:o});if(T){a.push(T);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 T=Id(w);T?T===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,g=(w,T=!0)=>{let O=[...a,...p,...f,...T?l:[]];if(typeof w>"u")return T?O[O.length-1]:void 0;let C=w.charCodeAt(0);if(h.has(C))return h.get(C);let D=O.find((q,Y)=>!!q.charToGlyphIndex(w)||T&&Y===O.length-1);return D&&h.set(C,D),D},b=(w,T=!1)=>{var C,D;return((T?(D=(C=w.tables)==null?void 0:C.os2)==null?void 0:D.sTypoAscender:0)||w.ascender)/w.unitsPerEm*t},y=(w,T=!1)=>{var C,D;return((T?(D=(C=w.tables)==null?void 0:C.os2)==null?void 0:D.sTypoDescender:0)||w.descender)/w.unitsPerEm*t},k=(w,T=!1)=>{var O,C;if(typeof n=="string"&&n==="normal"){let D=(T?(C=(O=w.tables)==null?void 0:O.os2)==null?void 0:C.sTypoLineGap:0)||0;return b(w,T)-y(w,T)+D/w.unitsPerEm*t}else if(typeof n=="number")return t*n},S=w=>g(w,!1);return{has:w=>{if(w===`
|
|
7
|
+
`)return!0;let T=S(w);return T?(T._trackBrokenChars=[],T.stringToGlyphs(w),T._trackBrokenChars.length?(T._trackBrokenChars=void 0,!1):!0):!1},baseline:(w,T=typeof w>"u"?a[0]:g(w))=>{let O=b(T),C=y(T),D=O-C;return O+(k(T)-D)/2},height:(w,T=typeof w>"u"?a[0]:g(w))=>k(T),measure:(w,T)=>this.measure(g,w,T),getSVG:(w,T,O)=>this.getSVG(g,w,T,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,g=new xr.default.Path;g.unitsPerEm=t.unitsPerEm,g.commands=p.path.commands.map(y=>{let k={...y};for(let S in k)typeof k[S]=="number"&&(k[S]*=h);return k});let b=new xr.default.Glyph({...p,advanceWidth:p.advanceWidth*h,xMin:p.xMin*h,xMax:p.xMax*h,yMin:p.yMin*h,yMax:p.yMax*h,path:g});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 xr.default.Path,p=[],h={letterSpacing:s/r},g=new WeakMap;return u.forEachGlyph(n.replace(/\n/g,""),o,i,r,h,function(b,y,k,S){let I;if(!g.has(b))I=b.getPath(y,k,S,h),g.set(b,[y,k,I]);else{let[T,O,C]=g.get(b);I=new xr.default.Path,I.commands=C.commands.map(D=>{let q={...D};for(let Y in q)typeof q[Y]=="number"&&((Y==="x"||Y==="x1"||Y==="x2")&&(q[Y]+=y-T),(Y==="y"||Y==="y1"||Y==="y2")&&(q[Y]+=k-O));return q})}let w=a?Pd(I.commands,a):[];w.length&&p.push(...w),l.extend(I)}),{path:l.toPathData(1),boxes:p}}finally{f()}}};function Id(e){let t=e.split("_"),n=t[t.length-1];return n===Tu?void 0:n}function so({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 ic=Mt(Nf());var gb=["ios","android","windows","macos","web"];function Df(e){return gb.includes(e)}var bb=["portrait","landscape"];function Ff(e){return bb.includes(e)}var Wf;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(Wf||(Wf={}));var ne;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(ne||(ne={}));function Ls(e){return typeof e=="string"}function Ms(e){return typeof e=="object"}var Ns;function _(e){return{kind:"complete",style:e}}function Ae(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[o="",s=""]=e.split("/",2),a=Ae(o),u=Ae(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,ne.none];switch(i==null?void 0:i[1]){case"rem":return[r,ne.rem];case"px":return[r,ne.px];case"em":return[r,ne.em];case"%":return[r,ne.percent];case"vw":return[r,ne.vw];case"vh":return[r,ne.vh];default:return null}}function qt(e,t,n={}){let r=St(t,n);return r===null?null:_({[e]:r})}function gi(e,t,n){let r=St(t);return r!==null&&(n[e]=r),n}function $f(e,t){let n=St(t);return n===null?null:{[e]:n}}function St(e,t={}){if(e===void 0)return null;let n=Ae(String(e),t);return n?Kt(...n,t):null}function Kt(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case ne.rem:return e*16*(r?-1:1);case ne.px:return e*(r?-1:1);case ne.percent:return`${r?"-":""}${e}%`;case ne.none:return e*(r?-1:1);case ne.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(Ve("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case ne.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(Ve("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function Ws(e){let t=Ae(e);if(!t)return null;let[n,r]=t;switch(r){case ne.rem:return n*16;case ne.px:return n;default:return null}}var vb={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function Ds(e){return vb[e??""]||"All"}function Fs(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=Ds(i),"")),t]}function ar(e,t={}){if(e.includes("/")){let n=Bf(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),Bf(e,t)}function at(e,t,n={}){let r=ar(t,n);return r===null?null:_({[e]:r})}function Bf(e,t={}){if(e==="px")return 1;let n=Ae(e,t);if(!n)return null;let[r,i]=n;return t.fractions&&(i=ne.percent,r*=100),i===ne.none&&(r=r/4,i=ne.rem),Kt(r,i,t)}function yb(...e){console.warn(...e)}function xb(...e){}var Ve=typeof process>"u"||((Ns=process==null?void 0:process.env)===null||Ns===void 0?void 0:Ns.JEST_WORKER_ID)===void 0?yb:xb;var wb=[["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",xn("oldstyle-nums")],["small-caps",xn("small-caps")],["lining-nums",xn("lining-nums")],["tabular-nums",xn("tabular-nums")],["proportional-nums",xn("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})]],Bs=wb;function xn(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var wn=class{constructor(t){this.ir=new Map(Bs),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...Bs,...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 $s(e,t,n={}){let r=t==null?void 0:t[e];if(!r)return at("fontSize",e,n);if(typeof r=="string")return qt("fontSize",r);let i={},[o,s]=r,a=$f("fontSize",o);if(a&&(i=a),typeof s=="string")return _(gi("lineHeight",qf(s,i),i));let{lineHeight:u,letterSpacing:f}=s;return u&&gi("lineHeight",qf(u,i),i),f&&gi("letterSpacing",f,i),_(i)}function qf(e,t){let n=Ae(e);if(n){let[r,i]=n;if((i===ne.none||i===ne.em)&&typeof t.fontSize=="number")return t.fontSize*r}return e}function qs(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=Ae(r);if(!i)return null;let[o,s]=i;if(s===ne.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=Kt(o,s);return a!==null?_({lineHeight:a}):null}function Us(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=ar(r);return l&&typeof l=="number"?Uf(l,ne.px,t,e):null}}if(o==="auto")return zf(t,e,"auto");let s=Ae(o);if(!s)return null;let[a,u]=s;return n&&(a=-a),Uf(a,u,t,e)}function Uf(e,t,n,r){let i=Kt(e,t);return i===null?null:zf(n,r,i)}function zf(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 zs(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?Ws(u.min):0;f===null?Ve(`invalid screen config value: ${o}->min: ${u.min}`):a[0]=f;let l=u.max?Ws(u.max):1/0;return l===null?Ve(`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 Gs(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 ur(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=Vf(t,n),!i)return null;if(r){let o=Number(r);if(!Number.isNaN(o))return i=Gf(i,o/100),_({[bi[e].color]:i})}return{kind:"dependent",complete(o){let s=bi[e].opacity,a=o[s];typeof a=="number"&&(i=Gf(i,a)),o[bi[e].color]=i}}}function Sn(e,t){let n=parseInt(t,10);if(Number.isNaN(n))return null;let r=n/100;return{kind:"complete",style:{[bi[e].opacity]:r}}}function Gf(e,t){return e.startsWith("#")?e=Sb(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function jf(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var bi={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 Sb(e){let t=e;e=e.replace(_b,(s,a,u,f)=>a+a+u+u+f+f);let n=Tb.exec(e);if(!n)return Ve(`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 Vf(e,t){let n=t[e];if(Ls(n))return n;if(Ms(n)&&Ls(n.DEFAULT))return n.DEFAULT;let[r="",...i]=e.split("-");for(;r!==e;){let o=t[r];if(Ms(o))return Vf(i.join("-"),o);if(i.length===0)return"";r=`${r}-${i.shift()}`}return""}var _b=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Tb=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function Yf(e,t){let[n,r]=Fs(e);if(n.match(/^(-?(\d)+)?$/))return kb(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=ur(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=at(a,u);return typeof(f==null?void 0:f.style[a])!="number"?null:f}function kb(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 qt(o,i)}function Xf(e,t){if(!t)return null;let[n,r]=Fs(e);n=n.replace(/^-/,""),n===""&&(n="DEFAULT");let i=`border${r==="All"?"":r}Radius`,o=t[n];if(o)return Hf(qt(i,o));let s=at(i,n);return typeof(s==null?void 0:s.style[i])!="number"?null:Hf(s)}function Hf(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 kr(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=St(o,{isNegative:n});if(a!==null)return Qf(e,i,a)}let s=ar(t,{isNegative:n});return s!==null?Qf(e,i,s):null}function Qf(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 _n(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 Kf(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=St((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=St((r=i[3])!==null&&r!==void 0?r:"");return o?_({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function js(e,t,n={},r){let i=r==null?void 0:r[t];return i!==void 0?qt(e,i,n):at(e,t,n)}function Tn(e,t,n={},r){let i=St(r==null?void 0:r[t],n);return i?_({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),at(e,t,n))}function Jf(e,t,n){let r=n==null?void 0:n[e];if(r){let i=Ae(r,{isNegative:t});if(!i)return null;let[o,s]=i;if(s===ne.em)return Eb(o);if(s===ne.percent)return Ve("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=Kt(o,s,{isNegative:t});return a!==null?_({letterSpacing:a}):null}return at("letterSpacing",e,{isNegative:t})}function Eb(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 Zf(e,t){let n=t==null?void 0:t[e];if(n){let i=Ae(String(n));if(i)return _({opacity:i[0]})}let r=Ae(e);return r?_({opacity:r[0]/100}):null}function ec(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function tc(e){if(e.includes("/")){let[n="",r=""]=e.split("/",2),i=Vs(n),o=Vs(r);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=Vs(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function Vs(e){let t=ar(e);return typeof t=="number"?t:null}var Er=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(":"),g=[];h.length===1?this.string=t:(this.string=(s=h.pop())!==null&&s!==void 0?s:"",g=h),this.char=this.string[0];let b=zs((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let y of g)if(b[y]){let k=(u=b[y])===null||u===void 0?void 0:u[2];k!==void 0&&(this.order=((f=this.order)!==null&&f!==void 0?f:0)+k);let S=(l=i.windowDimensions)===null||l===void 0?void 0:l.width;if(S){let[I,w]=(p=b[y])!==null&&p!==void 0?p:[0,0];(S<=I||S>w)&&(this.isNull=!0)}else this.isNull=!0}else Df(y)?this.isNull=y!==o:Ff(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=Ds(u[1]),p=Us(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=js("height",this.rest,this.context,s==null?void 0:s.height),a)||this.consumePeeked("w-")&&(a=js("width",this.rest,this.context,s==null?void 0:s.width),a)||this.consumePeeked("min-w-")&&(a=Tn("minWidth",this.rest,this.context,s==null?void 0:s.minWidth),a)||this.consumePeeked("min-h-")&&(a=Tn("minHeight",this.rest,this.context,s==null?void 0:s.minHeight),a)||this.consumePeeked("max-w-")&&(a=Tn("maxWidth",this.rest,this.context,s==null?void 0:s.maxWidth),a)||this.consumePeeked("max-h-")&&(a=Tn("maxHeight",this.rest,this.context,s==null?void 0:s.maxHeight),a)||this.consumePeeked("leading-")&&(a=qs(this.rest,s==null?void 0:s.lineHeight),a)||this.consumePeeked("text-")&&(a=$s(this.rest,s==null?void 0:s.fontSize,this.context),a||(a=ur("text",this.rest,s==null?void 0:s.textColor),a)||this.consumePeeked("opacity-")&&(a=Sn("text",this.rest),a))||this.consumePeeked("font-")&&(a=Gs(this.rest,s==null?void 0:s.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&Ve("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=qt("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=ur("tint",this.rest,s==null?void 0:s.colors),a)||this.consumePeeked("bg-")&&(a=ur("bg",this.rest,s==null?void 0:s.backgroundColor),a||this.consumePeeked("opacity-")&&(a=Sn("bg",this.rest),a))||this.consumePeeked("border")&&(a=Yf(this.rest,s),a||this.consumePeeked("-opacity-")&&(a=Sn("border",this.rest),a))||this.consumePeeked("rounded")&&(a=Xf(this.rest,s==null?void 0:s.borderRadius),a)||this.consumePeeked("bottom-")&&(a=kr("bottom",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("top-")&&(a=kr("top",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("left-")&&(a=kr("left",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("right-")&&(a=kr("right",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("inset-")&&(a=kr("inset",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=_n("Grow",this.rest,s==null?void 0:s.flexGrow):this.consumePeeked("shrink")?a=_n("Shrink",this.rest,s==null?void 0:s.flexShrink):a=Kf(this.rest,s==null?void 0:s.flex),a)||this.consumePeeked("grow")&&(a=_n("Grow",this.rest,s==null?void 0:s.flexGrow),a)||this.consumePeeked("shrink")&&(a=_n("Shrink",this.rest,s==null?void 0:s.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=Sn("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=ec(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=tc(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=at("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=ur("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=Zf(this.rest,s==null?void 0:s.opacity),a)||this.consumePeeked("tracking-")&&(a=Jf(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 Ve(`\`${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=Ae(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 rc(e){let t=[],n=null;return e.forEach(r=>{if(typeof r=="string")t=[...t,...Hs(r)];else if(Array.isArray(r))t=[...t,...r.flatMap(Hs)];else if(typeof r=="object"&&r!==null)for(let[i,o]of Object.entries(r))typeof o=="boolean"?t=[...t,...o?Hs(i):[]]:n?n[i]=o:n={[i]:o}}),[t.filter(Boolean).filter(Ob),n]}function Hs(e){return e.trim().split(/\s+/)}function Ob(e,t,n){return n.indexOf(e)===t}function nc(e){var t;return(t=e==null?void 0:e.reduce((n,r)=>({...n,...Pb(r.handler)}),{}))!==null&&t!==void 0?t:{}}function Pb(e){let t={};return e({addUtilities:n=>{t=n},...Ab}),t}function _t(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var Ab={addComponents:_t,addBase:_t,addVariant:_t,e:_t,prefix:_t,theme:_t,variants:_t,config:_t,corePlugins:_t,matchUtilities:_t,postcss:null};function oc(e,t){let n=(0,ic.default)(Ib(e)),r={},i=nc(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 wn(s);return f[u]=y,y}function p(...b){let y=l(),k={},S=[],I=[],[w,T]=rc(b),O=w.join(" "),C=y.getStyle(O);if(C)return{...C,...T||{}};for(let D of w){let q=y.getIr(D);if(!q&&D in o){let ue=p(o[D]);y.setIr(D,_(ue)),k={...k,...ue};continue}switch(q=new Er(D,n,y,r,t).parse(),q.kind){case"complete":k={...k,...q.style},y.setIr(D,q);break;case"dependent":S.push(q);break;case"ordered":I.push(q);break;case"null":y.setIr(D,q);break}}if(I.length>0){I.sort((D,q)=>D.order-q.order);for(let D of I)switch(D.styleIr.kind){case"complete":k={...k,...D.styleIr.style};break;case"dependent":S.push(D.styleIr);break}}if(S.length>0){for(let D of S){let q=D.complete(k);q&&Ve(q)}jf(k)}return O!==""&&y.setStyle(O,k),T&&(k={...k,...T}),k}function h(b){let y=p(b.split(/\s+/g).map(k=>k.replace(/^(bg|text|border)-/,"")).map(k=>`bg-${k}`).join(" "));return typeof y.backgroundColor=="string"?y.backgroundColor:void 0}let g=(b,...y)=>{let k="";return b.forEach((S,I)=>{var w;k+=S+((w=y[I])!==null&&w!==void 0?w:"")}),p(k)};return g.style=p,g.color=h,g.prefixMatch=(...b)=>{let y=b.sort().join(":"),k=l(),S=k.getPrefixMatch(y);if(S!==void 0)return S;let T=new Er(`${y}:flex`,n,k,r,t).parse().kind!=="null";return k.setPrefixMatch(y,T),T},g.setWindowDimensions=b=>{r.windowDimensions=b,u=a()},g.setFontScale=b=>{r.fontScale=b,u=a()},g.setPixelDensity=b=>{r.pixelDensity=b,u=a()},g.setColorScheme=b=>{r.colorScheme=b,u=a()},g}function Ib(e){return{...e,content:["_no_warnings_please"]}}var Cb={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 Lb(e){return oc({...e,plugins:[...(e==null?void 0:e.plugins)??[],Cb]},"web")}var vi;function Ys({width:e,height:t,config:n}){return vi||(vi=Lb(n)),vi.setWindowDimensions({width:+e,height:+t}),vi}var Xs=new WeakMap;async function Qs(e,t){let n=await Vt();if(!n||!n.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+n);t.fonts=t.fonts||[];let r;Xs.has(t.fonts)?r=Xs.get(t.fonts):Xs.set(t.fonts,r=new Ur(t.fonts));let i="width"in t?t.width:void 0,o="height"in t?t.height:void 0,s=Mb(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={...t.graphemeImages},u=new Set;xt.clear(),Mr.clear(),await Da(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 S={...Ys({width:i,height:o,config:t.tailwindConfig})([b])};return typeof S.lineHeight=="number"&&(S.lineHeight=S.lineHeight/(+S.fontSize||y.fontSize||16)),S.shadowColor&&S.boxShadow&&(S.boxShadow=S.boxShadow.replace(/rgba?\([^)]+\)/,S.shadowColor)),S}}),l=(await f.next()).value;if(t.loadAdditionalAsset&&l.length){let b=Nb(l),y=[],k={};await Promise.all(Object.entries(b).flatMap(([S,I])=>I.map(w=>{let T=`${S}_${w}`;return u.has(T)?null:(u.add(T),t.loadAdditionalAsset(S,w).then(O=>{typeof O=="string"?k[w]=O:O&&(Array.isArray(O)?y.push(...O):y.push(O))}))}))),r.addFonts(y),Object.assign(a,k)}await f.next(),s.calculateLayout(i,o,n.DIRECTION_LTR);let p=(await f.next([0,0])).value,h=s.getComputedWidth(),g=s.getComputedHeight();return s.freeRecursive(),so({width:h,height:g,content:p})}function Mb(e,t){if(t){let n=e.Config.create();return n.setPointScaleFactor(t),e.Node.createWithConfig(n)}else return e.Node.create()}function Nb(e){let t={},n={};for(let{word:r,locale:i}of e){let o=Su(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(...sc(De(n[r],"grapheme"))):(t[r][0]=t[r][0]||"",t[r][0]+=sc(De(n[r],"grapheme",r==="unknown"?void 0:r)).join(""))}),t}function sc(e){return Array.from(new Set(e))}0&&(module.exports={init});
|
|
8
8
|
//# sourceMappingURL=standalone.cjs.map
|