satori 0.33.5 → 0.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -0
- package/dist/canvas-afafb49b.d.ts +16 -0
- package/dist/experimental.cjs +8 -0
- package/dist/experimental.cjs.LEGAL.txt +4 -0
- package/dist/experimental.cjs.map +1 -0
- package/dist/experimental.d.cts +29 -0
- package/dist/experimental.d.ts +29 -0
- package/dist/experimental.js +8 -0
- package/dist/experimental.js.LEGAL.txt +4 -0
- package/dist/experimental.js.map +1 -0
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -175
- package/dist/index.d.ts +2 -175
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/jsx/index.d.cts +2 -2
- package/dist/jsx/index.d.ts +2 -2
- package/dist/jsx/jsx-runtime.d.cts +1 -1
- package/dist/jsx/jsx-runtime.d.ts +1 -1
- package/dist/jsx-runtime-28d3932e.d.ts +1324 -0
- package/dist/{jsx-runtime-d92ed26c.d.ts → jsx-runtime-9a51f310.d.ts} +7 -0
- package/dist/satori-dd73c891.d.ts +175 -0
- package/dist/standalone.cjs +7 -7
- package/dist/standalone.cjs.map +1 -1
- package/dist/standalone.d.cts +1 -1
- package/dist/standalone.d.ts +1 -1
- package/dist/standalone.js +7 -7
- package/dist/standalone.js.map +1 -1
- package/package.json +12 -1
package/dist/standalone.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var ed=Object.create;var zn=Object.defineProperty;var td=Object.getOwnPropertyDescriptor;var rd=Object.getOwnPropertyNames;var nd=Object.getPrototypeOf,id=Object.prototype.hasOwnProperty;var ar=(e,t)=>()=>(e&&(t=e(e=0)),t);var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Gn=(e,t)=>{for(var r in t)zn(e,r,{get:t[r],enumerable:!0})},ka=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of rd(t))!id.call(e,i)&&i!==r&&zn(e,i,{get:()=>t[i],enumerable:!(n=td(t,i))||n.enumerable});return e};var od=(e,t,r)=>(r=e!=null?ed(nd(e)):{},ka(t||!e||!e.__esModule?zn(r,"default",{value:e,enumerable:!0}):r,e)),jn=e=>ka(zn({},"__esModule",{value:!0}),e);var Gt,Va,Ha,Vr,Vi,jt,Tr,Sd,Yn,Hi,Er,kr,Yi,Ya,Xi,Ki,St,Qi,_d,Xa,Xn=ar(()=>{Gt=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}({}),Va=function(e){return e[e.BorderBox=0]="BorderBox",e[e.ContentBox=1]="ContentBox",e}({}),Ha=function(e){return e[e.Width=0]="Width",e[e.Height=1]="Height",e}({}),Vr=function(e){return e[e.Inherit=0]="Inherit",e[e.LTR=1]="LTR",e[e.RTL=2]="RTL",e}({}),Vi=function(e){return e[e.Flex=0]="Flex",e[e.None=1]="None",e[e.Contents=2]="Contents",e}({}),jt=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}({}),Tr=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}({}),Sd=function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e}({}),Yn=function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e}({}),Hi=function(e){return e[e.Column=0]="Column",e[e.Row=1]="Row",e[e.All=2]="All",e}({}),Er=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}({}),kr=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}({}),Yi=function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e}({}),Ya=function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e}({}),Xi=function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e}({}),Ki=function(e){return e[e.Static=0]="Static",e[e.Relative=1]="Relative",e[e.Absolute=2]="Absolute",e}({}),St=function(e){return e[e.Undefined=0]="Undefined",e[e.Point=1]="Point",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto",e}({}),Qi=function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e}({}),_d={ALIGN_AUTO:Gt.Auto,ALIGN_FLEX_START:Gt.FlexStart,ALIGN_CENTER:Gt.Center,ALIGN_FLEX_END:Gt.FlexEnd,ALIGN_STRETCH:Gt.Stretch,ALIGN_BASELINE:Gt.Baseline,ALIGN_SPACE_BETWEEN:Gt.SpaceBetween,ALIGN_SPACE_AROUND:Gt.SpaceAround,ALIGN_SPACE_EVENLY:Gt.SpaceEvenly,BOX_SIZING_BORDER_BOX:Va.BorderBox,BOX_SIZING_CONTENT_BOX:Va.ContentBox,DIMENSION_WIDTH:Ha.Width,DIMENSION_HEIGHT:Ha.Height,DIRECTION_INHERIT:Vr.Inherit,DIRECTION_LTR:Vr.LTR,DIRECTION_RTL:Vr.RTL,DISPLAY_FLEX:Vi.Flex,DISPLAY_NONE:Vi.None,DISPLAY_CONTENTS:Vi.Contents,EDGE_LEFT:jt.Left,EDGE_TOP:jt.Top,EDGE_RIGHT:jt.Right,EDGE_BOTTOM:jt.Bottom,EDGE_START:jt.Start,EDGE_END:jt.End,EDGE_HORIZONTAL:jt.Horizontal,EDGE_VERTICAL:jt.Vertical,EDGE_ALL:jt.All,ERRATA_NONE:Tr.None,ERRATA_STRETCH_FLEX_BASIS:Tr.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:Tr.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:Tr.AbsolutePercentAgainstInnerSize,ERRATA_ALL:Tr.All,ERRATA_CLASSIC:Tr.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:Sd.WebFlexBasis,FLEX_DIRECTION_COLUMN:Yn.Column,FLEX_DIRECTION_COLUMN_REVERSE:Yn.ColumnReverse,FLEX_DIRECTION_ROW:Yn.Row,FLEX_DIRECTION_ROW_REVERSE:Yn.RowReverse,GUTTER_COLUMN:Hi.Column,GUTTER_ROW:Hi.Row,GUTTER_ALL:Hi.All,JUSTIFY_FLEX_START:Er.FlexStart,JUSTIFY_CENTER:Er.Center,JUSTIFY_FLEX_END:Er.FlexEnd,JUSTIFY_SPACE_BETWEEN:Er.SpaceBetween,JUSTIFY_SPACE_AROUND:Er.SpaceAround,JUSTIFY_SPACE_EVENLY:Er.SpaceEvenly,LOG_LEVEL_ERROR:kr.Error,LOG_LEVEL_WARN:kr.Warn,LOG_LEVEL_INFO:kr.Info,LOG_LEVEL_DEBUG:kr.Debug,LOG_LEVEL_VERBOSE:kr.Verbose,LOG_LEVEL_FATAL:kr.Fatal,MEASURE_MODE_UNDEFINED:Yi.Undefined,MEASURE_MODE_EXACTLY:Yi.Exactly,MEASURE_MODE_AT_MOST:Yi.AtMost,NODE_TYPE_DEFAULT:Ya.Default,NODE_TYPE_TEXT:Ya.Text,OVERFLOW_VISIBLE:Xi.Visible,OVERFLOW_HIDDEN:Xi.Hidden,OVERFLOW_SCROLL:Xi.Scroll,POSITION_TYPE_STATIC:Ki.Static,POSITION_TYPE_RELATIVE:Ki.Relative,POSITION_TYPE_ABSOLUTE:Ki.Absolute,UNIT_UNDEFINED:St.Undefined,UNIT_POINT:St.Point,UNIT_PERCENT:St.Percent,UNIT_AUTO:St.Auto,WRAP_NO_WRAP:Qi.NoWrap,WRAP_WRAP:Qi.Wrap,WRAP_WRAP_REVERSE:Qi.WrapReverse},Xa=_d});function Ji(e){function t(i,o,s){let a=i[o];i[o]=function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return s.call(this,a,...l)}}for(let i of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){let o={[St.Point]:e.Node.prototype[i],[St.Percent]:e.Node.prototype[`${i}Percent`],[St.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),l=1;l<a;l++)u[l-1]=arguments[l];let f=u.pop(),c,m;if(f==="auto")c=St.Auto,m=void 0;else if(typeof f=="object")c=f.unit,m=f.valueOf();else if(c=typeof f=="string"&&f.endsWith("%")?St.Percent:St.Point,m=parseFloat(f),f!==void 0&&!Number.isNaN(f)&&Number.isNaN(m))throw new Error(`Invalid value ${f} for ${i}`);if(!o[c])throw new Error(`Failed to execute "${i}": Unsupported unit '${f}'`);return m!==void 0?o[c].call(this,...u,m):o[c].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]:Vr.LTR;return i.call(this,o,s,a)}),{Config:e.Config,Node:e.Node,...Xa}}var Ka=ar(()=>{Xn();Xn()});var Ja={};Gn(Ja,{default:()=>Td});function Td(e){e=e||{};var t;t||(t=typeof e<"u"?e:{});var r,n;t.ready=new Promise(function(d,p){r=d,n=p});var i=Object.assign({},t),o="";typeof document<"u"&&document.currentScript&&(o=document.currentScript.src),Qa&&(o=Qa),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 l=t.noExitRuntime||!0;typeof WebAssembly!="object"&&Me("no native wasm support detected");var f,c=!1;function m(d,p,b){b=p+b;for(var v="";!(p>=b);){var S=d[p++];if(!S)break;if(S&128){var O=d[p++]&63;if((S&224)==192)v+=String.fromCharCode((S&31)<<6|O);else{var L=d[p++]&63;S=(S&240)==224?(S&15)<<12|O<<6|L:(S&7)<<18|O<<12|L<<6|d[p++]&63,65536>S?v+=String.fromCharCode(S):(S-=65536,v+=String.fromCharCode(55296|S>>10,56320|S&1023))}}else v+=String.fromCharCode(S)}return v}var h,g,y,x,w,P,T,A,E;function _(){var d=f.buffer;h=d,t.HEAP8=g=new Int8Array(d),t.HEAP16=x=new Int16Array(d),t.HEAP32=P=new Int32Array(d),t.HEAPU8=y=new Uint8Array(d),t.HEAPU16=w=new Uint16Array(d),t.HEAPU32=T=new Uint32Array(d),t.HEAPF32=A=new Float32Array(d),t.HEAPF64=E=new Float64Array(d)}var R,C=[],z=[],G=[];function ie(){var d=t.preRun.shift();C.unshift(d)}var te=0,he=null,de=null;function Me(d){throw t.onAbort&&t.onAbort(d),d="Aborted("+d+")",a(d),c=!0,d=new WebAssembly.RuntimeError(d+". Build with -sASSERTIONS for more info."),n(d),d}function Re(d){return d.startsWith("data:application/octet-stream;base64,")}var Oe="";if(!Re(Oe)){var $e=Oe;Oe=t.locateFile?t.locateFile($e,o):o+$e}function re(){var d=Oe;try{if(d==Oe&&u)return new Uint8Array(u);if(Re(d))try{var p=Jc(d.slice(37)),b=new Uint8Array(p.length);for(d=0;d<p.length;++d)b[d]=p.charCodeAt(d);var v=b}catch{throw Error("Converting base64 string to bytes failed.")}else v=void 0;var S=v;if(S)return S;throw"both async and sync fetching of the wasm failed"}catch(O){Me(O)}}function me(){return u||typeof fetch!="function"?Promise.resolve().then(function(){return re()}):fetch(Oe,{credentials:"same-origin"}).then(function(d){if(!d.ok)throw"failed to load wasm binary file at '"+Oe+"'";return d.arrayBuffer()}).catch(function(){return re()})}function rt(d){for(;0<d.length;)d.shift()(t)}function qe(d){if(d===void 0)return"_unknown";d=d.replace(/[^a-zA-Z0-9_]/g,"$");var p=d.charCodeAt(0);return 48<=p&&57>=p?"_"+d:d}function Ae(d,p){return d=qe(d),function(){return p.apply(this,arguments)}}var ne=[{},{value:void 0},{value:null},{value:!0},{value:!1}],Q=[];function we(d){var p=Error,b=Ae(d,function(v){this.name=d,this.message=v,v=Error(v).stack,v!==void 0&&(this.stack=this.toString()+`
|
|
2
|
-
`+v.replace(/^Error(:[^\n]*)?\n/,""))});return b.prototype=Object.create(p.prototype),b.prototype.constructor=b,b.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},b}var Z=void 0;function j(d){throw new Z(d)}var Ee=d=>(d||j("Cannot use deleted val. handle = "+d),ne[d].value),Ie=d=>{switch(d){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var p=Q.length?Q.pop():ne.length;return ne[p]={ga:1,value:d},p}},Ce=void 0,Fe=void 0;function le(d){for(var p="";y[d];)p+=Fe[y[d++]];return p}var Qe=[];function nt(){for(;Qe.length;){var d=Qe.pop();d.M.$=!1,d.delete()}}var Ne=void 0,be={};function Ge(d,p){for(p===void 0&&j("ptr should not be undefined");d.R;)p=d.ba(p),d=d.R;return p}var Tt={};function Dr(d){d=Sa(d);var p=le(d);return Bt(d),p}function Wr(d,p){var b=Tt[d];return b===void 0&&j(p+" has unknown type "+Dr(d)),b}function Ft(){}var $r=!1;function Br(d){--d.count.value,d.count.value===0&&(d.T?d.U.W(d.T):d.P.N.W(d.O))}function or(d,p,b){return p===b?d:b.R===void 0?null:(d=or(d,p,b.R),d===null?null:b.na(d))}var Et={};function kt(d,p){return p=Ge(d,p),be[p]}var it=void 0;function Nt(d){throw new it(d)}function je(d,p){return p.P&&p.O||Nt("makeClassHandle requires ptr and ptrType"),!!p.U!=!!p.T&&Nt("Both smartPtrType and smartPtr must be specified"),p.count={value:1},ot(Object.create(d,{M:{value:p}}))}function ot(d){return typeof FinalizationRegistry>"u"?(ot=p=>p,d):($r=new FinalizationRegistry(p=>{Br(p.M)}),ot=p=>{var b=p.M;return b.T&&$r.register(p,{M:b},p),p},Ft=p=>{$r.unregister(p)},ot(d))}var Dt={};function yr(d){for(;d.length;){var p=d.pop();d.pop()(p)}}function Pt(d){return this.fromWireType(P[d>>2])}var ze={},Ot={};function Be(d,p,b){function v(M){M=b(M),M.length!==d.length&&Nt("Mismatched type converter count");for(var D=0;D<d.length;++D)H(d[D],M[D])}d.forEach(function(M){Ot[M]=p});var S=Array(p.length),O=[],L=0;p.forEach((M,D)=>{Tt.hasOwnProperty(M)?S[D]=Tt[M]:(O.push(M),ze.hasOwnProperty(M)||(ze[M]=[]),ze[M].push(()=>{S[D]=Tt[M],++L,L===O.length&&v(S)}))}),O.length===0&&v(S)}function vr(d){switch(d){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+d)}}function H(d,p,b={}){if(!("argPackAdvance"in p))throw new TypeError("registerType registeredInstance requires argPackAdvance");var v=p.name;if(d||j('type "'+v+'" must have a positive integer typeid pointer'),Tt.hasOwnProperty(d)){if(b.ua)return;j("Cannot register type '"+v+"' twice")}Tt[d]=p,delete Ot[d],ze.hasOwnProperty(d)&&(p=ze[d],delete ze[d],p.forEach(S=>S()))}function K(d){j(d.M.P.N.name+" instance already deleted")}function ee(){}function J(d,p,b){if(d[p].S===void 0){var v=d[p];d[p]=function(){return d[p].S.hasOwnProperty(arguments.length)||j("Function '"+b+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+d[p].S+")!"),d[p].S[arguments.length].apply(this,arguments)},d[p].S=[],d[p].S[v.Z]=v}}function ke(d,p){t.hasOwnProperty(d)?(j("Cannot register public name '"+d+"' twice"),J(t,d,d),t.hasOwnProperty(void 0)&&j("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),t[d].S[void 0]=p):t[d]=p}function fe(d,p,b,v,S,O,L,M){this.name=d,this.constructor=p,this.X=b,this.W=v,this.R=S,this.pa=O,this.ba=L,this.na=M,this.ja=[]}function ye(d,p,b){for(;p!==b;)p.ba||j("Expected null or instance of "+b.name+", got an instance of "+p.name),d=p.ba(d),p=p.R;return d}function ce(d,p){return p===null?(this.ea&&j("null is not a valid "+this.name),0):(p.M||j('Cannot pass "'+Pe(p)+'" as a '+this.name),p.M.O||j("Cannot pass deleted object as a pointer of type "+this.name),ye(p.M.O,p.M.P.N,this.N))}function oe(d,p){if(p===null){if(this.ea&&j("null is not a valid "+this.name),this.da){var b=this.fa();return d!==null&&d.push(this.W,b),b}return 0}if(p.M||j('Cannot pass "'+Pe(p)+'" as a '+this.name),p.M.O||j("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&p.M.P.ca&&j("Cannot convert argument of type "+(p.M.U?p.M.U.name:p.M.P.name)+" to parameter type "+this.name),b=ye(p.M.O,p.M.P.N,this.N),this.da)switch(p.M.T===void 0&&j("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:p.M.U===this?b=p.M.T:j("Cannot convert argument of type "+(p.M.U?p.M.U.name:p.M.P.name)+" to parameter type "+this.name);break;case 1:b=p.M.T;break;case 2:if(p.M.U===this)b=p.M.T;else{var v=p.clone();b=this.xa(b,Ie(function(){v.delete()})),d!==null&&d.push(this.W,b)}break;default:j("Unsupporting sharing policy")}return b}function ut(d,p){return p===null?(this.ea&&j("null is not a valid "+this.name),0):(p.M||j('Cannot pass "'+Pe(p)+'" as a '+this.name),p.M.O||j("Cannot pass deleted object as a pointer of type "+this.name),p.M.P.ca&&j("Cannot convert argument of type "+p.M.P.name+" to parameter type "+this.name),ye(p.M.O,p.M.P.N,this.N))}function Y(d,p,b,v){this.name=d,this.N=p,this.ea=b,this.ca=v,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,p.R!==void 0?this.toWireType=oe:(this.toWireType=v?ce:ut,this.V=null)}function Rt(d,p){t.hasOwnProperty(d)||Nt("Replacing nonexistant public symbol"),t[d]=p,t[d].Z=void 0}function Ve(d,p){var b=[];return function(){if(b.length=0,Object.assign(b,arguments),d.includes("j")){var v=t["dynCall_"+d];v=b&&b.length?v.apply(null,[p].concat(b)):v.call(null,p)}else v=R.get(p).apply(null,b);return v}}function He(d,p){d=le(d);var b=d.includes("j")?Ve(d,p):R.get(p);return typeof b!="function"&&j("unknown function pointer with signature "+d+": "+p),b}var st=void 0;function Wt(d,p){function b(O){S[O]||Tt[O]||(Ot[O]?Ot[O].forEach(b):(v.push(O),S[O]=!0))}var v=[],S={};throw p.forEach(b),new st(d+": "+v.map(Dr).join([", "]))}function Ye(d,p,b,v,S){var O=p.length;2>O&&j("argTypes array size mismatch! Must at least get return value and 'this' types!");var L=p[1]!==null&&b!==null,M=!1;for(b=1;b<p.length;++b)if(p[b]!==null&&p[b].V===void 0){M=!0;break}var D=p[0].name!=="void",N=O-2,$=Array(N),V=[],se=[];return function(){if(arguments.length!==N&&j("function "+d+" called with "+arguments.length+" arguments, expected "+N+" args!"),se.length=0,V.length=L?2:1,V[0]=S,L){var Le=p[1].toWireType(se,this);V[1]=Le}for(var pe=0;pe<N;++pe)$[pe]=p[pe+2].toWireType(se,arguments[pe]),V.push($[pe]);if(pe=v.apply(null,V),M)yr(se);else for(var at=L?1:2;at<p.length;at++){var xt=at===1?Le:$[at-2];p[at].V!==null&&p[at].V(xt)}return Le=D?p[0].fromWireType(pe):void 0,Le}}function $t(d,p){for(var b=[],v=0;v<d;v++)b.push(T[p+4*v>>2]);return b}function Se(d){4<d&&--ne[d].ga===0&&(ne[d]=void 0,Q.push(d))}function Pe(d){if(d===null)return"null";var p=typeof d;return p==="object"||p==="array"||p==="function"?d.toString():""+d}function lt(d,p){switch(p){case 2:return function(b){return this.fromWireType(A[b>>2])};case 3:return function(b){return this.fromWireType(E[b>>3])};default:throw new TypeError("Unknown float type: "+d)}}function Je(d,p,b){switch(p){case 0:return b?function(v){return g[v]}:function(v){return y[v]};case 1:return b?function(v){return x[v>>1]}:function(v){return w[v>>1]};case 2:return b?function(v){return P[v>>2]}:function(v){return T[v>>2]};default:throw new TypeError("Unknown integer type: "+d)}}function ft(d,p){for(var b="",v=0;!(v>=p/2);++v){var S=x[d+2*v>>1];if(S==0)break;b+=String.fromCharCode(S)}return b}function vt(d,p,b){if(b===void 0&&(b=2147483647),2>b)return 0;b-=2;var v=p;b=b<2*d.length?b/2:d.length;for(var S=0;S<b;++S)x[p>>1]=d.charCodeAt(S),p+=2;return x[p>>1]=0,p-v}function Xe(d){return 2*d.length}function ct(d,p){for(var b=0,v="";!(b>=p/4);){var S=P[d+4*b>>2];if(S==0)break;++b,65536<=S?(S-=65536,v+=String.fromCharCode(55296|S>>10,56320|S&1023)):v+=String.fromCharCode(S)}return v}function Ur(d,p,b){if(b===void 0&&(b=2147483647),4>b)return 0;var v=p;b=v+b-4;for(var S=0;S<d.length;++S){var O=d.charCodeAt(S);if(55296<=O&&57343>=O){var L=d.charCodeAt(++S);O=65536+((O&1023)<<10)|L&1023}if(P[p>>2]=O,p+=4,p+4>b)break}return P[p>>2]=0,p-v}function xr(d){for(var p=0,b=0;b<d.length;++b){var v=d.charCodeAt(b);55296<=v&&57343>=v&&++b,p+=4}return p}var Bn={};function qr(d){var p=Bn[d];return p===void 0?le(d):p}var sr=[];function Xc(d){var p=sr.length;return sr.push(d),p}function Kc(d,p){for(var b=Array(d),v=0;v<d;++v)b[v]=Wr(T[p+4*v>>2],"parameter "+v);return b}var xa=[],Qc=[null,[],[]];Z=t.BindingError=we("BindingError"),t.count_emval_handles=function(){for(var d=0,p=5;p<ne.length;++p)ne[p]!==void 0&&++d;return d},t.get_first_emval=function(){for(var d=5;d<ne.length;++d)if(ne[d]!==void 0)return ne[d];return null},Ce=t.PureVirtualError=we("PureVirtualError");for(var wa=Array(256),Un=0;256>Un;++Un)wa[Un]=String.fromCharCode(Un);Fe=wa,t.getInheritedInstanceCount=function(){return Object.keys(be).length},t.getLiveInheritedInstances=function(){var d=[],p;for(p in be)be.hasOwnProperty(p)&&d.push(be[p]);return d},t.flushPendingDeletes=nt,t.setDelayFunction=function(d){Ne=d,Qe.length&&Ne&&Ne(nt)},it=t.InternalError=we("InternalError"),ee.prototype.isAliasOf=function(d){if(!(this instanceof ee&&d instanceof ee))return!1;var p=this.M.P.N,b=this.M.O,v=d.M.P.N;for(d=d.M.O;p.R;)b=p.ba(b),p=p.R;for(;v.R;)d=v.ba(d),v=v.R;return p===v&&b===d},ee.prototype.clone=function(){if(this.M.O||K(this),this.M.aa)return this.M.count.value+=1,this;var d=ot,p=Object,b=p.create,v=Object.getPrototypeOf(this),S=this.M;return d=d(b.call(p,v,{M:{value:{count:S.count,$:S.$,aa:S.aa,O:S.O,P:S.P,T:S.T,U:S.U}}})),d.M.count.value+=1,d.M.$=!1,d},ee.prototype.delete=function(){this.M.O||K(this),this.M.$&&!this.M.aa&&j("Object already scheduled for deletion"),Ft(this),Br(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},ee.prototype.isDeleted=function(){return!this.M.O},ee.prototype.deleteLater=function(){return this.M.O||K(this),this.M.$&&!this.M.aa&&j("Object already scheduled for deletion"),Qe.push(this),Qe.length===1&&Ne&&Ne(nt),this.M.$=!0,this},Y.prototype.qa=function(d){return this.ka&&(d=this.ka(d)),d},Y.prototype.ha=function(d){this.W&&this.W(d)},Y.prototype.argPackAdvance=8,Y.prototype.readValueFromPointer=Pt,Y.prototype.deleteObject=function(d){d!==null&&d.delete()},Y.prototype.fromWireType=function(d){function p(){return this.da?je(this.N.X,{P:this.wa,O:b,U:this,T:d}):je(this.N.X,{P:this,O:d})}var b=this.qa(d);if(!b)return this.ha(d),null;var v=kt(this.N,b);if(v!==void 0)return v.M.count.value===0?(v.M.O=b,v.M.T=d,v.clone()):(v=v.clone(),this.ha(d),v);if(v=this.N.pa(b),v=Et[v],!v)return p.call(this);v=this.ca?v.la:v.pointerType;var S=or(b,this.N,v.N);return S===null?p.call(this):this.da?je(v.N.X,{P:v,O:S,U:this,T:d}):je(v.N.X,{P:v,O:S})},st=t.UnboundTypeError=we("UnboundTypeError");var Jc=typeof atob=="function"?atob:function(d){var p="",b=0;d=d.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d.charAt(b++)),S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d.charAt(b++)),O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d.charAt(b++)),L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d.charAt(b++));v=v<<2|S>>4,S=(S&15)<<4|O>>2;var M=(O&3)<<6|L;p+=String.fromCharCode(v),O!==64&&(p+=String.fromCharCode(S)),L!==64&&(p+=String.fromCharCode(M))}while(b<d.length);return p},Zc={l:function(d,p,b,v){Me("Assertion failed: "+(d?m(y,d):"")+", at: "+[p?p?m(y,p):"":"unknown filename",b,v?v?m(y,v):"":"unknown function"])},q:function(d,p,b){d=le(d),p=Wr(p,"wrapper"),b=Ee(b);var v=[].slice,S=p.N,O=S.X,L=S.R.X,M=S.R.constructor;d=Ae(d,function(){S.R.ja.forEach(function(N){if(this[N]===L[N])throw new Ce("Pure virtual function "+N+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:O}),this.__construct.apply(this,v.call(arguments))}),O.__construct=function(){this===O&&j("Pass correct 'this' to __construct");var N=M.implement.apply(void 0,[this].concat(v.call(arguments)));Ft(N);var $=N.M;N.notifyOnDestruction(),$.aa=!0,Object.defineProperties(this,{M:{value:$}}),ot(this),N=$.O,N=Ge(S,N),be.hasOwnProperty(N)?j("Tried to register registered instance: "+N):be[N]=this},O.__destruct=function(){this===O&&j("Pass correct 'this' to __destruct"),Ft(this);var N=this.M.O;N=Ge(S,N),be.hasOwnProperty(N)?delete be[N]:j("Tried to unregister unregistered instance: "+N)},d.prototype=Object.create(O);for(var D in b)d.prototype[D]=b[D];return Ie(d)},j:function(d){var p=Dt[d];delete Dt[d];var b=p.fa,v=p.W,S=p.ia,O=S.map(L=>L.ta).concat(S.map(L=>L.za));Be([d],O,L=>{var M={};return S.forEach((D,N)=>{var $=L[N],V=D.ra,se=D.sa,Le=L[N+S.length],pe=D.ya,at=D.Aa;M[D.oa]={read:xt=>$.fromWireType(V(se,xt)),write:(xt,zr)=>{var Ut=[];pe(at,xt,Le.toWireType(Ut,zr)),yr(Ut)}}}),[{name:p.name,fromWireType:function(D){var N={},$;for($ in M)N[$]=M[$].read(D);return v(D),N},toWireType:function(D,N){for(var $ in M)if(!($ in N))throw new TypeError('Missing field: "'+$+'"');var V=b();for($ in M)M[$].write(V,N[$]);return D!==null&&D.push(v,V),V},argPackAdvance:8,readValueFromPointer:Pt,V:v}]})},v:function(){},B:function(d,p,b,v,S){var O=vr(b);p=le(p),H(d,{name:p,fromWireType:function(L){return!!L},toWireType:function(L,M){return M?v:S},argPackAdvance:8,readValueFromPointer:function(L){if(b===1)var M=g;else if(b===2)M=x;else if(b===4)M=P;else throw new TypeError("Unknown boolean type size: "+p);return this.fromWireType(M[L>>O])},V:null})},f:function(d,p,b,v,S,O,L,M,D,N,$,V,se){$=le($),O=He(S,O),M&&(M=He(L,M)),N&&(N=He(D,N)),se=He(V,se);var Le=qe($);ke(Le,function(){Wt("Cannot construct "+$+" due to unbound types",[v])}),Be([d,p,b],v?[v]:[],function(pe){if(pe=pe[0],v)var at=pe.N,xt=at.X;else xt=ee.prototype;pe=Ae(Le,function(){if(Object.getPrototypeOf(this)!==zr)throw new Z("Use 'new' to construct "+$);if(Ut.Y===void 0)throw new Z($+" has no accessible constructor");var Ea=Ut.Y[arguments.length];if(Ea===void 0)throw new Z("Tried to invoke ctor of "+$+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Ut.Y).toString()+") parameters instead!");return Ea.apply(this,arguments)});var zr=Object.create(xt,{constructor:{value:pe}});pe.prototype=zr;var Ut=new fe($,pe,zr,se,at,O,M,N);at=new Y($,Ut,!0,!1),xt=new Y($+"*",Ut,!1,!1);var Ta=new Y($+" const*",Ut,!1,!0);return Et[d]={pointerType:xt,la:Ta},Rt(Le,pe),[at,xt,Ta]})},d:function(d,p,b,v,S,O,L){var M=$t(b,v);p=le(p),O=He(S,O),Be([],[d],function(D){function N(){Wt("Cannot call "+$+" due to unbound types",M)}D=D[0];var $=D.name+"."+p;p.startsWith("@@")&&(p=Symbol[p.substring(2)]);var V=D.N.constructor;return V[p]===void 0?(N.Z=b-1,V[p]=N):(J(V,p,$),V[p].S[b-1]=N),Be([],M,function(se){return se=Ye($,[se[0],null].concat(se.slice(1)),null,O,L),V[p].S===void 0?(se.Z=b-1,V[p]=se):V[p].S[b-1]=se,[]}),[]})},p:function(d,p,b,v,S,O){0<p||Me();var L=$t(p,b);S=He(v,S),Be([],[d],function(M){M=M[0];var D="constructor "+M.name;if(M.N.Y===void 0&&(M.N.Y=[]),M.N.Y[p-1]!==void 0)throw new Z("Cannot register multiple constructors with identical number of parameters ("+(p-1)+") for class '"+M.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return M.N.Y[p-1]=()=>{Wt("Cannot construct "+M.name+" due to unbound types",L)},Be([],L,function(N){return N.splice(1,0,null),M.N.Y[p-1]=Ye(D,N,null,S,O),[]}),[]})},a:function(d,p,b,v,S,O,L,M){var D=$t(b,v);p=le(p),O=He(S,O),Be([],[d],function(N){function $(){Wt("Cannot call "+V+" due to unbound types",D)}N=N[0];var V=N.name+"."+p;p.startsWith("@@")&&(p=Symbol[p.substring(2)]),M&&N.N.ja.push(p);var se=N.N.X,Le=se[p];return Le===void 0||Le.S===void 0&&Le.className!==N.name&&Le.Z===b-2?($.Z=b-2,$.className=N.name,se[p]=$):(J(se,p,V),se[p].S[b-2]=$),Be([],D,function(pe){return pe=Ye(V,pe,N,O,L),se[p].S===void 0?(pe.Z=b-2,se[p]=pe):se[p].S[b-2]=pe,[]}),[]})},A:function(d,p){p=le(p),H(d,{name:p,fromWireType:function(b){var v=Ee(b);return Se(b),v},toWireType:function(b,v){return Ie(v)},argPackAdvance:8,readValueFromPointer:Pt,V:null})},n:function(d,p,b){b=vr(b),p=le(p),H(d,{name:p,fromWireType:function(v){return v},toWireType:function(v,S){return S},argPackAdvance:8,readValueFromPointer:lt(p,b),V:null})},e:function(d,p,b,v,S){p=le(p),S===-1&&(S=4294967295),S=vr(b);var O=M=>M;if(v===0){var L=32-8*b;O=M=>M<<L>>>L}b=p.includes("unsigned")?function(M,D){return D>>>0}:function(M,D){return D},H(d,{name:p,fromWireType:O,toWireType:b,argPackAdvance:8,readValueFromPointer:Je(p,S,v!==0),V:null})},b:function(d,p,b){function v(O){O>>=2;var L=T;return new S(h,L[O+1],L[O])}var S=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][p];b=le(b),H(d,{name:b,fromWireType:v,argPackAdvance:8,readValueFromPointer:v},{ua:!0})},o:function(d,p){p=le(p);var b=p==="std::string";H(d,{name:p,fromWireType:function(v){var S=T[v>>2],O=v+4;if(b)for(var L=O,M=0;M<=S;++M){var D=O+M;if(M==S||y[D]==0){if(L=L?m(y,L,D-L):"",N===void 0)var N=L;else N+=String.fromCharCode(0),N+=L;L=D+1}}else{for(N=Array(S),M=0;M<S;++M)N[M]=String.fromCharCode(y[O+M]);N=N.join("")}return Bt(v),N},toWireType:function(v,S){S instanceof ArrayBuffer&&(S=new Uint8Array(S));var O,L=typeof S=="string";if(L||S instanceof Uint8Array||S instanceof Uint8ClampedArray||S instanceof Int8Array||j("Cannot pass non-string to std::string"),b&&L){var M=0;for(O=0;O<S.length;++O){var D=S.charCodeAt(O);127>=D?M++:2047>=D?M+=2:55296<=D&&57343>=D?(M+=4,++O):M+=3}O=M}else O=S.length;if(M=Bi(4+O+1),D=M+4,T[M>>2]=O,b&&L){if(L=D,D=O+1,O=y,0<D){D=L+D-1;for(var N=0;N<S.length;++N){var $=S.charCodeAt(N);if(55296<=$&&57343>=$){var V=S.charCodeAt(++N);$=65536+(($&1023)<<10)|V&1023}if(127>=$){if(L>=D)break;O[L++]=$}else{if(2047>=$){if(L+1>=D)break;O[L++]=192|$>>6}else{if(65535>=$){if(L+2>=D)break;O[L++]=224|$>>12}else{if(L+3>=D)break;O[L++]=240|$>>18,O[L++]=128|$>>12&63}O[L++]=128|$>>6&63}O[L++]=128|$&63}}O[L]=0}}else if(L)for(L=0;L<O;++L)N=S.charCodeAt(L),255<N&&(Bt(D),j("String has UTF-16 code units that do not fit in 8 bits")),y[D+L]=N;else for(L=0;L<O;++L)y[D+L]=S[L];return v!==null&&v.push(Bt,M),M},argPackAdvance:8,readValueFromPointer:Pt,V:function(v){Bt(v)}})},i:function(d,p,b){if(b=le(b),p===2)var v=ft,S=vt,O=Xe,L=()=>w,M=1;else p===4&&(v=ct,S=Ur,O=xr,L=()=>T,M=2);H(d,{name:b,fromWireType:function(D){for(var N=T[D>>2],$=L(),V,se=D+4,Le=0;Le<=N;++Le){var pe=D+4+Le*p;(Le==N||$[pe>>M]==0)&&(se=v(se,pe-se),V===void 0?V=se:(V+=String.fromCharCode(0),V+=se),se=pe+p)}return Bt(D),V},toWireType:function(D,N){typeof N!="string"&&j("Cannot pass non-string to C++ string type "+b);var $=O(N),V=Bi(4+$+p);return T[V>>2]=$>>M,S(N,V+4,$+p),D!==null&&D.push(Bt,V),V},argPackAdvance:8,readValueFromPointer:Pt,V:function(D){Bt(D)}})},k:function(d,p,b,v,S,O){Dt[d]={name:le(p),fa:He(b,v),W:He(S,O),ia:[]}},h:function(d,p,b,v,S,O,L,M,D,N){Dt[d].ia.push({oa:le(p),ta:b,ra:He(v,S),sa:O,za:L,ya:He(M,D),Aa:N})},C:function(d,p){p=le(p),H(d,{va:!0,name:p,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(d,p,b,v,S){d=sr[d],p=Ee(p),b=qr(b);var O=[];return T[v>>2]=Ie(O),d(p,b,O,S)},t:function(d,p,b,v){d=sr[d],p=Ee(p),b=qr(b),d(p,b,null,v)},g:Se,m:function(d,p){var b=Kc(d,p),v=b[0];p=v.name+"_$"+b.slice(1).map(function(L){return L.name}).join("_")+"$";var S=xa[p];if(S!==void 0)return S;var O=Array(d-1);return S=Xc((L,M,D,N)=>{for(var $=0,V=0;V<d-1;++V)O[V]=b[V+1].readValueFromPointer(N+$),$+=b[V+1].argPackAdvance;for(L=L[M].apply(L,O),V=0;V<d-1;++V)b[V+1].ma&&b[V+1].ma(O[V]);if(!v.va)return v.toWireType(D,L)}),xa[p]=S},D:function(d){4<d&&(ne[d].ga+=1)},r:function(d){var p=Ee(d);yr(p),Se(d)},c:function(){Me("")},x:function(d,p,b){y.copyWithin(d,p,p+b)},w:function(d){var p=y.length;if(d>>>=0,2147483648<d)return!1;for(var b=1;4>=b;b*=2){var v=p*(1+.2/b);v=Math.min(v,d+100663296);var S=Math;v=Math.max(d,v),S=S.min.call(S,2147483648,v+(65536-v%65536)%65536);e:{try{f.grow(S-h.byteLength+65535>>>16),_();var O=1;break e}catch{}O=void 0}if(O)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(d,p,b,v){for(var S=0,O=0;O<b;O++){var L=T[p>>2],M=T[p+4>>2];p+=8;for(var D=0;D<M;D++){var N=y[L+D],$=Qc[d];N===0||N===10?((d===1?s:a)(m($,0)),$.length=0):$.push(N)}S+=M}return T[v>>2]=S,0}};(function(){function d(S){t.asm=S.exports,f=t.asm.E,_(),R=t.asm.J,z.unshift(t.asm.F),te--,t.monitorRunDependencies&&t.monitorRunDependencies(te),te==0&&(he!==null&&(clearInterval(he),he=null),de&&(S=de,de=null,S()))}function p(S){d(S.instance)}function b(S){return me().then(function(O){return O instanceof WebAssembly.Instance?O:WebAssembly.instantiate(O,v)}).then(function(O){return O}).then(S,function(O){a("failed to asynchronously prepare wasm: "+O),Me(O)})}var v={a:Zc};if(te++,t.monitorRunDependencies&&t.monitorRunDependencies(te),t.instantiateWasm)try{return t.instantiateWasm(v,d)}catch(S){a("Module.instantiateWasm callback failed with error: "+S),n(S)}return function(){return u||typeof WebAssembly.instantiateStreaming!="function"||Re(Oe)||typeof fetch!="function"?b(p):fetch(Oe,{credentials:"same-origin"}).then(function(S){return WebAssembly.instantiateStreaming(S,v).then(p,function(O){return a("wasm streaming compile failed: "+O),a("falling back to ArrayBuffer instantiation"),b(p)})})}().catch(n),{}})(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.F).apply(null,arguments)};var Sa=t.___getTypeName=function(){return(Sa=t.___getTypeName=t.asm.G).apply(null,arguments)};t.__embind_initialize_bindings=function(){return(t.__embind_initialize_bindings=t.asm.H).apply(null,arguments)};var Bi=t._malloc=function(){return(Bi=t._malloc=t.asm.I).apply(null,arguments)},Bt=t._free=function(){return(Bt=t._free=t.asm.K).apply(null,arguments)};t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.L).apply(null,arguments)};var qn;de=function d(){qn||_a(),qn||(de=d)};function _a(){function d(){if(!qn&&(qn=!0,t.calledRun=!0,!c)){if(rt(z),r(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;){var p=t.postRun.shift();G.unshift(p)}rt(G)}}if(!(0<te)){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)ie();rt(C),0<te||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),d()},1)):d())}}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();return _a(),e.ready}var Qa,Za=ar(()=>{Qa=""});async function eu(e){let{default:t}=await Promise.resolve().then(()=>(Za(),Ja));return Ji(await t(e))}var tu=ar(()=>{Ka();Xn()});var eo={};Gn(eo,{getYoga:()=>Rd,init:()=>Od});async function Pd(e,t){let r;if(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL?r=await fetch(e):r=await e,typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,t)}catch(o){r.headers.get("Content-Type")!=="application/wasm"&&console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o)}let i=await r.arrayBuffer();return await WebAssembly.instantiate(i,t)}let n=await WebAssembly.instantiate("buffer"in r?r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength):r,t);return n instanceof WebAssembly.Instance?{instance:n,module:r}:n}function Od(e){Ed({instantiateWasm(t,r){return Pd(e,t).then(({instance:n})=>{r(n)}).catch(Zi),{}}}).then(ru).catch(Zi)}function Rd(){return kd}var Ed,ru,Zi,kd,to=ar(()=>{tu();Ed=eu,kd=new Promise((e,t)=>{ru=e,Zi=t})});var Lo=q(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Object.defineProperty(Co,"default",{enumerable:!0,get:()=>fh});function fh(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 cl=q(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Object.defineProperty(Mo,"default",{enumerable:!0,get:()=>ch});var ch=["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 dl=q(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Object.defineProperty(Fo,"default",{enumerable:!0,get:()=>dh});function dh(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 No=q((Nw,pl)=>{pl.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 xi={};Gn(xi,{default:()=>ph});var ph,wi=ar(()=>{ph={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 hl=q(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Object.defineProperty(Do,"default",{enumerable:!0,get:()=>gh});var hh=mh((wi(),jn(xi)));function mh(e){return e&&e.__esModule?e:{default:e}}function nn({version:e,from:t,to:r}){hh.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 gh={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 nn({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return nn({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return nn({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return nn({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return nn({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var ml=q(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Object.defineProperty(Wo,"defaults",{enumerable:!0,get:()=>bh});function bh(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 gl=q($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});Object.defineProperty($o,"toPath",{enumerable:!0,get:()=>yh});function yh(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 yl=q(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Object.defineProperty(Bo,"normalizeConfig",{enumerable:!0,get:()=>xh});var on=vh((wi(),jn(xi)));function bl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(bl=function(n){return n?r:t})(e)}function vh(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=bl(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 xh(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})()||on.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")on.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,l,f,c,m,h,g,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||(l=u.extract)===null||l===void 0)&&l.DEFAULT?e.purge.extract.DEFAULT:!((f=e.content)===null||f===void 0||(c=f.extract)===null||c===void 0)&&c.DEFAULT?e.content.extract.DEFAULT:!((m=e.purge)===null||m===void 0||(h=m.options)===null||h===void 0)&&h.extractors?e.purge.options.extractors:!((g=e.content)===null||g===void 0||(y=g.options)===null||y===void 0)&&y.extractors?e.content.options.extractors:{}})(),i={},o=(()=>{var s,a,u,l;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||(l=u.options)===null||l===void 0)&&l.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,l,f;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:!((l=e.content)===null||l===void 0||(f=l.transform)===null||f===void 0)&&f.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)){on.default.warn("invalid-glob-braces",[`The glob pattern ${(0,on.dim)(n)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,on.dim)(n.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var vl=q(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Object.defineProperty(Uo,"default",{enumerable:!0,get:()=>wh});function wh(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var xl=q(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});Object.defineProperty(zo,"cloneDeep",{enumerable:!0,get:()=>qo});function qo(e){return Array.isArray(e)?e.map(t=>qo(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,qo(r)])):e}});var Go=q((Si,wl)=>{"use strict";Si.__esModule=!0;Si.default=Th;function Sh(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 _h=/\\/;function Th(e){var t=_h.test(e);if(!t)return e;for(var r="",n=0;n<e.length;n++){if(e[n]==="\\"){var i=Sh(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}wl.exports=Si.default});var _l=q((_i,Sl)=>{"use strict";_i.__esModule=!0;_i.default=Eh;function Eh(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}Sl.exports=_i.default});var El=q((Ti,Tl)=>{"use strict";Ti.__esModule=!0;Ti.default=kh;function kh(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]}}Tl.exports=Ti.default});var Pl=q((Ei,kl)=>{"use strict";Ei.__esModule=!0;Ei.default=Ph;function Ph(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}kl.exports=Ei.default});var sn=q(Ct=>{"use strict";Ct.__esModule=!0;Ct.stripComments=Ct.ensureObject=Ct.getProp=Ct.unesc=void 0;var Oh=ki(Go());Ct.unesc=Oh.default;var Rh=ki(_l());Ct.getProp=Rh.default;var Ah=ki(El());Ct.ensureObject=Ah.default;var Ih=ki(Pl());Ct.stripComments=Ih.default;function ki(e){return e&&e.__esModule?e:{default:e}}});var Ht=q((an,Al)=>{"use strict";an.__esModule=!0;an.default=void 0;var Ol=sn();function Rl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ch(e,t,r){return t&&Rl(e.prototype,t),r&&Rl(e,r),e}var Lh=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},Mh=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=Lh(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("")},Ch(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,Ol.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,Ol.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=n}}]),e}();an.default=Mh;Al.exports=an.default});var Ue=q(ve=>{"use strict";ve.__esModule=!0;ve.UNIVERSAL=ve.ATTRIBUTE=ve.CLASS=ve.COMBINATOR=ve.COMMENT=ve.ID=ve.NESTING=ve.PSEUDO=ve.ROOT=ve.SELECTOR=ve.STRING=ve.TAG=void 0;var Fh="tag";ve.TAG=Fh;var Nh="string";ve.STRING=Nh;var Dh="selector";ve.SELECTOR=Dh;var Wh="root";ve.ROOT=Wh;var $h="pseudo";ve.PSEUDO=$h;var Bh="nesting";ve.NESTING=Bh;var Uh="id";ve.ID=Uh;var qh="comment";ve.COMMENT=qh;var zh="combinator";ve.COMBINATOR=zh;var Gh="class";ve.CLASS=Gh;var jh="attribute";ve.ATTRIBUTE=jh;var Vh="universal";ve.UNIVERSAL=Vh});var Pi=q((un,Ml)=>{"use strict";un.__esModule=!0;un.default=void 0;var Hh=Xh(Ht()),Yt=Yh(Ue());function Ll(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Ll=function(){return e},e}function Yh(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Ll();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 Xh(e){return e&&e.__esModule?e:{default:e}}function Kh(e,t){var r;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(r=Qh(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 Qh(e,t){if(e){if(typeof e=="string")return Il(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 Il(e,t)}}function Il(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 Cl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Jh(e,t,r){return t&&Cl(e.prototype,t),r&&Cl(e,r),e}function Zh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jo(e,t)}function jo(e,t){return jo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},jo(e,t)}var em=function(e){Zh(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=Kh(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===Yt.ATTRIBUTE)return i.call(o,s)})},r.walkClasses=function(i){var o=this;return this.walk(function(s){if(s.type===Yt.CLASS)return i.call(o,s)})},r.walkCombinators=function(i){var o=this;return this.walk(function(s){if(s.type===Yt.COMBINATOR)return i.call(o,s)})},r.walkComments=function(i){var o=this;return this.walk(function(s){if(s.type===Yt.COMMENT)return i.call(o,s)})},r.walkIds=function(i){var o=this;return this.walk(function(s){if(s.type===Yt.ID)return i.call(o,s)})},r.walkNesting=function(i){var o=this;return this.walk(function(s){if(s.type===Yt.NESTING)return i.call(o,s)})},r.walkPseudos=function(i){var o=this;return this.walk(function(s){if(s.type===Yt.PSEUDO)return i.call(o,s)})},r.walkTags=function(i){var o=this;return this.walk(function(s){if(s.type===Yt.TAG)return i.call(o,s)})},r.walkUniversals=function(i){var o=this;return this.walk(function(s){if(s.type===Yt.UNIVERSAL)return i.call(o,s)})},r.split=function(i){var o=this,s=[];return this.reduce(function(a,u,l){var f=i.call(o,u);return s.push(u),f?(a.push(s),s=[]):l===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("")},Jh(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}(Hh.default);un.default=em;Ml.exports=un.default});var Ho=q((ln,Nl)=>{"use strict";ln.__esModule=!0;ln.default=void 0;var tm=nm(Pi()),rm=Ue();function nm(e){return e&&e.__esModule?e:{default:e}}function Fl(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 im(e,t,r){return t&&Fl(e.prototype,t),r&&Fl(e,r),e}function om(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 sm=function(e){om(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=rm.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)},im(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(tm.default);ln.default=sm;Nl.exports=ln.default});var Xo=q((fn,Dl)=>{"use strict";fn.__esModule=!0;fn.default=void 0;var am=lm(Pi()),um=Ue();function lm(e){return e&&e.__esModule?e:{default:e}}function fm(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 cm=function(e){fm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=um.SELECTOR,n}return t}(am.default);fn.default=cm;Dl.exports=fn.default});var Oi=q((jw,Wl)=>{"use strict";var dm={},pm=dm.hasOwnProperty,hm=function(t,r){if(!t)return r;var n={};for(var i in r)n[i]=pm.call(t,i)?t[i]:r[i];return n},mm=/[ -,\.\/:-@\[-\^`\{-~]/,gm=/[ -,\.\/:-@\[\]\^`\{-~]/,bm=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Ko=function e(t,r){r=hm(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 l=t.charAt(a++),f=l.charCodeAt(),c=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&a<u){var m=t.charCodeAt(a++);(m&64512)==56320?f=((f&1023)<<10)+(m&1023)+65536:a--}c="\\"+f.toString(16).toUpperCase()+" "}else r.escapeEverything?mm.test(l)?c="\\"+l:c="\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?c="\\"+f.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&n==l||l=="'"&&n==l)||i&&gm.test(l)?c="\\"+l:c=l;s+=c}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(bm,function(h,g,y){return g&&g.length%2?h:(g||"")+y}),!i&&r.wrap?n+s+n:s};Ko.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Ko.version="3.0.0";Wl.exports=Ko});var Jo=q((cn,Ul)=>{"use strict";cn.__esModule=!0;cn.default=void 0;var ym=Bl(Oi()),vm=sn(),xm=Bl(Ht()),wm=Ue();function Bl(e){return e&&e.__esModule?e:{default:e}}function $l(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 Sm(e,t,r){return t&&$l(e.prototype,t),r&&$l(e,r),e}function _m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qo(e,t)}function Qo(e,t){return Qo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Qo(e,t)}var Tm=function(e){_m(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=wm.CLASS,i._constructed=!0,i}var r=t.prototype;return r.valueToString=function(){return"."+e.prototype.valueToString.call(this)},Sm(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=(0,ym.default)(i,{isIdentifier:!0});o!==i?((0,vm.ensureObject)(this,"raws"),this.raws.value=o):this.raws&&delete this.raws.value}this._value=i}}]),t}(xm.default);cn.default=Tm;Ul.exports=cn.default});var es=q((dn,ql)=>{"use strict";dn.__esModule=!0;dn.default=void 0;var Em=Pm(Ht()),km=Ue();function Pm(e){return e&&e.__esModule?e:{default:e}}function Om(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zo(e,t)}function Zo(e,t){return Zo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Zo(e,t)}var Rm=function(e){Om(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=km.COMMENT,n}return t}(Em.default);dn.default=Rm;ql.exports=dn.default});var rs=q((pn,zl)=>{"use strict";pn.__esModule=!0;pn.default=void 0;var Am=Cm(Ht()),Im=Ue();function Cm(e){return e&&e.__esModule?e:{default:e}}function Lm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ts(e,t)}function ts(e,t){return ts=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ts(e,t)}var Mm=function(e){Lm(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=Im.ID,i}var r=t.prototype;return r.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(Am.default);pn.default=Mm;zl.exports=pn.default});var Ri=q((hn,Vl)=>{"use strict";hn.__esModule=!0;hn.default=void 0;var Fm=jl(Oi()),Nm=sn(),Dm=jl(Ht());function jl(e){return e&&e.__esModule?e:{default:e}}function Gl(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 Wm(e,t,r){return t&&Gl(e.prototype,t),r&&Gl(e,r),e}function $m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ns(e,t)}function ns(e,t){return ns=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ns(e,t)}var Bm=function(e){$m(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))},Wm(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,Fm.default)(i,{isIdentifier:!0});this._namespace=i,o!==i?((0,Nm.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}(Dm.default);hn.default=Bm;Vl.exports=hn.default});var os=q((mn,Hl)=>{"use strict";mn.__esModule=!0;mn.default=void 0;var Um=zm(Ri()),qm=Ue();function zm(e){return e&&e.__esModule?e:{default:e}}function Gm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,is(e,t)}function is(e,t){return is=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},is(e,t)}var jm=function(e){Gm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=qm.TAG,n}return t}(Um.default);mn.default=jm;Hl.exports=mn.default});var as=q((gn,Yl)=>{"use strict";gn.__esModule=!0;gn.default=void 0;var Vm=Ym(Ht()),Hm=Ue();function Ym(e){return e&&e.__esModule?e:{default:e}}function Xm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ss(e,t)}function ss(e,t){return ss=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ss(e,t)}var Km=function(e){Xm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Hm.STRING,n}return t}(Vm.default);gn.default=Km;Yl.exports=gn.default});var ls=q((bn,Xl)=>{"use strict";bn.__esModule=!0;bn.default=void 0;var Qm=Zm(Pi()),Jm=Ue();function Zm(e){return e&&e.__esModule?e:{default:e}}function e0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,us(e,t)}function us(e,t){return us=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},us(e,t)}var t0=function(e){e0(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=Jm.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}(Qm.default);bn.default=t0;Xl.exports=bn.default});var Ql=q((Vw,Kl)=>{Kl.exports=function(t,r){return function(...n){return console.warn(r),t(...n)}}});var ms=q(xn=>{"use strict";xn.__esModule=!0;xn.unescapeValue=hs;xn.default=void 0;var yn=ps(Oi()),r0=ps(Go()),n0=ps(Ri()),i0=Ue(),fs;function ps(e){return e&&e.__esModule?e:{default:e}}function Jl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o0(e,t,r){return t&&Jl(e.prototype,t),r&&Jl(e,r),e}function s0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ds(e,t)}function ds(e,t){return ds=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ds(e,t)}var vn=Ql(),a0=/^('|")([^]*)\1$/,u0=vn(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),l0=vn(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),f0=vn(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function hs(e){var t=!1,r=null,n=e,i=n.match(a0);return i&&(r=i[1],n=i[2]),n=(0,r0.default)(n),n!==e&&(t=!0),{deprecatedUsage:t,unescaped:n,quoteMark:r}}function c0(e){if(e.quoteMark!==void 0||e.value===void 0)return e;f0();var t=hs(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){s0(t,e);function t(n){var i;return n===void 0&&(n={}),i=e.call(this,c0(n))||this,i.type=i0.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:vn(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:vn(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=cs[o],a=(0,yn.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,yn.default)(o,{isIdentifier:!0});if(u===o)return t.NO_QUOTE;var l=this.preferredQuoteMark(i);if(l===t.NO_QUOTE){var f=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,c=cs[f],m=(0,yn.default)(o,c);if(m.length<u.length)return f}return l}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,yn.default)(this._value,cs[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,yn.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=Zl);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 l=this._spacesFor("value");o+=l.before.length;var f=this.stringifyProperty("value");if(i==="value")return f?o:-1;o+=f.length,o+=l.after.length;var c=this._spacesFor("insensitive");return o+=c.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=" "),Zl(s,a)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},o0(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){l0()}},{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=hs(i),s=o.deprecatedUsage,a=o.unescaped,u=o.quoteMark;if(s&&u0(),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}(n0.default);xn.default=Ai;Ai.NO_QUOTE=null;Ai.SINGLE_QUOTE="'";Ai.DOUBLE_QUOTE='"';var cs=(fs={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},fs[null]={isIdentifier:!0},fs);function Zl(e,t){return""+t.before+e+t.after}});var bs=q((wn,ef)=>{"use strict";wn.__esModule=!0;wn.default=void 0;var d0=h0(Ri()),p0=Ue();function h0(e){return e&&e.__esModule?e:{default:e}}function m0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gs(e,t)}function gs(e,t){return gs=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},gs(e,t)}var g0=function(e){m0(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=p0.UNIVERSAL,n.value="*",n}return t}(d0.default);wn.default=g0;ef.exports=wn.default});var vs=q((Sn,tf)=>{"use strict";Sn.__esModule=!0;Sn.default=void 0;var b0=v0(Ht()),y0=Ue();function v0(e){return e&&e.__esModule?e:{default:e}}function x0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ys(e,t)}function ys(e,t){return ys=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ys(e,t)}var w0=function(e){x0(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=y0.COMBINATOR,n}return t}(b0.default);Sn.default=w0;tf.exports=Sn.default});var ws=q((_n,rf)=>{"use strict";_n.__esModule=!0;_n.default=void 0;var S0=T0(Ht()),_0=Ue();function T0(e){return e&&e.__esModule?e:{default:e}}function E0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xs(e,t)}function xs(e,t){return xs=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},xs(e,t)}var k0=function(e){E0(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=_0.NESTING,n.value="&",n}return t}(S0.default);_n.default=k0;rf.exports=_n.default});var of=q((Ii,nf)=>{"use strict";Ii.__esModule=!0;Ii.default=P0;function P0(e){return e.sort(function(t,r){return t-r})}nf.exports=Ii.default});var Ss=q(U=>{"use strict";U.__esModule=!0;U.combinator=U.word=U.comment=U.str=U.tab=U.newline=U.feed=U.cr=U.backslash=U.bang=U.slash=U.doubleQuote=U.singleQuote=U.space=U.greaterThan=U.pipe=U.equals=U.plus=U.caret=U.tilde=U.dollar=U.closeSquare=U.openSquare=U.closeParenthesis=U.openParenthesis=U.semicolon=U.colon=U.comma=U.at=U.asterisk=U.ampersand=void 0;var O0=38;U.ampersand=O0;var R0=42;U.asterisk=R0;var A0=64;U.at=A0;var I0=44;U.comma=I0;var C0=58;U.colon=C0;var L0=59;U.semicolon=L0;var M0=40;U.openParenthesis=M0;var F0=41;U.closeParenthesis=F0;var N0=91;U.openSquare=N0;var D0=93;U.closeSquare=D0;var W0=36;U.dollar=W0;var $0=126;U.tilde=$0;var B0=94;U.caret=B0;var U0=43;U.plus=U0;var q0=61;U.equals=q0;var z0=124;U.pipe=z0;var G0=62;U.greaterThan=G0;var j0=32;U.space=j0;var sf=39;U.singleQuote=sf;var V0=34;U.doubleQuote=V0;var H0=47;U.slash=H0;var Y0=33;U.bang=Y0;var X0=92;U.backslash=X0;var K0=13;U.cr=K0;var Q0=12;U.feed=Q0;var J0=10;U.newline=J0;var Z0=9;U.tab=Z0;var eg=sf;U.str=eg;var tg=-1;U.comment=tg;var rg=-2;U.word=rg;var ng=-3;U.combinator=ng});var lf=q(Tn=>{"use strict";Tn.__esModule=!0;Tn.default=fg;Tn.FIELDS=void 0;var W=ig(Ss()),Ir,ge;function uf(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return uf=function(){return e},e}function ig(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=uf();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 og=(Ir={},Ir[W.tab]=!0,Ir[W.newline]=!0,Ir[W.cr]=!0,Ir[W.feed]=!0,Ir),sg=(ge={},ge[W.space]=!0,ge[W.tab]=!0,ge[W.newline]=!0,ge[W.cr]=!0,ge[W.feed]=!0,ge[W.ampersand]=!0,ge[W.asterisk]=!0,ge[W.bang]=!0,ge[W.comma]=!0,ge[W.colon]=!0,ge[W.semicolon]=!0,ge[W.openParenthesis]=!0,ge[W.closeParenthesis]=!0,ge[W.openSquare]=!0,ge[W.closeSquare]=!0,ge[W.singleQuote]=!0,ge[W.doubleQuote]=!0,ge[W.plus]=!0,ge[W.pipe]=!0,ge[W.tilde]=!0,ge[W.greaterThan]=!0,ge[W.equals]=!0,ge[W.dollar]=!0,ge[W.caret]=!0,ge[W.slash]=!0,ge),_s={},af="0123456789abcdefABCDEF";for(Ci=0;Ci<af.length;Ci++)_s[af.charCodeAt(Ci)]=!0;var Ci;function ag(e,t){var r=t,n;do{if(n=e.charCodeAt(r),sg[n])return r-1;n===W.backslash?r=ug(e,r)+1:r++}while(r<e.length);return r-1}function ug(e,t){var r=t,n=e.charCodeAt(r+1);if(!og[n])if(_s[n]){var i=0;do r++,i++,n=e.charCodeAt(r+1);while(_s[n]&&i<6);i<6&&n===W.space&&r++}else r++;return r}var lg={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};Tn.FIELDS=lg;function fg(e){var t=[],r=e.css.valueOf(),n=r,i=n.length,o=-1,s=1,a=0,u=0,l,f,c,m,h,g,y,x,w,P,T,A,E;function _(R,C){if(e.safe)r+=C,w=r.length-1;else throw e.error("Unclosed "+R,s,a-o,a)}for(;a<i;){switch(l=r.charCodeAt(a),l===W.newline&&(o=a,s+=1),l){case W.space:case W.tab:case W.newline:case W.cr:case W.feed:w=a;do w+=1,l=r.charCodeAt(w),l===W.newline&&(o=w,s+=1);while(l===W.space||l===W.newline||l===W.tab||l===W.cr||l===W.feed);E=W.space,m=s,c=w-o-1,u=w;break;case W.plus:case W.greaterThan:case W.tilde:case W.pipe:w=a;do w+=1,l=r.charCodeAt(w);while(l===W.plus||l===W.greaterThan||l===W.tilde||l===W.pipe);E=W.combinator,m=s,c=a-o,u=w;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:w=a,E=l,m=s,c=a-o,u=w+1;break;case W.singleQuote:case W.doubleQuote:A=l===W.singleQuote?"'":'"',w=a;do for(h=!1,w=r.indexOf(A,w+1),w===-1&&_("quote",A),g=w;r.charCodeAt(g-1)===W.backslash;)g-=1,h=!h;while(h);E=W.str,m=s,c=a-o,u=w+1;break;default:l===W.slash&&r.charCodeAt(a+1)===W.asterisk?(w=r.indexOf("*/",a+2)+1,w===0&&_("comment","*/"),f=r.slice(a,w+1),x=f.split(`
|
|
4
|
-
`),y=x.length-1,y>0?(P=s+y,T=w-x[y].length):(P=s,T=o),E=W.comment,s=P,m=P,c=w-T):l===W.slash?(w=a,E=l,m=s,c=a-o,u=w+1):(w=ag(r,a),E=W.word,m=s,c=w-o),u=w+1;break}t.push([E,s,a-o,m,c,a,u]),T&&(o=T,T=null),a=u}return t}});var bf=q((En,gf)=>{"use strict";En.__esModule=!0;En.default=void 0;var cg=ht(Ho()),Ts=ht(Xo()),dg=ht(Jo()),ff=ht(es()),pg=ht(rs()),hg=ht(os()),Es=ht(as()),mg=ht(ls()),cf=Li(ms()),gg=ht(bs()),ks=ht(vs()),bg=ht(ws()),yg=ht(of()),F=Li(lf()),B=Li(Ss()),vg=Li(Ue()),_e=sn(),dr,Ps;function mf(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return mf=function(){return e},e}function Li(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=mf();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 ht(e){return e&&e.__esModule?e:{default:e}}function df(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 xg(e,t,r){return t&&df(e.prototype,t),r&&df(e,r),e}var As=(dr={},dr[B.space]=!0,dr[B.cr]=!0,dr[B.feed]=!0,dr[B.newline]=!0,dr[B.tab]=!0,dr),wg=Object.assign({},As,(Ps={},Ps[B.comment]=!0,Ps));function pf(e){return{line:e[F.FIELDS.START_LINE],column:e[F.FIELDS.START_COL]}}function hf(e){return{line:e[F.FIELDS.END_LINE],column:e[F.FIELDS.END_COL]}}function pr(e,t,r,n){return{start:{line:e,column:t},end:{line:r,column:n}}}function Cr(e){return pr(e[F.FIELDS.START_LINE],e[F.FIELDS.START_COL],e[F.FIELDS.END_LINE],e[F.FIELDS.END_COL])}function Os(e,t){if(e)return pr(e[F.FIELDS.START_LINE],e[F.FIELDS.START_COL],t[F.FIELDS.END_LINE],t[F.FIELDS.END_COL])}function Lr(e,t){var r=e[t];if(typeof r=="string")return r.indexOf("\\")!==-1&&((0,_e.ensureObject)(e,"raws"),e[t]=(0,_e.unesc)(r),e.raws[t]===void 0&&(e.raws[t]=r)),e}function Rs(e,t){for(var r=-1,n=[];(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}function Sg(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,r){return r===e.indexOf(t)})}var _g=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,F.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=Os(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new cg.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new Ts.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[F.FIELDS.TYPE]!==B.closeSquare;)n.push(this.currToken),this.position++;if(this.currToken[F.FIELDS.TYPE]!==B.closeSquare)return this.expected("closing square bracket",this.currToken[F.FIELDS.START_POS]);var o=n.length,s={source:pr(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[F.FIELDS.START_POS]};if(o===1&&!~[B.word].indexOf(n[0][F.FIELDS.TYPE]))return this.expected("attribute",n[0][F.FIELDS.START_POS]);for(var a=0,u="",l="",f=null,c=!1;a<o;){var m=n[a],h=this.content(m),g=n[a+1];switch(m[F.FIELDS.TYPE]){case B.space:if(c=!0,this.options.lossy)break;if(f){(0,_e.ensureObject)(s,"spaces",f);var y=s.spaces[f].after||"";s.spaces[f].after=y+h;var x=(0,_e.getProp)(s,"raws","spaces",f,"after")||null;x&&(s.raws.spaces[f].after=x+h)}else u=u+h,l=l+h;break;case B.asterisk:if(g[F.FIELDS.TYPE]===B.equals)s.operator=h,f="operator";else if((!s.namespace||f==="namespace"&&!c)&&g){u&&((0,_e.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,_e.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,l=""),s.namespace=(s.namespace||"")+h;var w=(0,_e.getProp)(s,"raws","namespace")||null;w&&(s.raws.namespace+=h),f="namespace"}c=!1;break;case B.dollar:if(f==="value"){var P=(0,_e.getProp)(s,"raws","value");s.value+="$",P&&(s.raws.value=P+"$");break}case B.caret:g[F.FIELDS.TYPE]===B.equals&&(s.operator=h,f="operator"),c=!1;break;case B.combinator:if(h==="~"&&g[F.FIELDS.TYPE]===B.equals&&(s.operator=h,f="operator"),h!=="|"){c=!1;break}g[F.FIELDS.TYPE]===B.equals?(s.operator=h,f="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),c=!1;break;case B.word:if(g&&this.content(g)==="|"&&n[a+2]&&n[a+2][F.FIELDS.TYPE]!==B.equals&&!s.operator&&!s.namespace)s.namespace=h,f="namespace";else if(!s.attribute||f==="attribute"&&!c){u&&((0,_e.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,_e.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=l,l=""),s.attribute=(s.attribute||"")+h;var T=(0,_e.getProp)(s,"raws","attribute")||null;T&&(s.raws.attribute+=h),f="attribute"}else if(!s.value&&s.value!==""||f==="value"&&!c){var A=(0,_e.unesc)(h),E=(0,_e.getProp)(s,"raws","value")||"",_=s.value||"";s.value=_+A,s.quoteMark=null,(A!==h||E)&&((0,_e.ensureObject)(s,"raws"),s.raws.value=(E||_)+h),f="value"}else{var R=h==="i"||h==="I";(s.value||s.value==="")&&(s.quoteMark||c)?(s.insensitive=R,(!R||h==="I")&&((0,_e.ensureObject)(s,"raws"),s.raws.insensitiveFlag=h),f="insensitive",u&&((0,_e.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),l&&((0,_e.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=l,l="")):(s.value||s.value==="")&&(f="value",s.value+=h,s.raws.value&&(s.raws.value+=h))}c=!1;break;case B.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:m[F.FIELDS.START_POS]});var C=(0,cf.unescapeValue)(h),z=C.unescaped,G=C.quoteMark;s.value=z,s.quoteMark=G,f="value",(0,_e.ensureObject)(s,"raws"),s.raws.value=h,c=!1;break;case B.equals:if(!s.attribute)return this.expected("attribute",m[F.FIELDS.START_POS],h);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:m[F.FIELDS.START_POS]});s.operator=s.operator?s.operator+h:h,f="operator",c=!1;break;case B.comment:if(f)if(c||g&&g[F.FIELDS.TYPE]===B.space||f==="insensitive"){var ie=(0,_e.getProp)(s,"spaces",f,"after")||"",te=(0,_e.getProp)(s,"raws","spaces",f,"after")||ie;(0,_e.ensureObject)(s,"raws","spaces",f),s.raws.spaces[f].after=te+h}else{var he=s[f]||"",de=(0,_e.getProp)(s,"raws",f)||he;(0,_e.ensureObject)(s,"raws"),s.raws[f]=de+h}else l=l+h;break;default:return this.error('Unexpected "'+h+'" found.',{index:m[F.FIELDS.START_POS]})}a++}Lr(s,"attribute"),Lr(s,"namespace"),this.newNode(new cf.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(As[this.currToken[F.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[F.FIELDS.TYPE]===B.comment){var u={};s&&(u.before=s,s=""),a=new ff.default({value:this.content(),source:Cr(this.currToken),sourceIndex:this.currToken[F.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 l=this.tokens[i],f=this.tokens[this.position-1];o.push(new Es.default({value:"",source:pr(l[F.FIELDS.START_LINE],l[F.FIELDS.START_COL],f[F.FIELDS.END_LINE],f[F.FIELDS.END_COL]),sourceIndex:l[F.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(l){var f=o.lossySpace(l.spaces.before,i),c=o.lossySpace(l.rawSpaceBefore,i);s+=f+o.lossySpace(l.spaces.after,i&&f.length===0),a+=f+l.value+o.lossySpace(l.rawSpaceAfter,i&&c.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][F.FIELDS.TYPE]===B.slash&&this.tokens[n+1]&&this.tokens[n+1][F.FIELDS.TYPE]===B.word&&this.tokens[n+2]&&this.tokens[n+2][F.FIELDS.TYPE]===B.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var n=this.content(this.tokens[this.position+1]),i=(0,_e.unesc)(n).toLowerCase(),o={};i!==n&&(o.value="/"+n+"/");var s=new ks.default({value:"/"+i+"/",source:pr(this.currToken[F.FIELDS.START_LINE],this.currToken[F.FIELDS.START_COL],this.tokens[this.position+2][F.FIELDS.END_LINE],this.tokens[this.position+2][F.FIELDS.END_COL]),sourceIndex:this.currToken[F.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][F.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,l=a.rawSpace;l!==void 0&&(s.rawSpaceAfter+=l),s.spaces.after+=u}else o.forEach(function(E){return n.newNode(E)})}return}var f=this.currToken,c=void 0;i>this.position&&(c=this.parseWhitespaceEquivalentTokens(i));var m;if(this.isNamedCombinator()?m=this.namedCombinator():this.currToken[F.FIELDS.TYPE]===B.combinator?(m=new ks.default({value:this.content(),source:Cr(this.currToken),sourceIndex:this.currToken[F.FIELDS.START_POS]}),this.position++):As[this.currToken[F.FIELDS.TYPE]]||c||this.unexpected(),m){if(c){var h=this.convertWhitespaceNodesToSpace(c),g=h.space,y=h.rawSpace;m.spaces.before=g,m.rawSpaceBefore=y}}else{var x=this.convertWhitespaceNodesToSpace(c,!0),w=x.space,P=x.rawSpace;P||(P=w);var T={},A={spaces:{}};w.endsWith(" ")&&P.endsWith(" ")?(T.before=w.slice(0,w.length-1),A.spaces.before=P.slice(0,P.length-1)):w.startsWith(" ")&&P.startsWith(" ")?(T.after=w.slice(1),A.spaces.after=P.slice(1)):A.value=P,m=new ks.default({value:" ",source:Os(f,this.tokens[this.position-1]),sourceIndex:f[F.FIELDS.START_POS],spaces:T,raws:A})}return this.currToken&&this.currToken[F.FIELDS.TYPE]===B.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 Ts.default({source:{start:pf(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 ff.default({value:this.content(),source:Cr(n),sourceIndex:n[F.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[F.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[F.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[F.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[F.FIELDS.START_POS])},t.namespace=function(){var n=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[F.FIELDS.TYPE]===B.word)return this.position++,this.word(n);if(this.nextToken[F.FIELDS.TYPE]===B.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 bg.default({value:this.content(),source:Cr(i),sourceIndex:i[F.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var n=this.current.last,i=1;if(this.position++,n&&n.type===vg.PSEUDO){var o=new Ts.default({source:{start:pf(this.tokens[this.position-1])}}),s=this.current;for(n.append(o),this.current=o;this.position<this.tokens.length&&i;)this.currToken[F.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[F.FIELDS.TYPE]===B.closeParenthesis&&i--,i?this.parse():(this.current.source.end=hf(this.currToken),this.current.parent.source.end=hf(this.currToken),this.position++);this.current=s}else{for(var a=this.currToken,u="(",l;this.position<this.tokens.length&&i;)this.currToken[F.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[F.FIELDS.TYPE]===B.closeParenthesis&&i--,l=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;n?n.appendToPropertyAndEscape("value",u,u):this.newNode(new Es.default({value:u,source:pr(a[F.FIELDS.START_LINE],a[F.FIELDS.START_COL],l[F.FIELDS.END_LINE],l[F.FIELDS.END_COL]),sourceIndex:a[F.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[F.FIELDS.START_POS])},t.pseudo=function(){for(var n=this,i="",o=this.currToken;this.currToken&&this.currToken[F.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[F.FIELDS.TYPE]===B.word)this.splitWord(!1,function(s,a){i+=s,n.newNode(new mg.default({value:i,source:Os(o,n.currToken),sourceIndex:o[F.FIELDS.START_POS]})),a>1&&n.nextToken&&n.nextToken[F.FIELDS.TYPE]===B.openParenthesis&&n.error("Misplaced parenthesis.",{index:n.nextToken[F.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[F.FIELDS.START_POS])},t.space=function(){var n=this.content();this.position===0||this.prevToken[F.FIELDS.TYPE]===B.comma||this.prevToken[F.FIELDS.TYPE]===B.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[F.FIELDS.TYPE]===B.comma||this.nextToken[F.FIELDS.TYPE]===B.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(n),this.position++):this.combinator()},t.string=function(){var n=this.currToken;this.newNode(new Es.default({value:this.content(),source:Cr(n),sourceIndex:n[F.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 gg.default({value:this.content(),source:Cr(o),sourceIndex:o[F.FIELDS.START_POS]}),n),this.position++},t.splitWord=function(n,i){for(var o=this,s=this.nextToken,a=this.content();s&&~[B.dollar,B.caret,B.equals,B.word].indexOf(s[F.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&l[F.FIELDS.TYPE]===B.space&&(a+=this.requiredSpace(this.content(l)),this.position++)}s=this.nextToken}var f=Rs(a,".").filter(function(g){var y=a[g-1]==="\\",x=/^\d+\.\d+%$/.test(a);return!y&&!x}),c=Rs(a,"#").filter(function(g){return a[g-1]!=="\\"}),m=Rs(a,"#{");m.length&&(c=c.filter(function(g){return!~m.indexOf(g)}));var h=(0,yg.default)(Sg([0].concat(f,c)));h.forEach(function(g,y){var x=h[y+1]||a.length,w=a.slice(g,x);if(y===0&&i)return i.call(o,w,h.length);var P,T=o.currToken,A=T[F.FIELDS.START_POS]+h[y],E=pr(T[1],T[2]+g,T[3],T[2]+(x-1));if(~f.indexOf(g)){var _={value:w.slice(1),source:E,sourceIndex:A};P=new dg.default(Lr(_,"value"))}else if(~c.indexOf(g)){var R={value:w.slice(1),source:E,sourceIndex:A};P=new pg.default(Lr(R,"value"))}else{var C={value:w,source:E,sourceIndex:A};Lr(C,"value"),P=new hg.default(C)}o.newNode(P,n),n=null}),this.position++},t.word=function(n){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(n)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(n){switch(this.currToken[F.FIELDS.TYPE]){case B.space:this.space();break;case B.comment:this.comment();break;case B.openParenthesis:this.parentheses();break;case B.closeParenthesis:n&&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(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[F.FIELDS.TYPE]===B.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,Lr(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[F.FIELDS.START_POS],n[F.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(n){n===void 0&&(n=this.position+1);for(var i=n;i<this.tokens.length;)if(wg[this.tokens[i][F.FIELDS.TYPE]]){i++;continue}else return i;return-1},xg(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}();En.default=_g;gf.exports=En.default});var vf=q((kn,yf)=>{"use strict";kn.__esModule=!0;kn.default=void 0;var Tg=Eg(bf());function Eg(e){return e&&e.__esModule?e:{default:e}}var kg=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 Tg.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(l){var f=void 0;return o._shouldUpdateSelector(n,i)&&(f=u.toString(),n.selector=f),{transform:l,root:u,string:f}}).then(s,a)}catch(l){a(l);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}();kn.default=kg;yf.exports=kn.default});var xf=q(xe=>{"use strict";xe.__esModule=!0;xe.universal=xe.tag=xe.string=xe.selector=xe.root=xe.pseudo=xe.nesting=xe.id=xe.comment=xe.combinator=xe.className=xe.attribute=void 0;var Pg=mt(ms()),Og=mt(Jo()),Rg=mt(vs()),Ag=mt(es()),Ig=mt(rs()),Cg=mt(ws()),Lg=mt(ls()),Mg=mt(Ho()),Fg=mt(Xo()),Ng=mt(as()),Dg=mt(os()),Wg=mt(bs());function mt(e){return e&&e.__esModule?e:{default:e}}var $g=function(t){return new Pg.default(t)};xe.attribute=$g;var Bg=function(t){return new Og.default(t)};xe.className=Bg;var Ug=function(t){return new Rg.default(t)};xe.combinator=Ug;var qg=function(t){return new Ag.default(t)};xe.comment=qg;var zg=function(t){return new Ig.default(t)};xe.id=zg;var Gg=function(t){return new Cg.default(t)};xe.nesting=Gg;var jg=function(t){return new Lg.default(t)};xe.pseudo=jg;var Vg=function(t){return new Mg.default(t)};xe.root=Vg;var Hg=function(t){return new Fg.default(t)};xe.selector=Hg;var Yg=function(t){return new Ng.default(t)};xe.string=Yg;var Xg=function(t){return new Dg.default(t)};xe.tag=Xg;var Kg=function(t){return new Wg.default(t)};xe.universal=Kg});var Tf=q(ae=>{"use strict";ae.__esModule=!0;ae.isNode=Is;ae.isPseudoElement=_f;ae.isPseudoClass=ab;ae.isContainer=ub;ae.isNamespace=lb;ae.isUniversal=ae.isTag=ae.isString=ae.isSelector=ae.isRoot=ae.isPseudo=ae.isNesting=ae.isIdentifier=ae.isComment=ae.isCombinator=ae.isClassName=ae.isAttribute=void 0;var Te=Ue(),Ze,Qg=(Ze={},Ze[Te.ATTRIBUTE]=!0,Ze[Te.CLASS]=!0,Ze[Te.COMBINATOR]=!0,Ze[Te.COMMENT]=!0,Ze[Te.ID]=!0,Ze[Te.NESTING]=!0,Ze[Te.PSEUDO]=!0,Ze[Te.ROOT]=!0,Ze[Te.SELECTOR]=!0,Ze[Te.STRING]=!0,Ze[Te.TAG]=!0,Ze[Te.UNIVERSAL]=!0,Ze);function Is(e){return typeof e=="object"&&Qg[e.type]}function gt(e,t){return Is(t)&&t.type===e}var wf=gt.bind(null,Te.ATTRIBUTE);ae.isAttribute=wf;var Jg=gt.bind(null,Te.CLASS);ae.isClassName=Jg;var Zg=gt.bind(null,Te.COMBINATOR);ae.isCombinator=Zg;var eb=gt.bind(null,Te.COMMENT);ae.isComment=eb;var tb=gt.bind(null,Te.ID);ae.isIdentifier=tb;var rb=gt.bind(null,Te.NESTING);ae.isNesting=rb;var Cs=gt.bind(null,Te.PSEUDO);ae.isPseudo=Cs;var nb=gt.bind(null,Te.ROOT);ae.isRoot=nb;var ib=gt.bind(null,Te.SELECTOR);ae.isSelector=ib;var ob=gt.bind(null,Te.STRING);ae.isString=ob;var Sf=gt.bind(null,Te.TAG);ae.isTag=Sf;var sb=gt.bind(null,Te.UNIVERSAL);ae.isUniversal=sb;function _f(e){return Cs(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 ab(e){return Cs(e)&&!_f(e)}function ub(e){return!!(Is(e)&&e.walk)}function lb(e){return wf(e)||Sf(e)}});var Ef=q(_t=>{"use strict";_t.__esModule=!0;var Ls=Ue();Object.keys(Ls).forEach(function(e){e==="default"||e==="__esModule"||e in _t&&_t[e]===Ls[e]||(_t[e]=Ls[e])});var Ms=xf();Object.keys(Ms).forEach(function(e){e==="default"||e==="__esModule"||e in _t&&_t[e]===Ms[e]||(_t[e]=Ms[e])});var Fs=Tf();Object.keys(Fs).forEach(function(e){e==="default"||e==="__esModule"||e in _t&&_t[e]===Fs[e]||(_t[e]=Fs[e])})});var Of=q((Pn,Pf)=>{"use strict";Pn.__esModule=!0;Pn.default=void 0;var fb=pb(vf()),cb=db(Ef());function kf(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return kf=function(){return e},e}function db(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=kf();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 pb(e){return e&&e.__esModule?e:{default:e}}var Ns=function(t){return new fb.default(t)};Object.assign(Ns,cb);delete Ns.__esModule;var hb=Ns;Pn.default=hb;Pf.exports=Pn.default});var Rf=q(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Object.defineProperty(Ds,"default",{enumerable:!0,get:()=>mb});function mb(e){return e.replace(/\\,/g,"\\2c ")}});var If=q((eS,Af)=>{"use strict";Af.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 $s=q(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});function gb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}gb(Ws,{parseColor:()=>Sb,formatColor:()=>_b});var Cf=bb(If());function bb(e){return e&&e.__esModule?e:{default:e}}var yb=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,vb=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,tr=/(?:\d+|\d*\.\d+)%?/,Mi=/(?:\s*,\s*|\s+)/,Lf=/\s*[,/]\s*/,rr=/var\(--(?:[^ )]*?)\)/,xb=new RegExp(`^(rgb)a?\\(\\s*(${tr.source}|${rr.source})(?:${Mi.source}(${tr.source}|${rr.source}))?(?:${Mi.source}(${tr.source}|${rr.source}))?(?:${Lf.source}(${tr.source}|${rr.source}))?\\s*\\)$`),wb=new RegExp(`^(hsl)a?\\(\\s*((?:${tr.source})(?:deg|rad|grad|turn)?|${rr.source})(?:${Mi.source}(${tr.source}|${rr.source}))?(?:${Mi.source}(${tr.source}|${rr.source}))?(?:${Lf.source}(${tr.source}|${rr.source}))?\\s*\\)$`);function Sb(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 Cf.default)return{mode:"rgb",color:Cf.default[e].map(u=>u.toString())};let i=e.replace(vb,(u,l,f,c,m)=>["#",l,l,f,f,c,c,m?m+m:""].join("")).match(yb);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(xb))!==null&&o!==void 0?o:e.match(wb);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 _b({mode:e,color:t,alpha:r}){let n=r!==void 0;return`${e}(${t.join(" ")}${n?` / ${r}`:""})`}});var Us=q(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});function Tb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Tb(Bs,{withAlphaValue:()=>Eb,default:()=>kb});var Fi=$s();function Eb(e,t,r){if(typeof e=="function")return e({opacityValue:t});let n=(0,Fi.parseColor)(e,{loose:!0});return n===null?r:(0,Fi.formatColor)({...n,alpha:t})}function kb({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,Fi.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,Fi.formatColor)({...i,alpha:`var(${r})`})]))}}});var Wf=q(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});function Pb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Pb(qs,{pattern:()=>Rb,withoutCapturing:()=>Ff,any:()=>Nf,optional:()=>Ab,zeroOrMore:()=>Ib,nestedBrackets:()=>Df,escape:()=>hr});var Mf=/[\\^$.*+?()[\]{}|]/g,Ob=RegExp(Mf.source);function On(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function Rb(e){return new RegExp(On(e),"g")}function Ff(e){return new RegExp(`(?:${On(e)})`,"g")}function Nf(e){return`(?:${e.map(On).join("|")})`}function Ab(e){return`(?:${On(e)})?`}function Ib(e){return`(?:${On(e)})*`}function Df(e,t,r=1){return Ff([hr(e),/[^\s]*/,r===1?`[^${hr(e)}${hr(t)}s]*`:Nf([`[^${hr(e)}${hr(t)}s]*`,Df(e,t,r-1)]),/[^\s]*/,hr(t)])}function hr(e){return e&&Ob.test(e)?e.replace(Mf,"\\$&"):e||""}});var Bf=q(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});Object.defineProperty(zs,"splitAtTopLevelOnly",{enumerable:!0,get:()=>Mb});var Cb=Lb(Wf());function $f(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return($f=function(n){return n?r:t})(e)}function Lb(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=$f(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*Mb(e,t){let r=new RegExp(`[(){}\\[\\]${Cb.escape(t)}]`,"g"),n=0,i=0,o=!1,s=0,a=0,u=t.length;for(let l of e.matchAll(r)){let f=l[0]===t[s],c=s===u-1,m=f&&c;l[0]==="("&&n++,l[0]===")"&&n--,l[0]==="["&&n++,l[0]==="]"&&n--,l[0]==="{"&&n++,l[0]==="}"&&n--,f&&n===0&&(a===0&&(a=l.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 qf=q(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});function Fb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Fb(Gs,{parseBoxShadowValue:()=>$b,formatBoxShadowValue:()=>Bb});var Nb=Bf(),Db=new Set(["inset","inherit","initial","revert","unset"]),Wb=/\ +(?![^(]*\))/g,Uf=/^-?(\d+|\.\d+)(.*?)$/g;function $b(e){return Array.from((0,Nb.splitAtTopLevelOnly)(e,",")).map(r=>{let n=r.trim(),i={raw:n},o=n.split(Wb),s=new Set;for(let a of o)Uf.lastIndex=0,!s.has("KEYWORD")&&Db.has(a)?(i.keyword=a,s.add("KEYWORD")):Uf.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 Bb(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 Xf=q(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});function Ub(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Ub(Vs,{normalize:()=>nr,url:()=>jf,number:()=>Gb,percentage:()=>Vf,length:()=>Hf,lineWidth:()=>Hb,shadow:()=>Yb,color:()=>Xb,image:()=>Kb,gradient:()=>Yf,position:()=>Zb,familyName:()=>ey,genericName:()=>ry,absoluteSize:()=>iy,relativeSize:()=>sy});var qb=$s(),zb=qf(),js=["min","max","clamp","calc"],Gf=/,(?![^(]*\))/g,Ni=/_(?![^(]*\))/g;function nr(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(r=>/^url\(.*?\)$/.test(r)?r:nr(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 jf(e){return e.startsWith("url(")}function Gb(e){return!isNaN(Number(e))||js.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function Vf(e){return e.split(Ni).every(t=>/%$/g.test(t)||js.some(r=>new RegExp(`^${r}\\(.+?%`).test(t)))}var jb=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],zf=`(?:${jb.join("|")})`;function Hf(e){return e.split(Ni).every(t=>t==="0"||new RegExp(`${zf}$`).test(t)||js.some(r=>new RegExp(`^${r}\\(.+?${zf}`).test(t)))}var Vb=new Set(["thin","medium","thick"]);function Hb(e){return Vb.has(e)}function Yb(e){let t=(0,zb.parseBoxShadowValue)(nr(e));for(let r of t)if(!r.valid)return!1;return!0}function Xb(e){let t=0;return e.split(Ni).every(n=>(n=nr(n),n.startsWith("var(")?!0:(0,qb.parseColor)(n,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function Kb(e){let t=0;return e.split(Gf).every(n=>(n=nr(n),n.startsWith("var(")?!0:jf(n)||Yf(n)||["element(","image(","cross-fade(","image-set("].some(i=>n.startsWith(i))?(t++,!0):!1))?t>0:!1}var Qb=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function Yf(e){e=nr(e);for(let t of Qb)if(e.startsWith(`${t}(`))return!0;return!1}var Jb=new Set(["center","top","right","bottom","left"]);function Zb(e){let t=0;return e.split(Ni).every(n=>(n=nr(n),n.startsWith("var(")?!0:Jb.has(n)||Hf(n)||Vf(n)?(t++,!0):!1))?t>0:!1}function ey(e){let t=0;return e.split(Gf).every(n=>(n=nr(n),n.startsWith("var(")?!0:n.includes(" ")&&!/(['"])([^"']+)\1/g.test(n)||/^\d/g.test(n)?!1:(t++,!0)))?t>0:!1}var ty=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function ry(e){return ty.has(e)}var ny=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function iy(e){return ny.has(e)}var oy=new Set(["larger","smaller"]);function sy(e){return oy.has(e)}});var nc=q(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});function ay(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}ay(Xs,{updateAllClasses:()=>fy,asValue:()=>An,parseColorFormat:()=>Hs,asColor:()=>ec,asLookupValue:()=>tc,coerceValue:()=>hy});var uy=Ys(Of()),ly=Ys(Rf()),Kf=Us(),et=Xf(),Qf=Ys(Lo());function Ys(e){return e&&e.__esModule?e:{default:e}}function fy(e,t){return(0,uy.default)(i=>{i.walkClasses(o=>{let s=t(o.value);o.value=s,o.raws&&o.raws.value&&(o.raws.value=(0,ly.default)(o.raws.value))})}).processSync(e)}function Zf(e,t){if(!Rn(e))return;let r=e.slice(1,-1);if(t(r))return(0,et.normalize)(r)}function cy(e,t={},r){let n=t[e];if(n!==void 0)return(0,Qf.default)(n);if(Rn(e)){let i=Zf(e,r);return i===void 0?void 0:(0,Qf.default)(i)}}function An(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("-")?cy(e.slice(1),t.values,r):Zf(e,r)}function Rn(e){return e.startsWith("[")&&e.endsWith("]")}function dy(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function Hs(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:r=1})=>t.replace("<alpha-value>",r)}return e}function ec(e,t={},{tailwindConfig:r={}}={}){var n;if(((n=t.values)===null||n===void 0?void 0:n[e])!==void 0){var i;return Hs((i=t.values)===null||i===void 0?void 0:i[e])}let[o,s]=dy(e);if(s!==void 0){var a,u,l,f;let c=(f=(a=t.values)===null||a===void 0?void 0:a[o])!==null&&f!==void 0?f:Rn(o)?o.slice(1,-1):void 0;return c===void 0?void 0:(c=Hs(c),Rn(s)?(0,Kf.withAlphaValue)(c,s.slice(1,-1)):((u=r.theme)===null||u===void 0||(l=u.opacity)===null||l===void 0?void 0:l[s])===void 0?void 0:(0,Kf.withAlphaValue)(c,r.theme.opacity[s]))}return An(e,t,{validate:et.color})}function tc(e,t={}){var r;return(r=t.values)===null||r===void 0?void 0:r[e]}function bt(e){return(t,r)=>An(t,r,{validate:e})}var rc={any:An,color:ec,url:bt(et.url),image:bt(et.image),length:bt(et.length),percentage:bt(et.percentage),position:bt(et.position),lookup:tc,"generic-name":bt(et.genericName),"family-name":bt(et.familyName),number:bt(et.number),"line-width":bt(et.lineWidth),"absolute-size":bt(et.absoluteSize),"relative-size":bt(et.relativeSize),shadow:bt(et.shadow)},Jf=Object.keys(rc);function py(e,t){let r=e.indexOf(t);return r===-1?[void 0,e]:[e.slice(0,r),e.slice(r+1)]}function hy(e,t,r,n){if(Rn(t)){let i=t.slice(1,-1),[o,s]=py(i,":");if(!/^[\w-_]+$/g.test(o))s=i;else if(o!==void 0&&!Jf.includes(o))return[];if(s.length>0&&Jf.includes(o))return[An(`[${s}]`,r),o]}for(let i of[].concat(e)){let o=rc[i](t,r,{tailwindConfig:n});if(o!==void 0)return[o,i]}return[]}});var ic=q(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Object.defineProperty(Ks,"default",{enumerable:!0,get:()=>my});function my(e){return typeof e=="function"?e({}):e}});var lc=q(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Object.defineProperty(Js,"default",{enumerable:!0,get:()=>Fy});var gy=mr(Lo()),by=mr(cl()),yy=mr(dl()),vy=mr(No()),xy=mr(hl()),ac=ml(),oc=gl(),wy=yl(),Sy=mr(vl()),_y=xl(),Ty=nc(),Ey=Us(),ky=mr(ic());function mr(e){return e&&e.__esModule?e:{default:e}}function Mr(e){return typeof e=="function"}function In(e){return typeof e=="object"&&e!==null}function Cn(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?In(e[i])&&In(n[i])?e[i]=Cn(e[i],n[i],r):e[i]=n[i]:e[i]=o}return e}var Qs={colors:xy.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,r)=>{let n=(0,gy.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 Py(e,...t){return Mr(e)?e(...t):e}function Oy(e){return e.reduce((t,{extend:r})=>Cn(t,r,(n,i)=>n===void 0?[i]:Array.isArray(n)?[i,...n]:[i,n]),{})}function Ry(e){return{...e.reduce((t,r)=>(0,ac.defaults)(t,r),{}),extend:Oy(e)}}function sc(e,t){if(Array.isArray(e)&&In(e[0]))return e.concat(t);if(Array.isArray(t)&&In(t[0])&&In(e))return[e,...t];if(Array.isArray(t))return t}function Ay({extend:e,...t}){return Cn(t,e,(r,n)=>!Mr(r)&&!n.some(Mr)?Cn({},r,...n,sc):(i,o)=>Cn({},...[r,...n].map(s=>Py(s,i,o)),sc))}function*Iy(e){let t=(0,oc.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,oc.toPath)(i);s.alpha=o,yield s}}function Cy(e){let t=(r,n)=>{for(let i of Iy(r)){let o=0,s=e;for(;s!=null&&o<i.length;)s=s[i[o++]],s=Mr(s)&&(i.alpha===void 0||o<=i.length-1)?s(t,Qs):s;if(s!==void 0){if(i.alpha!==void 0){let a=(0,Ty.parseColorFormat)(s);return(0,Ey.withAlphaValue)(a,i.alpha,(0,ky.default)(a))}return(0,Sy.default)(s)?(0,_y.cloneDeep)(s):s}}return n};return Object.assign(t,{theme:t,...Qs}),Object.keys(e).reduce((r,n)=>(r[n]=Mr(e[n])?e[n](t,Qs):e[n],r),{})}function uc(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,...uc([(s=o==null?void 0:o.config)!==null&&s!==void 0?s:{}])]})}),t}function Ly(e){return[...e].reduceRight((r,n)=>Mr(n)?n({corePlugins:r}):(0,yy.default)(n,r),by.default)}function My(e){return[...e].reduceRight((r,n)=>[...r,...n],[])}function Fy(e){let t=[...uc(e),{prefix:"",important:!1,separator:":",variantOrder:vy.default.variantOrder}];var r,n;return(0,wy.normalizeConfig)((0,ac.defaults)({theme:Cy(Ay(Ry(t.map(i=>(r=i==null?void 0:i.theme)!==null&&r!==void 0?r:{})))),corePlugins:Ly(t.map(i=>i.corePlugins)),plugins:My(e.map(i=>(n=i==null?void 0:i.plugins)!==null&&n!==void 0?n:[]))},...t))}});var fc={};Gn(fc,{default:()=>Ny});var Ny,cc=ar(()=>{Ny={yellow:e=>e}});var mc=q(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});function Dy(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Dy(Zs,{flagEnabled:()=>By,issueFlagNotices:()=>Uy,default:()=>qy});var Wy=hc((cc(),jn(fc))),$y=hc((wi(),jn(xi)));function hc(e){return e&&e.__esModule?e:{default:e}}var dc={optimizeUniversalDefaults:!1},Ln={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function By(e,t){if(Ln.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:dc[t])!==null&&i!==void 0?i:!1)}if(Ln.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:dc[t])!==null&&a!==void 0?a:!1)}return!1}function pc(e){if(e.experimental==="all")return Ln.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(r=>Ln.experimental.includes(r)&&e.experimental[r])}function Uy(e){if(process.env.JEST_WORKER_ID===void 0&&pc(e).length>0){let t=pc(e).map(r=>Wy.default.yellow(r)).join(", ");$y.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 qy=Ln});var bc=q(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});Object.defineProperty(ea,"default",{enumerable:!0,get:()=>gc});var zy=jy(No()),Gy=mc();function jy(e){return e&&e.__esModule?e:{default:e}}function gc(e){var t;let r=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[zy.default]).slice().reverse().flatMap(o=>gc(typeof o=="function"?o():o)),n={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(n).filter(o=>(0,Gy.flagEnabled)(e,o)).map(o=>n[o]);return[e,...i,...r]}});var vc=q(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});Object.defineProperty(ta,"default",{enumerable:!0,get:()=>Yy});var Vy=yc(lc()),Hy=yc(bc());function yc(e){return e&&e.__esModule?e:{default:e}}function Yy(...e){let[,...t]=(0,Hy.default)(e[0]);return(0,Vy.default)([...e,...t])}});var wc=q((pS,xc)=>{var ra=vc();xc.exports=(ra.__esModule?ra:{default:ra}).default});import La from"escape-html";import bd from"linebreak";var Gr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sd=Gr((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),ad=Gr((e,t)=>{t.exports=["deg","grad","rad","turn"]}),ud=Gr((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),ld=Gr((e,t)=>{t.exports=["Hz","kHz"]}),fd=Gr((e,t)=>{t.exports=["s","ms"]}),cd=sd(),Pa=ad(),Oa=ud(),Ra=ld(),Aa=fd();function qi(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(dd(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=Ui(e),this.unit="%";return}var t=hd(e);if(!t){this.type="number",this.value=Ui(e);return}this.type=gd(t),this.value=Ui(e.substr(0,e.length-t.length)),this.unit=t}qi.prototype.valueOf=function(){return this.value};qi.prototype.toString=function(){return this.value+(this.unit||"")};function wt(e){return new qi(e)}function dd(e){var t=e.match(/\./g);return t?t.length:0}function Ui(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var pd=[].concat(Pa,Ra,cd,Oa,Aa);function hd(e){var t=e.match(/\D+$/),r=t&&t[0];if(r&&pd.indexOf(r)===-1)throw new Error("Invalid unit: "+r);return r}var md=Object.assign(Vn(Pa,"angle"),Vn(Ra,"frequency"),Vn(Oa,"resolution"),Vn(Aa,"time"));function Vn(e,t){return Object.fromEntries(e.map(r=>[r,t]))}function gd(e){return md[e]||"length"}function Sr(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function Ma(e){return/^class\s/.test(e.toString())}function ji(e){return e&&e.$$typeof===Symbol.for("react.forward_ref")}function Fa(e){return typeof e=="function"||ji(e)}function Na(e){return"dangerouslySetInnerHTML"in e}function Da(e){let t=typeof e>"u"?[]:[].concat(e).flat(1/0),r=[];for(let n=0;n<t.length;n++){let i=t[n];typeof i>"u"||typeof i=="boolean"||i===null||(typeof i=="number"&&(i=String(i)),typeof i=="string"&&r.length&&typeof r[r.length-1]=="string"?r[r.length-1]+=i:r.push(i))}return r}function X(e,t,r,n,i=!1){if(typeof e=="number")return e;try{if(e=e.trim(),/[ /\(,]/.test(e))return;if(e===String(+e))return+e;let o=new wt(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 ur(e);if(o.type==="percentage"&&i)return o.value/100*r}}catch{}}function ur(e){let t=new wt(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 jr(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 Ke(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 zi,Gi,Wa=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e)),wr=new Map,yd=500;function De(e,t,r){let n=`${t}:${r||""}:${e}`;if(wr.has(n))return wr.get(n);if(!zi||!Gi){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");zi=new Intl.Segmenter(r,{granularity:"word"}),Gi=new Intl.Segmenter(r,{granularity:"grapheme"})}let i;if(t==="grapheme")i=[...Gi.segment(e)].map(o=>o.segment);else{let o=[...zi.segment(e)].map(u=>u.segment),s=[],a=0;for(;a<o.length;){let u=o[a];if(u=="\xA0"){let l=a===0?"":s.pop(),f=a===o.length-1?"":o[a+1];s.push(l+"\xA0"+f),a+=2}else s.push(u),a++}i=s}if(wr.size>=yd){let o=wr.keys().next().value;wr.delete(o)}return wr.set(n,i),i}function I(e,t,r){Ca(e,"element");let n="";for(let[i,o]of Object.entries(t))typeof o<"u"&&(Ca(i,"attribute"),n+=` ${i}="${wd(o)}"`);return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}/>`}var $a=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",vd=$a+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",xd=new RegExp("^["+$a+"]["+vd+"]*$","u"),Ia=new Set;function Ca(e,t){if(!Ia.has(e)){if(!xd.test(e))throw new Error(`Invalid XML ${t} name: ${JSON.stringify(e)}`);Ia.add(e)}}function wd(e){return typeof e=="number"||typeof e=="bigint"||typeof e=="boolean"?""+e:La(String(e))}function Ba(e){return La(String(e))}function Ua(e=20){let t=new Map;function r(o){let s=t.get(o);if(s!==void 0)return t.delete(o),t.set(o,s),s}function n(o,s){if(t.has(o))t.delete(o);else if(t.size>=e){let a=t.keys().next().value;t.delete(a)}t.set(o,s)}function i(){t.clear()}return{set:n,get:r,clear:i}}function _r(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Hn(e){return typeof e=="string"}function qa(e){return typeof e=="number"}function za(e){return typeof e>"u"}function qt(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 Kt(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:De(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:De(e,"word"),requiredBreaks:[]};let r=new bd(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 ja=e=>e.replaceAll(/([A-Z])/g,(t,r)=>`-${r.toLowerCase()}`);function zt(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 Ad(e){return Promise.resolve().then(()=>(to(),eo)).then(t=>t.init(e))}function Qt(){return Promise.resolve().then(()=>(to(),eo)).then(e=>e.getYoga())}var nu=Symbol.for("react.fragment");var Qn=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;var Id=new Set([301,302,303,307,308]);function ro(e){let t=e.split(".").map(o=>Number.parseInt(o,10));if(t.length!==4||t.some(o=>!Number.isInteger(o)||o<0||o>255))return!0;let[r,n,i]=t;return r===0||r===10||r===100&&n>=64&&n<=127||r===127||r===169&&n===254||r===172&&n>=16&&n<=31||r===192&&n===0&&i===0||r===192&&n===168||r===198&&(n===18||n===19)||r>=224}function Cd(e){let t=e,r=t.indexOf("%");r!==-1&&(t=t.slice(0,r));let n=t.split("::");if(n.length>2)return null;let i=s=>{if(s==="")return[];let a=[],u=s.split(":");for(let l=0;l<u.length;l++){let f=u[l];if(f.includes(".")){if(l!==u.length-1||!Qn.test(f))return null;let[c,m,h,g]=f.split(".").map(y=>Number.parseInt(y,10));if([c,m,h,g].some(y=>!Number.isInteger(y)||y<0||y>255))return null;a.push(c<<8|m,h<<8|g);continue}if(!/^[0-9a-f]{1,4}$/.test(f))return null;a.push(Number.parseInt(f,16))}return a},o=i(n[0]);if(o===null)return null;if(n.length===2){let s=i(n[1]);if(s===null)return null;let a=8-o.length-s.length;return a<0?null:[...o,...new Array(a).fill(0),...s]}return o.length===8?o:null}function Ld(e){let t=a=>e.slice(0,a).every(u=>u===0);if(!(t(6)||t(5)&&e[5]===65535||t(4)&&e[4]===65535&&e[5]===0||e[0]===100&&e[1]===65435&&e[2]===0&&e[3]===0&&e[4]===0&&e[5]===0||e[0]===100&&e[1]===65435&&e[2]===1))return null;let n=e[6]>>8&255,i=e[6]&255,o=e[7]>>8&255,s=e[7]&255;return`${n}.${i}.${o}.${s}`}function ou(e){let t=Cd(e);if(t===null)return!0;let r=Ld(t);return r?ro(r):!!(t.every(n=>n===0)||t.slice(0,7).every(n=>n===0)&&t[7]===1||(t[0]&65024)===64512||(t[0]&65472)===65152||(t[0]&65472)===65216||(t[0]&65280)===65280||t[0]===8193&&t[1]===3512)}function Md(e){let t=e.toLowerCase().replace(/^\[|\]$/g,"");return Qn.test(t)?ro(t):t.includes(":")?ou(t):!0}function su(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!=="http:"&&t.protocol!=="https:")return null;let r=t.hostname.toLowerCase().replace(/\.+$/,"");return r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1)),r?{url:t,host:r}:null}function Fd(e){let t=su(e);if(!t)return!0;let{host:r}=t;return r==="localhost"||r.endsWith(".localhost")||r==="local"||r.endsWith(".local")||r==="internal"||r.endsWith(".internal")?!0:Qn.test(r)?ro(r):r.includes(":")?ou(r):!1}function Kn(e){return new Error(`Image source resolves to a blocked address (SSRF protection): ${e}`)}function Nd(e){if(Fd(e))throw Kn(e)}var Pr;async function Dd(){if(Pr!==void 0)return Pr;if(typeof window<"u")return Pr=null,null;try{let t=await new Function("s","return import(s)")("node:dns/promises");return Pr=(r,n)=>t.lookup(r,n),Pr}catch{return Pr=null,null}}async function Wd(e,t){Nd(e);let r=su(e);if(!r)throw Kn(e);let{host:n}=r;if(Qn.test(n)||n.includes(":"))return;let i=t&&"lookup"in t?t.lookup:await Dd();if(!i)return;let o;try{o=await i(n,{all:!0})}catch{throw new Error(`Can't resolve image host: ${e}`)}if(o.length===0)throw new Error(`Can't resolve image host: ${e}`);for(let{address:s}of o)if(Md(s))throw Kn(e)}async function iu(e){try{e.body&&typeof e.body.cancel=="function"?await e.body.cancel():typeof e.arrayBuffer=="function"&&await e.arrayBuffer()}catch{}}async function au(e,t){let r=(t==null?void 0:t.fetch)??globalThis.fetch,n=e;for(let i=0;i<=10;i++){await Wd(n,t);let o=await r(n,{redirect:"manual"});if(o.type==="opaqueredirect")throw await iu(o),Kn(n);let s=o.headers.get("location");if(Id.has(o.status)&&s){await iu(o),n=new URL(s,n).href;continue}return o}throw new Error(`Image source redirected too many times (SSRF protection): ${e}`)}var $d="image/avif",Jn="image/webp",Zn="image/apng",ei="image/png",ti="image/jpeg",ri="image/gif",no="image/svg+xml";function fu(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 cu(e){let t=new DataView(e),r=new Uint8Array(e);if(t.byteLength<20||t.getUint32(0)!==1380533830||t.getUint32(8)!==1464156752)throw new TypeError("Invalid WebP");let n=t.getUint32(4,!0)+8;if(n<20||n>t.byteLength)throw new TypeError("Invalid WebP");let i=12;for(;i+8<=n;){let o=t.getUint32(i),s=t.getUint32(i+4,!0),a=i+8,u=a+s;if(u>n)throw new TypeError("Invalid WebP");if(o===1448097824){if(s<10||r[a+3]!==157||r[a+4]!==1||r[a+5]!==42)throw new TypeError("Invalid WebP");let l=t.getUint16(a+6,!0)&16383,f=t.getUint16(a+8,!0)&16383;if(!l||!f)throw new TypeError("Invalid WebP");return[l,f]}if(o===1448097868){if(s<5||r[a]!==47)throw new TypeError("Invalid WebP");let l=t.getUint32(a+1,!0);return[(l&16383)+1,(l>>>14&16383)+1]}if(o===1448097880){if(s<10)throw new TypeError("Invalid WebP");return[r[a+4]+(r[a+5]<<8)+(r[a+6]<<16)+1,r[a+7]+(r[a+8]<<8)+(r[a+9]<<16)+1]}i=u+s%2}throw new TypeError("Invalid WebP")}function du(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function pu(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var At=Ua(500),Hr=new Map,Bd=[ei,Zn,ti,ri,no,Jn],Ud=/<svg[^>]*>/i,qd=/viewBox=['"]([^'"]+)['"]/,zd=/width=['"](\d*\.?\d+)['"]/,Gd=/height=['"](\d*\.?\d+)['"]/;function jd(e){let t=new Uint8Array(e),r=32768,n="";for(let i=0;i<t.length;i+=r){let o=t.subarray(i,Math.min(i+r,t.length));n+=String.fromCharCode(...o)}return btoa(n)}function Vd(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 uu(e,t){let r=t.match(Ud);if(!r)throw new Error(`Failed to parse SVG from ${e}`);let n=r[0],i=qd.exec(n),o=zd.exec(n),s=Gd.exec(n),a=i?_r(i[1]):null;if(!a&&(!o||!s))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let u=a?[a[2],a[3]]:[+o[1],+s[1]],l=u[0]/u[1];return o&&s?[+o[1],+s[1]]:o?[+o[1],+o[1]/l]:s?[+s[1]*l,+s[1]]:[u[0],u[1]]}function lu(e){let t,r=Hd(new Uint8Array(e));switch(r){case ei:case Zn:t=pu(e);break;case ri:t=du(e);break;case ti:t=fu(e);break;case Jn:t=cu(e);break}if(!Bd.includes(r))throw new Error(`Unsupported image type: ${r||"unknown"}`);return[`data:${r};base64,${jd(e)}`,t]}async function Or(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[o,s]=lu(e);return[o,...s]}if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),typeof window>"u"&&!e.startsWith("http")&&!e.startsWith("data:"))throw new Error(`Image source must be an absolute URL: ${e}`);if(e.startsWith("data:")){let o;try{o=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:s,encodingType:a,dataString:u}=o;if(s===no){let l=a==="base64"?atob(u):decodeURIComponent(u.replace(/ /g,"%20")),f=a==="base64"?e:`data:image/svg+xml;base64,${btoa(l)}`,c=uu(e,l);return At.set(e,[f,...c]),[f,...c]}else if(a==="base64"){let l,f=Vd(u);switch(s){case ei:case Zn:l=pu(f);break;case ri:l=du(f);break;case ti:l=fu(f);break;case Jn:l=cu(f);break}return At.set(e,[e,...l]),[e,...l]}else return console.warn("Image data URI resolved without size:"+e),At.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Hr.has(e))return Hr.get(e);let t=At.get(e);if(t)return t;let r=e,i=(typeof window>"u"?()=>au(r):()=>fetch(r))().then(o=>{let s=o.headers.get("content-type");return s==="image/svg+xml"||s==="application/svg+xml"?o.text():o.arrayBuffer()}).then(o=>{if(typeof o=="string")try{let u=`data:image/svg+xml;base64,${btoa(o)}`,l=uu(r,o);return[u,...l]}catch(u){throw new Error(`Failed to parse SVG image: ${u.message}`)}let[s,a]=lu(o);return[s,...a]}).then(o=>(At.set(r,o),o)).catch(o=>{if(o instanceof Error&&o.message.includes("SSRF protection"))throw o;return console.error(`Can't load image ${r}: `+o.message),At.set(r,[]),[]});return Hr.set(r,i),i}function Hd(e){return[255,216,255].every((t,r)=>e[r]===t)?ti:[137,80,78,71,13,10,26,10].every((t,r)=>e[r]===t)?Yd(e)?Zn:ei:[71,73,70,56].every((t,r)=>e[r]===t)?ri:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,r)=>!t||e[r]===t)?Jn:[60,63,120,109,108].every((t,r)=>e[r]===t)?no:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,r)=>!t||e[r]===t)?$d:null}function Yd(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 hu={accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",href:"href",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink"},Xd=/[\r\n%#()<>?[\\\]^`{|}"'&]/g;function ni(e,t){if(!e)return"";if(Array.isArray(e))return e.map(u=>ni(u,t)).join("");if(typeof e!="object")return Ba(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;if(r===nu)return ni(n,s);if(typeof r!="string")throw new Error("Only intrinsic elements are supported inside <svg>");let a={};for(let[u,l]of Object.entries(o)){let f=l;typeof f=="string"&&f.toLowerCase()==="currentcolor"&&(f=s),(u==="href"||u==="xlinkHref")&&r==="image"&&(f=At.get(f)[0]);let c=hu[u]||u;a[c]=f}return i&&(a.style=Object.entries(i).map(([u,l])=>`${ja(u)}:${l}`).join(";")),I(r,a,ni(n,s))}async function mu(e){let t=new Set,r=n=>{if(n&&Sr(n)){if(Array.isArray(n)){n.forEach(i=>r(i));return}else if(typeof n=="object")if(n.type==="image"){let i=n.props.href||n.props.xlinkHref;i&&(t.has(i)||t.add(i))}else n.type==="img"&&(t.has(n.props.src)||t.add(n.props.src));Array.isArray(n.props.children)?n.props.children.map(i=>r(i)):r(n.props.children)}};return r(e),Promise.all(Array.from(t).map(n=>Or(n)))}async function gu(e,t){let{viewBox:r,viewbox:n,width:i,height:o,className:s,style:a,children:u,...l}=e.props||{};r||=n,l.xmlns="http://www.w3.org/2000/svg";let f=(a==null?void 0:a.color)||t,c=_r(r),m=c?c[3]/c[2]:null;i=i||m&&o?o/m:null,o=o||m&&i?i*m:null,l.width=i,l.height=o,r&&(l.viewBox=r);let h={};for(let[y,x]of Object.entries(l)){let w=hu[y]||y;h[w]=typeof x=="string"&&x.toLowerCase()==="currentcolor"?f:x}return`data:image/svg+xml;utf8,${I("svg",h,ni(u,f)).replace(Xd,encodeURIComponent)}`}var dt="flex",bu={p:{display:dt,marginTop:"1em",marginBottom:"1em"},div:{display:dt},blockquote:{display:dt,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:dt,textAlign:"center"},hr:{display:dt,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:dt,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:dt,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:dt,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:dt,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:dt,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:dt,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:dt,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var Kd=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","fontFeatureSettings","letterSpacing","lineHeight","textAlign","textIndent","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","textDecorationSkipInk","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath","_inheritedBackgroundClipTextHasBackground"]);function io(e){let t={};for(let r in e)(Kd.has(r)||r.startsWith("--"))&&(t[r]=e[r]);return t}import{getPropertyName as op,getStylesForProperty as Jt}from"css-to-react-native";import{parseElementStyle as sp}from"css-background-parser";import{parse as ap}from"css-box-shadow";import up from"parse-css-color";import Qd from"postcss-value-parser";function Jd(e,t){try{let r=new wt(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 oo(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=Jd(e,t);return n.absolute?{[r?"xAbsolute":"yAbsolute"]:n.absolute}:n.relative?{[r?"xRelative":"yRelative"]:n.relative}:{}}}}function so(e,t){if(typeof e=="number")return{xAbsolute:e};let r;try{r=Qd(e).nodes.filter(n=>n.type==="word").map(n=>n.value)}catch{return{}}return r.length===1?oo(r[0],t,!0):r.length===2?((r[0]==="top"||r[0]==="bottom"||r[1]==="left"||r[1]==="right")&&r.reverse(),{...oo(r[0],t,!0),...oo(r[1],t,!1)}):{}}import{getPropertyName as Zd}from"css-to-react-native";function Yr(e,t){let r=Zd(`mask-${t}`);return e[r]||e[`WebkitM${r.substring(1)}`]}function yu(e){let t=e.maskImage||e.WebkitMaskImage,r={position:Yr(e,"position")||"0% 0%",size:Yr(e,"size")||"100% 100%",repeat:Yr(e,"repeat")||"repeat",origin:Yr(e,"origin")||"border-box",clip:Yr(e,"origin")||"border-box"};return zt(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...r}))}var ep={round:1,squircle:2,square:1/0,bevel:0,scoop:-1,notch:-1/0};function ao(e){let t=e.trim().toLowerCase(),r=ep[t];if(typeof r<"u")return r;let n=t.match(/^superellipse\(\s*(-?infinity|[-+]?(?:\d*\.)?\d+(?:e[-+]?\d+)?)\s*\)$/);if(!n)throw new Error('Invalid corner shape value: "'+e+'".');if(n[1]==="infinity")return 1/0;if(n[1]==="-infinity")return-1/0;let i=Number(n[1]);if(!Number.isFinite(i))throw new Error('Invalid corner shape value: "'+e+'".');return i}function ii(e,t=4){let r=e.match(/superellipse\([^)]*\)|[^\s]+/gi)||[];if(r.length<1||r.length>t)throw new Error('Invalid corner shape value: "'+e+'".');for(let n of r)ao(n);return r}import tp from"parse-css-color";var vu={brightness:1,contrast:1,grayscale:1,invert:1,opacity:1,saturate:1,sepia:1};function xu(e,t,r="black"){if(e==="none")return[];if(typeof e!="string")throw new Error('Invalid `backdropFilter` value: "'+e+'".');let n=zt(e,/\s/).filter(Boolean);if(!n.length)throw new Error('Invalid `backdropFilter` value: "'+e+'".');return n.map(i=>{let o=i.match(/^([a-z-]+)\((.*)\)$/i);if(!o)throw new Error("Invalid filter function in `backdropFilter`.");let s=o[1].toLowerCase(),a=o[2].trim();if(s==="blur"){let u=a?oi(a,t,"blur()"):0;if(u<0)throw new Error("Invalid `blur()` radius in `backdropFilter`.");return{type:"blur",value:u}}if(s==="hue-rotate"){let u=a==="0"||!a?0:ur(a);if(typeof u>"u")throw new Error("Invalid `hue-rotate()` angle in `backdropFilter`.");return{type:"hue-rotate",value:u}}if(s==="drop-shadow")return rp(a,t,r);if(s in vu){let u=s,l=a?np(a,`${u}()`):vu[u],f=["grayscale","invert","opacity","sepia"].includes(u)?Math.min(l,1):l;return{type:u,value:f}}throw new Error(`Unsupported \`${s}()\` in \`backdropFilter\`.`)})}function rp(e,t,r){let n=zt(e,/\s/).filter(Boolean),i=r,o=[];for(let l of n)tp(l)?i=l:o.push(l);if(o.length<2||o.length>3)throw new Error("Invalid `drop-shadow()` value in `backdropFilter`.");let s=oi(o[0],t,"drop-shadow()"),a=oi(o[1],t,"drop-shadow()"),u=o[2]?oi(o[2],t,"drop-shadow()"):0;if(u<0)throw new Error("Invalid `drop-shadow()` blur radius in `backdropFilter`.");return{type:"drop-shadow",offsetX:s,offsetY:a,blurRadius:u,color:i}}function oi(e,t,r){let n=X(e,t.fontSize,0,t);if(typeof n>"u")throw new Error(`Invalid length \`${e}\` in \`${r}\` for \`backdropFilter\`.`);return n}function np(e,t){let r=e.match(/^([+-]?(?:\d+\.?\d*|\.\d+))%$/),n=r?Number(r[1])/100:Number(e);if(!Number.isFinite(n)||n<0)throw new Error(`Invalid amount \`${e}\` in \`${t}\` for \`backdropFilter\`.`);return n}import wu from"postcss-value-parser";function Su(e){let t={},r={};for(let n in e)n.startsWith("--")?t[n]=String(e[n]):r[n]=e[n];return{variables:t,remainingStyle:r}}function _u(e,t){return{...e,...t}}function Kr(e,t,r=new Set){if(typeof e!="string"||!e.includes("var("))return e;try{let n=wu(e),i=!1;if(n.walk(o=>{if(o.type==="function"&&o.value==="var"){i=!0;let s=ip(o);if(!s)return;let{varName:a,fallback:u}=s;if(r.has(a)){console.warn(`Circular reference detected for CSS variable: ${a}`),u!==void 0?Xr(o,u):Xr(o,"initial");return}let l=t[a];if(l!==void 0){let f=new Set(r);f.add(a);let c=Kr(l,t,f);Xr(o,String(c))}else if(u!==void 0){let f=Kr(u,t,r);Xr(o,String(f))}else Xr(o,"initial")}}),i)return n.toString()}catch{console.warn(`Failed to parse CSS value for variable resolution: ${e}`)}return e}function ip(e){if(!e.nodes||e.nodes.length===0)return null;let t,r=-1;for(let i=0;i<e.nodes.length;i++){let o=e.nodes[i];if(o.type==="word"&&!t)t=o;else if(o.type==="div"&&o.value===","){r=i;break}}if(!t||t.type!=="word")return null;let n=t.value.trim();if(r!==-1&&r<e.nodes.length-1){let i=e.nodes.slice(r+1),o=wu.stringify(i).trim();return{varName:n,fallback:o}}return{varName:n}}function Xr(e,t){e.type="word",e.value=t,delete e.nodes}var lp=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),fp=new Set(["lineHeight"]);function cp(e,t,r,n){return e==="textDecoration"&&!r.includes(t.textDecorationColor)&&(t.textDecorationColor=n),t}function lr(e,t){let r=Number(t);return isNaN(r)?t:lp.has(e)?fp.has(e)?r:String(t):r+"px"}function dp(e,t,r,n){if(e==="zIndex")return console.warn("`z-index` is currently not supported."),{[e]:t};if(e==="lineHeight")return{lineHeight:lr(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(o=>o.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[o,s]=t.split("/"),a=Jt(e,o,!0),u=Jt(e,s,!0);for(let l in a)u[l]=lr(e,a[l])+" "+lr(e,u[l]);return u}if(e==="cornerShape"){if(typeof t!="string")throw new Error('Invalid `cornerShape` value: "'+t+'".');let o=ii(t),s=o[0],a=o[1]||s,u=o[2]||s,l=o[3]||a;return{cornerTopLeftShape:s,cornerTopRightShape:a,cornerBottomRightShape:u,cornerBottomLeftShape:l}}if(/^corner(TopLeft|TopRight|BottomRight|BottomLeft)Shape$/.test(e)){if(typeof t!="string"||ii(t,1).length!==1)throw new Error("Invalid `"+e+'` value: "'+t+'".');return{[e]:t}}let i=e.match(/^corner(Top|Right|Bottom|Left)Shape$/);if(i){if(typeof t!="string")throw new Error("Invalid `"+e+'` value: "'+t+'".');let o=ii(t,2),s=o[0],a=o[1]||s,u={Top:["cornerTopLeftShape","cornerTopRightShape"],Right:["cornerTopRightShape","cornerBottomRightShape"],Bottom:["cornerBottomLeftShape","cornerBottomRightShape"],Left:["cornerTopLeftShape","cornerBottomLeftShape"]}[i[1]];return{[u[0]]:s,[u[1]]:a}}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let o=Jt("border",t,!0);o.borderWidth===1&&!String(t).includes("1px")&&(o.borderWidth=3),o.borderColor==="black"&&!String(t).includes("black")&&(o.borderColor=r);let s={Width:lr(e+"Width",o.borderWidth),Style:Ke(o.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:o.borderColor},a={};for(let u of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let l in s)a["border"+u+l]=s[l];return a}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?ap(t):t}}if(e==="backdropFilter"||e==="WebkitBackdropFilter")return{_backdropFilters:xu(t,n,r)};if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let o={},s=t.replace(/(-?[\d.]+%)/g,(u,l)=>{let f=~~(Math.random()*1e9);return o[f]=l,f+"px"}),a=Jt("transform",s,!0);for(let u of a.transform)for(let l in u)o[u[l]]&&(u[l]=o[u[l]]);return a}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient|repeating-radial-gradient)\(/.test(t)?Jt("backgroundImage",t,!0):Jt("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let o={},s=zt(t);for(let a of s){let u=Jt("textShadow",a,!0);for(let l in u)o[l]?o[l].push(u[l]):o[l]=[u[l]]}return o}if(e==="WebkitTextStroke"){t=t.toString().trim();let o=t.split(" ");if(o.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:lr(e,o[0]),WebkitTextStrokeColor:lr(e,o[1])}}if(e==="textDecorationSkipInk"){let o=t.toString().trim().toLowerCase();if(!["auto","none","all"].includes(o))throw new Error("Invalid `textDecorationSkipInk` value.");return{textDecorationSkipInk:o}}}function Tu(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var Eu=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function Pu(e){if(typeof e=="string"&&Eu.test(e.trim()))return e.trim().replace(Eu,(t,r,n,i,o)=>`rgba(${r}, ${n}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=Pu(e[t]);return e}return e}function si(e,t){let r={},n={};for(let u in t)u.startsWith("--")&&(n[u]=String(t[u]));let i={},o=e;if(e){let{variables:u,remainingStyle:l}=Su(e);i=u,o=l}let s=_u(n,i);for(let u in s)r[u]=s[u];if(o){let u=o.color?Kr(o.color,s):void 0,l=hp(u,t.color);r.color=l;for(let f in o){if(f.startsWith("_"))throw new Error(`Invalid style property: ${JSON.stringify(f)}`);if(f==="color")continue;let c=op(f),m=Kr(o[f],s),h=gp(m,l);try{let g=dp(c,h,l,t)||cp(c,Jt(c,lr(c,h),!0),h,l);Object.assign(r,g)}catch(g){throw new Error(g.message+(g.message.includes(h)?`
|
|
5
|
-
`+
|
|
6
|
-
in CSS rule \`${c}: ${h}\`.${Tu(c)}`))}}}if(r.backgroundImage){let{backgrounds:u}=sp(r);r.backgroundImage=u}(r.maskImage||r.WebkitMaskImage)&&(r.maskImage=yu(r));let a=pp(r.fontSize,t.fontSize);typeof r.fontSize<"u"&&(r.fontSize=a),r.transformOrigin&&(r.transformOrigin=so(r.transformOrigin,a));for(let u in r){let l=r[u];if(u==="lineHeight")typeof l=="string"&&l!=="normal"&&(l=r[u]=X(l,a,a,t,!0)/a);else{if(typeof l=="string"){let f=X(l,a,a,t);typeof f<"u"&&(r[u]=f),l=r[u]}if(typeof l=="string"||typeof l=="object"){let f=Pu(l);f&&(r[u]=f),l=r[u]}}if(u==="opacity"&&typeof l=="number"&&(r.opacity=l*t.opacity),u==="transform"){let f=l;for(let c of f){let m=Object.keys(c)[0],h=c[m],g=typeof h=="string"?X(h,a,a,t)??h:h;c[m]=g}}if(u==="textShadowRadius"){let f=l;r.textShadowRadius=f.map(c=>X(c,a,0,t,!1))}if(u==="textShadowOffset"){let f=l;r.textShadowOffset=f.map(({height:c,width:m})=>({height:X(c,a,0,t,!1),width:X(m,a,0,t,!1)}))}}return r}function pp(e,t){if(typeof e=="number")return e;try{let r=new wt(e);switch(r.unit){case"em":return r.value*t;case"rem":return r.value*16}}catch{return t}}function ku(e){if(e.startsWith("hsl")){let t=up(e),[r,n,i]=t.values;return`hsl(${[r,`${n}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function hp(e,t){return e&&e.toLowerCase()!=="currentcolor"?ku(e):ku(t)}function mp(e,t){return e.replace(/currentcolor/gi,t)}function gp(e,t){return Hn(e)&&(e=mp(e,t)),e}async function uo(e,t,r,n,i){let o=await Qt(),s=Object.assign({},r,si(bu[t],r),si(n,r));if(t==="img"){let[a,u,l]=await Or(i.src);if(u===void 0&&l===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),l=parseInt(i.height)}let f=l/u,c=(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),h=s.width||i.width,g=s.height||i.height,y=typeof h=="number"&&typeof g=="number";y&&(h-=c,g-=m),h===void 0&&g===void 0?(h="100%",e.setAspectRatio(1/f)):h===void 0?typeof g=="number"?h=g/f:e.setAspectRatio(1/f):g===void 0&&(typeof h=="number"?g=h*f:e.setAspectRatio(1/f)),s.width=y?h+c:h,s.height=y?g+m:g,s.__src=a,s.__naturalWidth=u,s.__naturalHeight=l}if(t==="svg"){let a=i.viewBox||i.viewbox,u=_r(a),l=u?u[3]/u[2]:null,{width:f,height:c}=i;typeof f>"u"&&c?l==null?f=0:typeof c=="string"&&c.endsWith("%")?f=parseInt(c)/l+"%":(c=X(c,r.fontSize,1,r),f=c/l):typeof c>"u"&&f?l==null?f=0:typeof f=="string"&&f.endsWith("%")?c=parseInt(f)*l+"%":(f=X(f,r.fontSize,1,r),c=f*l):(typeof f<"u"&&(f=X(f,r.fontSize,1,r)||f),typeof c<"u"&&(c=X(c,r.fontSize,1,r)||c),f||=u==null?void 0:u[2],c||=u==null?void 0:u[3]),!s.width&&f&&(s.width=f),!s.height&&c&&(s.height=c)}return e.setDisplay(Ke(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(Ke(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(Ke(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(Ke(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(Ke(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(Ke(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(Ke(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(Kt(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(qt(s.maxHeight,"maxHeight")),typeof s.maxWidth<"u"&&e.setMaxWidth(qt(s.maxWidth,"maxWidth")),typeof s.minHeight<"u"&&e.setMinHeight(qt(s.minHeight,"minHeight")),typeof s.minWidth<"u"&&e.setMinWidth(qt(s.minWidth,"minWidth")),e.setOverflow(Ke(s.overflow,{visible:o.OVERFLOW_VISIBLE,hidden:o.OVERFLOW_HIDDEN},o.OVERFLOW_VISIBLE,"overflow")),e.setMargin(o.EDGE_TOP,Kt(s.marginTop||0)),e.setMargin(o.EDGE_BOTTOM,Kt(s.marginBottom||0)),e.setMargin(o.EDGE_LEFT,Kt(s.marginLeft||0)),e.setMargin(o.EDGE_RIGHT,Kt(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(Ke(s.boxSizing,{"border-box":o.BOX_SIZING_BORDER_BOX,"content-box":o.BOX_SIZING_CONTENT_BOX},o.BOX_SIZING_BORDER_BOX,"boxSizing")),e.setPositionType(Ke(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,qt(s.top,"top")),typeof s.bottom<"u"&&e.setPosition(o.EDGE_BOTTOM,qt(s.bottom,"bottom")),typeof s.left<"u"&&e.setPosition(o.EDGE_LEFT,qt(s.left,"left")),typeof s.right<"u"&&e.setPosition(o.EDGE_RIGHT,qt(s.right,"right")),typeof s.height<"u"?e.setHeight(Kt(s.height,"height")):e.setHeightAuto(),typeof s.width<"u"?e.setWidth(Kt(s.width,"width")):e.setWidthAuto(),[s,io(s)]}import Ru from"escape-html";var Ou=[1,0,0,1,0,0];function bp(e,t,r){let n=[...Ou];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=[...Ou];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 l=a*Math.PI/180,f=Math.cos(l),c=Math.sin(l);u[0]=f,u[1]=c,u[2]=-c,u[3]=f;break}case"skewX":u[2]=Math.tan(a*Math.PI/180);break;case"skewY":u[1]=Math.tan(a*Math.PI/180);break}n=jr(u,n)}e.splice(0,e.length),e.push(...n),e.__resolved=!0}function Qr({left:e,top:t,width:r,height:n},i,o,s){let a;i.__resolved||bp(i,r,n);let u=i;if(o)a=u;else{let l=(s==null?void 0:s.xAbsolute)??((s==null?void 0:s.xRelative)??50)*r/100,f=(s==null?void 0:s.yAbsolute)??((s==null?void 0:s.yRelative)??50)*n/100,c=e+l,m=t+f;a=jr([1,0,0,1,c,m],jr(u,[1,0,0,1,-c,-m])),u.__parent&&(a=jr(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(l=>l.toFixed(2)).join(",")})`}function Au({left:e,top:t,width:r,height:n,isInheritingTransform:i},o){let s="",a=1;return o.transform&&(s=Qr({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 lo({id:e,content:t,filter:r,left:n,top:i,width:o,height:s,matrix:a,opacity:u,image:l,clipPathId:f,debug:c,shape:m,decorationShape:h},g){let y="";if(c&&(y=I("rect",{x:n,y:i-s,width:o,height:s,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0})),l){let P={href:l,x:n,y:i,width:o,height:s,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:g.filter?`filter:${g.filter}`:void 0},T=I("image",{...P,opacity:u!==1?u:void 0})+(h||"");return[(r?r+I("g",{filter:`url(#satori_s-${e})`},T):T)+y,""]}let x={x:n,y:i,width:o,height:s,"font-weight":g.fontWeight,"font-style":g.fontStyle,"font-size":g.fontSize,"font-family":g.fontFamily,"letter-spacing":g.letterSpacing||void 0,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:g.filter?`filter:${g.filter}`:void 0,"stroke-width":g.WebkitTextStrokeWidth?`${g.WebkitTextStrokeWidth}px`:void 0,stroke:g.WebkitTextStrokeWidth?g.WebkitTextStrokeColor:void 0,"stroke-linejoin":g.WebkitTextStrokeWidth?"round":void 0,"paint-order":g.WebkitTextStrokeWidth?"stroke":void 0},w=I("text",{...x,fill:g.color,opacity:u!==1?u:void 0},Ru(t))+(h||"");return[(r?r+I("g",{filter:`url(#satori_s-${e})`},w):w)+y,m?I("text",x,Ru(t)):""]}function yp(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 ai=1.1;function Iu({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,l=t,f=0,c=r;for(let m=0;m<o;m++){let h=n.shadowRadius[m]*n.shadowRadius[m]/4;if(u=Math.min(n.shadowOffset[m].width-h,u),l=Math.max(n.shadowOffset[m].width+h+t,l),f=Math.min(n.shadowOffset[m].height-h,f),c=Math.max(n.shadowOffset[m].height+h+r,c),i){let g=`satori_s-${e}-result-${m}`;s+=I("feGaussianBlur",{in:"SourceAlpha",stdDeviation:n.shadowRadius[m]/2,result:`${g}-blur`})+I("feOffset",{in:`${g}-blur`,dx:n.shadowOffset[m].width,dy:n.shadowOffset[m].height,result:`${g}-offset`})+I("feFlood",{"flood-color":n.shadowColor[m],"flood-opacity":1,result:`${g}-color`})+I("feComposite",{in:`${g}-color`,in2:`${g}-offset`,operator:"in",result:o>1?g:void 0})}else s+=I("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=I("feMergeNode",{in:`satori_s-${e}-result-${m}`})+a)}return I("filter",{id:`satori_s-${e}`,x:(u/t*100*ai).toFixed(2)+"%",y:(f/r*100*ai).toFixed(2)+"%",width:((l-u)/t*100*ai).toFixed(2)+"%",height:((c-f)/r*100*ai).toFixed(2)+"%"},s+(a?I("feMerge",{},a):""))}function Cu({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 l="",f=o.boxShadow[u];f.spreadRadius&&f.inset&&(f.spreadRadius=-f.spreadRadius);let c=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),m=Math.min(-c-(f.inset?f.offsetX:0),0),h=Math.max(c+e-(f.inset?f.offsetX:0),e),g=Math.min(-c-(f.inset?f.offsetY:0),0),y=Math.max(c+t-(f.inset?f.offsetY:0),t),x=`satori_s-${i}-${u}`,w=`satori_ms-${i}-${u}`,P=f.spreadRadius?r.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):r;l+=I("mask",{id:w,maskUnits:"userSpaceOnUse"},I("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:f.inset?"#000":"#fff"})+P.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let T=P.replace(/d="([^"]+)"/,(A,E)=>'d="'+yp(E,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(A,E)=>'x="'+(parseFloat(E)+f.offsetX)+'"').replace(/y="([^"]+)"/,(A,E)=>'y="'+(parseFloat(E)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(l+=I("mask",{id:w+"-neg",maskUnits:"userSpaceOnUse"},T.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(T=I("g",{mask:`url(#${w}-neg)`},T)),l+=I("defs",{},I("filter",{id:x,x:`${m/e*100}%`,y:`${g/t*100}%`,width:`${(h-m)/e*100}%`,height:`${(y-g)/t*100}%`},I("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+I("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+I("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+I("g",{mask:`url(#${w})`,filter:`url(#${x})`,opacity:n},T),f.inset?a+=l:s+=l}return[s,a]}function vp(e,t,r,n,i,o){let s=i/2,a=Math.max(s,i*1.25),u=[];for(let c of r){if(c.y2<o+s||c.y1>n+s)continue;let m=Math.max(e,c.x1-a),h=Math.min(t,c.x2+a);if(m>=h)continue;if(u.length===0){u.push([m,h]);continue}let g=u[u.length-1];m<=g[1]?g[1]=Math.max(g[1],h):u.push([m,h])}if(!u.length)return[[e,t]];let l=[],f=e;for(let[c,m]of u)if(c>f&&l.push([f,c]),f=Math.max(f,m),f>=t)break;return f<t&&l.push([f,t]),l}function fo({width:e,left:t,top:r,ascender:n,clipPathId:i,matrix:o,glyphBoxes:s},a){let{textDecorationColor:u,textDecorationStyle:l,textDecorationLine:f,textDecorationSkipInk:c,fontSize:m,color:h}=a;if(!f||f==="none")return"";let g=Math.max(1,m*.1),y=f==="line-through"?r+n*.7:f==="underline"?r+n*1.1:r,x=l==="dashed"?`${g*1.2} ${g*2}`:l==="dotted"?`0 ${g*2}`:void 0,w=f==="underline"&&(c||"auto")!=="none"&&(s==null?void 0:s.length),P=r+n,T=w?vp(t,t+e,s,y,g,P):[[t,t+e]],A=l==="double"?T.map(([_,R])=>I("line",{x1:_,y1:y+g+1,x2:R,y2:y+g+1,stroke:u||h,"stroke-width":g,"stroke-dasharray":x,"stroke-linecap":l==="dotted"?"round":"square",transform:o})).join(""):"",E=T.map(([_,R])=>I("line",{x1:_,y1:y,x2:R,y2:y,stroke:u||h,"stroke-width":g,"stroke-dasharray":x,"stroke-linecap":l==="dotted"?"round":"square",transform:o})).join("")+A;return i?I("g",{"clip-path":`url(#${i})`},E):E}function co(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var fr=co("U+0020"),po=co("U+0009"),Rr=co("U+2026");function Lu(e,t,r){let{fontSize:n,letterSpacing:i,fontFeatureSettings:o}=r,s=new Map;function a(c){let m=s.get(c);return m===void 0&&(m=e.measure(c,{fontSize:n,letterSpacing:i,fontFeatureSettings:o}),s.set(c,m)),m}function u(c){return a(c)}function l(c){let m=0,h="",g=()=>{h&&(m+=a(h),h="")};for(let y of c)t(y)?(g(),m+=n):h+=y;return g(),m}function f(c){return l(De(c,"grapheme"))}return{measureGrapheme:u,measureGraphemeArray:l,measureText:f}}function Mu(e,t,r){let{textTransform:n,whiteSpace:i,wordBreak:o}=t;e=xp(e,n,r);let{content:s,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=_p(e,i),{words:l,requiredBreaks:f,allowBreakWord:c}=Sp(s,o),[m,h]=wp(t,u);return{words:l,requiredBreaks:f,allowSoftWrap:u,allowBreakWord:c,processedContent:s,shouldCollapseTabsAndSpaces:a,lineLimit:m,blockEllipsis:h}}function xp(e,t,r){return t==="uppercase"?e=e.toLocaleUpperCase(r):t==="lowercase"?e=e.toLocaleLowerCase(r):t==="capitalize"&&(e=De(e,"word",r).map(n=>De(n,"grapheme",r).map((i,o)=>o===0?i.toLocaleUpperCase(r):i).join("")).join("")),e}function wp(e,t){let{textOverflow:r,lineClamp:n,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:s,display:a}=e;if(a==="block"&&n){let[u,l=Rr]=Tp(n);if(u)return[u,l]}return r==="ellipsis"&&a==="-webkit-box"&&o==="vertical"&&qa(i)&&i>0?[i,Rr]:r==="ellipsis"&&s==="hidden"&&!t?[1,Rr]:[1/0]}function Sp(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 _p(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,fr)),n&&(e=e.replace(/([ ]|\t)+/g,fr).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:n,allowSoftWrap:i}}function Tp(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[]}import Nu from"parse-css-color";var Ep=new Set([po]);function kp(e){return Ep.has(e)}function ho(e){if(e==="transparent")return!0;let t=Nu(e);return t?t.alpha===0:!1}function Fu(e){if(!e)return!1;let t=Nu(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*mo(e,t){let r=await Qt(),{parentStyle:n,inheritedStyle:i,parent:o,font:s,id:a,isInheritingTransform:u,debug:l,embedFont:f,graphemeImages:c,locale:m,canLoadAdditionalAssets:h}=t,{textAlign:g,textIndent:y=0,lineHeight:x,textWrap:w,fontSize:P,filter:T,tabSize:A=8,letterSpacing:E,fontFeatureSettings:_,_inheritedBackgroundClipTextPath:R,_inheritedBackgroundClipTextHasBackground:C,flexShrink:z}=n,{words:G,requiredBreaks:ie,allowSoftWrap:te,allowBreakWord:he,processedContent:de,shouldCollapseTabsAndSpaces:Me,lineLimit:Re,blockEllipsis:Oe}=Mu(e,n,m),$e=Pp(r,g);o.insertChild($e,o.getChildCount()),za(z)&&o.setFlexShrink(1);let re=s.getEngine(P,x,n,m),me=h?De(de,"grapheme").filter(H=>!kp(H)&&!re.has(H)):[];yield me.map(H=>({word:H,locale:m})),me.length&&(re=s.getEngine(P,x,n,m));function rt(H){return!!(c&&Object.prototype.hasOwnProperty.call(c,H)&&c[H])}let{measureGrapheme:qe,measureGraphemeArray:Ae,measureText:ne}=Lu(re,rt,{fontSize:P,letterSpacing:E,fontFeatureSettings:_}),Q=Hn(A)?X(A,P,1,n):qe(fr)*A,we=(H,K)=>{if(H.length===0)return{originWidth:0,endingSpacesWidth:0,text:H};let{index:ee,tabCount:J}=Op(H),ke=0;if(J>0){let ye=H.slice(0,ee),ce=H.slice(ee+J),oe=ne(ye),ut=oe+K;ke=(Q===0?oe:(Math.floor(ut/Q)+J)*Q)+ne(ce)}else ke=ne(H);let fe=H.trimEnd()===H?ke:ne(H.trimEnd());return{originWidth:ke,endingSpacesWidth:ke-fe,text:H}},Z=[],j=[],Ee=[],Ie=[],Ce=[];function Fe(H){let K=0,ee=0,J=-1,ke=0,fe=0,ye=0,ce=0;Z=[],Ee=[0],Ie=[],Ce=[];let oe=0,ut=0;for(;oe<G.length&&K<Re;){let Y=G[oe],Rt=ie[oe],Ve=0,{originWidth:He,endingSpacesWidth:st,text:Wt}=we(Y,fe);Y=Wt,Ve=He;let Ye=st;Rt&&ye===0&&(ye=re.height(Y));let $t=g==="justify",Se=oe&&fe+Ve>H+Ye&&te;if(he&&Ve>H&&(!fe||Se||Rt)){let Je=De(Y,"grapheme");G.splice(oe,1,...Je),fe>0&&(Z.push(fe-ut),j.push(ce),K++,ke+=ye,fe=0,ye=0,ce=0,Ee.push(1),J=-1),ut=Ye;continue}if(Rt||Se)Me&&Y===fr&&(Ve=0),Z.push(fe-ut),j.push(ce),K++,ke+=ye,fe=Ve,ye=Ve?Math.round(re.height(Y)):0,ce=Ve?Math.round(re.baseline(Y)):0,Ee.push(1),J=-1,Rt||(ee=Math.max(ee,H));else{fe+=Ve;let Je=Math.round(re.height(Y));Je>ye&&(ye=Je,ce=Math.round(re.baseline(Y))),$t&&Ee[Ee.length-1]++}$t&&J++,ee=Math.max(ee,fe);let lt=fe-Ve;if(Ve===0)Ce.push({y:ke,x:lt,width:0,line:K,lineIndex:J,isImage:!1});else{let Je=De(Y,"word");for(let ft=0;ft<Je.length;ft++){let vt=Je[ft],Xe=0,ct=!1;rt(vt)?(Xe=P,ct=!0):!f&&vt.length>1?Xe=ne(vt):Xe=qe(vt),Ie.push(vt),Ce.push({y:ke,x:lt,width:Xe,line:K,lineIndex:J,isImage:ct}),lt+=Xe,ft<Je.length-1&&E>0&&(lt+=E)}}oe++,ut=Ye}return fe&&(K<Re&&(ke+=ye),K++,Z.push(fe),j.push(ce)),{width:ee,height:ke}}let le={width:0,height:0};$e.setMeasureFunc(H=>{let{width:K,height:ee}=Fe(H);if(w==="balance"){let ke=K/2,fe=K,ye=K;for(;ke+1<fe;){ye=(ke+fe)/2;let{height:oe}=Fe(ye);oe>ee?ke=ye:fe=ye}Fe(fe);let ce=Math.ceil(fe);return le={width:ce,height:ee},{width:ce,height:ee}}if(w==="pretty"&&Z[Z.length-1]<K/3){let ye=K*.9,ce=Fe(ye);if(ce.height<=ee*1.3)return le={width:K,height:ce.height},{width:K,height:ce.height}}let J=Math.ceil(K);return le={width:J,height:ee},{width:J,height:ee}});let[Qe,nt]=yield,Ne="",be="",Ge=i._inheritedClipPathId,Tt=i._inheritedMaskId,{left:Dr,top:Wr,width:Ft,height:$r}=$e.getComputedLayout(),Br=typeof y=="string"?X(y,P,Ft,n,!0)||0:y,or=o.getComputedWidth()-o.getComputedPadding(r.EDGE_LEFT)-o.getComputedPadding(r.EDGE_RIGHT)-o.getComputedBorder(r.EDGE_LEFT)-o.getComputedBorder(r.EDGE_RIGHT),Et=Qe+Dr,kt=nt+Wr,{matrix:it,opacity:Nt}=Au({left:Dr,top:Wr,width:Ft,height:$r,isInheritingTransform:u},n),je="";if(n.textShadowOffset){let{textShadowColor:H,textShadowOffset:K,textShadowRadius:ee}=n;je=Iu({width:le.width,height:le.height,id:a},{shadowColor:H,shadowOffset:K,shadowRadius:ee},ho(n.color)||C&&Fu(n.color)),je=I("defs",{},je)}let ot="",Dt="",yr="",Pt=-1,ze={},Ot={},Be=null,vr=0;for(let H=0;H<Ie.length;H++){let K=Ce[H],ee=Ce[H+1];if(!K)continue;let J=Ie[H],ke=null,fe=!1,ye=c&&Object.prototype.hasOwnProperty.call(c,J)?c[J]:null,ce=K.y,oe=K.x,ut=K.width,Y=K.line,Rt=n.textDecorationLine==="underline"&&(n.textDecorationSkipInk||"auto")!=="none";if(Y===Pt)continue;let Ve=!1;if(Y===0&&Br!==0&&(oe+=Br),Z.length>1){let Se=Ft-Z[Y];if(g==="right"||g==="end")oe+=Se;else if(g==="center")oe+=Se/2;else if(g==="justify"&&Y<Z.length-1){let Pe=Ee[Y],lt=Pe>1?Se/(Pe-1):0;oe+=lt*K.lineIndex,Ve=!0}f&&(oe=Math.round(oe))}let He=j[Y],st=re.baseline(J),Wt=re.height(J),Ye=He-st,$t=Se=>!Rt||n.textDecorationLine!=="underline"?void 0:{underlineY:kt+Se+Ye+st+st*.1,strokeWidth:Math.max(1,P*.1)};if(ze[Y]||(ze[Y]={left:oe,top:kt+ce+Ye,ascender:st,width:Ve?Ft:Z[Y]}),Re!==1/0){let vt=function(Xe,ct){let Ur=De(ct,"grapheme",m),xr="",Bn=0;for(let qr of Ur){let sr=Xe+Ae([xr+qr]);if(xr&&sr+Pe>or)break;xr+=qr,Bn=sr}return{subset:xr,resolvedWidth:Bn}},Se=Oe,Pe=qe(Oe);Pe>or&&(Se=Rr,Pe=qe(Se));let lt=qe(fr),Je=Y<Z.length-1;if(Y+1===Re&&(Je||Z[Y]>or)){if(oe+ut+Pe+lt>or){let{subset:Xe,resolvedWidth:ct}=vt(oe,J);J=Xe+Se,Pt=Y,ze[Y].width=Math.max(0,ct-ze[Y].left),fe=!0}else if(ee&&ee.line!==Y)if(g==="center"){let{subset:Xe,resolvedWidth:ct}=vt(oe,J);J=Xe+Se,Pt=Y,ze[Y].width=Math.max(0,ct-ze[Y].left),fe=!0}else{let Xe=Ie[H+1],{subset:ct,resolvedWidth:Ur}=vt(ut+oe,Xe);J=J+ct+Se,Pt=Y,ze[Y].width=Math.max(0,Ur-ze[Y].left),fe=!0}}}if(ye)ce+=0;else if(f){if(!J.includes(po)&&!Wa.includes(J)&&Ie[H+1]&&ee&&!ee.isImage&&ce===ee.y&&!fe){Be===null&&(vr=oe),Be=Be===null?J:Be+J;continue}let Se=Be===null?J:Be+J,Pe=Be===null?oe:vr,lt=K.width+oe-Pe,Je=$t(ce),ft=re.getSVG(Se.replace(/(\t)+/g,""),{fontSize:P,left:Et+Pe,top:kt+ce+st+Ye,letterSpacing:E,fontFeatureSettings:_},Je);ke=ft.path,Rt&&ft.boxes&&ft.boxes.length&&(Ot[Y]||(Ot[Y]=[])).push(...ft.boxes),Be=null,l&&(yr+=I("rect",{x:Et+Pe,y:kt+ce+Ye,width:lt,height:Wt,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:it||void 0,"clip-path":Ge?`url(#${Ge})`:void 0})+I("line",{x1:Et+oe,x2:Et+oe+K.width,y1:kt+ce+Ye+st,y2:kt+ce+Ye+st,stroke:"#14c000","stroke-width":1,transform:it||void 0,"clip-path":Ge?`url(#${Ge})`:void 0}))}else if(ce+=st+Ye,Rt&&!ye){let Se=$t(ce),Pe=re.getSVG(J.replace(/(\t)+/g,""),{fontSize:P,left:Et+oe,top:kt+ce,letterSpacing:E,fontFeatureSettings:_},Se);Pe.boxes&&Pe.boxes.length&&(Ot[Y]||(Ot[Y]=[])).push(...Pe.boxes)}if(ke!==null)Dt+=ke+" ";else{let[Se,Pe]=lo({content:J,filter:je,id:a,left:Et+oe,top:kt+ce,width:ut,height:Wt,matrix:it,opacity:Nt,image:ye,clipPathId:Ge,debug:l,shape:!!R},n);Ne+=Se,be+=Pe}if(fe)break}if(n.textDecorationLine&&(ot=Object.entries(ze).map(([H,K])=>{if(!K)return"";let ee=Ot[H]||[];return fo({left:Et+K.left,top:K.top,width:K.width,ascender:K.ascender,clipPathId:Ge,matrix:it,glyphBoxes:ee},n)}).join("")),Dt){let H=(!ho(n.color)||je)&&Nt!==0?I("path",{fill:je&&(ho(n.color)||C&&Fu(n.color))?"black":n.color,d:Dt,transform:it||void 0,[i.WebkitTextStrokeWidth||T||je?"opacity":"fill-opacity"]:Nt!==1?Nt:void 0,style:T?`filter:${T}`: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}):"",K=H?I("g",{mask:Tt?`url(#${Tt})`:void 0,"clip-path":Ge?`url(#${Ge})`:void 0},H):"";R&&(be=I("path",{d:Dt,transform:it||void 0})),Ne+=(je?je+I("g",{filter:`url(#satori_s-${a})`},K+ot):K+ot)+yr}else ot&&(Ne+=je?I("g",{filter:`url(#satori_s-${a})`},ot):ot);return be&&(n._inheritedBackgroundClipTextPath.value+=be),Ne}function Pp(e,t){let r=e.Node.create();return r.setAlignItems(e.ALIGN_BASELINE),r.setJustifyContent(Ke(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 Op(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}import{parseLinearGradient as Ap}from"css-gradient-parser";import Rp from"parse-css-color";function ui(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 c of t){let{color:m}=c;if(!o.length&&(o.push({offset:0,color:m}),!c.offset||c.offset.value==="0"))continue;let h=typeof c.offset>"u"?void 0:c.offset.unit==="%"?+c.offset.value/a:Number(X(`${c.offset.value}${c.offset.unit}`,r.fontSize,e,r,!0))/e;o.push({offset:h,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 l=0,f=1;for(let c=0;c<o.length;c++)if(typeof o[c].offset>"u"){for(f<c&&(f=c);typeof o[f].offset>"u";)f++;o[c].offset=(o[f].offset-o[l].offset)/(f-l)*(c-l)+o[l].offset}else l=c;return i==="mask"?o.map(c=>{let m=Rp(c.color);return m?m.alpha===0?{...c,color:"rgba(0, 0, 0, 1)"}:{...c,color:`rgba(255, 255, 255, ${m.alpha})`}:c}):o}function Du({id:e,width:t,height:r,repeatX:n,repeatY:i},o,s,a,u,l){let f=Ap(o),[c,m]=s,h=o.startsWith("repeating"),g,y,x;if(f.orientation.type==="directional")g=Cp(f.orientation.value),y=Math.sqrt(Math.pow((g.x2-g.x1)*c,2)+Math.pow((g.y2-g.y1)*m,2));else if(f.orientation.type==="angular"){let{length:E,..._}=Lp(ur(`${f.orientation.value.value}${f.orientation.value.unit}`)/180*Math.PI,c,m);y=E,g=_}x=h?Mp(f.stops,y,g,u):g;let w=ui(h?Ip(f.stops,y):y,f.stops,u,h,l),P=`satori_bi${e}`,T=`satori_pattern_${e}`,A=I("pattern",{id:T,x:a[0]/t,y:a[1]/r,width:n?c/t:"1",height:i?m/r:"1",patternUnits:"objectBoundingBox"},I("linearGradient",{id:P,...x,spreadMethod:h?"repeat":"pad"},w.map(E=>I("stop",{offset:(E.offset??0)*100+"%","stop-color":E.color})).join(""))+I("rect",{x:0,y:0,width:c,height:m,fill:`url(#${P})`}));return[T,A]}function Ip(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 Cp(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 Lp(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,l,f,c,m=h=>{if(h===0){i=0,o=r,s=0,a=0,u=r;return}else if(h===Math.PI/2){i=0,o=0,s=t,a=0,u=t;return}if(h>0&&h<Math.PI/2){i=(n*t/2/Math.tan(h)-r/2)/(Math.tan(h)+n/Math.tan(h)),o=Math.tan(h)*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)),f=(t/2/Math.tan(h)-r/2)/(Math.tan(h)+1/Math.tan(h)),c=Math.tan(h)*f+r,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(r/2-c,2));return}else if(h>Math.PI/2&&h<Math.PI){i=(r/2+n*t/2/Math.tan(h))/(Math.tan(h)+n/Math.tan(h)),o=Math.tan(h)*i,s=Math.abs(t/2-i)+t/2,a=r/2+Math.abs(o-r/2),f=(t/2/Math.tan(h)+r/2)/(Math.tan(h)+1/Math.tan(h)),c=Math.tan(h)*f,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(r/2-c,2));return}else h>=Math.PI&&(m(h-Math.PI),l=i,i=s,s=l,l=o,o=a,a=l)};return m(e),{x1:i/t,y1:o/r,x2:s/t,y2:a/r,length:u}}function Mp(e,t,r,n){let{x1:i,x2:o,y1:s,y2:a}=r,u=e[0].offset?e[0].offset.unit==="%"?Number(e[0].offset.value)/100:X(`${e[0].offset.value}${e[0].offset.unit}`,n.fontSize,t,n,!0)/t:0,l=e.at(-1).offset?e.at(-1).offset.unit==="%"?Number(e.at(-1).offset.value)/100:X(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,n.fontSize,t,n,!0)/t:1,f=(o-i)*u+i,c=(a-s)*u+s,m=(o-i)*l+i,h=(a-s)*l+s;return{x1:f,y1:c,x2:m,y2:h}}import{parseRadialGradient as Fp}from"css-gradient-parser";function $u({id:e,width:t,height:r,repeatX:n,repeatY:i},o,s,a,u,l){var he;let{shape:f,stops:c,position:m,size:h,repeating:g}=Fp(o),[y,x]=s,w=y/2,P=x/2,T=Dp(m.x,m.y,y,x,u.fontSize,u);w=T.x,P=T.y;let A=Np(t,c,g,u),E=ui(A,c,u,g,l),_=`satori_radial_${e}`,R=`satori_pattern_${e}`,C=`satori_mask_${e}`,z=$p(f,h,u.fontSize,{x:w,y:P},[y,x],u,g),G=Wp(f,u.fontSize,c,[y,x],u,g,z),ie=I("pattern",{id:R,x:a[0]/t,y:a[1]/r,width:n?y/t:"1",height:i?x/r:"1",patternUnits:"objectBoundingBox"},I("radialGradient",{id:_,...G},E.map(de=>I("stop",{offset:de.offset||0,"stop-color":de.color})).join(""))+I("mask",{id:C},I("rect",{x:0,y:0,width:y,height:x,fill:"#fff"}))+I("rect",{x:0,y:0,width:y,height:x,fill:((he=E.at(-1))==null?void 0:he.color)||"transparent"})+I(f,{cx:w,cy:P,width:y,height:x,...z,fill:`url(#${_})`,mask:`url(#${C})`}));return[R,ie]}function Np(e,t,r,n){if(!r)return e;let i=t.at(-1);return!i||!i.offset||i.offset.unit==="%"?e:X(`${i.offset.value}${i.offset.unit}`,+n.fontSize,e,n,!0)}function Dp(e,t,r,n,i,o){let s={x:r/2,y:n/2};return e.type==="keyword"?Object.assign(s,Wu(e.value,r,n,"x")):s.x=X(`${e.value.value}${e.value.unit}`,i,r,o,!0)??r/2,t.type==="keyword"?Object.assign(s,Wu(t.value,r,n,"y")):s.y=X(`${t.value.value}${t.value.unit}`,i,n,o,!0)??n/2,s}function Wu(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 Wp(e,t,r,[n,i],o,s,a){let{r:u,rx:l,ratio:f=1}=a;if(!s)return{spreadMethod:"pad"};let c=r.at(-1),m=e==="circle"?u*2:l*2;return{spreadMethod:"repeat",cx:"50%",cy:"50%",r:c.offset.unit==="%"?`${Number(c.offset.value)*Math.min(i/n,1)/f}%`:Number(X(`${c.offset.value}${c.offset.unit}`,t,n,o,!0)/m)}}function $p(e,t,r,n,i,o,s){let[a,u]=i,{x:l,y:f}=n,c={},m=0,h=0;if(Bp(t)){if(t.some(g=>g.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(c,{r:Number(X(`${t[0].value.value}${t[0].value.unit}`,r,a,o,!0))}):Object.assign(c,{rx:Number(X(`${t[0].value.value}${t[0].value.unit}`,r,a,o,!0)),ry:Number(X(`${t[1].value.value}${t[1].value.unit}`,r,u,o,!0))}),li(c,a,u,l,f,s,e),c}switch(t[0].value){case"farthest-corner":m=Math.max(Math.abs(a-l),Math.abs(l)),h=Math.max(Math.abs(u-f),Math.abs(f));break;case"closest-corner":m=Math.min(Math.abs(a-l),Math.abs(l)),h=Math.min(Math.abs(u-f),Math.abs(f));break;case"farthest-side":return e==="circle"?c.r=Math.max(Math.abs(a-l),Math.abs(l),Math.abs(u-f),Math.abs(f)):(c.rx=Math.max(Math.abs(a-l),Math.abs(l)),c.ry=Math.max(Math.abs(u-f),Math.abs(f))),li(c,a,u,l,f,s,e),c;case"closest-side":return e==="circle"?c.r=Math.min(Math.abs(a-l),Math.abs(l),Math.abs(u-f),Math.abs(f)):(c.rx=Math.min(Math.abs(a-l),Math.abs(l)),c.ry=Math.min(Math.abs(u-f),Math.abs(f))),li(c,a,u,l,f,s,e),c}return e==="circle"?c.r=Math.sqrt(m*m+h*h):Object.assign(c,Bu(m,h)),li(c,a,u,l,f,s,e),c}function li(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:l,ry:f}=Bu(a,u);e.ratio=Math.max(l/e.rx,f/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)),l=Math.sqrt(a*a+u*u);e.ratio=l/e.r,e.ratio>1&&(e.r=l)}}function Bu(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 Bp(e){return!e.some(t=>t.type==="keyword")}import Uu from"parse-css-color";function bo(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function Up(e,t,r,n,i){if(!n||!i)return[t,r];if(e==="cover"){let o=t/n,s=r/i,a=Math.max(o,s);return[n*a,i*a]}if(e==="contain"){let o=t/n,s=r/i,a=Math.min(o,s);return[n*a,i*a]}if(e==="auto"||e.includes("auto")){let o=e.split(" "),s=o[0]||"auto",a=o[1]||o[0]||"auto",u=n,l=i;if(s==="auto"&&a!=="auto"){let f=bo(a,r);l=f,u=n/i*f}else if(a==="auto"&&s!=="auto"){let f=bo(s,t);u=f,l=i/n*f}return[u,l]}return[t,r]}function go(e,{x:t,y:r,defaultX:n,defaultY:i}){return(e?e.split(" ").map(o=>{try{let s=new wt(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)=>bo(o,[t,r][s]))}async function Jr({id:e,width:t,height:r,left:n,top:i},{image:o,size:s,position:a,repeat:u},l,f){u=u||"repeat",f=f||"background";let c=u==="repeat-x"||u==="repeat",m=u==="repeat-y"||u==="repeat",h=s&&(s==="cover"||s==="contain"||s==="auto"||s.includes("auto")),g=o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient(")||o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("),y=h&&g?[t,r]:h?[0,0]:go(s,{x:t,y:r,defaultX:t,defaultY:r}),x=go(a,{x:t,y:r,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return Du({id:e,width:t,height:r,repeatX:c,repeatY:m},o,y,x,l,f);if(o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("))return $u({id:e,width:t,height:r,repeatX:c,repeatY:m},o,y,x,l,f);if(o.startsWith("url(")){let[w,P,T]=await Or(o.slice(4,-1)),A,E;if(h){let[_,R]=Up(s,t,r,P,T);A=_,E=R}else{let _=go(s,{x:t,y:r,defaultX:0,defaultY:0});A=f==="mask"?P||_[0]:_[0]||P,E=f==="mask"?T||_[1]:_[1]||T}return[`satori_bi${e}`,I("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:x[0]+n,y:x[1]+i,width:c?A:"100%",height:m?E:"100%"},I("image",{x:0,y:0,width:A,height:E,preserveAspectRatio:"none",href:w}))]}if(Uu(o)){let w=Uu(o),[P,T,A,E]=w.values,R=`rgba(${P},${T},${A},${E!==void 0?E:1})`;return[`satori_bi${e}`,I("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:n,y:i,width:t,height:r},I("rect",{x:0,y:0,width:t,height:r,fill:R}))]}throw new Error(`Invalid background image: "${o}"`)}function qp([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 fi(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 ci(e){e[0]=e[1]=Math.min(e[0],e[1])}function di(e,t,r,n,i){if(typeof e=="string"){let o=e.split(" ").map(a=>a.trim()),s=!o[1]&&!o[0].endsWith("%");return o[1]=o[1]||o[0],[s,[Math.min(X(o[0],n,t,i,!0),t),Math.min(X(o[1],n,r,i,!0),r)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,r)]]:[!0,void 0]}var pi=e=>e&&e[0]!==0&&e[1]!==0;function hi(e){return typeof e!="string"?1:ao(e)}function mi(e,t,r,n,i){if(i===1/0)return[e,r,t];if(i===-1/0)return[e,n,t];if(i===0)return[e,[(e[0]+t[0])/2,(e[1]+t[1])/2],t];let o=i<0?r:n,s=Math.pow(2,1-Math.abs(i));if(s===0)return i>0?[e,r,t]:[e,n,t];let a=[],u=16;for(let l=0;l<=u;l++){let f=Math.PI*l/u/2,c=Math.pow(Math.sin(f),s),m=Math.pow(Math.cos(f),s);a.push([o[0]+(t[0]-o[0])*c+(e[0]-o[0])*m,o[1]+(t[1]-o[1])*c+(e[1]-o[1])*m])}return a}function cr(e){return`${Math.round(e[0]*1e3)/1e3},${Math.round(e[1]*1e3)/1e3}`}function qu(e,t,r,n){return Math.min(1,r/(e[0]+t[0]||r),n/(e[1]+t[1]||n))}function zp(e,t,r,n,i,o,s){s!=null&&s.every(Boolean)&&(s=void 0);let a=e+r,u=t+n,[l,f,c,m]=i,h=[mi([e,t+l[1]],[e+l[0],t],[e,t],[e+l[0],t+l[1]],o[0]),mi([a-f[0],t],[a,t+f[1]],[a,t],[a-f[0],t+f[1]],o[1]),mi([a,u-c[1]],[a-c[0],u],[a,u],[a-c[0],u-c[1]],o[2]),mi([e+m[0],u],[e,u-m[1]],[e,u],[e+m[0],u-m[1]],o[3])];if(s){let y=s.indexOf(!0);if(y===-1)throw new Error("Invalid `partialSides`.");for(;s[(y+3)%4];)y=(y+3)%4;let x=h[y],w=Math.floor(x.length/2),P=`M${cr(x[w])}`,T=y;do{let A=h[T],E=Math.floor(A.length/2);for(let C=E+1;C<A.length;C++)P+=` L${cr(A[C])}`;let _=h[(T+1)%4];P+=` L${cr(_[0])}`;let R=Math.floor(_.length/2);for(let C=1;C<=R;C++)P+=` L${cr(_[C])}`;T=(T+1)%4}while(s[T]&&T!==y);return P}let g=`M${cr(h[0][h[0].length-1])}`;for(let y=0;y<4;y++){let x=h[(y+1)%4];g+=` L${cr(x[0])}`;for(let w=1;w<x.length;w++)g+=` L${cr(x[w])}`}return g+" Z"}function zu({id:e,borderRadiusPath:t,borderType:r,left:n,top:i,width:o,height:s},a){let u=`satori_brc-${e}`;return[I("clipPath",{id:u},I(r,{x:n,y:i,width:o,height:s,d:t||void 0})),u]}function Zt({left:e,top:t,width:r,height:n},i,o){let{borderTopLeftRadius:s,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:l,fontSize:f}=i,c=[hi(i.cornerTopLeftShape),hi(i.cornerTopRightShape),hi(i.cornerBottomRightShape),hi(i.cornerBottomLeftShape)],m,h,g,y;if([m,s]=di(s,r,n,f,i),[h,a]=di(a,r,n,f,i),[g,u]=di(u,r,n,f,i),[y,l]=di(l,r,n,f,i),!o&&!pi(s)&&!pi(a)&&!pi(u)&&!pi(l))return"";if(s||=[0,0],a||=[0,0],u||=[0,0],l||=[0,0],[s[0],a[0]]=fi(s[0],a[0],r),[u[0],l[0]]=fi(u[0],l[0],r),[s[1],u[1]]=fi(s[1],u[1],n),[a[1],l[1]]=fi(a[1],l[1],n),m&&ci(s),h&&ci(a),g&&ci(u),y&&ci(l),c.some(E=>E<0)){let E=Math.min(qu(s,l,r,n),qu(a,u,r,n));if(E<1)for(let _ of[s,a,l,u])_[0]*=E,_[1]*=E}if(c.some(E=>E!==1))return zp(e,t,r,n,[s,a,l,u],c,o);let x=[];x[0]=[a,a],x[1]=[l,[-l[0],l[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]}`,P=`v${n-a[1]-l[1]} a${x[1][0]} 0 0 1 ${x[1][1]}`,T=`h${l[0]+u[0]-r} a${x[2][0]} 0 0 1 ${x[2][1]}`,A=`v${u[1]+s[1]-n} a${x[3][0]} 0 0 1 ${x[3][1]}`;if(o){let _=function(he){let de=qp([s,a,l,u][he]);return he===0?[[e+s[0]-de,t+s[1]-de],[e+s[0],t]]:he===1?[[e+r-a[0]+de,t+a[1]-de],[e+r,t+a[1]]]:he===2?[[e+r-l[0]+de,t+n-l[1]+de],[e+r-l[0],t+n]]:[[e+u[0]-de,t+n-u[1]+de],[e,t+n-u[1]]]},E=o.indexOf(!1);if(!o.includes(!0))throw new Error("Invalid `partialSides`.");if(E===-1)E=0;else for(;!o[E];)E=(E+1)%4;let R="",C=_(E),z=`M${C[0]} A${x[(E+3)%4][0]} 0 0 1 ${C[1]}`,G=0;for(;G<4&&o[(E+G)%4];G++)R+=z+" ",z=[w,P,T,A][(E+G)%4];let ie=(E+G)%4;R+=z.split(" ")[0];let te=_(ie);return R+=` A${x[(ie+3)%4][0]} 0 0 1 ${te[0]}`,R}return`M${e+s[0]},${t} ${w} ${P} ${T} ${A}`}function Gu(e,t,r){return r[e+"Width"]===r[t+"Width"]&&r[e+"Style"]===r[t+"Style"]&&r[e+"Color"]===r[t+"Color"]}function ju({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 f=`satori_bc-${e}`;return[I("clipPath",{id:f,"clip-path":t?`url(#${t})`:void 0},I(n,{x:i,y:o,width:s,height:a,d:r||void 0})),f]}function Zr({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(h=>a[h+"Width"]))return"";let l="",f=0;for(;f>0&&Gu(u[f],u[(f+3)%4],a);)f=(f+3)%4;let c=[!1,!1,!1,!1],m=[];for(let h=0;h<4;h++){let g=(f+h)%4,y=(f+h+1)%4,x=u[g],w=u[y];if(c[g]=!0,m=[a[x+"Width"],a[x+"Style"],a[x+"Color"],x],!Gu(x,w,a)){let P=(m[0]||0)+(o&&!s&&a[x.replace("border","padding")]||0);P&&(l+=I("path",{width:r,height:n,...i,fill:"none",stroke:o?"#000":m[2],"stroke-width":P*2,"stroke-dasharray":!o&&m[1]==="dashed"?P*2+" "+P:void 0,d:Zt({left:e,top:t,width:r,height:n},a,c)})),c=[!1,!1,!1,!1]}}if(c.some(Boolean)){let h=(m[0]||0)+(o&&!s&&a[m[3].replace("border","padding")]||0);h&&(l+=I("path",{width:r,height:n,...i,fill:"none",stroke:o?"#000":m[2],"stroke-width":h*2,"stroke-dasharray":!o&&m[1]==="dashed"?h*2+" "+h:void 0,d:Zt({left:e,top:t,width:r,height:n},a,c)}))}return l}function yo({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),l=(a.borderTopWidth||0)+(s?0:a.paddingTop||0),f=(a.borderRightWidth||0)+(s?0:a.paddingRight||0),c=(a.borderBottomWidth||0)+(s?0:a.paddingBottom||0),m={x:t+u,y:r+l,width:n-u-f,height:i-l-c};return I("mask",{id:e},I("rect",{...m,fill:"#fff",transform:a.overflow==="hidden"&&a.transform&&o?o:void 0,mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+Zr({left:t,top:r,width:n,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:s},a))}import{getStylesForProperty as Yu}from"css-to-react-native";var wo={left:0,"x-start":0,center:.5,right:1,"x-end":1},So={top:0,"y-start":0,center:.5,bottom:1,"y-end":1};function It(e){return Math.round(e*1e3)/1e3}function Hu(e,t,r,n){let i=e.match(/^shape\((.*)\)$/s);if(!i)return null;let o=zt(i[1]),s=o.shift();if(!s)throw new Error("Invalid `shape()` value.");let a=s.match(/^(?:(nonzero|evenodd)\s+)?from\s+(.+)$/);if(!a)throw new Error("Invalid `shape()` starting point.");let u=a[1]||"nonzero",l=_o(Vu(a[2]),t,r,n),f=l,c=`M${It(l[0])},${It(l[1])}`;for(let m of o){let h=Vu(m),g=h.shift();if(g==="close"){if(h.length)throw new Error("Invalid `close` command in `shape()`.");c+=" Z",l=f;continue}if(g==="move"||g==="line"){let y=vo(h,l,t,r,n);c+=` ${g==="move"?"M":"L"}${It(y[0])},${It(y[1])}`,l=y,g==="move"&&(f=y);continue}if(g==="hline"||g==="vline"){let y=g==="hline"?0:1,x=h.shift(),w=h.shift();if(x!=="to"&&x!=="by"||!w||h.length)throw new Error(`Invalid \`${g}\` command in \`shape()\`.`);let P=y===0?t:r,T=y===0?wo:So,A=x==="to"&&w in T?T[w]*P:er(w,P,n);l=[...l],l[y]=x==="by"?l[y]+A:A,c+=` ${y===0?"H":"V"}${It(l[y])}`;continue}if(g==="curve"||g==="smooth"){let y=h.indexOf("with"),x=y===-1?h:h.slice(0,y),w=y===-1?[]:h.slice(y+1),P=x[0],T=vo(x,l,t,r,n);if(g==="curve"&&y===-1)throw new Error("A `curve` command requires a control point.");let A=Gp(w).map(E=>jp(E,l,T,t,r,n));if(g==="curve")if(A.length===1)c+=` Q${Vt(A[0])} ${Vt(T)}`;else if(A.length===2)c+=` C${Vt(A[0])} ${Vt(A[1])} ${Vt(T)}`;else throw new Error("A `curve` command accepts one or two control points.");else if(!A.length)c+=` T${Vt(T)}`;else if(A.length===1)c+=` S${Vt(A[0])} ${Vt(T)}`;else throw new Error("A `smooth` command accepts at most one control point.");l=T;continue}if(g==="arc"){let y=h.findIndex(C=>["of","cw","ccw","large","small","rotate"].includes(C)),x=y===-1?h:h.slice(0,y),w=y===-1?[]:h.slice(y),P=vo(x,l,t,r,n),T=0,A=0,E=0,_=0,R=0;for(let C=0;C<w.length;C++){let z=w[C];if(z==="of"){let G=w[++C];if(!G)throw new Error("Invalid `arc` radius in `shape()`.");let ie=w[C+1],te=ie&&!["cw","ccw","large","small","rotate"].includes(ie);if(te&&C++,te)T=er(G,t,n),A=er(ie,r,n);else{let he=Math.sqrt(t*t+r*r)/Math.sqrt(2);T=A=er(G,he,n)}}else if(z==="cw"||z==="ccw")R=z==="cw"?1:0;else if(z==="large"||z==="small")_=z==="large"?1:0;else if(z==="rotate"){let G=w[++C];if(!G)throw new Error("Invalid `arc` rotation in `shape()`.");let ie=ur(G);if(typeof ie>"u")throw new Error("Invalid `arc` rotation in `shape()`.");E=ie}else throw new Error("Invalid `arc` option in `shape()`.")}c+=` A${It(Math.abs(T))},${It(Math.abs(A))} ${It(E)} ${_} ${R} ${Vt(P)}`,l=P;continue}throw new Error(`Unsupported \`${g}\` command in \`shape()\`.`)}return{type:"path",d:c,"fill-rule":u}}function Vu(e){return e.trim().replace(/\//g," / ").split(/\s+/).filter(Boolean)}function Gp(e){if(!e.length)return[];let t=e.indexOf("/");return t===-1?[e]:[e.slice(0,t),e.slice(t+1)]}function vo(e,t,r,n,i){let o=e[0];if(o!=="to"&&o!=="by")throw new Error("A `shape()` command must use `to` or `by`.");let s=_o(e.slice(1),r,n,i);return o==="by"?[t[0]+s[0],t[1]+s[1]]:s}function jp(e,t,r,n,i,o){let s=e.indexOf("from"),a=s===-1?e:e.slice(0,s),u=s===-1?void 0:e[s+1];if(s!==-1&&(s+2!==e.length||!u))throw new Error("Invalid control point reference in `shape()`.");let l=_o(a,n,i,o,!0);return u==="start"||!u&&!Vp(e)?[t[0]+l[0],t[1]+l[1]]:u==="end"?[r[0]+l[0],r[1]+l[1]]:l}function _o(e,t,r,n,i=!1){if(!e.length||e.length>4)throw new Error("Invalid position in `shape()`.");let o,s,a=[...e];for(let u=0;u<a.length;u++){let l=a[u];if(l==="left"||l==="right"||l==="x-start"||l==="x-end"){let f=a[u+1];if(f&&!xo(f)){let c=er(f,t,n);o=l==="left"||l==="x-start"?c:t-c,u++}else o=wo[l]*t}else if(l==="top"||l==="bottom"||l==="y-start"||l==="y-end"){let f=a[u+1];if(f&&!xo(f)){let c=er(f,r,n);s=l==="top"||l==="y-start"?c:r-c,u++}else s=So[l]*r}else if(l==="center")if(o===void 0)o=t/2;else if(s===void 0)s=r/2;else throw new Error("Invalid position in `shape()`.");else if(o===void 0)o=er(l,t,n);else if(s===void 0)s=er(l,r,n);else throw new Error("Invalid position in `shape()`.")}return!i&&e.length===1&&s===void 0&&(s=r/2),[o??(i?0:t/2),s??(i?0:r/2)]}function xo(e){return e in wo||e in So}function Vp(e){return e.some(xo)}function er(e,t,r){let n=X(e,r.fontSize,t,r,!0);if(typeof n>"u")throw new Error(`Invalid length \`${e}\` in \`shape()\`.`);return n}function Vt(e){return`${It(e[0])},${It(e[1])}`}var Ar={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/,shape:/shape\((.+)\)/};function Qu({width:e,height:t},r,n){function i(f){let c=f.match(Ar.circle);if(!c)return null;let[,m]=c,[h,g=""]=m.split("at").map(w=>w.trim()),{x:y,y:x}=Ku(g,e,t);return{type:"circle",r:X(h,n.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),n,!0),cx:X(y,n.fontSize,e,n,!0),cy:X(x,n.fontSize,t,n,!0)}}function o(f){let c=f.match(Ar.ellipse);if(!c)return null;let[,m]=c,[h,g=""]=m.split("at").map(T=>T.trim()),[y,x]=h.split(" "),{x:w,y:P}=Ku(g,e,t);return{type:"ellipse",rx:X(y||"50%",n.fontSize,e,n,!0),ry:X(x||"50%",n.fontSize,t,n,!0),cx:X(w,n.fontSize,e,n,!0),cy:X(P,n.fontSize,t,n,!0)}}function s(f){let c=f.match(Ar.path);if(!c)return null;let[m,h]=Xu(c[1]);return{type:"path",d:h,"fill-rule":m}}function a(f){let c=f.match(Ar.polygon);if(!c)return null;let[m,h]=Xu(c[1]);return{type:"polygon","fill-rule":m,points:h.split(",").map(g=>g.split(" ").map((y,x)=>X(y,n.fontSize,x===0?e:t,n,!0)).join(" ")).join(",")}}function u(f){let c=f.match(Ar.inset);if(!c)return null;let[m,h]=(c[1].includes("round")?c[1]:`${c[1].trim()} round 0`).split("round"),g=Yu("borderRadius",h,!0),y=Object.values(g).map(E=>String(E)).map((E,_)=>X(E,n.fontSize,_===0||_===2?t:e,n,!0)||0),x=Object.values(Yu("margin",m,!0)).map(E=>String(E)).map((E,_)=>X(E,n.fontSize,_===0||_===2?t:e,n,!0)||0),w=x[3],P=x[0],T=e-(x[1]+x[3]),A=t-(x[0]+x[2]);return y.some(E=>E>0)?{type:"path",d:Zt({left:w,top:P,width:T,height:A},{...r,...g})}:{type:"rect",x:w,y:P,width:T,height:A}}function l(f){return Ar.shape.test(f)?Hu(f,e,t,n):null}return{parseCircle:i,parseEllipse:o,parsePath:s,parsePolygon:a,parseInset:u,parseShape:l}}function Xu(e){let[,t="nonzero",r]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,r]}function Ku(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 gi(e){return`satori_cp-${e}`}function Ju(e){return`url(#${gi(e)})`}function Zu(e,t,r){if(t.clipPath==="none")return"";let n=Qu(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 I("clipPath",{id:gi(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},I(s,a))}return""}function To({left:e,top:t,width:r,height:n,path:i,matrix:o,id:s,currentClipPath:a,src:u},l,f){let c="",m=l.clipPath&&l.clipPath!=="none"?Zu({left:e,top:t,width:r,height:n,path:i,id:s,matrix:o,currentClipPath:a,src:u},l,f):"";if(l.overflow!=="hidden"&&!u)c="";else{let g=m?`satori_ocp-${s}`:gi(s);c=I("clipPath",{id:g,"clip-path":a},I(i?"path":"rect",{x:e,y:t,width:r,height:n,d:i||void 0,transform:l.overflow==="hidden"&&l.transform&&o?o:void 0}))}let h=yo({id:`satori_om-${s}`,left:e,top:t,width:r,height:n,matrix:o,borderOnly:!u},l);return m+c+h}var Hp=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,l=u.length;if(!l)return["",""];let f=Hp(a),c="";for(let m=0;m<l;m++){let h=u[m],[g,y]=await Jr({id:`${f}-${m}`,left:n,top:i,width:o,height:s},h,r,"mask");c+=y+I("rect",{x:n,y:i,width:o,height:s,fill:`url(#${g})`})}return c=I("mask",{id:f},c),[f,c]}function el({id:e,left:t,top:r,width:n,height:i,path:o,type:s,matrix:a,currentClipPath:u,mask:l,filters:f}){if(!f.length)return["",""];let c=`satori_bf-${e}`,m=`satori_bfc-${e}`,h=Xp(f),g="BackgroundImage",y="";f.forEach((P,T)=>{let A=`${c}-${T}`;y+=Yp(P,g,A),g=A});let x=I("filter",{id:c,x:t-h.left,y:r-h.top,width:n+h.left+h.right,height:i+h.top+h.bottom,filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},y)+I("clipPath",{id:m,"clip-path":u},I(s,{x:t,y:r,width:n,height:i,d:o||void 0,transform:a||void 0})),w=I(s,{x:t,y:r,width:n,height:i,d:o||void 0,fill:"#000",transform:a||void 0,filter:`url(#${c})`,"clip-path":`url(#${m})`,mask:l});return[x,w]}function Yp(e,t,r){if(e.type==="blur")return I("feGaussianBlur",{in:t,stdDeviation:e.value,result:r});if(e.type==="hue-rotate")return I("feColorMatrix",{in:t,type:"hueRotate",values:e.value,result:r});if(e.type==="saturate"||e.type==="grayscale")return I("feColorMatrix",{in:t,type:"saturate",values:e.type==="grayscale"?1-e.value:e.value,result:r});if(e.type==="sepia"){let s=e.value,a=1-s;return I("feColorMatrix",{in:t,type:"matrix",values:[a+.393*s,.769*s,.189*s,0,0,.349*s,a+.686*s,.168*s,0,0,.272*s,.534*s,a+.131*s,0,0,0,0,0,1,0].join(" "),result:r})}if(e.type==="drop-shadow"){let s=`${r}-input`;return I("feComposite",{in:t,in2:"SourceAlpha",operator:"in",result:s})+I("feDropShadow",{in:s,dx:e.offsetX,dy:e.offsetY,stdDeviation:e.blurRadius,"flood-color":e.color,result:r})}let n=e.value,i=e.type==="brightness"?{slope:n}:e.type==="contrast"?{slope:n,intercept:.5-.5*n}:e.type==="invert"?{slope:1-2*n,intercept:n}:{slope:n},o=e.type==="opacity"?["A"]:["R","G","B"];return I("feComponentTransfer",{in:t,result:r},o.map(s=>I(`feFunc${s}`,{type:"linear",...i})).join(""))}function Xp(e){let t=0,r=0,n=0,i=0;for(let o of e)if(o.type==="blur"){let s=o.value*3;t=Math.max(t,s),r=Math.max(r,s),n=Math.max(n,s),i=Math.max(i,s)}else if(o.type==="drop-shadow"){let s=o.blurRadius*3;t=Math.max(t,s-o.offsetX),r=Math.max(r,s-o.offsetY),n=Math.max(n,s+o.offsetX),i=Math.max(i,s+o.offsetY)}return{left:t,top:r,right:n,bottom:i}}function Kp(e,t,r){let n=e.toLowerCase().trim().split(/\s+/),i=(u,l)=>({left:"0%",center:"50%",right:"100%",top:"0%",bottom:"100%"})[u]||u,o,s;if(n.length===1){let u=n[0];u==="left"||u==="center"||u==="right"?(o=i(u,"x"),s="50%"):u==="top"||u==="bottom"?(o="50%",s=i(u,"y")):(o=u,s="50%")}else{let u=n[0],l=n[1];u==="top"||u==="bottom"?(s=i(u,"y"),l==="left"||l==="right"||l==="center"?o=i(l,"x"):(o="50%",s=u==="top"||u==="bottom"?i(u,"y"):l)):(o=i(u,"x"),s=i(l,"y"))}let a=(u,l)=>{try{if(u.endsWith("%"))return l*parseFloat(u)/100;let f=new wt(u);return f.type==="length"||f.type==="number"?f.value:0}catch{return 0}};return[a(o,t),a(s,r)]}async function en({id:e,left:t,top:r,width:n,height:i,isInheritingTransform:o,src:s,debug:a},u,l){if(u.display==="none")return"";let f=!!s,c="rect",m="",h="",g=[],y=1,x="";u.backgroundColor&&g.push(u.backgroundColor),u.opacity!==void 0&&(y=+u.opacity),u.transform&&(m=Qr({left:t,top:r,width:n,height:i},u.transform,o,u.transformOrigin));let w="";if(u.backgroundImage){let re=[];for(let me=0;me<u.backgroundImage.length;me++){let rt=u.backgroundImage[me],qe=await Jr({id:e+"_"+me,width:n,height:i,left:t,top:r},rt,l);qe&&re.unshift(qe)}for(let me of re)g.push(`url(#${me[0]})`),h+=me[1],me[2]&&(w+=me[2])}let[P,T]=await Eo({id:e,left:t,top:r,width:n,height:i},u,l);h+=T;let A=P?`url(#${P})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,E=Zt({left:t,top:r,width:n,height:i},u);E&&(c="path");let _=u._inheritedClipPathId;a&&(x=I("rect",{x:t,y:r,width:n,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:m||void 0,"clip-path":_?`url(#${_})`:void 0}));let{backgroundClip:R,filter:C}=u,z=R==="text"?`url(#satori_bct-${e})`:_?`url(#${_})`:u.clipPath?Ju(e):void 0,G=To({left:t,top:r,width:n,height:i,path:E,id:e,matrix:m,currentClipPath:z,src:s},u,l),[ie,te]=el({id:e,left:t,top:r,width:n,height:i,path:E,type:c,matrix:m||void 0,currentClipPath:z,mask:A,filters:u._backdropFilters||[]});h+=ie;let he=y!==1&&!f&&g.length===1&&!te&&!w&&!C&&!A&&!u.boxShadow&&!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth),de=g.map(re=>I(c,{x:t,y:r,width:n,height:i,fill:re,"fill-opacity":he?y:void 0,d:E||void 0,transform:m||void 0,"clip-path":u.transform?void 0:z,style:C?`filter:${C}`:void 0,mask:u.transform?void 0:A})).join(""),Me=ju({id:e,left:t,top:r,width:n,height:i,currentClipPathId:_,borderPath:E,borderType:c},u),Re;if(f){let re=(u.borderLeftWidth||0)+(u.paddingLeft||0),me=(u.borderTopWidth||0)+(u.paddingTop||0),rt=(u.borderRightWidth||0)+(u.paddingRight||0),qe=(u.borderBottomWidth||0)+(u.paddingBottom||0),Ae=n-re-rt,ne=i-me-qe,Q=(u.objectPosition||"center").toString(),[we,Z]=Kp(Q,Ae,ne),j=u.__naturalWidth||Ae,Ee=u.__naturalHeight||ne,Ie,Ce=Ae,Fe=ne,le=t+re,Qe=r+me;if(u.objectFit==="contain"){let nt=Ae/j,Ne=ne/Ee,be=Math.min(nt,Ne);Ce=j*be,Fe=Ee*be,le=t+re+we-Ce*we/Ae,Qe=r+me+Z-Fe*Z/ne,Ie="none"}else if(u.objectFit==="cover"){let nt=Ae/j,Ne=ne/Ee,be=Math.max(nt,Ne);Ce=j*be,Fe=Ee*be,le=t+re+we-Ce*we/Ae,Qe=r+me+Z-Fe*Z/ne,Ie="none"}else if(u.objectFit==="fill")Ie="none";else if(u.objectFit==="scale-down")if(j&&Ee){let nt=Ae/j,Ne=ne/Ee,be=Math.min(nt,Ne);if(be>=1)Ce=j,Fe=Ee,Ie="none",le=t+re+we-Ce*we/Ae,Qe=r+me+Z-Fe*Z/ne;else{let Ge=be;Ce=j*Ge,Fe=Ee*Ge,le=t+re+we-Ce*we/Ae,Qe=r+me+Z-Fe*Z/ne,Ie="none"}}else{let nt=Ae/j,Ne=ne/Ee,be=Math.min(nt,Ne);Ce=j*be,Fe=Ee*be,le=t+re+we-Ce*we/Ae,Qe=r+me+Z-Fe*Z/ne,Ie="none"}else Ie="none";u.transform&&(Re=zu({id:e,borderRadiusPath:E,borderType:c,left:t,top:r,width:n,height:i},u)),de+=I("image",{x:le,y:Qe,width:Ce,height:Fe,href:s,preserveAspectRatio:Ie,transform:m||void 0,style:C?`filter:${C}`:void 0,"clip-path":u.transform?Re?`url(#${Re[1]})`:void 0:`url(#satori_cp-${e})`,mask:u.transform?void 0:P?`url(#${P})`:`url(#satori_om-${e})`})}if(Me){h+=Me[0];let re=Me[1];de+=Zr({left:t,top:r,width:n,height:i,props:{transform:m||void 0,"clip-path":`url(#${re})`}},u)}let Oe=Cu({width:n,height:i,id:e,opacity:y,shape:I(c,{x:t,y:r,width:n,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:E||void 0,transform:m||void 0,"clip-path":z,mask:A})},u),$e=te+(w||de);return u.transform&&(z||A)&&($e=I("g",{"clip-path":z||void 0,mask:A||void 0},$e)),y!==1&&!he&&($e=I("g",{opacity:y},$e)),(h?I("defs",{},h):"")+(Oe?Oe[0]:"")+(Re?Re[0]:"")+G+$e+(Oe?Oe[1]:"")+x}var rl=String.raw,tl=rl`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,nl=()=>new RegExp(rl`\p{RI}{2}|(?)${tl}(?:\u200D${tl})*`,"gu");var Qp=new RegExp(nl(),"u"),ko={emoji:Qp,symbol:/\p{Symbol}/u,math:/\p{Math}/u},Po={"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},bi=Object.keys({...Po,...ko});function il(e){return bi.includes(e)}function ol(e,t){for(let n of Object.keys(ko))if(ko[n].test(e))return[n];let r=Object.keys(Po).filter(n=>Po[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 sl(e){if(e)return bi.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*tn(e,t){var ne;let r=await Qt(),{id:n,inheritedStyle:i,parent:o,font:s,debug:a,locale:u,embedFont:l=!0,graphemeImages:f,canLoadAdditionalAssets:c,getTwStyles:m}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!Sr(e)||Fa(e.type)){let Q;if(!Sr(e))Q=mo(String(e),t),yield(await Q.next()).value;else{if(Ma(e.type))throw new Error("Class component is not supported.");let Z;ji(e.type)?Z=e.type.render:Z=e.type,Q=tn(await Z(e.props),t),yield(await Q.next()).value}await Q.next();let we=yield;return(await Q.next(we)).value}let{type:h,props:g}=e,y=h;if(g&&Na(g))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:x,children:w,tw:P,lang:T=u}=g||{},A=sl(T);if(P){let Q=m(P,x);x=Object.assign(Q,x)}let E=r.Node.create();o.insertChild(E,o.getChildCount());let[_,R]=await uo(E,y,i,x,g),C=_.transform===i.transform;if(C||(_.transform.__parent=i.transform),(_.overflow==="hidden"||_.clipPath&&_.clipPath!=="none")&&(R._inheritedClipPathId=`satori_cp-${n}`,R._inheritedMaskId=`satori_om-${n}`),_.maskImage&&(R._inheritedMaskId=`satori_mi-${n}`),_.backgroundClip==="text"){let Q={value:""};R._inheritedBackgroundClipTextPath=Q,_._inheritedBackgroundClipTextPath=Q,_.backgroundImage&&(R._inheritedBackgroundClipTextHasBackground="true",_._inheritedBackgroundClipTextHasBackground="true")}let z=Da(w),G=[],ie=0,te=[];for(let Q of z){let we=tn(Q,{id:n+"-"+ie++,parentStyle:_,inheritedStyle:R,isInheritingTransform:!0,parent:E,font:s,embedFont:l,debug:a,graphemeImages:f,canLoadAdditionalAssets:c,locale:A,getTwStyles:m,onNodeDetected:t.onNodeDetected});c?te.push(...(await we.next()).value||[]):await we.next(),G.push(we)}yield te;for(let Q of G)await Q.next();let[he,de]=yield,{left:Me,top:Re,width:Oe,height:$e}=E.getComputedLayout();Me+=he,Re+=de;let re="",me="",rt="",{children:qe,...Ae}=g;if((ne=t.onNodeDetected)==null||ne.call(t,{left:Me,top:Re,width:Oe,height:$e,type:y,props:Ae,key:e.key,textContent:Sr(qe)?void 0:qe}),y==="img"){let Q=_.__src;me=await en({id:n,left:Me,top:Re,width:Oe,height:$e,src:Q,isInheritingTransform:C,debug:a},_,R)}else if(y==="svg"){let Q=_.color,we=await gu(e,Q);me=await en({id:n,left:Me,top:Re,width:Oe,height:$e,src:we,isInheritingTransform:C,debug:a},_,R)}else{let Q=x==null?void 0:x.display;if(y==="div"&&w&&typeof w!="string"&&Q!=="flex"&&Q!=="none"&&Q!=="contents")throw new Error('Expected <div> to have explicit "display: flex", "display: contents", or "display: none" if it has more than one child node.');me=await en({id:n,left:Me,top:Re,width:Oe,height:$e,isInheritingTransform:C,debug:a},_,R)}for(let Q of G)re+=(await Q.next([Me,Re])).value;return _._inheritedBackgroundClipTextPath&&(rt+=I("clipPath",{id:`satori_bct-${n}`,"clip-path":_._inheritedClipPathId?`url(#${_._inheritedClipPathId})`:void 0},_._inheritedBackgroundClipTextPath.value)),rt+me+re}import vi from"@shuding/opentype.js";import{inflateSync as eh}from"fflate";import Jp from"harfbuzzjs";var pt=null,yi=null,Oo=new WeakMap,Ro=typeof FinalizationRegistry=="function"?new FinalizationRegistry(e=>e.destroy()):null;async function al(){if(!pt){if(yi){await yi;return}yi=(async()=>{if(pt=await Jp,!pt||typeof pt.createBlob!="function")throw new Error("HarfBuzz module loaded but API is not available")})(),await yi}}function Zp(e){if(!pt)throw new Error("HarfBuzz not initialized. Call initHarfBuzz() first.");if(Oo.has(e))return Oo.get(e);let t=e._rawFontData;if(!t)throw new Error("Font does not have _rawFontData. Make sure to store the original ArrayBuffer when loading fonts.");let r=pt.createBlob(new Uint8Array(t)),n=pt.createFace(r,0),i=pt.createFont(n);n.destroy(),r.destroy();let o=e.unitsPerEm;return i.setScale(o,o),Oo.set(e,i),Ro==null||Ro.register(e,i),i}function ul(e,t,r={}){if(!pt)throw new Error("HarfBuzz not initialized");if(!t||t.length===0)return[];let{features:n,language:i,script:o,direction:s}=r,a=Zp(e),u=pt.createBuffer();try{u.addText(t),u.guessSegmentProperties(),i&&u.setLanguage(i),o&&u.setScript(o),s&&u.setDirection(s);let l;if(n&&Object.keys(n).length>0){let c=[];for(let[m,h]of Object.entries(n))typeof h=="boolean"?c.push(h?`+${m}`:`-${m}`):c.push(`${m}=${h}`);l=c.join(",")}return l?pt.shape(a,u,l):pt.shape(a,u),u.json(a)}finally{u.destroy()}}function ll(e){if(!e||e==="normal")return{};let t={},r=e.split(",").map(n=>n.trim());for(let n of r){let i=n.match(/["']([a-z0-9]{4})["']\s*(?:(on|off|[0-9]+))?/i);if(i){let o=i[1],s=i[2];if(!s||s==="on"||s==="1")t[o]=!0;else if(s==="off"||s==="0")t[o]=!1;else{let a=parseInt(s,10);isNaN(a)||(t[o]=a)}}}return t}var th=256;function rh(e){return/^\s$/.test(e)}function nh(e,t){if(!e)return[];let r=De(e,"grapheme"),n=[],i="",o=null;for(let s of r){let a;rh(s)&&o!==null&&o.charToGlyphIndex(s)?a=o:a=t(s),o===null?(o=a,i=s):a===o?i+=s:(n.push([i,o]),i=s,o=a)}return i&&o&&n.push([i,o]),n}function ih(e){let t=new DataView(e),r=t.getUint16(12),n=t.getUint32(16),i=new ArrayBuffer(n),o=new DataView(i),s=new Uint8Array(i);o.setUint32(0,t.getUint32(4)),o.setUint16(4,r);let a=Math.floor(Math.log2(r)),u=(1<<a)*16;o.setUint16(6,u),o.setUint16(8,a),o.setUint16(10,r*16-u);let l=12+r*16;for(let f=0;f<r;f++){let c=44+f*20,m=t.getUint32(c),h=t.getUint32(c+4),g=t.getUint32(c+8),y=t.getUint32(c+12),x=t.getUint32(c+16),w=12+f*16;if(o.setUint32(w,m),o.setUint32(w+4,x),o.setUint32(w+8,l),o.setUint32(w+12,y),g<y){let P=new Uint8Array(e,h+2,g-2),T=new Uint8Array(y);eh(P,T),s.set(T,l)}else s.set(new Uint8Array(e,h,y),l);l+=y+3&-4}return i}var fl="unknown";function oh(e){let t=[],r=[0,0],n=[0,0],i=(o,s)=>{let a=o[0];for(let u=1;u<=s;u++){let l=u/s,f=sh(o,l);t.push({from:a,to:f}),a=f}n=o[o.length-1]};for(let o of e){if(o.type==="M"){r=n=[o.x,o.y];continue}if(o.type==="L"){let s=[o.x,o.y];t.push({from:n,to:s}),n=s;continue}if(o.type==="Q"){i([n,[o.x1,o.y1],[o.x,o.y]],12);continue}if(o.type==="C"){i([n,[o.x1,o.y1],[o.x2,o.y2],[o.x,o.y]],16);continue}o.type==="Z"&&(t.push({from:n,to:r}),n=r)}return t}function sh(e,t){let r=e;for(;r.length>1;){let n=[];for(let i=0;i<r.length-1;i++)n.push([r[i][0]+(r[i+1][0]-r[i][0])*t,r[i][1]+(r[i+1][1]-r[i][1])*t]);r=n}return r[0]}function ah(e,t){if(!t)return[];let r=t.strokeWidth,n=t.underlineY-r*.25,i=t.underlineY+r*2.5,o=oh(e);if(!o.length)return[];let s=i-n,a=Math.max(12,Math.ceil(s/.25)),u=s/a,l=n+u/2,f=new Set;for(let T=0;T<a;T++){let A=l+u*T,E=[];for(let _ of o){let[R,C]=_.from,[z,G]=_.to;if(C===G)continue;let ie=Math.min(C,G),te=Math.max(C,G);if(A<ie||A>=te)continue;let he=(A-C)/(G-C),de=R+(z-R)*he;E.push(de)}if(E.length){E.sort((_,R)=>_-R);for(let _=0;_<E.length-1;_+=2){let R=Math.min(E[_],E[_+1]),C=Math.max(E[_],E[_+1]),z=Math.floor(R),G=Math.ceil(C);for(let ie=z;ie<G;ie++)f.add(ie)}}}if(!f.size)return[];let c=Array.from(f.values()).sort((T,A)=>T-A),m=[],h=c[0],g=c[0];for(let T=1;T<c.length;T++){let A=c[T];A>g+1&&(m.push([h,g+1]),h=A),g=A}m.push([h,g+1]);let y=[],x=r*.6,w=m[0][0],P=m[m.length-1][1];for(let[T,A]of m){let E=Math.min(T,w)-x,_=Math.max(A,P)+x;y.push({x1:E,x2:_,y1:n,y2:i})}return y}function uh(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 Ao=new WeakMap,rn=class{constructor(t){this.fonts=new Map;this.shapedRunCache=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,[,l,f]=i[s];uh(r,n,[a,u],[l,f])>0&&(o=i[s])}return o[0]}addFonts(t){t.length&&this.fonts.size&&this.shapedRunCache.clear();for(let r of t){let{name:n,data:i,lang:o}=r;if(o&&!il(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${bi.join(", ")}.`);let s=o??fl,a;if(Ao.has(i))a=Ao.get(i);else{let l="buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i;a=vi.parse(l,{lowMemory:!0});let f=new Uint8Array(l),c=f[0]===119&&f[1]===79&&f[2]===70&&f[3]===70;a._rawFontData=c?ih(l):l;let m=a.charToGlyphIndex;a.charToGlyphIndex=h=>{let g=m.call(a,h);return g===0&&a._trackBrokenChars&&a._trackBrokenChars.push(h),g},Ao.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(_=>_.toLowerCase());let a=[];n.forEach(_=>{let R=this.get({name:_,weight:i,style:o});if(R){a.push(R);return}let C=this.get({name:_+"_unknown",weight:i,style:o});if(C){a.push(C);return}});let u=Array.from(this.fonts.keys()),l=[],f=[],c=[];for(let _ of u)if(!n.includes(_))if(s){let R=lh(_);R?R===s?l.push(this.get({name:_,weight:i,style:o})):f.push(this.get({name:_,weight:i,style:o})):c.push(this.get({name:_,weight:i,style:o}))}else c.push(this.get({name:_,weight:i,style:o}));let m=new Map,h=(_,R=!0)=>{let C=[...a,...c,...l,...R?f:[]];if(typeof _>"u")return R?C[C.length-1]:void 0;let z=_.charCodeAt(0);if(m.has(z))return m.get(z);let G=C.find((ie,te)=>!!ie.charToGlyphIndex(_)||R&&te===C.length-1);return G&&m.set(z,G),G},g=(_,R=!1)=>{var z,G;return((R?(G=(z=_.tables)==null?void 0:z.os2)==null?void 0:G.sTypoAscender:0)||_.ascender)/_.unitsPerEm*t},y=(_,R=!1)=>{var z,G;return((R?(G=(z=_.tables)==null?void 0:z.os2)==null?void 0:G.sTypoDescender:0)||_.descender)/_.unitsPerEm*t},x=(_,R=!1)=>{var C,z;if(typeof r=="string"&&r==="normal"){let G=(R?(z=(C=_.tables)==null?void 0:C.os2)==null?void 0:z.sTypoLineGap:0)||0;return g(_,R)-y(_,R)+G/_.unitsPerEm*t}else if(typeof r=="number")return t*r},w=_=>h(_,!1),P=this.shapedRunCache,T=`${n.join(",")}|${i}|${o}|${s||""}`,A=(_,R)=>{let C=`${T}\0${R||""}\0${_}`,z=P.get(C);if(z!==void 0)return P.delete(C),P.set(C,z),z;let G=R?ll(R):{},ie=nh(_,h).map(([te,he])=>[te,he,ul(he,te,{features:G})]);if(P.size>=th){let te=P.keys().next().value;te!==void 0&&P.delete(te)}return P.set(C,ie),ie};return{has:_=>{if(_===`
|
|
7
|
-
`)return!0;let R=w(_);if(!R)return!1;for(let C of De(_,"grapheme"))if(!R.charToGlyphIndex(C))return!1;return!0},baseline:(_,R=typeof _>"u"?a[0]:h(_))=>{let C=g(R),z=y(R),G=C-z;return C+(x(R)-G)/2},height:(_,R=typeof _>"u"?a[0]:h(_))=>x(R),measure:(_,R)=>this.measure(_,R,A),getSVG:(_,R,C)=>this.getSVG(_,R,A,C)}}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 l=n.shift(),f=r(l);if(f!==t){let c=f.charToGlyph(l),m=t.unitsPerEm/f.unitsPerEm,h=new vi.Path;h.unitsPerEm=t.unitsPerEm,h.commands=c.path.commands.map(y=>{let x={...y};for(let w in x)typeof x[w]=="number"&&(x[w]*=m);return x});let g=new vi.Glyph({...c,advanceWidth:c.advanceWidth*m,xMin:c.xMin*m,xMax:c.xMax*m,yMin:c.yMin*m,yMax:c.yMax*m,path:h});a[u]=g}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,{fontSize:r,letterSpacing:n=0,fontFeatureSettings:i},o){let s=o(t,i),a=0,u=0;for(let[,f,c]of s){let m=0;for(let h of c)m+=h.ax;a+=m/f.unitsPerEm*r,u+=c.length}let l=n*Math.max(0,u-1);return a+l}getSVG(t,{fontSize:r,top:n,left:i,letterSpacing:o=0,fontFeatureSettings:s},a,u){if(r===0)return{path:"",boxes:[]};let l=a(t.replace(/\n/g,""),s),f=[],c=i,m=n,h=!1,g=new vi.Path;for(let[,y,x]of l){let w=r/y.unitsPerEm;for(let P=0;P<x.length;P++){let T=x[P];h&&(c+=o);let A=y.glyphs.get(T.g);if(A&&A.path){let E=c+T.dx*w,_=m+T.dy*w,R=A.getPath(E,_,r,{}),C=u?ah(R.commands,u):[];C.length&&f.push(...C),g.extend(R)}c+=T.ax*w,h=!0}}return{path:g.toPathData(1),boxes:f}}};function lh(e){let t=e.split("_"),r=t[t.length-1];return r===fl?void 0:r}function Io({width:e,height:t,content:r}){return I("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg","enable-background":r.includes('in="BackgroundImage"')?"new":void 0},r)}var Gc=od(wc());var Xy=["ios","android","windows","macos","web"];function _c(e){return Xy.includes(e)}var Ky=["portrait","landscape"];function Tc(e){return Ky.includes(e)}var Sc;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(Sc||(Sc={}));var ue;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(ue||(ue={}));function na(e){return typeof e=="string"}function ia(e){return typeof e=="object"}var oa;function k(e){return{kind:"complete",style:e}}function We(e,t={}){let{fractions:r}=t;if(r&&e.includes("/")){let[o="",s=""]=e.split("/",2),a=We(o),u=We(s);return!a||!u?null:[a[0]/u[0],u[1]]}let n=parseFloat(e);if(Number.isNaN(n))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[n,ue.none];switch(i==null?void 0:i[1]){case"rem":return[n,ue.rem];case"px":return[n,ue.px];case"em":return[n,ue.em];case"%":return[n,ue.percent];case"vw":return[n,ue.vw];case"vh":return[n,ue.vh];default:return null}}function Xt(e,t,r={}){let n=Lt(t,r);return n===null?null:k({[e]:n})}function Di(e,t,r){let n=Lt(t);return n!==null&&(r[e]=n),r}function kc(e,t){let r=Lt(t);return r===null?null:{[e]:r}}function Lt(e,t={}){if(e===void 0)return null;let r=We(String(e),t);return r?ir(...r,t):null}function ir(e,t,r={}){let{isNegative:n,device:i}=r;switch(t){case ue.rem:return e*16*(n?-1:1);case ue.px:return e*(n?-1:1);case ue.percent:return`${n?"-":""}${e}%`;case ue.none:return e*(n?-1:1);case ue.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(tt("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case ue.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(tt("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function sa(e){let t=We(e);if(!t)return null;let[r,n]=t;switch(n){case ue.rem:return r*16;case ue.px:return r;default:return null}}var Qy={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function aa(e){return Qy[e??""]||"All"}function ua(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(n,i)=>(t=aa(i),"")),t]}function gr(e,t={}){if(e.includes("/")){let r=Ec(e,{...t,fractions:!0});if(r)return r}return e[0]==="["&&(e=e.slice(1,-1)),Ec(e,t)}function yt(e,t,r={}){let n=gr(t,r);return n===null?null:k({[e]:n})}function Ec(e,t={}){if(e==="px")return 1;let r=We(e,t);if(!r)return null;let[n,i]=r;return t.fractions&&(i=ue.percent,n*=100),i===ue.none&&(n=n/4,i=ue.rem),ir(n,i,t)}function Jy(...e){console.warn(...e)}function Zy(...e){}var tt=typeof process>"u"||((oa=process==null?void 0:process.env)===null||oa===void 0?void 0:oa.JEST_WORKER_ID)===void 0?Jy:Zy;var ev=[["aspect-square",k({aspectRatio:1})],["aspect-video",k({aspectRatio:16/9})],["items-center",k({alignItems:"center"})],["items-start",k({alignItems:"flex-start"})],["items-end",k({alignItems:"flex-end"})],["items-baseline",k({alignItems:"baseline"})],["items-stretch",k({alignItems:"stretch"})],["justify-start",k({justifyContent:"flex-start"})],["justify-end",k({justifyContent:"flex-end"})],["justify-center",k({justifyContent:"center"})],["justify-between",k({justifyContent:"space-between"})],["justify-around",k({justifyContent:"space-around"})],["justify-evenly",k({justifyContent:"space-evenly"})],["content-start",k({alignContent:"flex-start"})],["content-end",k({alignContent:"flex-end"})],["content-between",k({alignContent:"space-between"})],["content-around",k({alignContent:"space-around"})],["content-stretch",k({alignContent:"stretch"})],["content-center",k({alignContent:"center"})],["self-auto",k({alignSelf:"auto"})],["self-start",k({alignSelf:"flex-start"})],["self-end",k({alignSelf:"flex-end"})],["self-center",k({alignSelf:"center"})],["self-stretch",k({alignSelf:"stretch"})],["self-baseline",k({alignSelf:"baseline"})],["direction-inherit",k({direction:"inherit"})],["direction-ltr",k({direction:"ltr"})],["direction-rtl",k({direction:"rtl"})],["hidden",k({display:"none"})],["flex",k({display:"flex"})],["flex-row",k({flexDirection:"row"})],["flex-row-reverse",k({flexDirection:"row-reverse"})],["flex-col",k({flexDirection:"column"})],["flex-col-reverse",k({flexDirection:"column-reverse"})],["flex-wrap",k({flexWrap:"wrap"})],["flex-wrap-reverse",k({flexWrap:"wrap-reverse"})],["flex-nowrap",k({flexWrap:"nowrap"})],["flex-auto",k({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",k({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",k({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",k({overflow:"hidden"})],["overflow-visible",k({overflow:"visible"})],["overflow-scroll",k({overflow:"scroll"})],["absolute",k({position:"absolute"})],["relative",k({position:"relative"})],["italic",k({fontStyle:"italic"})],["not-italic",k({fontStyle:"normal"})],["oldstyle-nums",Mn("oldstyle-nums")],["small-caps",Mn("small-caps")],["lining-nums",Mn("lining-nums")],["tabular-nums",Mn("tabular-nums")],["proportional-nums",Mn("proportional-nums")],["font-thin",k({fontWeight:"100"})],["font-100",k({fontWeight:"100"})],["font-extralight",k({fontWeight:"200"})],["font-200",k({fontWeight:"200"})],["font-light",k({fontWeight:"300"})],["font-300",k({fontWeight:"300"})],["font-normal",k({fontWeight:"normal"})],["font-400",k({fontWeight:"400"})],["font-medium",k({fontWeight:"500"})],["font-500",k({fontWeight:"500"})],["font-semibold",k({fontWeight:"600"})],["font-600",k({fontWeight:"600"})],["font-bold",k({fontWeight:"bold"})],["font-700",k({fontWeight:"700"})],["font-extrabold",k({fontWeight:"800"})],["font-800",k({fontWeight:"800"})],["font-black",k({fontWeight:"900"})],["font-900",k({fontWeight:"900"})],["include-font-padding",k({includeFontPadding:!0})],["remove-font-padding",k({includeFontPadding:!1})],["max-w-none",k({maxWidth:"99999%"})],["text-left",k({textAlign:"left"})],["text-center",k({textAlign:"center"})],["text-right",k({textAlign:"right"})],["text-justify",k({textAlign:"justify"})],["text-auto",k({textAlign:"auto"})],["underline",k({textDecorationLine:"underline"})],["line-through",k({textDecorationLine:"line-through"})],["no-underline",k({textDecorationLine:"none"})],["uppercase",k({textTransform:"uppercase"})],["lowercase",k({textTransform:"lowercase"})],["capitalize",k({textTransform:"capitalize"})],["normal-case",k({textTransform:"none"})],["w-auto",k({width:"auto"})],["h-auto",k({height:"auto"})],["shadow-sm",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",k({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],la=ev;function Mn(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var Fn=class{constructor(t){this.ir=new Map(la),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...la,...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 fa(e,t,r={}){let n=t==null?void 0:t[e];if(!n)return yt("fontSize",e,r);if(typeof n=="string")return Xt("fontSize",n);let i={},[o,s]=n,a=kc("fontSize",o);if(a&&(i=a),typeof s=="string")return k(Di("lineHeight",Pc(s,i),i));let{lineHeight:u,letterSpacing:l}=s;return u&&Di("lineHeight",Pc(u,i),i),l&&Di("letterSpacing",l,i),k(i)}function Pc(e,t){let r=We(e);if(r){let[n,i]=r;if((i===ue.none||i===ue.em)&&typeof t.fontSize=="number")return t.fontSize*n}return e}function ca(e,t){var r;let n=(r=t==null?void 0:t[e])!==null&&r!==void 0?r:e.startsWith("[")?e.slice(1,-1):e,i=We(n);if(!i)return null;let[o,s]=i;if(s===ue.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=ir(o,s);return a!==null?k({lineHeight:a}):null}function da(e,t,r,n,i){let o="";if(n[0]==="[")o=n.slice(1,-1);else{let l=i==null?void 0:i[n];if(l)o=l;else{let f=gr(n);return f&&typeof f=="number"?Oc(f,ue.px,t,e):null}}if(o==="auto")return Rc(t,e,"auto");let s=We(o);if(!s)return null;let[a,u]=s;return r&&(a=-a),Oc(a,u,t,e)}function Oc(e,t,r,n){let i=ir(e,t);return i===null?null:Rc(r,n,i)}function Rc(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 pa(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,l=u.min?sa(u.min):0;l===null?tt(`invalid screen config value: ${o}->min: ${u.min}`):a[0]=l;let f=u.max?sa(u.max):1/0;return f===null?tt(`invalid screen config value: ${o}->max: ${u.max}`):a[1]=f,i[o]=a,i},{}),r=Object.values(t);r.sort((i,o)=>{let[s,a]=i,[u,l]=o;return a===1/0||l===1/0?s-u:a-l});let n=0;return r.forEach(i=>i[2]=n++),t}function ha(e,t){let r=t==null?void 0:t[e];if(!r)return null;if(typeof r=="string")return k({fontFamily:r});let n=r[0];return n?k({fontFamily:n}):null}function br(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=Cc(t,r),!i)return null;if(n){let o=Number(n);if(!Number.isNaN(o))return i=Ac(i,o/100),k({[Wi[e].color]:i})}return{kind:"dependent",complete(o){let s=Wi[e].opacity,a=o[s];typeof a=="number"&&(i=Ac(i,a)),o[Wi[e].color]=i}}}function Nn(e,t){let r=parseInt(t,10);if(Number.isNaN(r))return null;let n=r/100;return{kind:"complete",style:{[Wi[e].opacity]:n}}}function Ac(e,t){return e.startsWith("#")?e=tv(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function Ic(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var Wi={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 tv(e){let t=e;e=e.replace(rv,(s,a,u,l)=>a+a+u+u+l+l);let r=nv.exec(e);if(!r)return tt(`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 Cc(e,t){let r=t[e];if(na(r))return r;if(ia(r)&&na(r.DEFAULT))return r.DEFAULT;let[n="",...i]=e.split("-");for(;n!==e;){let o=t[n];if(ia(o))return Cc(i.join("-"),o);if(i.length===0)return"";n=`${n}-${i.shift()}`}return""}var rv=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,nv=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function Mc(e,t){let[r,n]=ua(e);if(r.match(/^(-?(\d)+)?$/))return iv(r,n,t==null?void 0:t.borderWidth);if(r=r.replace(/^-/,""),["dashed","solid","dotted"].includes(r))return k({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=br(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),l=yt(a,u);return typeof(l==null?void 0:l.style[a])!="number"?null:l}function iv(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 Xt(o,i)}function Fc(e,t){if(!t)return null;let[r,n]=ua(e);r=r.replace(/^-/,""),r===""&&(r="DEFAULT");let i=`border${n==="All"?"":n}Radius`,o=t[r];if(o)return Lc(Xt(i,o));let s=yt(i,r);return typeof(s==null?void 0:s.style[i])!="number"?null:Lc(s)}function Lc(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 Fr(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=Lt(o,{isNegative:r});if(a!==null)return Nc(e,i,a)}let s=gr(t,{isNegative:r});return s!==null?Nc(e,i,s):null}function Nc(e,t,r){if(e!=="inset")return k({[e]:r});switch(t){case null:return k({top:r,left:r,right:r,bottom:r});case"y":return k({top:r,bottom:r});case"x":return k({left:r,right:r})}}function Dn(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:k({[`flex${e}`]:o})}function Dc(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 k({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return k({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let o=Lt((r=i[2])!==null&&r!==void 0?r:"");return o?k({flexGrow:Number(i[1]),flexBasis:o}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let o=Lt((n=i[3])!==null&&n!==void 0?n:"");return o?k({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function ma(e,t,r={},n){let i=n==null?void 0:n[t];return i!==void 0?Xt(e,i,r):yt(e,t,r)}function Wn(e,t,r={},n){let i=Lt(n==null?void 0:n[t],r);return i?k({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),yt(e,t,r))}function Wc(e,t,r){let n=r==null?void 0:r[e];if(n){let i=We(n,{isNegative:t});if(!i)return null;let[o,s]=i;if(s===ue.em)return ov(o);if(s===ue.percent)return tt("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=ir(o,s,{isNegative:t});return a!==null?k({letterSpacing:a}):null}return yt("letterSpacing",e,{isNegative:t})}function ov(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 $c(e,t){let r=t==null?void 0:t[e];if(r){let i=We(String(r));if(i)return k({opacity:i[0]})}let n=We(e);return n?k({opacity:n[0]/100}):null}function Bc(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function Uc(e){if(e.includes("/")){let[r="",n=""]=e.split("/",2),i=ga(r),o=ga(n);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=ga(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function ga(e){let t=gr(e);return typeof t=="number"?t:null}var Nr=class{constructor(t,r={},n,i,o){var s,a,u,l,f,c;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(":"),h=[];m.length===1?this.string=t:(this.string=(s=m.pop())!==null&&s!==void 0?s:"",h=m),this.char=this.string[0];let g=pa((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let y of h)if(g[y]){let x=(u=g[y])===null||u===void 0?void 0:u[2];x!==void 0&&(this.order=((l=this.order)!==null&&l!==void 0?l:0)+x);let w=(f=i.windowDimensions)===null||f===void 0?void 0:f.width;if(w){let[P,T]=(c=g[y])!==null&&c!==void 0?c:[0,0];(w<=P||w>T)&&(this.isNull=!0)}else this.isNull=!0}else _c(y)?this.isNull=y!==o:Tc(y)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==y?this.isNull=!0:this.incrementOrder():this.isNull=!0:y==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:y==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(y)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let t=this.cache.getIr(this.rest);if(t)return t;this.parseIsNegative();let r=this.parseUtility();return r?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:r}:r:{kind:"null"}}parseUtility(){var t,r,n,i,o;let s=this.config.theme,a=null;switch(this.char){case"m":case"p":{let u=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(u){let l=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 f=aa(u[1]),c=da(l,f,this.isNegative,this.rest,(n=this.config.theme)===null||n===void 0?void 0:n[l]);if(c)return c}}}if(this.consumePeeked("h-")&&(a=ma("height",this.rest,this.context,s==null?void 0:s.height),a)||this.consumePeeked("w-")&&(a=ma("width",this.rest,this.context,s==null?void 0:s.width),a)||this.consumePeeked("min-w-")&&(a=Wn("minWidth",this.rest,this.context,s==null?void 0:s.minWidth),a)||this.consumePeeked("min-h-")&&(a=Wn("minHeight",this.rest,this.context,s==null?void 0:s.minHeight),a)||this.consumePeeked("max-w-")&&(a=Wn("maxWidth",this.rest,this.context,s==null?void 0:s.maxWidth),a)||this.consumePeeked("max-h-")&&(a=Wn("maxHeight",this.rest,this.context,s==null?void 0:s.maxHeight),a)||this.consumePeeked("leading-")&&(a=ca(this.rest,s==null?void 0:s.lineHeight),a)||this.consumePeeked("text-")&&(a=fa(this.rest,s==null?void 0:s.fontSize,this.context),a||(a=br("text",this.rest,s==null?void 0:s.textColor),a)||this.consumePeeked("opacity-")&&(a=Nn("text",this.rest),a))||this.consumePeeked("font-")&&(a=ha(this.rest,s==null?void 0:s.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&tt("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=Xt("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=br("tint",this.rest,s==null?void 0:s.colors),a)||this.consumePeeked("bg-")&&(a=br("bg",this.rest,s==null?void 0:s.backgroundColor),a||this.consumePeeked("opacity-")&&(a=Nn("bg",this.rest),a))||this.consumePeeked("border")&&(a=Mc(this.rest,s),a||this.consumePeeked("-opacity-")&&(a=Nn("border",this.rest),a))||this.consumePeeked("rounded")&&(a=Fc(this.rest,s==null?void 0:s.borderRadius),a)||this.consumePeeked("bottom-")&&(a=Fr("bottom",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("top-")&&(a=Fr("top",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("left-")&&(a=Fr("left",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("right-")&&(a=Fr("right",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("inset-")&&(a=Fr("inset",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=Dn("Grow",this.rest,s==null?void 0:s.flexGrow):this.consumePeeked("shrink")?a=Dn("Shrink",this.rest,s==null?void 0:s.flexShrink):a=Dc(this.rest,s==null?void 0:s.flex),a)||this.consumePeeked("grow")&&(a=Dn("Grow",this.rest,s==null?void 0:s.flexGrow),a)||this.consumePeeked("shrink")&&(a=Dn("Shrink",this.rest,s==null?void 0:s.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=Nn("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=Bc(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=Uc(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=yt("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=br("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 k({elevation:u})}if(this.consumePeeked("opacity-")&&(a=$c(this.rest,s==null?void 0:s.opacity),a)||this.consumePeeked("tracking-")&&(a=Wc(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 k({zIndex:u})}return tt(`\`${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,l=We(a,this.context);if(l===null)return this.isNull=!0,!0;let[f,c]=l;return c!=="px"&&(this.isNull=!0),(o==="min"?u>=f:u<=f)?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 qc(e){let t=[],r=null;return e.forEach(n=>{if(typeof n=="string")t=[...t,...ba(n)];else if(Array.isArray(n))t=[...t,...n.flatMap(ba)];else if(typeof n=="object"&&n!==null)for(let[i,o]of Object.entries(n))typeof o=="boolean"?t=[...t,...o?ba(i):[]]:r?r[i]=o:r={[i]:o}}),[t.filter(Boolean).filter(sv),r]}function ba(e){return e.trim().split(/\s+/)}function sv(e,t,r){return r.indexOf(e)===t}function zc(e){var t;return(t=e==null?void 0:e.reduce((r,n)=>({...r,...av(n.handler)}),{}))!==null&&t!==void 0?t:{}}function av(e){let t={};return e({addUtilities:r=>{t=r},...uv}),t}function Mt(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var uv={addComponents:Mt,addBase:Mt,addVariant:Mt,e:Mt,prefix:Mt,theme:Mt,variants:Mt,config:Mt,corePlugins:Mt,matchUtilities:Mt,postcss:null};function jc(e,t){let r=(0,Gc.default)(lv(e)),n={},i=zc(r.plugins),o={},s=Object.entries(i).map(([g,y])=>typeof y=="string"?(o[g]=y,[g,{kind:"null"}]):[g,k(y)]).filter(([,g])=>g.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(),l={};function f(){let g=l[u];if(g)return g;let y=new Fn(s);return l[u]=y,y}function c(...g){let y=f(),x={},w=[],P=[],[T,A]=qc(g),E=T.join(" "),_=y.getStyle(E);if(_)return{..._,...A||{}};for(let R of T){let C=y.getIr(R);if(!C&&R in o){let G=c(o[R]);y.setIr(R,k(G)),x={...x,...G};continue}switch(C=new Nr(R,r,y,n,t).parse(),C.kind){case"complete":x={...x,...C.style},y.setIr(R,C);break;case"dependent":w.push(C);break;case"ordered":P.push(C);break;case"null":y.setIr(R,C);break}}if(P.length>0){P.sort((R,C)=>R.order-C.order);for(let R of P)switch(R.styleIr.kind){case"complete":x={...x,...R.styleIr.style};break;case"dependent":w.push(R.styleIr);break}}if(w.length>0){for(let R of w){let C=R.complete(x);C&&tt(C)}Ic(x)}return E!==""&&y.setStyle(E,x),A&&(x={...x,...A}),x}function m(g){let y=c(g.split(/\s+/g).map(x=>x.replace(/^(bg|text|border)-/,"")).map(x=>`bg-${x}`).join(" "));return typeof y.backgroundColor=="string"?y.backgroundColor:void 0}let h=(g,...y)=>{let x="";return g.forEach((w,P)=>{var T;x+=w+((T=y[P])!==null&&T!==void 0?T:"")}),c(x)};return h.style=c,h.color=m,h.prefixMatch=(...g)=>{let y=g.sort().join(":"),x=f(),w=x.getPrefixMatch(y);if(w!==void 0)return w;let A=new Nr(`${y}:flex`,r,x,n,t).parse().kind!=="null";return x.setPrefixMatch(y,A),A},h.setWindowDimensions=g=>{n.windowDimensions=g,u=a()},h.setFontScale=g=>{n.fontScale=g,u=a()},h.setPixelDensity=g=>{n.pixelDensity=g,u=a()},h.setColorScheme=g=>{n.colorScheme=g,u=a()},h}function lv(e){return{...e,content:["_no_warnings_please"]}}var cv={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 dv(e){return jc({...e,plugins:[...(e==null?void 0:e.plugins)??[],cv]},"web")}var $i;function ya({width:e,height:t,config:r}){return $i||($i=dv(r)),$i.setWindowDimensions({width:+e,height:+t}),$i}var va=new WeakMap,Vc=new WeakMap,pv=0,hv=8,$n=new Map;function mv(e){let t="";for(let r of e){let n=Vc.get(r.data);n===void 0&&(n=++pv,Vc.set(r.data,n)),t+=`${n}:${r.name}:${r.weight??""}:${r.style??""}:${r.lang??""};`}return t}function gv(e){if(va.has(e))return va.get(e);let t=mv(e),r=$n.get(t);if(!r){if(r=new rn(e),$n.size>=hv){let n=$n.keys().next().value;n!==void 0&&$n.delete(n)}$n.set(t,r)}return va.set(e,r),r}async function Yc(e,t){let[r]=await Promise.all([Qt(),al()]);if(!r||!r.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+r);t.fonts=t.fonts||[];let n=gv(t.fonts),i="width"in t?t.width:void 0,o="height"in t?t.height:void 0,s=bv(r,t.pointScaleFactor);i&&s.setWidth(i),o&&s.setHeight(o),s.setFlexDirection(r.FLEX_DIRECTION_ROW),s.setFlexWrap(r.WRAP_WRAP),s.setAlignContent(r.ALIGN_AUTO),s.setAlignItems(r.ALIGN_FLEX_START),s.setJustifyContent(r.JUSTIFY_FLEX_START),s.setOverflow(r.OVERFLOW_HIDDEN);let a=Object.assign(Object.create(null),t.graphemeImages),u=new Set;At.clear(),Hr.clear(),await mu(e);let l=tn(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:(g,y)=>{let w={...ya({width:i,height:o,config:t.tailwindConfig})([g])};return typeof w.lineHeight=="number"&&(w.lineHeight=w.lineHeight/(+w.fontSize||y.fontSize||16)),w.shadowColor&&w.boxShadow&&(w.boxShadow=w.boxShadow.replace(/rgba?\([^)]+\)/,w.shadowColor)),w}}),f=(await l.next()).value;if(t.loadAdditionalAsset&&f.length){let g=yv(f),y=[],x={};await Promise.all(Object.entries(g).flatMap(([w,P])=>P.map(T=>{let A=`${w}_${T}`;return u.has(A)?null:(u.add(A),t.loadAdditionalAsset(w,T).then(E=>{typeof E=="string"?x[T]=E:E&&(Array.isArray(E)?y.push(...E):y.push(E))}))}))),n.addFonts(y),Object.assign(a,x)}await l.next(),s.calculateLayout(i,o,r.DIRECTION_LTR);let c=(await l.next([0,0])).value,m=s.getComputedWidth(),h=s.getComputedHeight();return s.freeRecursive(),Io({width:m,height:h,content:c})}function bv(e,t){if(t){let r=e.Config.create();return r.setPointScaleFactor(t),e.Node.createWithConfig(r)}else return e.Node.create()}function yv(e){let t={},r={};for(let{word:n,locale:i}of e){let o=ol(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(...Hc(De(r[n],"grapheme"))):(t[n][0]=t[n][0]||"",t[n][0]+=Hc(De(r[n],"grapheme",n==="unknown"?void 0:n)).join(""))}),t}function Hc(e){return Array.from(new Set(e))}export{Yc as default,Ad as init};
|
|
1
|
+
var Zc=Object.create;var zn=Object.defineProperty;var ed=Object.getOwnPropertyDescriptor;var td=Object.getOwnPropertyNames;var rd=Object.getPrototypeOf,nd=Object.prototype.hasOwnProperty;var ar=(e,t)=>()=>(e&&(t=e(e=0)),t);var z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Gn=(e,t)=>{for(var n in t)zn(e,n,{get:t[n],enumerable:!0})},ka=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of td(t))!nd.call(e,i)&&i!==n&&zn(e,i,{get:()=>t[i],enumerable:!(r=ed(t,i))||r.enumerable});return e};var id=(e,t,n)=>(n=e!=null?Zc(rd(e)):{},ka(t||!e||!e.__esModule?zn(n,"default",{value:e,enumerable:!0}):n,e)),jn=e=>ka(zn({},"__esModule",{value:!0}),e);var Gt,Va,Ha,Vr,Vi,jt,Er,wd,Yn,Hi,Tr,kr,Yi,Ya,Xi,Ki,St,Qi,Sd,Xa,Xn=ar(()=>{Gt=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}({}),Va=function(e){return e[e.BorderBox=0]="BorderBox",e[e.ContentBox=1]="ContentBox",e}({}),Ha=function(e){return e[e.Width=0]="Width",e[e.Height=1]="Height",e}({}),Vr=function(e){return e[e.Inherit=0]="Inherit",e[e.LTR=1]="LTR",e[e.RTL=2]="RTL",e}({}),Vi=function(e){return e[e.Flex=0]="Flex",e[e.None=1]="None",e[e.Contents=2]="Contents",e}({}),jt=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}({}),Er=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}({}),wd=function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e}({}),Yn=function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e}({}),Hi=function(e){return e[e.Column=0]="Column",e[e.Row=1]="Row",e[e.All=2]="All",e}({}),Tr=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}({}),kr=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}({}),Yi=function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e}({}),Ya=function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e}({}),Xi=function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e}({}),Ki=function(e){return e[e.Static=0]="Static",e[e.Relative=1]="Relative",e[e.Absolute=2]="Absolute",e}({}),St=function(e){return e[e.Undefined=0]="Undefined",e[e.Point=1]="Point",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto",e}({}),Qi=function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e}({}),Sd={ALIGN_AUTO:Gt.Auto,ALIGN_FLEX_START:Gt.FlexStart,ALIGN_CENTER:Gt.Center,ALIGN_FLEX_END:Gt.FlexEnd,ALIGN_STRETCH:Gt.Stretch,ALIGN_BASELINE:Gt.Baseline,ALIGN_SPACE_BETWEEN:Gt.SpaceBetween,ALIGN_SPACE_AROUND:Gt.SpaceAround,ALIGN_SPACE_EVENLY:Gt.SpaceEvenly,BOX_SIZING_BORDER_BOX:Va.BorderBox,BOX_SIZING_CONTENT_BOX:Va.ContentBox,DIMENSION_WIDTH:Ha.Width,DIMENSION_HEIGHT:Ha.Height,DIRECTION_INHERIT:Vr.Inherit,DIRECTION_LTR:Vr.LTR,DIRECTION_RTL:Vr.RTL,DISPLAY_FLEX:Vi.Flex,DISPLAY_NONE:Vi.None,DISPLAY_CONTENTS:Vi.Contents,EDGE_LEFT:jt.Left,EDGE_TOP:jt.Top,EDGE_RIGHT:jt.Right,EDGE_BOTTOM:jt.Bottom,EDGE_START:jt.Start,EDGE_END:jt.End,EDGE_HORIZONTAL:jt.Horizontal,EDGE_VERTICAL:jt.Vertical,EDGE_ALL:jt.All,ERRATA_NONE:Er.None,ERRATA_STRETCH_FLEX_BASIS:Er.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:Er.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:Er.AbsolutePercentAgainstInnerSize,ERRATA_ALL:Er.All,ERRATA_CLASSIC:Er.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:wd.WebFlexBasis,FLEX_DIRECTION_COLUMN:Yn.Column,FLEX_DIRECTION_COLUMN_REVERSE:Yn.ColumnReverse,FLEX_DIRECTION_ROW:Yn.Row,FLEX_DIRECTION_ROW_REVERSE:Yn.RowReverse,GUTTER_COLUMN:Hi.Column,GUTTER_ROW:Hi.Row,GUTTER_ALL:Hi.All,JUSTIFY_FLEX_START:Tr.FlexStart,JUSTIFY_CENTER:Tr.Center,JUSTIFY_FLEX_END:Tr.FlexEnd,JUSTIFY_SPACE_BETWEEN:Tr.SpaceBetween,JUSTIFY_SPACE_AROUND:Tr.SpaceAround,JUSTIFY_SPACE_EVENLY:Tr.SpaceEvenly,LOG_LEVEL_ERROR:kr.Error,LOG_LEVEL_WARN:kr.Warn,LOG_LEVEL_INFO:kr.Info,LOG_LEVEL_DEBUG:kr.Debug,LOG_LEVEL_VERBOSE:kr.Verbose,LOG_LEVEL_FATAL:kr.Fatal,MEASURE_MODE_UNDEFINED:Yi.Undefined,MEASURE_MODE_EXACTLY:Yi.Exactly,MEASURE_MODE_AT_MOST:Yi.AtMost,NODE_TYPE_DEFAULT:Ya.Default,NODE_TYPE_TEXT:Ya.Text,OVERFLOW_VISIBLE:Xi.Visible,OVERFLOW_HIDDEN:Xi.Hidden,OVERFLOW_SCROLL:Xi.Scroll,POSITION_TYPE_STATIC:Ki.Static,POSITION_TYPE_RELATIVE:Ki.Relative,POSITION_TYPE_ABSOLUTE:Ki.Absolute,UNIT_UNDEFINED:St.Undefined,UNIT_POINT:St.Point,UNIT_PERCENT:St.Percent,UNIT_AUTO:St.Auto,WRAP_NO_WRAP:Qi.NoWrap,WRAP_WRAP:Qi.Wrap,WRAP_WRAP_REVERSE:Qi.WrapReverse},Xa=Sd});function Ji(e){function t(i,o,s){let a=i[o];i[o]=function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return s.call(this,a,...l)}}for(let i of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){let o={[St.Point]:e.Node.prototype[i],[St.Percent]:e.Node.prototype[`${i}Percent`],[St.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),l=1;l<a;l++)u[l-1]=arguments[l];let f=u.pop(),c,h;if(f==="auto")c=St.Auto,h=void 0;else if(typeof f=="object")c=f.unit,h=f.valueOf();else if(c=typeof f=="string"&&f.endsWith("%")?St.Percent:St.Point,h=parseFloat(f),f!==void 0&&!Number.isNaN(f)&&Number.isNaN(h))throw new Error(`Invalid value ${f} for ${i}`);if(!o[c])throw new Error(`Failed to execute "${i}": Unsupported unit '${f}'`);return h!==void 0?o[c].call(this,...u,h):o[c].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]:Vr.LTR;return i.call(this,o,s,a)}),{Config:e.Config,Node:e.Node,...Xa}}var Ka=ar(()=>{Xn();Xn()});var Ja={};Gn(Ja,{default:()=>_d});function _d(e){e=e||{};var t;t||(t=typeof e<"u"?e:{});var n,r;t.ready=new Promise(function(d,p){n=d,r=p});var i=Object.assign({},t),o="";typeof document<"u"&&document.currentScript&&(o=document.currentScript.src),Qa&&(o=Qa),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 l=t.noExitRuntime||!0;typeof WebAssembly!="object"&&Ke("no native wasm support detected");var f,c=!1;function h(d,p,b){b=p+b;for(var v="";!(p>=b);){var w=d[p++];if(!w)break;if(w&128){var O=d[p++]&63;if((w&224)==192)v+=String.fromCharCode((w&31)<<6|O);else{var L=d[p++]&63;w=(w&240)==224?(w&15)<<12|O<<6|L:(w&7)<<18|O<<12|L<<6|d[p++]&63,65536>w?v+=String.fromCharCode(w):(w-=65536,v+=String.fromCharCode(55296|w>>10,56320|w&1023))}}else v+=String.fromCharCode(w)}return v}var m,g,y,x,_,E,T,R,P;function S(){var d=f.buffer;m=d,t.HEAP8=g=new Int8Array(d),t.HEAP16=x=new Int16Array(d),t.HEAP32=E=new Int32Array(d),t.HEAPU8=y=new Uint8Array(d),t.HEAPU16=_=new Uint16Array(d),t.HEAPU32=T=new Uint32Array(d),t.HEAPF32=R=new Float32Array(d),t.HEAPF64=P=new Float64Array(d)}var A,C=[],G=[],V=[];function ee(){var d=t.preRun.shift();C.unshift(d)}var re=0,pe=null,ce=null;function Ke(d){throw t.onAbort&&t.onAbort(d),d="Aborted("+d+")",a(d),c=!0,d=new WebAssembly.RuntimeError(d+". Build with -sASSERTIONS for more info."),r(d),d}function Pe(d){return d.startsWith("data:application/octet-stream;base64,")}var we="";if(!Pe(we)){var De=we;we=t.locateFile?t.locateFile(De,o):o+De}function J(){var d=we;try{if(d==we&&u)return new Uint8Array(u);if(Pe(d))try{var p=Qc(d.slice(37)),b=new Uint8Array(p.length);for(d=0;d<p.length;++d)b[d]=p.charCodeAt(d);var v=b}catch{throw Error("Converting base64 string to bytes failed.")}else v=void 0;var w=v;if(w)return w;throw"both async and sync fetching of the wasm failed"}catch(O){Ke(O)}}function xe(){return u||typeof fetch!="function"?Promise.resolve().then(function(){return J()}):fetch(we,{credentials:"same-origin"}).then(function(d){if(!d.ok)throw"failed to load wasm binary file at '"+we+"'";return d.arrayBuffer()}).catch(function(){return J()})}function qe(d){for(;0<d.length;)d.shift()(t)}function Be(d){if(d===void 0)return"_unknown";d=d.replace(/[^a-zA-Z0-9_]/g,"$");var p=d.charCodeAt(0);return 48<=p&&57>=p?"_"+d:d}function Oe(d,p){return d=Be(d),function(){return p.apply(this,arguments)}}var ne=[{},{value:void 0},{value:null},{value:!0},{value:!1}],at=[];function Re(d){var p=Error,b=Oe(d,function(v){this.name=d,this.message=v,v=Error(v).stack,v!==void 0&&(this.stack=this.toString()+`
|
|
2
|
+
`+v.replace(/^Error(:[^\n]*)?\n/,""))});return b.prototype=Object.create(p.prototype),b.prototype.constructor=b,b.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},b}var j=void 0;function q(d){throw new j(d)}var he=d=>(d||q("Cannot use deleted val. handle = "+d),ne[d].value),Ae=d=>{switch(d){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var p=at.length?at.pop():ne.length;return ne[p]={ga:1,value:d},p}},Ie=void 0,Le=void 0;function ue(d){for(var p="";y[d];)p+=Le[y[d++]];return p}var Qe=[];function rt(){for(;Qe.length;){var d=Qe.pop();d.M.$=!1,d.delete()}}var Me=void 0,ge={};function ze(d,p){for(p===void 0&&q("ptr should not be undefined");d.R;)p=d.ba(p),d=d.R;return p}var Et={};function Dr(d){d=Sa(d);var p=ue(d);return Bt(d),p}function Wr(d,p){var b=Et[d];return b===void 0&&q(p+" has unknown type "+Dr(d)),b}function Ft(){}var $r=!1;function Br(d){--d.count.value,d.count.value===0&&(d.T?d.U.W(d.T):d.P.N.W(d.O))}function or(d,p,b){return p===b?d:b.R===void 0?null:(d=or(d,p,b.R),d===null?null:b.na(d))}var Tt={};function kt(d,p){return p=ze(d,p),ge[p]}var nt=void 0;function Nt(d){throw new nt(d)}function Ge(d,p){return p.P&&p.O||Nt("makeClassHandle requires ptr and ptrType"),!!p.U!=!!p.T&&Nt("Both smartPtrType and smartPtr must be specified"),p.count={value:1},it(Object.create(d,{M:{value:p}}))}function it(d){return typeof FinalizationRegistry>"u"?(it=p=>p,d):($r=new FinalizationRegistry(p=>{Br(p.M)}),it=p=>{var b=p.M;return b.T&&$r.register(p,{M:b},p),p},Ft=p=>{$r.unregister(p)},it(d))}var Dt={};function yr(d){for(;d.length;){var p=d.pop();d.pop()(p)}}function Pt(d){return this.fromWireType(E[d>>2])}var Ue={},Ot={};function We(d,p,b){function v(M){M=b(M),M.length!==d.length&&Nt("Mismatched type converter count");for(var D=0;D<d.length;++D)Y(d[D],M[D])}d.forEach(function(M){Ot[M]=p});var w=Array(p.length),O=[],L=0;p.forEach((M,D)=>{Et.hasOwnProperty(M)?w[D]=Et[M]:(O.push(M),Ue.hasOwnProperty(M)||(Ue[M]=[]),Ue[M].push(()=>{w[D]=Et[M],++L,L===O.length&&v(w)}))}),O.length===0&&v(w)}function vr(d){switch(d){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+d)}}function Y(d,p,b={}){if(!("argPackAdvance"in p))throw new TypeError("registerType registeredInstance requires argPackAdvance");var v=p.name;if(d||q('type "'+v+'" must have a positive integer typeid pointer'),Et.hasOwnProperty(d)){if(b.ua)return;q("Cannot register type '"+v+"' twice")}Et[d]=p,delete Ot[d],Ue.hasOwnProperty(d)&&(p=Ue[d],delete Ue[d],p.forEach(w=>w()))}function Q(d){q(d.M.P.N.name+" instance already deleted")}function te(){}function Z(d,p,b){if(d[p].S===void 0){var v=d[p];d[p]=function(){return d[p].S.hasOwnProperty(arguments.length)||q("Function '"+b+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+d[p].S+")!"),d[p].S[arguments.length].apply(this,arguments)},d[p].S=[],d[p].S[v.Z]=v}}function Te(d,p){t.hasOwnProperty(d)?(q("Cannot register public name '"+d+"' twice"),Z(t,d,d),t.hasOwnProperty(void 0)&&q("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),t[d].S[void 0]=p):t[d]=p}function le(d,p,b,v,w,O,L,M){this.name=d,this.constructor=p,this.X=b,this.W=v,this.R=w,this.pa=O,this.ba=L,this.na=M,this.ja=[]}function be(d,p,b){for(;p!==b;)p.ba||q("Expected null or instance of "+b.name+", got an instance of "+p.name),d=p.ba(d),p=p.R;return d}function fe(d,p){return p===null?(this.ea&&q("null is not a valid "+this.name),0):(p.M||q('Cannot pass "'+ke(p)+'" as a '+this.name),p.M.O||q("Cannot pass deleted object as a pointer of type "+this.name),be(p.M.O,p.M.P.N,this.N))}function ie(d,p){if(p===null){if(this.ea&&q("null is not a valid "+this.name),this.da){var b=this.fa();return d!==null&&d.push(this.W,b),b}return 0}if(p.M||q('Cannot pass "'+ke(p)+'" as a '+this.name),p.M.O||q("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&p.M.P.ca&&q("Cannot convert argument of type "+(p.M.U?p.M.U.name:p.M.P.name)+" to parameter type "+this.name),b=be(p.M.O,p.M.P.N,this.N),this.da)switch(p.M.T===void 0&&q("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:p.M.U===this?b=p.M.T:q("Cannot convert argument of type "+(p.M.U?p.M.U.name:p.M.P.name)+" to parameter type "+this.name);break;case 1:b=p.M.T;break;case 2:if(p.M.U===this)b=p.M.T;else{var v=p.clone();b=this.xa(b,Ae(function(){v.delete()})),d!==null&&d.push(this.W,b)}break;default:q("Unsupporting sharing policy")}return b}function ut(d,p){return p===null?(this.ea&&q("null is not a valid "+this.name),0):(p.M||q('Cannot pass "'+ke(p)+'" as a '+this.name),p.M.O||q("Cannot pass deleted object as a pointer of type "+this.name),p.M.P.ca&&q("Cannot convert argument of type "+p.M.P.name+" to parameter type "+this.name),be(p.M.O,p.M.P.N,this.N))}function X(d,p,b,v){this.name=d,this.N=p,this.ea=b,this.ca=v,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,p.R!==void 0?this.toWireType=ie:(this.toWireType=v?fe:ut,this.V=null)}function Rt(d,p){t.hasOwnProperty(d)||Nt("Replacing nonexistant public symbol"),t[d]=p,t[d].Z=void 0}function je(d,p){var b=[];return function(){if(b.length=0,Object.assign(b,arguments),d.includes("j")){var v=t["dynCall_"+d];v=b&&b.length?v.apply(null,[p].concat(b)):v.call(null,p)}else v=A.get(p).apply(null,b);return v}}function Ve(d,p){d=ue(d);var b=d.includes("j")?je(d,p):A.get(p);return typeof b!="function"&&q("unknown function pointer with signature "+d+": "+p),b}var ot=void 0;function Wt(d,p){function b(O){w[O]||Et[O]||(Ot[O]?Ot[O].forEach(b):(v.push(O),w[O]=!0))}var v=[],w={};throw p.forEach(b),new ot(d+": "+v.map(Dr).join([", "]))}function He(d,p,b,v,w){var O=p.length;2>O&&q("argTypes array size mismatch! Must at least get return value and 'this' types!");var L=p[1]!==null&&b!==null,M=!1;for(b=1;b<p.length;++b)if(p[b]!==null&&p[b].V===void 0){M=!0;break}var D=p[0].name!=="void",N=O-2,$=Array(N),H=[],oe=[];return function(){if(arguments.length!==N&&q("function "+d+" called with "+arguments.length+" arguments, expected "+N+" args!"),oe.length=0,H.length=L?2:1,H[0]=w,L){var Ce=p[1].toWireType(oe,this);H[1]=Ce}for(var de=0;de<N;++de)$[de]=p[de+2].toWireType(oe,arguments[de]),H.push($[de]);if(de=v.apply(null,H),M)yr(oe);else for(var st=L?1:2;st<p.length;st++){var xt=st===1?Ce:$[st-2];p[st].V!==null&&p[st].V(xt)}return Ce=D?p[0].fromWireType(de):void 0,Ce}}function $t(d,p){for(var b=[],v=0;v<d;v++)b.push(T[p+4*v>>2]);return b}function Se(d){4<d&&--ne[d].ga===0&&(ne[d]=void 0,at.push(d))}function ke(d){if(d===null)return"null";var p=typeof d;return p==="object"||p==="array"||p==="function"?d.toString():""+d}function lt(d,p){switch(p){case 2:return function(b){return this.fromWireType(R[b>>2])};case 3:return function(b){return this.fromWireType(P[b>>3])};default:throw new TypeError("Unknown float type: "+d)}}function Je(d,p,b){switch(p){case 0:return b?function(v){return g[v]}:function(v){return y[v]};case 1:return b?function(v){return x[v>>1]}:function(v){return _[v>>1]};case 2:return b?function(v){return E[v>>2]}:function(v){return T[v>>2]};default:throw new TypeError("Unknown integer type: "+d)}}function ft(d,p){for(var b="",v=0;!(v>=p/2);++v){var w=x[d+2*v>>1];if(w==0)break;b+=String.fromCharCode(w)}return b}function vt(d,p,b){if(b===void 0&&(b=2147483647),2>b)return 0;b-=2;var v=p;b=b<2*d.length?b/2:d.length;for(var w=0;w<b;++w)x[p>>1]=d.charCodeAt(w),p+=2;return x[p>>1]=0,p-v}function Ye(d){return 2*d.length}function ct(d,p){for(var b=0,v="";!(b>=p/4);){var w=E[d+4*b>>2];if(w==0)break;++b,65536<=w?(w-=65536,v+=String.fromCharCode(55296|w>>10,56320|w&1023)):v+=String.fromCharCode(w)}return v}function Ur(d,p,b){if(b===void 0&&(b=2147483647),4>b)return 0;var v=p;b=v+b-4;for(var w=0;w<d.length;++w){var O=d.charCodeAt(w);if(55296<=O&&57343>=O){var L=d.charCodeAt(++w);O=65536+((O&1023)<<10)|L&1023}if(E[p>>2]=O,p+=4,p+4>b)break}return E[p>>2]=0,p-v}function xr(d){for(var p=0,b=0;b<d.length;++b){var v=d.charCodeAt(b);55296<=v&&57343>=v&&++b,p+=4}return p}var Bn={};function qr(d){var p=Bn[d];return p===void 0?ue(d):p}var sr=[];function Yc(d){var p=sr.length;return sr.push(d),p}function Xc(d,p){for(var b=Array(d),v=0;v<d;++v)b[v]=Wr(T[p+4*v>>2],"parameter "+v);return b}var xa=[],Kc=[null,[],[]];j=t.BindingError=Re("BindingError"),t.count_emval_handles=function(){for(var d=0,p=5;p<ne.length;++p)ne[p]!==void 0&&++d;return d},t.get_first_emval=function(){for(var d=5;d<ne.length;++d)if(ne[d]!==void 0)return ne[d];return null},Ie=t.PureVirtualError=Re("PureVirtualError");for(var wa=Array(256),Un=0;256>Un;++Un)wa[Un]=String.fromCharCode(Un);Le=wa,t.getInheritedInstanceCount=function(){return Object.keys(ge).length},t.getLiveInheritedInstances=function(){var d=[],p;for(p in ge)ge.hasOwnProperty(p)&&d.push(ge[p]);return d},t.flushPendingDeletes=rt,t.setDelayFunction=function(d){Me=d,Qe.length&&Me&&Me(rt)},nt=t.InternalError=Re("InternalError"),te.prototype.isAliasOf=function(d){if(!(this instanceof te&&d instanceof te))return!1;var p=this.M.P.N,b=this.M.O,v=d.M.P.N;for(d=d.M.O;p.R;)b=p.ba(b),p=p.R;for(;v.R;)d=v.ba(d),v=v.R;return p===v&&b===d},te.prototype.clone=function(){if(this.M.O||Q(this),this.M.aa)return this.M.count.value+=1,this;var d=it,p=Object,b=p.create,v=Object.getPrototypeOf(this),w=this.M;return d=d(b.call(p,v,{M:{value:{count:w.count,$:w.$,aa:w.aa,O:w.O,P:w.P,T:w.T,U:w.U}}})),d.M.count.value+=1,d.M.$=!1,d},te.prototype.delete=function(){this.M.O||Q(this),this.M.$&&!this.M.aa&&q("Object already scheduled for deletion"),Ft(this),Br(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},te.prototype.isDeleted=function(){return!this.M.O},te.prototype.deleteLater=function(){return this.M.O||Q(this),this.M.$&&!this.M.aa&&q("Object already scheduled for deletion"),Qe.push(this),Qe.length===1&&Me&&Me(rt),this.M.$=!0,this},X.prototype.qa=function(d){return this.ka&&(d=this.ka(d)),d},X.prototype.ha=function(d){this.W&&this.W(d)},X.prototype.argPackAdvance=8,X.prototype.readValueFromPointer=Pt,X.prototype.deleteObject=function(d){d!==null&&d.delete()},X.prototype.fromWireType=function(d){function p(){return this.da?Ge(this.N.X,{P:this.wa,O:b,U:this,T:d}):Ge(this.N.X,{P:this,O:d})}var b=this.qa(d);if(!b)return this.ha(d),null;var v=kt(this.N,b);if(v!==void 0)return v.M.count.value===0?(v.M.O=b,v.M.T=d,v.clone()):(v=v.clone(),this.ha(d),v);if(v=this.N.pa(b),v=Tt[v],!v)return p.call(this);v=this.ca?v.la:v.pointerType;var w=or(b,this.N,v.N);return w===null?p.call(this):this.da?Ge(v.N.X,{P:v,O:w,U:this,T:d}):Ge(v.N.X,{P:v,O:w})},ot=t.UnboundTypeError=Re("UnboundTypeError");var Qc=typeof atob=="function"?atob:function(d){var p="",b=0;d=d.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d.charAt(b++)),w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d.charAt(b++)),O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d.charAt(b++)),L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d.charAt(b++));v=v<<2|w>>4,w=(w&15)<<4|O>>2;var M=(O&3)<<6|L;p+=String.fromCharCode(v),O!==64&&(p+=String.fromCharCode(w)),L!==64&&(p+=String.fromCharCode(M))}while(b<d.length);return p},Jc={l:function(d,p,b,v){Ke("Assertion failed: "+(d?h(y,d):"")+", at: "+[p?p?h(y,p):"":"unknown filename",b,v?v?h(y,v):"":"unknown function"])},q:function(d,p,b){d=ue(d),p=Wr(p,"wrapper"),b=he(b);var v=[].slice,w=p.N,O=w.X,L=w.R.X,M=w.R.constructor;d=Oe(d,function(){w.R.ja.forEach(function(N){if(this[N]===L[N])throw new Ie("Pure virtual function "+N+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:O}),this.__construct.apply(this,v.call(arguments))}),O.__construct=function(){this===O&&q("Pass correct 'this' to __construct");var N=M.implement.apply(void 0,[this].concat(v.call(arguments)));Ft(N);var $=N.M;N.notifyOnDestruction(),$.aa=!0,Object.defineProperties(this,{M:{value:$}}),it(this),N=$.O,N=ze(w,N),ge.hasOwnProperty(N)?q("Tried to register registered instance: "+N):ge[N]=this},O.__destruct=function(){this===O&&q("Pass correct 'this' to __destruct"),Ft(this);var N=this.M.O;N=ze(w,N),ge.hasOwnProperty(N)?delete ge[N]:q("Tried to unregister unregistered instance: "+N)},d.prototype=Object.create(O);for(var D in b)d.prototype[D]=b[D];return Ae(d)},j:function(d){var p=Dt[d];delete Dt[d];var b=p.fa,v=p.W,w=p.ia,O=w.map(L=>L.ta).concat(w.map(L=>L.za));We([d],O,L=>{var M={};return w.forEach((D,N)=>{var $=L[N],H=D.ra,oe=D.sa,Ce=L[N+w.length],de=D.ya,st=D.Aa;M[D.oa]={read:xt=>$.fromWireType(H(oe,xt)),write:(xt,zr)=>{var Ut=[];de(st,xt,Ce.toWireType(Ut,zr)),yr(Ut)}}}),[{name:p.name,fromWireType:function(D){var N={},$;for($ in M)N[$]=M[$].read(D);return v(D),N},toWireType:function(D,N){for(var $ in M)if(!($ in N))throw new TypeError('Missing field: "'+$+'"');var H=b();for($ in M)M[$].write(H,N[$]);return D!==null&&D.push(v,H),H},argPackAdvance:8,readValueFromPointer:Pt,V:v}]})},v:function(){},B:function(d,p,b,v,w){var O=vr(b);p=ue(p),Y(d,{name:p,fromWireType:function(L){return!!L},toWireType:function(L,M){return M?v:w},argPackAdvance:8,readValueFromPointer:function(L){if(b===1)var M=g;else if(b===2)M=x;else if(b===4)M=E;else throw new TypeError("Unknown boolean type size: "+p);return this.fromWireType(M[L>>O])},V:null})},f:function(d,p,b,v,w,O,L,M,D,N,$,H,oe){$=ue($),O=Ve(w,O),M&&(M=Ve(L,M)),N&&(N=Ve(D,N)),oe=Ve(H,oe);var Ce=Be($);Te(Ce,function(){Wt("Cannot construct "+$+" due to unbound types",[v])}),We([d,p,b],v?[v]:[],function(de){if(de=de[0],v)var st=de.N,xt=st.X;else xt=te.prototype;de=Oe(Ce,function(){if(Object.getPrototypeOf(this)!==zr)throw new j("Use 'new' to construct "+$);if(Ut.Y===void 0)throw new j($+" has no accessible constructor");var Ta=Ut.Y[arguments.length];if(Ta===void 0)throw new j("Tried to invoke ctor of "+$+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Ut.Y).toString()+") parameters instead!");return Ta.apply(this,arguments)});var zr=Object.create(xt,{constructor:{value:de}});de.prototype=zr;var Ut=new le($,de,zr,oe,st,O,M,N);st=new X($,Ut,!0,!1),xt=new X($+"*",Ut,!1,!1);var Ea=new X($+" const*",Ut,!1,!0);return Tt[d]={pointerType:xt,la:Ea},Rt(Ce,de),[st,xt,Ea]})},d:function(d,p,b,v,w,O,L){var M=$t(b,v);p=ue(p),O=Ve(w,O),We([],[d],function(D){function N(){Wt("Cannot call "+$+" due to unbound types",M)}D=D[0];var $=D.name+"."+p;p.startsWith("@@")&&(p=Symbol[p.substring(2)]);var H=D.N.constructor;return H[p]===void 0?(N.Z=b-1,H[p]=N):(Z(H,p,$),H[p].S[b-1]=N),We([],M,function(oe){return oe=He($,[oe[0],null].concat(oe.slice(1)),null,O,L),H[p].S===void 0?(oe.Z=b-1,H[p]=oe):H[p].S[b-1]=oe,[]}),[]})},p:function(d,p,b,v,w,O){0<p||Ke();var L=$t(p,b);w=Ve(v,w),We([],[d],function(M){M=M[0];var D="constructor "+M.name;if(M.N.Y===void 0&&(M.N.Y=[]),M.N.Y[p-1]!==void 0)throw new j("Cannot register multiple constructors with identical number of parameters ("+(p-1)+") for class '"+M.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return M.N.Y[p-1]=()=>{Wt("Cannot construct "+M.name+" due to unbound types",L)},We([],L,function(N){return N.splice(1,0,null),M.N.Y[p-1]=He(D,N,null,w,O),[]}),[]})},a:function(d,p,b,v,w,O,L,M){var D=$t(b,v);p=ue(p),O=Ve(w,O),We([],[d],function(N){function $(){Wt("Cannot call "+H+" due to unbound types",D)}N=N[0];var H=N.name+"."+p;p.startsWith("@@")&&(p=Symbol[p.substring(2)]),M&&N.N.ja.push(p);var oe=N.N.X,Ce=oe[p];return Ce===void 0||Ce.S===void 0&&Ce.className!==N.name&&Ce.Z===b-2?($.Z=b-2,$.className=N.name,oe[p]=$):(Z(oe,p,H),oe[p].S[b-2]=$),We([],D,function(de){return de=He(H,de,N,O,L),oe[p].S===void 0?(de.Z=b-2,oe[p]=de):oe[p].S[b-2]=de,[]}),[]})},A:function(d,p){p=ue(p),Y(d,{name:p,fromWireType:function(b){var v=he(b);return Se(b),v},toWireType:function(b,v){return Ae(v)},argPackAdvance:8,readValueFromPointer:Pt,V:null})},n:function(d,p,b){b=vr(b),p=ue(p),Y(d,{name:p,fromWireType:function(v){return v},toWireType:function(v,w){return w},argPackAdvance:8,readValueFromPointer:lt(p,b),V:null})},e:function(d,p,b,v,w){p=ue(p),w===-1&&(w=4294967295),w=vr(b);var O=M=>M;if(v===0){var L=32-8*b;O=M=>M<<L>>>L}b=p.includes("unsigned")?function(M,D){return D>>>0}:function(M,D){return D},Y(d,{name:p,fromWireType:O,toWireType:b,argPackAdvance:8,readValueFromPointer:Je(p,w,v!==0),V:null})},b:function(d,p,b){function v(O){O>>=2;var L=T;return new w(m,L[O+1],L[O])}var w=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][p];b=ue(b),Y(d,{name:b,fromWireType:v,argPackAdvance:8,readValueFromPointer:v},{ua:!0})},o:function(d,p){p=ue(p);var b=p==="std::string";Y(d,{name:p,fromWireType:function(v){var w=T[v>>2],O=v+4;if(b)for(var L=O,M=0;M<=w;++M){var D=O+M;if(M==w||y[D]==0){if(L=L?h(y,L,D-L):"",N===void 0)var N=L;else N+=String.fromCharCode(0),N+=L;L=D+1}}else{for(N=Array(w),M=0;M<w;++M)N[M]=String.fromCharCode(y[O+M]);N=N.join("")}return Bt(v),N},toWireType:function(v,w){w instanceof ArrayBuffer&&(w=new Uint8Array(w));var O,L=typeof w=="string";if(L||w instanceof Uint8Array||w instanceof Uint8ClampedArray||w instanceof Int8Array||q("Cannot pass non-string to std::string"),b&&L){var M=0;for(O=0;O<w.length;++O){var D=w.charCodeAt(O);127>=D?M++:2047>=D?M+=2:55296<=D&&57343>=D?(M+=4,++O):M+=3}O=M}else O=w.length;if(M=Bi(4+O+1),D=M+4,T[M>>2]=O,b&&L){if(L=D,D=O+1,O=y,0<D){D=L+D-1;for(var N=0;N<w.length;++N){var $=w.charCodeAt(N);if(55296<=$&&57343>=$){var H=w.charCodeAt(++N);$=65536+(($&1023)<<10)|H&1023}if(127>=$){if(L>=D)break;O[L++]=$}else{if(2047>=$){if(L+1>=D)break;O[L++]=192|$>>6}else{if(65535>=$){if(L+2>=D)break;O[L++]=224|$>>12}else{if(L+3>=D)break;O[L++]=240|$>>18,O[L++]=128|$>>12&63}O[L++]=128|$>>6&63}O[L++]=128|$&63}}O[L]=0}}else if(L)for(L=0;L<O;++L)N=w.charCodeAt(L),255<N&&(Bt(D),q("String has UTF-16 code units that do not fit in 8 bits")),y[D+L]=N;else for(L=0;L<O;++L)y[D+L]=w[L];return v!==null&&v.push(Bt,M),M},argPackAdvance:8,readValueFromPointer:Pt,V:function(v){Bt(v)}})},i:function(d,p,b){if(b=ue(b),p===2)var v=ft,w=vt,O=Ye,L=()=>_,M=1;else p===4&&(v=ct,w=Ur,O=xr,L=()=>T,M=2);Y(d,{name:b,fromWireType:function(D){for(var N=T[D>>2],$=L(),H,oe=D+4,Ce=0;Ce<=N;++Ce){var de=D+4+Ce*p;(Ce==N||$[de>>M]==0)&&(oe=v(oe,de-oe),H===void 0?H=oe:(H+=String.fromCharCode(0),H+=oe),oe=de+p)}return Bt(D),H},toWireType:function(D,N){typeof N!="string"&&q("Cannot pass non-string to C++ string type "+b);var $=O(N),H=Bi(4+$+p);return T[H>>2]=$>>M,w(N,H+4,$+p),D!==null&&D.push(Bt,H),H},argPackAdvance:8,readValueFromPointer:Pt,V:function(D){Bt(D)}})},k:function(d,p,b,v,w,O){Dt[d]={name:ue(p),fa:Ve(b,v),W:Ve(w,O),ia:[]}},h:function(d,p,b,v,w,O,L,M,D,N){Dt[d].ia.push({oa:ue(p),ta:b,ra:Ve(v,w),sa:O,za:L,ya:Ve(M,D),Aa:N})},C:function(d,p){p=ue(p),Y(d,{va:!0,name:p,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(d,p,b,v,w){d=sr[d],p=he(p),b=qr(b);var O=[];return T[v>>2]=Ae(O),d(p,b,O,w)},t:function(d,p,b,v){d=sr[d],p=he(p),b=qr(b),d(p,b,null,v)},g:Se,m:function(d,p){var b=Xc(d,p),v=b[0];p=v.name+"_$"+b.slice(1).map(function(L){return L.name}).join("_")+"$";var w=xa[p];if(w!==void 0)return w;var O=Array(d-1);return w=Yc((L,M,D,N)=>{for(var $=0,H=0;H<d-1;++H)O[H]=b[H+1].readValueFromPointer(N+$),$+=b[H+1].argPackAdvance;for(L=L[M].apply(L,O),H=0;H<d-1;++H)b[H+1].ma&&b[H+1].ma(O[H]);if(!v.va)return v.toWireType(D,L)}),xa[p]=w},D:function(d){4<d&&(ne[d].ga+=1)},r:function(d){var p=he(d);yr(p),Se(d)},c:function(){Ke("")},x:function(d,p,b){y.copyWithin(d,p,p+b)},w:function(d){var p=y.length;if(d>>>=0,2147483648<d)return!1;for(var b=1;4>=b;b*=2){var v=p*(1+.2/b);v=Math.min(v,d+100663296);var w=Math;v=Math.max(d,v),w=w.min.call(w,2147483648,v+(65536-v%65536)%65536);e:{try{f.grow(w-m.byteLength+65535>>>16),S();var O=1;break e}catch{}O=void 0}if(O)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(d,p,b,v){for(var w=0,O=0;O<b;O++){var L=T[p>>2],M=T[p+4>>2];p+=8;for(var D=0;D<M;D++){var N=y[L+D],$=Kc[d];N===0||N===10?((d===1?s:a)(h($,0)),$.length=0):$.push(N)}w+=M}return T[v>>2]=w,0}};(function(){function d(w){t.asm=w.exports,f=t.asm.E,S(),A=t.asm.J,G.unshift(t.asm.F),re--,t.monitorRunDependencies&&t.monitorRunDependencies(re),re==0&&(pe!==null&&(clearInterval(pe),pe=null),ce&&(w=ce,ce=null,w()))}function p(w){d(w.instance)}function b(w){return xe().then(function(O){return O instanceof WebAssembly.Instance?O:WebAssembly.instantiate(O,v)}).then(function(O){return O}).then(w,function(O){a("failed to asynchronously prepare wasm: "+O),Ke(O)})}var v={a:Jc};if(re++,t.monitorRunDependencies&&t.monitorRunDependencies(re),t.instantiateWasm)try{return t.instantiateWasm(v,d)}catch(w){a("Module.instantiateWasm callback failed with error: "+w),r(w)}return function(){return u||typeof WebAssembly.instantiateStreaming!="function"||Pe(we)||typeof fetch!="function"?b(p):fetch(we,{credentials:"same-origin"}).then(function(w){return WebAssembly.instantiateStreaming(w,v).then(p,function(O){return a("wasm streaming compile failed: "+O),a("falling back to ArrayBuffer instantiation"),b(p)})})}().catch(r),{}})(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.F).apply(null,arguments)};var Sa=t.___getTypeName=function(){return(Sa=t.___getTypeName=t.asm.G).apply(null,arguments)};t.__embind_initialize_bindings=function(){return(t.__embind_initialize_bindings=t.asm.H).apply(null,arguments)};var Bi=t._malloc=function(){return(Bi=t._malloc=t.asm.I).apply(null,arguments)},Bt=t._free=function(){return(Bt=t._free=t.asm.K).apply(null,arguments)};t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.L).apply(null,arguments)};var qn;ce=function d(){qn||_a(),qn||(ce=d)};function _a(){function d(){if(!qn&&(qn=!0,t.calledRun=!0,!c)){if(qe(G),n(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;){var p=t.postRun.shift();V.unshift(p)}qe(V)}}if(!(0<re)){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)ee();qe(C),0<re||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),d()},1)):d())}}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();return _a(),e.ready}var Qa,Za=ar(()=>{Qa=""});async function eu(e){let{default:t}=await Promise.resolve().then(()=>(Za(),Ja));return Ji(await t(e))}var tu=ar(()=>{Ka();Xn()});var eo={};Gn(eo,{getYoga:()=>Od,init:()=>Pd});async function kd(e,t){let n;if(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL?n=await fetch(e):n=await e,typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(o){n.headers.get("Content-Type")!=="application/wasm"&&console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o)}let i=await n.arrayBuffer();return await WebAssembly.instantiate(i,t)}let r=await WebAssembly.instantiate("buffer"in n?n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength):n,t);return r instanceof WebAssembly.Instance?{instance:r,module:n}:r}function Pd(e){Ed({instantiateWasm(t,n){return kd(e,t).then(({instance:r})=>{n(r)}).catch(Zi),{}}}).then(ru).catch(Zi)}function Od(){return Td}var Ed,ru,Zi,Td,to=ar(()=>{tu();Ed=eu,Td=new Promise((e,t)=>{ru=e,Zi=t})});var Lo=z(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Object.defineProperty(Co,"default",{enumerable:!0,get:()=>fh});function fh(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 cl=z(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Object.defineProperty(Mo,"default",{enumerable:!0,get:()=>ch});var ch=["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 dl=z(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Object.defineProperty(Fo,"default",{enumerable:!0,get:()=>dh});function dh(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 No=z(($w,pl)=>{pl.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 xi={};Gn(xi,{default:()=>ph});var ph,wi=ar(()=>{ph={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 hl=z(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Object.defineProperty(Do,"default",{enumerable:!0,get:()=>gh});var hh=mh((wi(),jn(xi)));function mh(e){return e&&e.__esModule?e:{default:e}}function nn({version:e,from:t,to:n}){hh.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 gh={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 nn({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return nn({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return nn({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return nn({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return nn({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var ml=z(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Object.defineProperty(Wo,"defaults",{enumerable:!0,get:()=>bh});function bh(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 gl=z($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});Object.defineProperty($o,"toPath",{enumerable:!0,get:()=>yh});function yh(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 yl=z(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Object.defineProperty(Bo,"normalizeConfig",{enumerable:!0,get:()=>xh});var on=vh((wi(),jn(xi)));function bl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(bl=function(r){return r?n:t})(e)}function vh(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=bl(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 xh(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})()||on.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")on.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,l,f,c,h,m,g,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||(l=u.extract)===null||l===void 0)&&l.DEFAULT?e.purge.extract.DEFAULT:!((f=e.content)===null||f===void 0||(c=f.extract)===null||c===void 0)&&c.DEFAULT?e.content.extract.DEFAULT:!((h=e.purge)===null||h===void 0||(m=h.options)===null||m===void 0)&&m.extractors?e.purge.options.extractors:!((g=e.content)===null||g===void 0||(y=g.options)===null||y===void 0)&&y.extractors?e.content.options.extractors:{}})(),i={},o=(()=>{var s,a,u,l;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||(l=u.options)===null||l===void 0)&&l.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,l,f;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:!((l=e.content)===null||l===void 0||(f=l.transform)===null||f===void 0)&&f.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)){on.default.warn("invalid-glob-braces",[`The glob pattern ${(0,on.dim)(r)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,on.dim)(r.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var vl=z(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Object.defineProperty(Uo,"default",{enumerable:!0,get:()=>wh});function wh(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var xl=z(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});Object.defineProperty(zo,"cloneDeep",{enumerable:!0,get:()=>qo});function qo(e){return Array.isArray(e)?e.map(t=>qo(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,qo(n)])):e}});var Go=z((Si,wl)=>{"use strict";Si.__esModule=!0;Si.default=Eh;function Sh(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 _h=/\\/;function Eh(e){var t=_h.test(e);if(!t)return e;for(var n="",r=0;r<e.length;r++){if(e[r]==="\\"){var i=Sh(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}wl.exports=Si.default});var _l=z((_i,Sl)=>{"use strict";_i.__esModule=!0;_i.default=Th;function Th(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}Sl.exports=_i.default});var Tl=z((Ei,El)=>{"use strict";Ei.__esModule=!0;Ei.default=kh;function kh(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]}}El.exports=Ei.default});var Pl=z((Ti,kl)=>{"use strict";Ti.__esModule=!0;Ti.default=Ph;function Ph(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}kl.exports=Ti.default});var sn=z(Ct=>{"use strict";Ct.__esModule=!0;Ct.stripComments=Ct.ensureObject=Ct.getProp=Ct.unesc=void 0;var Oh=ki(Go());Ct.unesc=Oh.default;var Rh=ki(_l());Ct.getProp=Rh.default;var Ah=ki(Tl());Ct.ensureObject=Ah.default;var Ih=ki(Pl());Ct.stripComments=Ih.default;function ki(e){return e&&e.__esModule?e:{default:e}}});var Ht=z((an,Al)=>{"use strict";an.__esModule=!0;an.default=void 0;var Ol=sn();function Rl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ch(e,t,n){return t&&Rl(e.prototype,t),n&&Rl(e,n),e}var Lh=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},Mh=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=Lh(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("")},Ch(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,Ol.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,Ol.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=r}}]),e}();an.default=Mh;Al.exports=an.default});var $e=z(ye=>{"use strict";ye.__esModule=!0;ye.UNIVERSAL=ye.ATTRIBUTE=ye.CLASS=ye.COMBINATOR=ye.COMMENT=ye.ID=ye.NESTING=ye.PSEUDO=ye.ROOT=ye.SELECTOR=ye.STRING=ye.TAG=void 0;var Fh="tag";ye.TAG=Fh;var Nh="string";ye.STRING=Nh;var Dh="selector";ye.SELECTOR=Dh;var Wh="root";ye.ROOT=Wh;var $h="pseudo";ye.PSEUDO=$h;var Bh="nesting";ye.NESTING=Bh;var Uh="id";ye.ID=Uh;var qh="comment";ye.COMMENT=qh;var zh="combinator";ye.COMBINATOR=zh;var Gh="class";ye.CLASS=Gh;var jh="attribute";ye.ATTRIBUTE=jh;var Vh="universal";ye.UNIVERSAL=Vh});var Pi=z((un,Ml)=>{"use strict";un.__esModule=!0;un.default=void 0;var Hh=Xh(Ht()),Yt=Yh($e());function Ll(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Ll=function(){return e},e}function Yh(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Ll();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 Xh(e){return e&&e.__esModule?e:{default:e}}function Kh(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Qh(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 Qh(e,t){if(e){if(typeof e=="string")return Il(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 Il(e,t)}}function Il(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jh(e,t,n){return t&&Cl(e.prototype,t),n&&Cl(e,n),e}function Zh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jo(e,t)}function jo(e,t){return jo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},jo(e,t)}var em=function(e){Zh(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=Kh(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===Yt.ATTRIBUTE)return i.call(o,s)})},n.walkClasses=function(i){var o=this;return this.walk(function(s){if(s.type===Yt.CLASS)return i.call(o,s)})},n.walkCombinators=function(i){var o=this;return this.walk(function(s){if(s.type===Yt.COMBINATOR)return i.call(o,s)})},n.walkComments=function(i){var o=this;return this.walk(function(s){if(s.type===Yt.COMMENT)return i.call(o,s)})},n.walkIds=function(i){var o=this;return this.walk(function(s){if(s.type===Yt.ID)return i.call(o,s)})},n.walkNesting=function(i){var o=this;return this.walk(function(s){if(s.type===Yt.NESTING)return i.call(o,s)})},n.walkPseudos=function(i){var o=this;return this.walk(function(s){if(s.type===Yt.PSEUDO)return i.call(o,s)})},n.walkTags=function(i){var o=this;return this.walk(function(s){if(s.type===Yt.TAG)return i.call(o,s)})},n.walkUniversals=function(i){var o=this;return this.walk(function(s){if(s.type===Yt.UNIVERSAL)return i.call(o,s)})},n.split=function(i){var o=this,s=[];return this.reduce(function(a,u,l){var f=i.call(o,u);return s.push(u),f?(a.push(s),s=[]):l===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("")},Jh(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}(Hh.default);un.default=em;Ml.exports=un.default});var Ho=z((ln,Nl)=>{"use strict";ln.__esModule=!0;ln.default=void 0;var tm=nm(Pi()),rm=$e();function nm(e){return e&&e.__esModule?e:{default:e}}function Fl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function im(e,t,n){return t&&Fl(e.prototype,t),n&&Fl(e,n),e}function om(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 sm=function(e){om(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=rm.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)},im(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(tm.default);ln.default=sm;Nl.exports=ln.default});var Xo=z((fn,Dl)=>{"use strict";fn.__esModule=!0;fn.default=void 0;var am=lm(Pi()),um=$e();function lm(e){return e&&e.__esModule?e:{default:e}}function fm(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 cm=function(e){fm(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=um.SELECTOR,r}return t}(am.default);fn.default=cm;Dl.exports=fn.default});var Oi=z((Yw,Wl)=>{"use strict";var dm={},pm=dm.hasOwnProperty,hm=function(t,n){if(!t)return n;var r={};for(var i in n)r[i]=pm.call(t,i)?t[i]:n[i];return r},mm=/[ -,\.\/:-@\[-\^`\{-~]/,gm=/[ -,\.\/:-@\[\]\^`\{-~]/,bm=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Ko=function e(t,n){n=hm(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 l=t.charAt(a++),f=l.charCodeAt(),c=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&a<u){var h=t.charCodeAt(a++);(h&64512)==56320?f=((f&1023)<<10)+(h&1023)+65536:a--}c="\\"+f.toString(16).toUpperCase()+" "}else n.escapeEverything?mm.test(l)?c="\\"+l:c="\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?c="\\"+f.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&r==l||l=="'"&&r==l)||i&&gm.test(l)?c="\\"+l:c=l;s+=c}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(bm,function(m,g,y){return g&&g.length%2?m:(g||"")+y}),!i&&n.wrap?r+s+r:s};Ko.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Ko.version="3.0.0";Wl.exports=Ko});var Jo=z((cn,Ul)=>{"use strict";cn.__esModule=!0;cn.default=void 0;var ym=Bl(Oi()),vm=sn(),xm=Bl(Ht()),wm=$e();function Bl(e){return e&&e.__esModule?e:{default:e}}function $l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sm(e,t,n){return t&&$l(e.prototype,t),n&&$l(e,n),e}function _m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qo(e,t)}function Qo(e,t){return Qo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Qo(e,t)}var Em=function(e){_m(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=wm.CLASS,i._constructed=!0,i}var n=t.prototype;return n.valueToString=function(){return"."+e.prototype.valueToString.call(this)},Sm(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=(0,ym.default)(i,{isIdentifier:!0});o!==i?((0,vm.ensureObject)(this,"raws"),this.raws.value=o):this.raws&&delete this.raws.value}this._value=i}}]),t}(xm.default);cn.default=Em;Ul.exports=cn.default});var es=z((dn,ql)=>{"use strict";dn.__esModule=!0;dn.default=void 0;var Tm=Pm(Ht()),km=$e();function Pm(e){return e&&e.__esModule?e:{default:e}}function Om(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zo(e,t)}function Zo(e,t){return Zo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Zo(e,t)}var Rm=function(e){Om(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=km.COMMENT,r}return t}(Tm.default);dn.default=Rm;ql.exports=dn.default});var rs=z((pn,zl)=>{"use strict";pn.__esModule=!0;pn.default=void 0;var Am=Cm(Ht()),Im=$e();function Cm(e){return e&&e.__esModule?e:{default:e}}function Lm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ts(e,t)}function ts(e,t){return ts=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ts(e,t)}var Mm=function(e){Lm(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Im.ID,i}var n=t.prototype;return n.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(Am.default);pn.default=Mm;zl.exports=pn.default});var Ri=z((hn,Vl)=>{"use strict";hn.__esModule=!0;hn.default=void 0;var Fm=jl(Oi()),Nm=sn(),Dm=jl(Ht());function jl(e){return e&&e.__esModule?e:{default:e}}function Gl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wm(e,t,n){return t&&Gl(e.prototype,t),n&&Gl(e,n),e}function $m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ns(e,t)}function ns(e,t){return ns=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ns(e,t)}var Bm=function(e){$m(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))},Wm(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,Fm.default)(i,{isIdentifier:!0});this._namespace=i,o!==i?((0,Nm.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}(Dm.default);hn.default=Bm;Vl.exports=hn.default});var os=z((mn,Hl)=>{"use strict";mn.__esModule=!0;mn.default=void 0;var Um=zm(Ri()),qm=$e();function zm(e){return e&&e.__esModule?e:{default:e}}function Gm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,is(e,t)}function is(e,t){return is=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},is(e,t)}var jm=function(e){Gm(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=qm.TAG,r}return t}(Um.default);mn.default=jm;Hl.exports=mn.default});var as=z((gn,Yl)=>{"use strict";gn.__esModule=!0;gn.default=void 0;var Vm=Ym(Ht()),Hm=$e();function Ym(e){return e&&e.__esModule?e:{default:e}}function Xm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ss(e,t)}function ss(e,t){return ss=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ss(e,t)}var Km=function(e){Xm(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Hm.STRING,r}return t}(Vm.default);gn.default=Km;Yl.exports=gn.default});var ls=z((bn,Xl)=>{"use strict";bn.__esModule=!0;bn.default=void 0;var Qm=Zm(Pi()),Jm=$e();function Zm(e){return e&&e.__esModule?e:{default:e}}function e0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,us(e,t)}function us(e,t){return us=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},us(e,t)}var t0=function(e){e0(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Jm.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}(Qm.default);bn.default=t0;Xl.exports=bn.default});var Ql=z((Xw,Kl)=>{Kl.exports=function(t,n){return function(...r){return console.warn(n),t(...r)}}});var ms=z(xn=>{"use strict";xn.__esModule=!0;xn.unescapeValue=hs;xn.default=void 0;var yn=ps(Oi()),r0=ps(Go()),n0=ps(Ri()),i0=$e(),fs;function ps(e){return e&&e.__esModule?e:{default:e}}function Jl(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 o0(e,t,n){return t&&Jl(e.prototype,t),n&&Jl(e,n),e}function s0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ds(e,t)}function ds(e,t){return ds=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ds(e,t)}var vn=Ql(),a0=/^('|")([^]*)\1$/,u0=vn(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),l0=vn(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),f0=vn(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function hs(e){var t=!1,n=null,r=e,i=r.match(a0);return i&&(n=i[1],r=i[2]),r=(0,r0.default)(r),r!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}function c0(e){if(e.quoteMark!==void 0||e.value===void 0)return e;f0();var t=hs(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 Ai=function(e){s0(t,e);function t(r){var i;return r===void 0&&(r={}),i=e.call(this,c0(r))||this,i.type=i0.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:vn(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:vn(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=cs[o],a=(0,yn.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,yn.default)(o,{isIdentifier:!0});if(u===o)return t.NO_QUOTE;var l=this.preferredQuoteMark(i);if(l===t.NO_QUOTE){var f=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,c=cs[f],h=(0,yn.default)(o,c);if(h.length<u.length)return f}return l}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,yn.default)(this._value,cs[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,yn.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=Zl);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 l=this._spacesFor("value");o+=l.before.length;var f=this.stringifyProperty("value");if(i==="value")return f?o:-1;o+=f.length,o+=l.after.length;var c=this._spacesFor("insensitive");return o+=c.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=" "),Zl(s,a)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},o0(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){l0()}},{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=hs(i),s=o.deprecatedUsage,a=o.unescaped,u=o.quoteMark;if(s&&u0(),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}(n0.default);xn.default=Ai;Ai.NO_QUOTE=null;Ai.SINGLE_QUOTE="'";Ai.DOUBLE_QUOTE='"';var cs=(fs={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},fs[null]={isIdentifier:!0},fs);function Zl(e,t){return""+t.before+e+t.after}});var bs=z((wn,ef)=>{"use strict";wn.__esModule=!0;wn.default=void 0;var d0=h0(Ri()),p0=$e();function h0(e){return e&&e.__esModule?e:{default:e}}function m0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gs(e,t)}function gs(e,t){return gs=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},gs(e,t)}var g0=function(e){m0(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=p0.UNIVERSAL,r.value="*",r}return t}(d0.default);wn.default=g0;ef.exports=wn.default});var vs=z((Sn,tf)=>{"use strict";Sn.__esModule=!0;Sn.default=void 0;var b0=v0(Ht()),y0=$e();function v0(e){return e&&e.__esModule?e:{default:e}}function x0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ys(e,t)}function ys(e,t){return ys=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ys(e,t)}var w0=function(e){x0(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=y0.COMBINATOR,r}return t}(b0.default);Sn.default=w0;tf.exports=Sn.default});var ws=z((_n,rf)=>{"use strict";_n.__esModule=!0;_n.default=void 0;var S0=E0(Ht()),_0=$e();function E0(e){return e&&e.__esModule?e:{default:e}}function T0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xs(e,t)}function xs(e,t){return xs=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},xs(e,t)}var k0=function(e){T0(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=_0.NESTING,r.value="&",r}return t}(S0.default);_n.default=k0;rf.exports=_n.default});var of=z((Ii,nf)=>{"use strict";Ii.__esModule=!0;Ii.default=P0;function P0(e){return e.sort(function(t,n){return t-n})}nf.exports=Ii.default});var Ss=z(U=>{"use strict";U.__esModule=!0;U.combinator=U.word=U.comment=U.str=U.tab=U.newline=U.feed=U.cr=U.backslash=U.bang=U.slash=U.doubleQuote=U.singleQuote=U.space=U.greaterThan=U.pipe=U.equals=U.plus=U.caret=U.tilde=U.dollar=U.closeSquare=U.openSquare=U.closeParenthesis=U.openParenthesis=U.semicolon=U.colon=U.comma=U.at=U.asterisk=U.ampersand=void 0;var O0=38;U.ampersand=O0;var R0=42;U.asterisk=R0;var A0=64;U.at=A0;var I0=44;U.comma=I0;var C0=58;U.colon=C0;var L0=59;U.semicolon=L0;var M0=40;U.openParenthesis=M0;var F0=41;U.closeParenthesis=F0;var N0=91;U.openSquare=N0;var D0=93;U.closeSquare=D0;var W0=36;U.dollar=W0;var $0=126;U.tilde=$0;var B0=94;U.caret=B0;var U0=43;U.plus=U0;var q0=61;U.equals=q0;var z0=124;U.pipe=z0;var G0=62;U.greaterThan=G0;var j0=32;U.space=j0;var sf=39;U.singleQuote=sf;var V0=34;U.doubleQuote=V0;var H0=47;U.slash=H0;var Y0=33;U.bang=Y0;var X0=92;U.backslash=X0;var K0=13;U.cr=K0;var Q0=12;U.feed=Q0;var J0=10;U.newline=J0;var Z0=9;U.tab=Z0;var eg=sf;U.str=eg;var tg=-1;U.comment=tg;var rg=-2;U.word=rg;var ng=-3;U.combinator=ng});var lf=z(En=>{"use strict";En.__esModule=!0;En.default=fg;En.FIELDS=void 0;var W=ig(Ss()),Ir,me;function uf(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return uf=function(){return e},e}function ig(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=uf();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 og=(Ir={},Ir[W.tab]=!0,Ir[W.newline]=!0,Ir[W.cr]=!0,Ir[W.feed]=!0,Ir),sg=(me={},me[W.space]=!0,me[W.tab]=!0,me[W.newline]=!0,me[W.cr]=!0,me[W.feed]=!0,me[W.ampersand]=!0,me[W.asterisk]=!0,me[W.bang]=!0,me[W.comma]=!0,me[W.colon]=!0,me[W.semicolon]=!0,me[W.openParenthesis]=!0,me[W.closeParenthesis]=!0,me[W.openSquare]=!0,me[W.closeSquare]=!0,me[W.singleQuote]=!0,me[W.doubleQuote]=!0,me[W.plus]=!0,me[W.pipe]=!0,me[W.tilde]=!0,me[W.greaterThan]=!0,me[W.equals]=!0,me[W.dollar]=!0,me[W.caret]=!0,me[W.slash]=!0,me),_s={},af="0123456789abcdefABCDEF";for(Ci=0;Ci<af.length;Ci++)_s[af.charCodeAt(Ci)]=!0;var Ci;function ag(e,t){var n=t,r;do{if(r=e.charCodeAt(n),sg[r])return n-1;r===W.backslash?n=ug(e,n)+1:n++}while(n<e.length);return n-1}function ug(e,t){var n=t,r=e.charCodeAt(n+1);if(!og[r])if(_s[r]){var i=0;do n++,i++,r=e.charCodeAt(n+1);while(_s[r]&&i<6);i<6&&r===W.space&&n++}else n++;return n}var lg={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};En.FIELDS=lg;function fg(e){var t=[],n=e.css.valueOf(),r=n,i=r.length,o=-1,s=1,a=0,u=0,l,f,c,h,m,g,y,x,_,E,T,R,P;function S(A,C){if(e.safe)n+=C,_=n.length-1;else throw e.error("Unclosed "+A,s,a-o,a)}for(;a<i;){switch(l=n.charCodeAt(a),l===W.newline&&(o=a,s+=1),l){case W.space:case W.tab:case W.newline:case W.cr:case W.feed:_=a;do _+=1,l=n.charCodeAt(_),l===W.newline&&(o=_,s+=1);while(l===W.space||l===W.newline||l===W.tab||l===W.cr||l===W.feed);P=W.space,h=s,c=_-o-1,u=_;break;case W.plus:case W.greaterThan:case W.tilde:case W.pipe:_=a;do _+=1,l=n.charCodeAt(_);while(l===W.plus||l===W.greaterThan||l===W.tilde||l===W.pipe);P=W.combinator,h=s,c=a-o,u=_;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:_=a,P=l,h=s,c=a-o,u=_+1;break;case W.singleQuote:case W.doubleQuote:R=l===W.singleQuote?"'":'"',_=a;do for(m=!1,_=n.indexOf(R,_+1),_===-1&&S("quote",R),g=_;n.charCodeAt(g-1)===W.backslash;)g-=1,m=!m;while(m);P=W.str,h=s,c=a-o,u=_+1;break;default:l===W.slash&&n.charCodeAt(a+1)===W.asterisk?(_=n.indexOf("*/",a+2)+1,_===0&&S("comment","*/"),f=n.slice(a,_+1),x=f.split(`
|
|
4
|
+
`),y=x.length-1,y>0?(E=s+y,T=_-x[y].length):(E=s,T=o),P=W.comment,s=E,h=E,c=_-T):l===W.slash?(_=a,P=l,h=s,c=a-o,u=_+1):(_=ag(n,a),P=W.word,h=s,c=_-o),u=_+1;break}t.push([P,s,a-o,h,c,a,u]),T&&(o=T,T=null),a=u}return t}});var bf=z((Tn,gf)=>{"use strict";Tn.__esModule=!0;Tn.default=void 0;var cg=ht(Ho()),Es=ht(Xo()),dg=ht(Jo()),ff=ht(es()),pg=ht(rs()),hg=ht(os()),Ts=ht(as()),mg=ht(ls()),cf=Li(ms()),gg=ht(bs()),ks=ht(vs()),bg=ht(ws()),yg=ht(of()),F=Li(lf()),B=Li(Ss()),vg=Li($e()),_e=sn(),dr,Ps;function mf(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return mf=function(){return e},e}function Li(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=mf();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 ht(e){return e&&e.__esModule?e:{default:e}}function df(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 xg(e,t,n){return t&&df(e.prototype,t),n&&df(e,n),e}var As=(dr={},dr[B.space]=!0,dr[B.cr]=!0,dr[B.feed]=!0,dr[B.newline]=!0,dr[B.tab]=!0,dr),wg=Object.assign({},As,(Ps={},Ps[B.comment]=!0,Ps));function pf(e){return{line:e[F.FIELDS.START_LINE],column:e[F.FIELDS.START_COL]}}function hf(e){return{line:e[F.FIELDS.END_LINE],column:e[F.FIELDS.END_COL]}}function pr(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function Cr(e){return pr(e[F.FIELDS.START_LINE],e[F.FIELDS.START_COL],e[F.FIELDS.END_LINE],e[F.FIELDS.END_COL])}function Os(e,t){if(e)return pr(e[F.FIELDS.START_LINE],e[F.FIELDS.START_COL],t[F.FIELDS.END_LINE],t[F.FIELDS.END_COL])}function Lr(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,_e.ensureObject)(e,"raws"),e[t]=(0,_e.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function Rs(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function Sg(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var _g=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,F.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=Os(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new cg.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[F.FIELDS.TYPE]!==B.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[F.FIELDS.TYPE]!==B.closeSquare)return this.expected("closing square bracket",this.currToken[F.FIELDS.START_POS]);var o=r.length,s={source:pr(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[F.FIELDS.START_POS]};if(o===1&&!~[B.word].indexOf(r[0][F.FIELDS.TYPE]))return this.expected("attribute",r[0][F.FIELDS.START_POS]);for(var a=0,u="",l="",f=null,c=!1;a<o;){var h=r[a],m=this.content(h),g=r[a+1];switch(h[F.FIELDS.TYPE]){case B.space:if(c=!0,this.options.lossy)break;if(f){(0,_e.ensureObject)(s,"spaces",f);var y=s.spaces[f].after||"";s.spaces[f].after=y+m;var x=(0,_e.getProp)(s,"raws","spaces",f,"after")||null;x&&(s.raws.spaces[f].after=x+m)}else u=u+m,l=l+m;break;case B.asterisk:if(g[F.FIELDS.TYPE]===B.equals)s.operator=m,f="operator";else if((!s.namespace||f==="namespace"&&!c)&&g){u&&((0,_e.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,_e.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,l=""),s.namespace=(s.namespace||"")+m;var _=(0,_e.getProp)(s,"raws","namespace")||null;_&&(s.raws.namespace+=m),f="namespace"}c=!1;break;case B.dollar:if(f==="value"){var E=(0,_e.getProp)(s,"raws","value");s.value+="$",E&&(s.raws.value=E+"$");break}case B.caret:g[F.FIELDS.TYPE]===B.equals&&(s.operator=m,f="operator"),c=!1;break;case B.combinator:if(m==="~"&&g[F.FIELDS.TYPE]===B.equals&&(s.operator=m,f="operator"),m!=="|"){c=!1;break}g[F.FIELDS.TYPE]===B.equals?(s.operator=m,f="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),c=!1;break;case B.word:if(g&&this.content(g)==="|"&&r[a+2]&&r[a+2][F.FIELDS.TYPE]!==B.equals&&!s.operator&&!s.namespace)s.namespace=m,f="namespace";else if(!s.attribute||f==="attribute"&&!c){u&&((0,_e.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,_e.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=l,l=""),s.attribute=(s.attribute||"")+m;var T=(0,_e.getProp)(s,"raws","attribute")||null;T&&(s.raws.attribute+=m),f="attribute"}else if(!s.value&&s.value!==""||f==="value"&&!c){var R=(0,_e.unesc)(m),P=(0,_e.getProp)(s,"raws","value")||"",S=s.value||"";s.value=S+R,s.quoteMark=null,(R!==m||P)&&((0,_e.ensureObject)(s,"raws"),s.raws.value=(P||S)+m),f="value"}else{var A=m==="i"||m==="I";(s.value||s.value==="")&&(s.quoteMark||c)?(s.insensitive=A,(!A||m==="I")&&((0,_e.ensureObject)(s,"raws"),s.raws.insensitiveFlag=m),f="insensitive",u&&((0,_e.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),l&&((0,_e.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=l,l="")):(s.value||s.value==="")&&(f="value",s.value+=m,s.raws.value&&(s.raws.value+=m))}c=!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[F.FIELDS.START_POS]});var C=(0,cf.unescapeValue)(m),G=C.unescaped,V=C.quoteMark;s.value=G,s.quoteMark=V,f="value",(0,_e.ensureObject)(s,"raws"),s.raws.value=m,c=!1;break;case B.equals:if(!s.attribute)return this.expected("attribute",h[F.FIELDS.START_POS],m);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:h[F.FIELDS.START_POS]});s.operator=s.operator?s.operator+m:m,f="operator",c=!1;break;case B.comment:if(f)if(c||g&&g[F.FIELDS.TYPE]===B.space||f==="insensitive"){var ee=(0,_e.getProp)(s,"spaces",f,"after")||"",re=(0,_e.getProp)(s,"raws","spaces",f,"after")||ee;(0,_e.ensureObject)(s,"raws","spaces",f),s.raws.spaces[f].after=re+m}else{var pe=s[f]||"",ce=(0,_e.getProp)(s,"raws",f)||pe;(0,_e.ensureObject)(s,"raws"),s.raws[f]=ce+m}else l=l+m;break;default:return this.error('Unexpected "'+m+'" found.',{index:h[F.FIELDS.START_POS]})}a++}Lr(s,"attribute"),Lr(s,"namespace"),this.newNode(new cf.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(As[this.currToken[F.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[F.FIELDS.TYPE]===B.comment){var u={};s&&(u.before=s,s=""),a=new ff.default({value:this.content(),source:Cr(this.currToken),sourceIndex:this.currToken[F.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 l=this.tokens[i],f=this.tokens[this.position-1];o.push(new Ts.default({value:"",source:pr(l[F.FIELDS.START_LINE],l[F.FIELDS.START_COL],f[F.FIELDS.END_LINE],f[F.FIELDS.END_COL]),sourceIndex:l[F.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(l){var f=o.lossySpace(l.spaces.before,i),c=o.lossySpace(l.rawSpaceBefore,i);s+=f+o.lossySpace(l.spaces.after,i&&f.length===0),a+=f+l.value+o.lossySpace(l.rawSpaceAfter,i&&c.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][F.FIELDS.TYPE]===B.slash&&this.tokens[r+1]&&this.tokens[r+1][F.FIELDS.TYPE]===B.word&&this.tokens[r+2]&&this.tokens[r+2][F.FIELDS.TYPE]===B.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var r=this.content(this.tokens[this.position+1]),i=(0,_e.unesc)(r).toLowerCase(),o={};i!==r&&(o.value="/"+r+"/");var s=new ks.default({value:"/"+i+"/",source:pr(this.currToken[F.FIELDS.START_LINE],this.currToken[F.FIELDS.START_COL],this.tokens[this.position+2][F.FIELDS.END_LINE],this.tokens[this.position+2][F.FIELDS.END_COL]),sourceIndex:this.currToken[F.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][F.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,l=a.rawSpace;l!==void 0&&(s.rawSpaceAfter+=l),s.spaces.after+=u}else o.forEach(function(P){return r.newNode(P)})}return}var f=this.currToken,c=void 0;i>this.position&&(c=this.parseWhitespaceEquivalentTokens(i));var h;if(this.isNamedCombinator()?h=this.namedCombinator():this.currToken[F.FIELDS.TYPE]===B.combinator?(h=new ks.default({value:this.content(),source:Cr(this.currToken),sourceIndex:this.currToken[F.FIELDS.START_POS]}),this.position++):As[this.currToken[F.FIELDS.TYPE]]||c||this.unexpected(),h){if(c){var m=this.convertWhitespaceNodesToSpace(c),g=m.space,y=m.rawSpace;h.spaces.before=g,h.rawSpaceBefore=y}}else{var x=this.convertWhitespaceNodesToSpace(c,!0),_=x.space,E=x.rawSpace;E||(E=_);var T={},R={spaces:{}};_.endsWith(" ")&&E.endsWith(" ")?(T.before=_.slice(0,_.length-1),R.spaces.before=E.slice(0,E.length-1)):_.startsWith(" ")&&E.startsWith(" ")?(T.after=_.slice(1),R.spaces.after=E.slice(1)):R.value=E,h=new ks.default({value:" ",source:Os(f,this.tokens[this.position-1]),sourceIndex:f[F.FIELDS.START_POS],spaces:T,raws:R})}return this.currToken&&this.currToken[F.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:pf(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 ff.default({value:this.content(),source:Cr(r),sourceIndex:r[F.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[F.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[F.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[F.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[F.FIELDS.START_POS])},t.namespace=function(){var r=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[F.FIELDS.TYPE]===B.word)return this.position++,this.word(r);if(this.nextToken[F.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 bg.default({value:this.content(),source:Cr(i),sourceIndex:i[F.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var r=this.current.last,i=1;if(this.position++,r&&r.type===vg.PSEUDO){var o=new Es.default({source:{start:pf(this.tokens[this.position-1])}}),s=this.current;for(r.append(o),this.current=o;this.position<this.tokens.length&&i;)this.currToken[F.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[F.FIELDS.TYPE]===B.closeParenthesis&&i--,i?this.parse():(this.current.source.end=hf(this.currToken),this.current.parent.source.end=hf(this.currToken),this.position++);this.current=s}else{for(var a=this.currToken,u="(",l;this.position<this.tokens.length&&i;)this.currToken[F.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[F.FIELDS.TYPE]===B.closeParenthesis&&i--,l=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;r?r.appendToPropertyAndEscape("value",u,u):this.newNode(new Ts.default({value:u,source:pr(a[F.FIELDS.START_LINE],a[F.FIELDS.START_COL],l[F.FIELDS.END_LINE],l[F.FIELDS.END_COL]),sourceIndex:a[F.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[F.FIELDS.START_POS])},t.pseudo=function(){for(var r=this,i="",o=this.currToken;this.currToken&&this.currToken[F.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[F.FIELDS.TYPE]===B.word)this.splitWord(!1,function(s,a){i+=s,r.newNode(new mg.default({value:i,source:Os(o,r.currToken),sourceIndex:o[F.FIELDS.START_POS]})),a>1&&r.nextToken&&r.nextToken[F.FIELDS.TYPE]===B.openParenthesis&&r.error("Misplaced parenthesis.",{index:r.nextToken[F.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[F.FIELDS.START_POS])},t.space=function(){var r=this.content();this.position===0||this.prevToken[F.FIELDS.TYPE]===B.comma||this.prevToken[F.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[F.FIELDS.TYPE]===B.comma||this.nextToken[F.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:Cr(r),sourceIndex:r[F.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 gg.default({value:this.content(),source:Cr(o),sourceIndex:o[F.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[F.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&l[F.FIELDS.TYPE]===B.space&&(a+=this.requiredSpace(this.content(l)),this.position++)}s=this.nextToken}var f=Rs(a,".").filter(function(g){var y=a[g-1]==="\\",x=/^\d+\.\d+%$/.test(a);return!y&&!x}),c=Rs(a,"#").filter(function(g){return a[g-1]!=="\\"}),h=Rs(a,"#{");h.length&&(c=c.filter(function(g){return!~h.indexOf(g)}));var m=(0,yg.default)(Sg([0].concat(f,c)));m.forEach(function(g,y){var x=m[y+1]||a.length,_=a.slice(g,x);if(y===0&&i)return i.call(o,_,m.length);var E,T=o.currToken,R=T[F.FIELDS.START_POS]+m[y],P=pr(T[1],T[2]+g,T[3],T[2]+(x-1));if(~f.indexOf(g)){var S={value:_.slice(1),source:P,sourceIndex:R};E=new dg.default(Lr(S,"value"))}else if(~c.indexOf(g)){var A={value:_.slice(1),source:P,sourceIndex:R};E=new pg.default(Lr(A,"value"))}else{var C={value:_,source:P,sourceIndex:R};Lr(C,"value"),E=new hg.default(C)}o.newNode(E,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[F.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[F.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,Lr(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[F.FIELDS.START_POS],r[F.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(r){r===void 0&&(r=this.position+1);for(var i=r;i<this.tokens.length;)if(wg[this.tokens[i][F.FIELDS.TYPE]]){i++;continue}else return i;return-1},xg(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}();Tn.default=_g;gf.exports=Tn.default});var vf=z((kn,yf)=>{"use strict";kn.__esModule=!0;kn.default=void 0;var Eg=Tg(bf());function Tg(e){return e&&e.__esModule?e:{default:e}}var kg=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 Eg.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(l){var f=void 0;return o._shouldUpdateSelector(r,i)&&(f=u.toString(),r.selector=f),{transform:l,root:u,string:f}}).then(s,a)}catch(l){a(l);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}();kn.default=kg;yf.exports=kn.default});var xf=z(ve=>{"use strict";ve.__esModule=!0;ve.universal=ve.tag=ve.string=ve.selector=ve.root=ve.pseudo=ve.nesting=ve.id=ve.comment=ve.combinator=ve.className=ve.attribute=void 0;var Pg=mt(ms()),Og=mt(Jo()),Rg=mt(vs()),Ag=mt(es()),Ig=mt(rs()),Cg=mt(ws()),Lg=mt(ls()),Mg=mt(Ho()),Fg=mt(Xo()),Ng=mt(as()),Dg=mt(os()),Wg=mt(bs());function mt(e){return e&&e.__esModule?e:{default:e}}var $g=function(t){return new Pg.default(t)};ve.attribute=$g;var Bg=function(t){return new Og.default(t)};ve.className=Bg;var Ug=function(t){return new Rg.default(t)};ve.combinator=Ug;var qg=function(t){return new Ag.default(t)};ve.comment=qg;var zg=function(t){return new Ig.default(t)};ve.id=zg;var Gg=function(t){return new Cg.default(t)};ve.nesting=Gg;var jg=function(t){return new Lg.default(t)};ve.pseudo=jg;var Vg=function(t){return new Mg.default(t)};ve.root=Vg;var Hg=function(t){return new Fg.default(t)};ve.selector=Hg;var Yg=function(t){return new Ng.default(t)};ve.string=Yg;var Xg=function(t){return new Dg.default(t)};ve.tag=Xg;var Kg=function(t){return new Wg.default(t)};ve.universal=Kg});var Ef=z(se=>{"use strict";se.__esModule=!0;se.isNode=Is;se.isPseudoElement=_f;se.isPseudoClass=ab;se.isContainer=ub;se.isNamespace=lb;se.isUniversal=se.isTag=se.isString=se.isSelector=se.isRoot=se.isPseudo=se.isNesting=se.isIdentifier=se.isComment=se.isCombinator=se.isClassName=se.isAttribute=void 0;var Ee=$e(),Ze,Qg=(Ze={},Ze[Ee.ATTRIBUTE]=!0,Ze[Ee.CLASS]=!0,Ze[Ee.COMBINATOR]=!0,Ze[Ee.COMMENT]=!0,Ze[Ee.ID]=!0,Ze[Ee.NESTING]=!0,Ze[Ee.PSEUDO]=!0,Ze[Ee.ROOT]=!0,Ze[Ee.SELECTOR]=!0,Ze[Ee.STRING]=!0,Ze[Ee.TAG]=!0,Ze[Ee.UNIVERSAL]=!0,Ze);function Is(e){return typeof e=="object"&&Qg[e.type]}function gt(e,t){return Is(t)&&t.type===e}var wf=gt.bind(null,Ee.ATTRIBUTE);se.isAttribute=wf;var Jg=gt.bind(null,Ee.CLASS);se.isClassName=Jg;var Zg=gt.bind(null,Ee.COMBINATOR);se.isCombinator=Zg;var eb=gt.bind(null,Ee.COMMENT);se.isComment=eb;var tb=gt.bind(null,Ee.ID);se.isIdentifier=tb;var rb=gt.bind(null,Ee.NESTING);se.isNesting=rb;var Cs=gt.bind(null,Ee.PSEUDO);se.isPseudo=Cs;var nb=gt.bind(null,Ee.ROOT);se.isRoot=nb;var ib=gt.bind(null,Ee.SELECTOR);se.isSelector=ib;var ob=gt.bind(null,Ee.STRING);se.isString=ob;var Sf=gt.bind(null,Ee.TAG);se.isTag=Sf;var sb=gt.bind(null,Ee.UNIVERSAL);se.isUniversal=sb;function _f(e){return Cs(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 ab(e){return Cs(e)&&!_f(e)}function ub(e){return!!(Is(e)&&e.walk)}function lb(e){return wf(e)||Sf(e)}});var Tf=z(_t=>{"use strict";_t.__esModule=!0;var Ls=$e();Object.keys(Ls).forEach(function(e){e==="default"||e==="__esModule"||e in _t&&_t[e]===Ls[e]||(_t[e]=Ls[e])});var Ms=xf();Object.keys(Ms).forEach(function(e){e==="default"||e==="__esModule"||e in _t&&_t[e]===Ms[e]||(_t[e]=Ms[e])});var Fs=Ef();Object.keys(Fs).forEach(function(e){e==="default"||e==="__esModule"||e in _t&&_t[e]===Fs[e]||(_t[e]=Fs[e])})});var Of=z((Pn,Pf)=>{"use strict";Pn.__esModule=!0;Pn.default=void 0;var fb=pb(vf()),cb=db(Tf());function kf(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return kf=function(){return e},e}function db(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=kf();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 pb(e){return e&&e.__esModule?e:{default:e}}var Ns=function(t){return new fb.default(t)};Object.assign(Ns,cb);delete Ns.__esModule;var hb=Ns;Pn.default=hb;Pf.exports=Pn.default});var Rf=z(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Object.defineProperty(Ds,"default",{enumerable:!0,get:()=>mb});function mb(e){return e.replace(/\\,/g,"\\2c ")}});var If=z((nS,Af)=>{"use strict";Af.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 $s=z(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});function gb(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}gb(Ws,{parseColor:()=>Sb,formatColor:()=>_b});var Cf=bb(If());function bb(e){return e&&e.__esModule?e:{default:e}}var yb=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,vb=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,tr=/(?:\d+|\d*\.\d+)%?/,Mi=/(?:\s*,\s*|\s+)/,Lf=/\s*[,/]\s*/,rr=/var\(--(?:[^ )]*?)\)/,xb=new RegExp(`^(rgb)a?\\(\\s*(${tr.source}|${rr.source})(?:${Mi.source}(${tr.source}|${rr.source}))?(?:${Mi.source}(${tr.source}|${rr.source}))?(?:${Lf.source}(${tr.source}|${rr.source}))?\\s*\\)$`),wb=new RegExp(`^(hsl)a?\\(\\s*((?:${tr.source})(?:deg|rad|grad|turn)?|${rr.source})(?:${Mi.source}(${tr.source}|${rr.source}))?(?:${Mi.source}(${tr.source}|${rr.source}))?(?:${Lf.source}(${tr.source}|${rr.source}))?\\s*\\)$`);function Sb(e,{loose:t=!1}={}){var n,r;if(typeof e!="string")return null;if(e=e.trim(),e==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in Cf.default)return{mode:"rgb",color:Cf.default[e].map(u=>u.toString())};let i=e.replace(vb,(u,l,f,c,h)=>["#",l,l,f,f,c,c,h?h+h:""].join("")).match(yb);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(xb))!==null&&o!==void 0?o:e.match(wb);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 _b({mode:e,color:t,alpha:n}){let r=n!==void 0;return`${e}(${t.join(" ")}${r?` / ${n}`:""})`}});var Us=z(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});function Eb(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Eb(Bs,{withAlphaValue:()=>Tb,default:()=>kb});var Fi=$s();function Tb(e,t,n){if(typeof e=="function")return e({opacityValue:t});let r=(0,Fi.parseColor)(e,{loose:!0});return r===null?n:(0,Fi.formatColor)({...r,alpha:t})}function kb({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,Fi.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,Fi.formatColor)({...i,alpha:`var(${n})`})]))}}});var Wf=z(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});function Pb(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Pb(qs,{pattern:()=>Rb,withoutCapturing:()=>Ff,any:()=>Nf,optional:()=>Ab,zeroOrMore:()=>Ib,nestedBrackets:()=>Df,escape:()=>hr});var Mf=/[\\^$.*+?()[\]{}|]/g,Ob=RegExp(Mf.source);function On(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function Rb(e){return new RegExp(On(e),"g")}function Ff(e){return new RegExp(`(?:${On(e)})`,"g")}function Nf(e){return`(?:${e.map(On).join("|")})`}function Ab(e){return`(?:${On(e)})?`}function Ib(e){return`(?:${On(e)})*`}function Df(e,t,n=1){return Ff([hr(e),/[^\s]*/,n===1?`[^${hr(e)}${hr(t)}s]*`:Nf([`[^${hr(e)}${hr(t)}s]*`,Df(e,t,n-1)]),/[^\s]*/,hr(t)])}function hr(e){return e&&Ob.test(e)?e.replace(Mf,"\\$&"):e||""}});var Bf=z(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});Object.defineProperty(zs,"splitAtTopLevelOnly",{enumerable:!0,get:()=>Mb});var Cb=Lb(Wf());function $f(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return($f=function(r){return r?n:t})(e)}function Lb(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=$f(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*Mb(e,t){let n=new RegExp(`[(){}\\[\\]${Cb.escape(t)}]`,"g"),r=0,i=0,o=!1,s=0,a=0,u=t.length;for(let l of e.matchAll(n)){let f=l[0]===t[s],c=s===u-1,h=f&&c;l[0]==="("&&r++,l[0]===")"&&r--,l[0]==="["&&r++,l[0]==="]"&&r--,l[0]==="{"&&r++,l[0]==="}"&&r--,f&&r===0&&(a===0&&(a=l.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 qf=z(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});function Fb(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Fb(Gs,{parseBoxShadowValue:()=>$b,formatBoxShadowValue:()=>Bb});var Nb=Bf(),Db=new Set(["inset","inherit","initial","revert","unset"]),Wb=/\ +(?![^(]*\))/g,Uf=/^-?(\d+|\.\d+)(.*?)$/g;function $b(e){return Array.from((0,Nb.splitAtTopLevelOnly)(e,",")).map(n=>{let r=n.trim(),i={raw:r},o=r.split(Wb),s=new Set;for(let a of o)Uf.lastIndex=0,!s.has("KEYWORD")&&Db.has(a)?(i.keyword=a,s.add("KEYWORD")):Uf.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 Bb(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 Xf=z(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});function Ub(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Ub(Vs,{normalize:()=>nr,url:()=>jf,number:()=>Gb,percentage:()=>Vf,length:()=>Hf,lineWidth:()=>Hb,shadow:()=>Yb,color:()=>Xb,image:()=>Kb,gradient:()=>Yf,position:()=>Zb,familyName:()=>ey,genericName:()=>ry,absoluteSize:()=>iy,relativeSize:()=>sy});var qb=$s(),zb=qf(),js=["min","max","clamp","calc"],Gf=/,(?![^(]*\))/g,Ni=/_(?![^(]*\))/g;function nr(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(n=>/^url\(.*?\)$/.test(n)?n:nr(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 jf(e){return e.startsWith("url(")}function Gb(e){return!isNaN(Number(e))||js.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function Vf(e){return e.split(Ni).every(t=>/%$/g.test(t)||js.some(n=>new RegExp(`^${n}\\(.+?%`).test(t)))}var jb=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],zf=`(?:${jb.join("|")})`;function Hf(e){return e.split(Ni).every(t=>t==="0"||new RegExp(`${zf}$`).test(t)||js.some(n=>new RegExp(`^${n}\\(.+?${zf}`).test(t)))}var Vb=new Set(["thin","medium","thick"]);function Hb(e){return Vb.has(e)}function Yb(e){let t=(0,zb.parseBoxShadowValue)(nr(e));for(let n of t)if(!n.valid)return!1;return!0}function Xb(e){let t=0;return e.split(Ni).every(r=>(r=nr(r),r.startsWith("var(")?!0:(0,qb.parseColor)(r,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function Kb(e){let t=0;return e.split(Gf).every(r=>(r=nr(r),r.startsWith("var(")?!0:jf(r)||Yf(r)||["element(","image(","cross-fade(","image-set("].some(i=>r.startsWith(i))?(t++,!0):!1))?t>0:!1}var Qb=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function Yf(e){e=nr(e);for(let t of Qb)if(e.startsWith(`${t}(`))return!0;return!1}var Jb=new Set(["center","top","right","bottom","left"]);function Zb(e){let t=0;return e.split(Ni).every(r=>(r=nr(r),r.startsWith("var(")?!0:Jb.has(r)||Hf(r)||Vf(r)?(t++,!0):!1))?t>0:!1}function ey(e){let t=0;return e.split(Gf).every(r=>(r=nr(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(t++,!0)))?t>0:!1}var ty=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function ry(e){return ty.has(e)}var ny=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function iy(e){return ny.has(e)}var oy=new Set(["larger","smaller"]);function sy(e){return oy.has(e)}});var nc=z(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});function ay(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}ay(Xs,{updateAllClasses:()=>fy,asValue:()=>An,parseColorFormat:()=>Hs,asColor:()=>ec,asLookupValue:()=>tc,coerceValue:()=>hy});var uy=Ys(Of()),ly=Ys(Rf()),Kf=Us(),et=Xf(),Qf=Ys(Lo());function Ys(e){return e&&e.__esModule?e:{default:e}}function fy(e,t){return(0,uy.default)(i=>{i.walkClasses(o=>{let s=t(o.value);o.value=s,o.raws&&o.raws.value&&(o.raws.value=(0,ly.default)(o.raws.value))})}).processSync(e)}function Zf(e,t){if(!Rn(e))return;let n=e.slice(1,-1);if(t(n))return(0,et.normalize)(n)}function cy(e,t={},n){let r=t[e];if(r!==void 0)return(0,Qf.default)(r);if(Rn(e)){let i=Zf(e,n);return i===void 0?void 0:(0,Qf.default)(i)}}function An(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("-")?cy(e.slice(1),t.values,n):Zf(e,n)}function Rn(e){return e.startsWith("[")&&e.endsWith("]")}function dy(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function Hs(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:n=1})=>t.replace("<alpha-value>",n)}return e}function ec(e,t={},{tailwindConfig:n={}}={}){var r;if(((r=t.values)===null||r===void 0?void 0:r[e])!==void 0){var i;return Hs((i=t.values)===null||i===void 0?void 0:i[e])}let[o,s]=dy(e);if(s!==void 0){var a,u,l,f;let c=(f=(a=t.values)===null||a===void 0?void 0:a[o])!==null&&f!==void 0?f:Rn(o)?o.slice(1,-1):void 0;return c===void 0?void 0:(c=Hs(c),Rn(s)?(0,Kf.withAlphaValue)(c,s.slice(1,-1)):((u=n.theme)===null||u===void 0||(l=u.opacity)===null||l===void 0?void 0:l[s])===void 0?void 0:(0,Kf.withAlphaValue)(c,n.theme.opacity[s]))}return An(e,t,{validate:et.color})}function tc(e,t={}){var n;return(n=t.values)===null||n===void 0?void 0:n[e]}function bt(e){return(t,n)=>An(t,n,{validate:e})}var rc={any:An,color:ec,url:bt(et.url),image:bt(et.image),length:bt(et.length),percentage:bt(et.percentage),position:bt(et.position),lookup:tc,"generic-name":bt(et.genericName),"family-name":bt(et.familyName),number:bt(et.number),"line-width":bt(et.lineWidth),"absolute-size":bt(et.absoluteSize),"relative-size":bt(et.relativeSize),shadow:bt(et.shadow)},Jf=Object.keys(rc);function py(e,t){let n=e.indexOf(t);return n===-1?[void 0,e]:[e.slice(0,n),e.slice(n+1)]}function hy(e,t,n,r){if(Rn(t)){let i=t.slice(1,-1),[o,s]=py(i,":");if(!/^[\w-_]+$/g.test(o))s=i;else if(o!==void 0&&!Jf.includes(o))return[];if(s.length>0&&Jf.includes(o))return[An(`[${s}]`,n),o]}for(let i of[].concat(e)){let o=rc[i](t,n,{tailwindConfig:r});if(o!==void 0)return[o,i]}return[]}});var ic=z(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Object.defineProperty(Ks,"default",{enumerable:!0,get:()=>my});function my(e){return typeof e=="function"?e({}):e}});var lc=z(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Object.defineProperty(Js,"default",{enumerable:!0,get:()=>Fy});var gy=mr(Lo()),by=mr(cl()),yy=mr(dl()),vy=mr(No()),xy=mr(hl()),ac=ml(),oc=gl(),wy=yl(),Sy=mr(vl()),_y=xl(),Ey=nc(),Ty=Us(),ky=mr(ic());function mr(e){return e&&e.__esModule?e:{default:e}}function Mr(e){return typeof e=="function"}function In(e){return typeof e=="object"&&e!==null}function Cn(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?In(e[i])&&In(r[i])?e[i]=Cn(e[i],r[i],n):e[i]=r[i]:e[i]=o}return e}var Qs={colors:xy.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,n)=>{let r=(0,gy.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 Py(e,...t){return Mr(e)?e(...t):e}function Oy(e){return e.reduce((t,{extend:n})=>Cn(t,n,(r,i)=>r===void 0?[i]:Array.isArray(r)?[i,...r]:[i,r]),{})}function Ry(e){return{...e.reduce((t,n)=>(0,ac.defaults)(t,n),{}),extend:Oy(e)}}function sc(e,t){if(Array.isArray(e)&&In(e[0]))return e.concat(t);if(Array.isArray(t)&&In(t[0])&&In(e))return[e,...t];if(Array.isArray(t))return t}function Ay({extend:e,...t}){return Cn(t,e,(n,r)=>!Mr(n)&&!r.some(Mr)?Cn({},n,...r,sc):(i,o)=>Cn({},...[n,...r].map(s=>Py(s,i,o)),sc))}function*Iy(e){let t=(0,oc.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,oc.toPath)(i);s.alpha=o,yield s}}function Cy(e){let t=(n,r)=>{for(let i of Iy(n)){let o=0,s=e;for(;s!=null&&o<i.length;)s=s[i[o++]],s=Mr(s)&&(i.alpha===void 0||o<=i.length-1)?s(t,Qs):s;if(s!==void 0){if(i.alpha!==void 0){let a=(0,Ey.parseColorFormat)(s);return(0,Ty.withAlphaValue)(a,i.alpha,(0,ky.default)(a))}return(0,Sy.default)(s)?(0,_y.cloneDeep)(s):s}}return r};return Object.assign(t,{theme:t,...Qs}),Object.keys(e).reduce((n,r)=>(n[r]=Mr(e[r])?e[r](t,Qs):e[r],n),{})}function uc(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,...uc([(s=o==null?void 0:o.config)!==null&&s!==void 0?s:{}])]})}),t}function Ly(e){return[...e].reduceRight((n,r)=>Mr(r)?r({corePlugins:n}):(0,yy.default)(r,n),by.default)}function My(e){return[...e].reduceRight((n,r)=>[...n,...r],[])}function Fy(e){let t=[...uc(e),{prefix:"",important:!1,separator:":",variantOrder:vy.default.variantOrder}];var n,r;return(0,wy.normalizeConfig)((0,ac.defaults)({theme:Cy(Ay(Ry(t.map(i=>(n=i==null?void 0:i.theme)!==null&&n!==void 0?n:{})))),corePlugins:Ly(t.map(i=>i.corePlugins)),plugins:My(e.map(i=>(r=i==null?void 0:i.plugins)!==null&&r!==void 0?r:[]))},...t))}});var fc={};Gn(fc,{default:()=>Ny});var Ny,cc=ar(()=>{Ny={yellow:e=>e}});var mc=z(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});function Dy(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Dy(Zs,{flagEnabled:()=>By,issueFlagNotices:()=>Uy,default:()=>qy});var Wy=hc((cc(),jn(fc))),$y=hc((wi(),jn(xi)));function hc(e){return e&&e.__esModule?e:{default:e}}var dc={optimizeUniversalDefaults:!1},Ln={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function By(e,t){if(Ln.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:dc[t])!==null&&i!==void 0?i:!1)}if(Ln.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:dc[t])!==null&&a!==void 0?a:!1)}return!1}function pc(e){if(e.experimental==="all")return Ln.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(n=>Ln.experimental.includes(n)&&e.experimental[n])}function Uy(e){if(process.env.JEST_WORKER_ID===void 0&&pc(e).length>0){let t=pc(e).map(n=>Wy.default.yellow(n)).join(", ");$y.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 qy=Ln});var bc=z(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});Object.defineProperty(ea,"default",{enumerable:!0,get:()=>gc});var zy=jy(No()),Gy=mc();function jy(e){return e&&e.__esModule?e:{default:e}}function gc(e){var t;let n=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[zy.default]).slice().reverse().flatMap(o=>gc(typeof o=="function"?o():o)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(r).filter(o=>(0,Gy.flagEnabled)(e,o)).map(o=>r[o]);return[e,...i,...n]}});var vc=z(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});Object.defineProperty(ta,"default",{enumerable:!0,get:()=>Yy});var Vy=yc(lc()),Hy=yc(bc());function yc(e){return e&&e.__esModule?e:{default:e}}function Yy(...e){let[,...t]=(0,Hy.default)(e[0]);return(0,Vy.default)([...e,...t])}});var wc=z((gS,xc)=>{var ra=vc();xc.exports=(ra.__esModule?ra:{default:ra}).default});import La from"escape-html";import gd from"linebreak";var Gr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),od=Gr((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),sd=Gr((e,t)=>{t.exports=["deg","grad","rad","turn"]}),ad=Gr((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),ud=Gr((e,t)=>{t.exports=["Hz","kHz"]}),ld=Gr((e,t)=>{t.exports=["s","ms"]}),fd=od(),Pa=sd(),Oa=ad(),Ra=ud(),Aa=ld();function qi(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(cd(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=Ui(e),this.unit="%";return}var t=pd(e);if(!t){this.type="number",this.value=Ui(e);return}this.type=md(t),this.value=Ui(e.substr(0,e.length-t.length)),this.unit=t}qi.prototype.valueOf=function(){return this.value};qi.prototype.toString=function(){return this.value+(this.unit||"")};function wt(e){return new qi(e)}function cd(e){var t=e.match(/\./g);return t?t.length:0}function Ui(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var dd=[].concat(Pa,Ra,fd,Oa,Aa);function pd(e){var t=e.match(/\D+$/),n=t&&t[0];if(n&&dd.indexOf(n)===-1)throw new Error("Invalid unit: "+n);return n}var hd=Object.assign(Vn(Pa,"angle"),Vn(Ra,"frequency"),Vn(Oa,"resolution"),Vn(Aa,"time"));function Vn(e,t){return Object.fromEntries(e.map(n=>[n,t]))}function md(e){return hd[e]||"length"}function Sr(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function Ma(e){return/^class\s/.test(e.toString())}function ji(e){return e&&e.$$typeof===Symbol.for("react.forward_ref")}function Fa(e){return typeof e=="function"||ji(e)}function Na(e){return"dangerouslySetInnerHTML"in e}function Da(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 K(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 wt(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 ur(e);if(o.type==="percentage"&&i)return o.value/100*n}}catch{}}function ur(e){let t=new wt(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 jr(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 Xe(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 zi,Gi,Wa=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e)),wr=new Map,bd=500;function Fe(e,t,n){let r=`${t}:${n||""}:${e}`;if(wr.has(r))return wr.get(r);if(!zi||!Gi){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");zi=new Intl.Segmenter(n,{granularity:"word"}),Gi=new Intl.Segmenter(n,{granularity:"grapheme"})}let i;if(t==="grapheme")i=[...Gi.segment(e)].map(o=>o.segment);else{let o=[...zi.segment(e)].map(u=>u.segment),s=[],a=0;for(;a<o.length;){let u=o[a];if(u=="\xA0"){let l=a===0?"":s.pop(),f=a===o.length-1?"":o[a+1];s.push(l+"\xA0"+f),a+=2}else s.push(u),a++}i=s}if(wr.size>=bd){let o=wr.keys().next().value;wr.delete(o)}return wr.set(r,i),i}function I(e,t,n){Ca(e,"element");let r="";for(let[i,o]of Object.entries(t))typeof o<"u"&&(Ca(i,"attribute"),r+=` ${i}="${xd(o)}"`);return n?`<${e}${r}>${n}</${e}>`:`<${e}${r}/>`}var $a=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",yd=$a+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",vd=new RegExp("^["+$a+"]["+yd+"]*$","u"),Ia=new Set;function Ca(e,t){if(!Ia.has(e)){if(!vd.test(e))throw new Error(`Invalid XML ${t} name: ${JSON.stringify(e)}`);Ia.add(e)}}function xd(e){return typeof e=="number"||typeof e=="bigint"||typeof e=="boolean"?""+e:La(String(e))}function Ba(e){return La(String(e))}function Ua(e=20){let t=new Map;function n(o){let s=t.get(o);if(s!==void 0)return t.delete(o),t.set(o,s),s}function r(o,s){if(t.has(o))t.delete(o);else if(t.size>=e){let a=t.keys().next().value;t.delete(a)}t.set(o,s)}function i(){t.clear()}return{set:r,get:n,clear:i}}function _r(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Hn(e){return typeof e=="string"}function qa(e){return typeof e=="number"}function za(e){return typeof e>"u"}function qt(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 Kt(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 Ga(e,t){if(t==="break-all")return{words:Fe(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:Fe(e,"word"),requiredBreaks:[]};let n=new gd(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 ja=e=>e.replaceAll(/([A-Z])/g,(t,n)=>`-${n.toLowerCase()}`);function zt(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 Rd(e){return Promise.resolve().then(()=>(to(),eo)).then(t=>t.init(e))}function Qt(){return Promise.resolve().then(()=>(to(),eo)).then(e=>e.getYoga())}var nu=Symbol.for("react.fragment");var Qn=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;var Ad=new Set([301,302,303,307,308]);function ro(e){let t=e.split(".").map(o=>Number.parseInt(o,10));if(t.length!==4||t.some(o=>!Number.isInteger(o)||o<0||o>255))return!0;let[n,r,i]=t;return n===0||n===10||n===100&&r>=64&&r<=127||n===127||n===169&&r===254||n===172&&r>=16&&r<=31||n===192&&r===0&&i===0||n===192&&r===168||n===198&&(r===18||r===19)||n>=224}function Id(e){let t=e,n=t.indexOf("%");n!==-1&&(t=t.slice(0,n));let r=t.split("::");if(r.length>2)return null;let i=s=>{if(s==="")return[];let a=[],u=s.split(":");for(let l=0;l<u.length;l++){let f=u[l];if(f.includes(".")){if(l!==u.length-1||!Qn.test(f))return null;let[c,h,m,g]=f.split(".").map(y=>Number.parseInt(y,10));if([c,h,m,g].some(y=>!Number.isInteger(y)||y<0||y>255))return null;a.push(c<<8|h,m<<8|g);continue}if(!/^[0-9a-f]{1,4}$/.test(f))return null;a.push(Number.parseInt(f,16))}return a},o=i(r[0]);if(o===null)return null;if(r.length===2){let s=i(r[1]);if(s===null)return null;let a=8-o.length-s.length;return a<0?null:[...o,...new Array(a).fill(0),...s]}return o.length===8?o:null}function Cd(e){let t=a=>e.slice(0,a).every(u=>u===0);if(!(t(6)||t(5)&&e[5]===65535||t(4)&&e[4]===65535&&e[5]===0||e[0]===100&&e[1]===65435&&e[2]===0&&e[3]===0&&e[4]===0&&e[5]===0||e[0]===100&&e[1]===65435&&e[2]===1))return null;let r=e[6]>>8&255,i=e[6]&255,o=e[7]>>8&255,s=e[7]&255;return`${r}.${i}.${o}.${s}`}function ou(e){let t=Id(e);if(t===null)return!0;let n=Cd(t);return n?ro(n):!!(t.every(r=>r===0)||t.slice(0,7).every(r=>r===0)&&t[7]===1||(t[0]&65024)===64512||(t[0]&65472)===65152||(t[0]&65472)===65216||(t[0]&65280)===65280||t[0]===8193&&t[1]===3512)}function Ld(e){let t=e.toLowerCase().replace(/^\[|\]$/g,"");return Qn.test(t)?ro(t):t.includes(":")?ou(t):!0}function su(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!=="http:"&&t.protocol!=="https:")return null;let n=t.hostname.toLowerCase().replace(/\.+$/,"");return n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1)),n?{url:t,host:n}:null}function Md(e){let t=su(e);if(!t)return!0;let{host:n}=t;return n==="localhost"||n.endsWith(".localhost")||n==="local"||n.endsWith(".local")||n==="internal"||n.endsWith(".internal")?!0:Qn.test(n)?ro(n):n.includes(":")?ou(n):!1}function Kn(e){return new Error(`Image source resolves to a blocked address (SSRF protection): ${e}`)}function Fd(e){if(Md(e))throw Kn(e)}var Pr;async function Nd(){if(Pr!==void 0)return Pr;if(typeof window<"u")return Pr=null,null;try{let t=await new Function("s","return import(s)")("node:dns/promises");return Pr=(n,r)=>t.lookup(n,r),Pr}catch{return Pr=null,null}}async function Dd(e,t){Fd(e);let n=su(e);if(!n)throw Kn(e);let{host:r}=n;if(Qn.test(r)||r.includes(":"))return;let i=t&&"lookup"in t?t.lookup:await Nd();if(!i)return;let o;try{o=await i(r,{all:!0})}catch{throw new Error(`Can't resolve image host: ${e}`)}if(o.length===0)throw new Error(`Can't resolve image host: ${e}`);for(let{address:s}of o)if(Ld(s))throw Kn(e)}async function iu(e){try{e.body&&typeof e.body.cancel=="function"?await e.body.cancel():typeof e.arrayBuffer=="function"&&await e.arrayBuffer()}catch{}}async function au(e,t){let n=(t==null?void 0:t.fetch)??globalThis.fetch,r=e;for(let i=0;i<=10;i++){await Dd(r,t);let o=await n(r,{redirect:"manual"});if(o.type==="opaqueredirect")throw await iu(o),Kn(r);let s=o.headers.get("location");if(Ad.has(o.status)&&s){await iu(o),r=new URL(s,r).href;continue}return o}throw new Error(`Image source redirected too many times (SSRF protection): ${e}`)}var Wd="image/avif",Jn="image/webp",Zn="image/apng",ei="image/png",ti="image/jpeg",ri="image/gif",no="image/svg+xml";function fu(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 cu(e){let t=new DataView(e),n=new Uint8Array(e);if(t.byteLength<20||t.getUint32(0)!==1380533830||t.getUint32(8)!==1464156752)throw new TypeError("Invalid WebP");let r=t.getUint32(4,!0)+8;if(r<20||r>t.byteLength)throw new TypeError("Invalid WebP");let i=12;for(;i+8<=r;){let o=t.getUint32(i),s=t.getUint32(i+4,!0),a=i+8,u=a+s;if(u>r)throw new TypeError("Invalid WebP");if(o===1448097824){if(s<10||n[a+3]!==157||n[a+4]!==1||n[a+5]!==42)throw new TypeError("Invalid WebP");let l=t.getUint16(a+6,!0)&16383,f=t.getUint16(a+8,!0)&16383;if(!l||!f)throw new TypeError("Invalid WebP");return[l,f]}if(o===1448097868){if(s<5||n[a]!==47)throw new TypeError("Invalid WebP");let l=t.getUint32(a+1,!0);return[(l&16383)+1,(l>>>14&16383)+1]}if(o===1448097880){if(s<10)throw new TypeError("Invalid WebP");return[n[a+4]+(n[a+5]<<8)+(n[a+6]<<16)+1,n[a+7]+(n[a+8]<<8)+(n[a+9]<<16)+1]}i=u+s%2}throw new TypeError("Invalid WebP")}function du(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function pu(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var At=Ua(500),Hr=new Map,$d=[ei,Zn,ti,ri,no,Jn],Bd=/<svg[^>]*>/i,Ud=/viewBox=['"]([^'"]+)['"]/,qd=/width=['"](\d*\.?\d+)['"]/,zd=/height=['"](\d*\.?\d+)['"]/;function Gd(e){let t=new Uint8Array(e),n=32768,r="";for(let i=0;i<t.length;i+=n){let o=t.subarray(i,Math.min(i+n,t.length));r+=String.fromCharCode(...o)}return btoa(r)}function jd(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 uu(e,t){let n=t.match(Bd);if(!n)throw new Error(`Failed to parse SVG from ${e}`);let r=n[0],i=Ud.exec(r),o=qd.exec(r),s=zd.exec(r),a=i?_r(i[1]):null;if(!a&&(!o||!s))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let u=a?[a[2],a[3]]:[+o[1],+s[1]],l=u[0]/u[1];return o&&s?[+o[1],+s[1]]:o?[+o[1],+o[1]/l]:s?[+s[1]*l,+s[1]]:[u[0],u[1]]}function lu(e){let t,n=Vd(new Uint8Array(e));switch(n){case ei:case Zn:t=pu(e);break;case ri:t=du(e);break;case ti:t=fu(e);break;case Jn:t=cu(e);break}if(!$d.includes(n))throw new Error(`Unsupported image type: ${n||"unknown"}`);return[`data:${n};base64,${Gd(e)}`,t]}async function Or(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[o,s]=lu(e);return[o,...s]}if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),typeof window>"u"&&!e.startsWith("http")&&!e.startsWith("data:"))throw new Error(`Image source must be an absolute URL: ${e}`);if(e.startsWith("data:")){let o;try{o=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:s,encodingType:a,dataString:u}=o;if(s===no){let l=a==="base64"?atob(u):decodeURIComponent(u.replace(/ /g,"%20")),f=a==="base64"?e:`data:image/svg+xml;base64,${btoa(l)}`,c=uu(e,l);return At.set(e,[f,...c]),[f,...c]}else if(a==="base64"){let l,f=jd(u);switch(s){case ei:case Zn:l=pu(f);break;case ri:l=du(f);break;case ti:l=fu(f);break;case Jn:l=cu(f);break}return At.set(e,[e,...l]),[e,...l]}else return console.warn("Image data URI resolved without size:"+e),At.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Hr.has(e))return Hr.get(e);let t=At.get(e);if(t)return t;let n=e,i=(typeof window>"u"?()=>au(n):()=>fetch(n))().then(o=>{let s=o.headers.get("content-type");return s==="image/svg+xml"||s==="application/svg+xml"?o.text():o.arrayBuffer()}).then(o=>{if(typeof o=="string")try{let u=`data:image/svg+xml;base64,${btoa(o)}`,l=uu(n,o);return[u,...l]}catch(u){throw new Error(`Failed to parse SVG image: ${u.message}`)}let[s,a]=lu(o);return[s,...a]}).then(o=>(At.set(n,o),o)).catch(o=>{if(o instanceof Error&&o.message.includes("SSRF protection"))throw o;return console.error(`Can't load image ${n}: `+o.message),At.set(n,[]),[]});return Hr.set(n,i),i}function Vd(e){return[255,216,255].every((t,n)=>e[n]===t)?ti:[137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)?Hd(e)?Zn:ei:[71,73,70,56].every((t,n)=>e[n]===t)?ri:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,n)=>!t||e[n]===t)?Jn:[60,63,120,109,108].every((t,n)=>e[n]===t)?no:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,n)=>!t||e[n]===t)?Wd:null}function Hd(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 hu={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"},Yd=/[\r\n%#()<>?[\\\]^`{|}"'&]/g;function ni(e,t){if(!e)return"";if(Array.isArray(e))return e.map(u=>ni(u,t)).join("");if(typeof e!="object")return Ba(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;if(n===nu)return ni(r,s);if(typeof n!="string")throw new Error("Only intrinsic elements are supported inside <svg>");let a={};for(let[u,l]of Object.entries(o)){let f=l;typeof f=="string"&&f.toLowerCase()==="currentcolor"&&(f=s),(u==="href"||u==="xlinkHref")&&n==="image"&&(f=At.get(f)[0]);let c=hu[u]||u;a[c]=f}return i&&(a.style=Object.entries(i).map(([u,l])=>`${ja(u)}:${l}`).join(";")),I(n,a,ni(r,s))}async function mu(e){let t=new Set,n=r=>{if(r&&Sr(r)){if(Array.isArray(r)){r.forEach(i=>n(i));return}else if(typeof r=="object")if(r.type==="image"){let i=r.props.href||r.props.xlinkHref;i&&(t.has(i)||t.add(i))}else r.type==="img"&&(t.has(r.props.src)||t.add(r.props.src));Array.isArray(r.props.children)?r.props.children.map(i=>n(i)):n(r.props.children)}};return n(e),Promise.all(Array.from(t).map(r=>Or(r)))}async function gu(e,t){let{viewBox:n,viewbox:r,width:i,height:o,className:s,style:a,children:u,...l}=e.props||{};n||=r,l.xmlns="http://www.w3.org/2000/svg";let f=(a==null?void 0:a.color)||t,c=_r(n),h=c?c[3]/c[2]:null;i=i||h&&o?o/h:null,o=o||h&&i?i*h:null,l.width=i,l.height=o,n&&(l.viewBox=n);let m={};for(let[y,x]of Object.entries(l)){let _=hu[y]||y;m[_]=typeof x=="string"&&x.toLowerCase()==="currentcolor"?f:x}return`data:image/svg+xml;utf8,${I("svg",m,ni(u,f)).replace(Yd,encodeURIComponent)}`}var dt="flex",bu={p:{display:dt,marginTop:"1em",marginBottom:"1em"},div:{display:dt},blockquote:{display:dt,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:dt,textAlign:"center"},hr:{display:dt,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:dt,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:dt,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:dt,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:dt,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:dt,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:dt,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:dt,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var Xd=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","fontFeatureSettings","letterSpacing","lineHeight","textAlign","textIndent","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","textDecorationSkipInk","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath","_inheritedBackgroundClipTextHasBackground"]);function io(e){let t={};for(let n in e)(Xd.has(n)||n.startsWith("--"))&&(t[n]=e[n]);return t}import{getPropertyName as ip,getStylesForProperty as Jt}from"css-to-react-native";import{parseElementStyle as op}from"css-background-parser";import{parse as sp}from"css-box-shadow";import ap from"parse-css-color";import Kd from"postcss-value-parser";function Qd(e,t){try{let n=new wt(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 oo(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=Qd(e,t);return r.absolute?{[n?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[n?"xRelative":"yRelative"]:r.relative}:{}}}}function so(e,t){if(typeof e=="number")return{xAbsolute:e};let n;try{n=Kd(e).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return n.length===1?oo(n[0],t,!0):n.length===2?((n[0]==="top"||n[0]==="bottom"||n[1]==="left"||n[1]==="right")&&n.reverse(),{...oo(n[0],t,!0),...oo(n[1],t,!1)}):{}}import{getPropertyName as Jd}from"css-to-react-native";function Yr(e,t){let n=Jd(`mask-${t}`);return e[n]||e[`WebkitM${n.substring(1)}`]}function yu(e){let t=e.maskImage||e.WebkitMaskImage,n={position:Yr(e,"position")||"0% 0%",size:Yr(e,"size")||"100% 100%",repeat:Yr(e,"repeat")||"repeat",origin:Yr(e,"origin")||"border-box",clip:Yr(e,"origin")||"border-box"};return zt(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...n}))}var Zd={round:1,squircle:2,square:1/0,bevel:0,scoop:-1,notch:-1/0};function ao(e){let t=e.trim().toLowerCase(),n=Zd[t];if(typeof n<"u")return n;let r=t.match(/^superellipse\(\s*(-?infinity|[-+]?(?:\d*\.)?\d+(?:e[-+]?\d+)?)\s*\)$/);if(!r)throw new Error('Invalid corner shape value: "'+e+'".');if(r[1]==="infinity")return 1/0;if(r[1]==="-infinity")return-1/0;let i=Number(r[1]);if(!Number.isFinite(i))throw new Error('Invalid corner shape value: "'+e+'".');return i}function ii(e,t=4){let n=e.match(/superellipse\([^)]*\)|[^\s]+/gi)||[];if(n.length<1||n.length>t)throw new Error('Invalid corner shape value: "'+e+'".');for(let r of n)ao(r);return n}import ep from"parse-css-color";var vu={brightness:1,contrast:1,grayscale:1,invert:1,opacity:1,saturate:1,sepia:1};function xu(e,t,n="black"){if(e==="none")return[];if(typeof e!="string")throw new Error('Invalid `backdropFilter` value: "'+e+'".');let r=zt(e,/\s/).filter(Boolean);if(!r.length)throw new Error('Invalid `backdropFilter` value: "'+e+'".');return r.map(i=>{let o=i.match(/^([a-z-]+)\((.*)\)$/i);if(!o)throw new Error("Invalid filter function in `backdropFilter`.");let s=o[1].toLowerCase(),a=o[2].trim();if(s==="blur"){let u=a?oi(a,t,"blur()"):0;if(u<0)throw new Error("Invalid `blur()` radius in `backdropFilter`.");return{type:"blur",value:u}}if(s==="hue-rotate"){let u=a==="0"||!a?0:ur(a);if(typeof u>"u")throw new Error("Invalid `hue-rotate()` angle in `backdropFilter`.");return{type:"hue-rotate",value:u}}if(s==="drop-shadow")return tp(a,t,n);if(s in vu){let u=s,l=a?rp(a,`${u}()`):vu[u],f=["grayscale","invert","opacity","sepia"].includes(u)?Math.min(l,1):l;return{type:u,value:f}}throw new Error(`Unsupported \`${s}()\` in \`backdropFilter\`.`)})}function tp(e,t,n){let r=zt(e,/\s/).filter(Boolean),i=n,o=[];for(let l of r)ep(l)?i=l:o.push(l);if(o.length<2||o.length>3)throw new Error("Invalid `drop-shadow()` value in `backdropFilter`.");let s=oi(o[0],t,"drop-shadow()"),a=oi(o[1],t,"drop-shadow()"),u=o[2]?oi(o[2],t,"drop-shadow()"):0;if(u<0)throw new Error("Invalid `drop-shadow()` blur radius in `backdropFilter`.");return{type:"drop-shadow",offsetX:s,offsetY:a,blurRadius:u,color:i}}function oi(e,t,n){let r=K(e,t.fontSize,0,t);if(typeof r>"u")throw new Error(`Invalid length \`${e}\` in \`${n}\` for \`backdropFilter\`.`);return r}function rp(e,t){let n=e.match(/^([+-]?(?:\d+\.?\d*|\.\d+))%$/),r=n?Number(n[1])/100:Number(e);if(!Number.isFinite(r)||r<0)throw new Error(`Invalid amount \`${e}\` in \`${t}\` for \`backdropFilter\`.`);return r}import wu from"postcss-value-parser";function Su(e){let t={},n={};for(let r in e)r.startsWith("--")?t[r]=String(e[r]):n[r]=e[r];return{variables:t,remainingStyle:n}}function _u(e,t){return{...e,...t}}function Kr(e,t,n=new Set){if(typeof e!="string"||!e.includes("var("))return e;try{let r=wu(e),i=!1;if(r.walk(o=>{if(o.type==="function"&&o.value==="var"){i=!0;let s=np(o);if(!s)return;let{varName:a,fallback:u}=s;if(n.has(a)){console.warn(`Circular reference detected for CSS variable: ${a}`),u!==void 0?Xr(o,u):Xr(o,"initial");return}let l=t[a];if(l!==void 0){let f=new Set(n);f.add(a);let c=Kr(l,t,f);Xr(o,String(c))}else if(u!==void 0){let f=Kr(u,t,n);Xr(o,String(f))}else Xr(o,"initial")}}),i)return r.toString()}catch{console.warn(`Failed to parse CSS value for variable resolution: ${e}`)}return e}function np(e){if(!e.nodes||e.nodes.length===0)return null;let t,n=-1;for(let i=0;i<e.nodes.length;i++){let o=e.nodes[i];if(o.type==="word"&&!t)t=o;else if(o.type==="div"&&o.value===","){n=i;break}}if(!t||t.type!=="word")return null;let r=t.value.trim();if(n!==-1&&n<e.nodes.length-1){let i=e.nodes.slice(n+1),o=wu.stringify(i).trim();return{varName:r,fallback:o}}return{varName:r}}function Xr(e,t){e.type="word",e.value=t,delete e.nodes}var up=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),lp=new Set(["lineHeight"]);function fp(e,t,n,r){return e==="textDecoration"&&!n.includes(t.textDecorationColor)&&(t.textDecorationColor=r),t}function lr(e,t){let n=Number(t);return isNaN(n)?t:up.has(e)?lp.has(e)?n:String(t):n+"px"}function cp(e,t,n,r){if(e==="zIndex")return console.warn("`z-index` is currently not supported."),{[e]:t};if(e==="lineHeight")return{lineHeight:lr(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(o=>o.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[o,s]=t.split("/"),a=Jt(e,o,!0),u=Jt(e,s,!0);for(let l in a)u[l]=lr(e,a[l])+" "+lr(e,u[l]);return u}if(e==="cornerShape"){if(typeof t!="string")throw new Error('Invalid `cornerShape` value: "'+t+'".');let o=ii(t),s=o[0],a=o[1]||s,u=o[2]||s,l=o[3]||a;return{cornerTopLeftShape:s,cornerTopRightShape:a,cornerBottomRightShape:u,cornerBottomLeftShape:l}}if(/^corner(TopLeft|TopRight|BottomRight|BottomLeft)Shape$/.test(e)){if(typeof t!="string"||ii(t,1).length!==1)throw new Error("Invalid `"+e+'` value: "'+t+'".');return{[e]:t}}let i=e.match(/^corner(Top|Right|Bottom|Left)Shape$/);if(i){if(typeof t!="string")throw new Error("Invalid `"+e+'` value: "'+t+'".');let o=ii(t,2),s=o[0],a=o[1]||s,u={Top:["cornerTopLeftShape","cornerTopRightShape"],Right:["cornerTopRightShape","cornerBottomRightShape"],Bottom:["cornerBottomLeftShape","cornerBottomRightShape"],Left:["cornerTopLeftShape","cornerBottomLeftShape"]}[i[1]];return{[u[0]]:s,[u[1]]:a}}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let o=Jt("border",t,!0);o.borderWidth===1&&!String(t).includes("1px")&&(o.borderWidth=3),o.borderColor==="black"&&!String(t).includes("black")&&(o.borderColor=n);let s={Width:lr(e+"Width",o.borderWidth),Style:Xe(o.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:o.borderColor},a={};for(let u of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let l in s)a["border"+u+l]=s[l];return a}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?sp(t):t}}if(e==="backdropFilter"||e==="WebkitBackdropFilter")return{_backdropFilters:xu(t,r,n)};if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let o={},s=t.replace(/(-?[\d.]+%)/g,(u,l)=>{let f=~~(Math.random()*1e9);return o[f]=l,f+"px"}),a=Jt("transform",s,!0);for(let u of a.transform)for(let l in u)o[u[l]]&&(u[l]=o[u[l]]);return a}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient|repeating-radial-gradient)\(/.test(t)?Jt("backgroundImage",t,!0):Jt("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let o={},s=zt(t);for(let a of s){let u=Jt("textShadow",a,!0);for(let l in u)o[l]?o[l].push(u[l]):o[l]=[u[l]]}return o}if(e==="WebkitTextStroke"){t=t.toString().trim();let o=t.split(" ");if(o.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:lr(e,o[0]),WebkitTextStrokeColor:lr(e,o[1])}}if(e==="textDecorationSkipInk"){let o=t.toString().trim().toLowerCase();if(!["auto","none","all"].includes(o))throw new Error("Invalid `textDecorationSkipInk` value.");return{textDecorationSkipInk:o}}}function Eu(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var Tu=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function Pu(e){if(typeof e=="string"&&Tu.test(e.trim()))return e.trim().replace(Tu,(t,n,r,i,o)=>`rgba(${n}, ${r}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=Pu(e[t]);return e}return e}function si(e,t){let n={},r={};for(let u in t)u.startsWith("--")&&(r[u]=String(t[u]));let i={},o=e;if(e){let{variables:u,remainingStyle:l}=Su(e);i=u,o=l}let s=_u(r,i);for(let u in s)n[u]=s[u];if(o){let u=o.color?Kr(o.color,s):void 0,l=pp(u,t.color);n.color=l;for(let f in o){if(f.startsWith("_"))throw new Error(`Invalid style property: ${JSON.stringify(f)}`);if(f==="color")continue;let c=ip(f),h=Kr(o[f],s),m=mp(h,l);try{let g=cp(c,m,l,t)||fp(c,Jt(c,lr(c,m),!0),m,l);Object.assign(n,g)}catch(g){throw new Error(g.message+(g.message.includes(m)?`
|
|
5
|
+
`+Eu(c):`
|
|
6
|
+
in CSS rule \`${c}: ${m}\`.${Eu(c)}`))}}}if(n.backgroundImage){let{backgrounds:u}=op(n);n.backgroundImage=u}(n.maskImage||n.WebkitMaskImage)&&(n.maskImage=yu(n));let a=dp(n.fontSize,t.fontSize);typeof n.fontSize<"u"&&(n.fontSize=a),n.transformOrigin&&(n.transformOrigin=so(n.transformOrigin,a));for(let u in n){let l=n[u];if(u==="lineHeight")typeof l=="string"&&l!=="normal"&&(l=n[u]=K(l,a,a,t,!0)/a);else{if(typeof l=="string"){let f=K(l,a,a,t);typeof f<"u"&&(n[u]=f),l=n[u]}if(typeof l=="string"||typeof l=="object"){let f=Pu(l);f&&(n[u]=f),l=n[u]}}if(u==="opacity"&&typeof l=="number"&&(n.opacity=l*t.opacity),u==="transform"){let f=l;for(let c of f){let h=Object.keys(c)[0],m=c[h],g=typeof m=="string"?K(m,a,a,t)??m:m;c[h]=g}}if(u==="textShadowRadius"){let f=l;n.textShadowRadius=f.map(c=>K(c,a,0,t,!1))}if(u==="textShadowOffset"){let f=l;n.textShadowOffset=f.map(({height:c,width:h})=>({height:K(c,a,0,t,!1),width:K(h,a,0,t,!1)}))}}return n}function dp(e,t){if(typeof e=="number")return e;try{let n=new wt(e);switch(n.unit){case"em":return n.value*t;case"rem":return n.value*16}}catch{return t}}function ku(e){if(e.startsWith("hsl")){let t=ap(e),[n,r,i]=t.values;return`hsl(${[n,`${r}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function pp(e,t){return e&&e.toLowerCase()!=="currentcolor"?ku(e):ku(t)}function hp(e,t){return e.replace(/currentcolor/gi,t)}function mp(e,t){return Hn(e)&&(e=hp(e,t)),e}function gp(e,t,n,r,i,o){let s=r/n,a=(t.borderLeftWidth||0)+(t.borderRightWidth||0)+(t.paddingLeft||0)+(t.paddingRight||0),u=(t.borderTopWidth||0)+(t.borderBottomWidth||0)+(t.paddingTop||0)+(t.paddingBottom||0),l=t.width||i,f=t.height||o,c=typeof l=="number"&&typeof f=="number";c&&(l=l-a,f=f-u),l===void 0&&f===void 0?(l="100%",e.setAspectRatio(1/s)):l===void 0?typeof f=="number"?l=f/s:e.setAspectRatio(1/s):f===void 0&&(typeof l=="number"?f=l*s:e.setAspectRatio(1/s)),t.width=c?l+a:l,t.height=c?f+u:f,t.__naturalWidth=n,t.__naturalHeight=r}async function uo(e,t,n,r,i,o){var u;let s=await Qt(),a=Object.assign({},n,si(bu[t],n),si(r,n));if(t==="img"){let[l,f,c]=await Or(i.src);if(f===void 0&&c===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.");f=parseInt(i.width),c=parseInt(i.height)}gp(e,a,f,c,i.width,i.height),a.__src=l}if(await((u=o==null?void 0:o[t])==null?void 0:u.call(o,e,a,i)),t==="svg"){let l=i.viewBox||i.viewbox,f=_r(l),c=f?f[3]/f[2]:null,{width:h,height:m}=i;typeof h>"u"&&m?c==null?h=0:typeof m=="string"&&m.endsWith("%")?h=parseInt(m)/c+"%":(m=K(m,n.fontSize,1,n),h=m/c):typeof m>"u"&&h?c==null?h=0:typeof h=="string"&&h.endsWith("%")?m=parseInt(h)*c+"%":(h=K(h,n.fontSize,1,n),m=h*c):(typeof h<"u"&&(h=K(h,n.fontSize,1,n)||h),typeof m<"u"&&(m=K(m,n.fontSize,1,n)||m),h||=f==null?void 0:f[2],m||=f==null?void 0:f[3]),!a.width&&h&&(a.width=h),!a.height&&m&&(a.height=m)}return e.setDisplay(Xe(a.display,{flex:s.DISPLAY_FLEX,block:s.DISPLAY_FLEX,contents:s.DISPLAY_CONTENTS,none:s.DISPLAY_NONE,"-webkit-box":s.DISPLAY_FLEX},s.DISPLAY_FLEX,"display")),e.setAlignContent(Xe(a.alignContent,{stretch:s.ALIGN_STRETCH,center:s.ALIGN_CENTER,"flex-start":s.ALIGN_FLEX_START,"flex-end":s.ALIGN_FLEX_END,"space-between":s.ALIGN_SPACE_BETWEEN,"space-around":s.ALIGN_SPACE_AROUND,baseline:s.ALIGN_BASELINE,normal:s.ALIGN_AUTO},s.ALIGN_AUTO,"alignContent")),e.setAlignItems(Xe(a.alignItems,{stretch:s.ALIGN_STRETCH,center:s.ALIGN_CENTER,"flex-start":s.ALIGN_FLEX_START,"flex-end":s.ALIGN_FLEX_END,baseline:s.ALIGN_BASELINE,normal:s.ALIGN_AUTO},s.ALIGN_STRETCH,"alignItems")),e.setAlignSelf(Xe(a.alignSelf,{stretch:s.ALIGN_STRETCH,center:s.ALIGN_CENTER,"flex-start":s.ALIGN_FLEX_START,"flex-end":s.ALIGN_FLEX_END,baseline:s.ALIGN_BASELINE,normal:s.ALIGN_AUTO},s.ALIGN_AUTO,"alignSelf")),e.setJustifyContent(Xe(a.justifyContent,{center:s.JUSTIFY_CENTER,"flex-start":s.JUSTIFY_FLEX_START,"flex-end":s.JUSTIFY_FLEX_END,"space-between":s.JUSTIFY_SPACE_BETWEEN,"space-around":s.JUSTIFY_SPACE_AROUND},s.JUSTIFY_FLEX_START,"justifyContent")),e.setFlexDirection(Xe(a.flexDirection,{row:s.FLEX_DIRECTION_ROW,column:s.FLEX_DIRECTION_COLUMN,"row-reverse":s.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":s.FLEX_DIRECTION_COLUMN_REVERSE},s.FLEX_DIRECTION_ROW,"flexDirection")),e.setFlexWrap(Xe(a.flexWrap,{wrap:s.WRAP_WRAP,nowrap:s.WRAP_NO_WRAP,"wrap-reverse":s.WRAP_WRAP_REVERSE},s.WRAP_NO_WRAP,"flexWrap")),typeof a.gap<"u"&&e.setGap(s.GUTTER_ALL,a.gap),typeof a.rowGap<"u"&&e.setGap(s.GUTTER_ROW,a.rowGap),typeof a.columnGap<"u"&&e.setGap(s.GUTTER_COLUMN,a.columnGap),typeof a.flexBasis<"u"&&e.setFlexBasis(Kt(a.flexBasis,"flexBasis")),e.setFlexGrow(typeof a.flexGrow>"u"?0:a.flexGrow),e.setFlexShrink(typeof a.flexShrink>"u"?0:a.flexShrink),typeof a.maxHeight<"u"&&e.setMaxHeight(qt(a.maxHeight,"maxHeight")),typeof a.maxWidth<"u"&&e.setMaxWidth(qt(a.maxWidth,"maxWidth")),typeof a.minHeight<"u"&&e.setMinHeight(qt(a.minHeight,"minHeight")),typeof a.minWidth<"u"&&e.setMinWidth(qt(a.minWidth,"minWidth")),e.setOverflow(Xe(a.overflow,{visible:s.OVERFLOW_VISIBLE,hidden:s.OVERFLOW_HIDDEN},s.OVERFLOW_VISIBLE,"overflow")),e.setMargin(s.EDGE_TOP,Kt(a.marginTop||0)),e.setMargin(s.EDGE_BOTTOM,Kt(a.marginBottom||0)),e.setMargin(s.EDGE_LEFT,Kt(a.marginLeft||0)),e.setMargin(s.EDGE_RIGHT,Kt(a.marginRight||0)),e.setBorder(s.EDGE_TOP,a.borderTopWidth||0),e.setBorder(s.EDGE_BOTTOM,a.borderBottomWidth||0),e.setBorder(s.EDGE_LEFT,a.borderLeftWidth||0),e.setBorder(s.EDGE_RIGHT,a.borderRightWidth||0),e.setPadding(s.EDGE_TOP,a.paddingTop||0),e.setPadding(s.EDGE_BOTTOM,a.paddingBottom||0),e.setPadding(s.EDGE_LEFT,a.paddingLeft||0),e.setPadding(s.EDGE_RIGHT,a.paddingRight||0),e.setBoxSizing(Xe(a.boxSizing,{"border-box":s.BOX_SIZING_BORDER_BOX,"content-box":s.BOX_SIZING_CONTENT_BOX},s.BOX_SIZING_BORDER_BOX,"boxSizing")),e.setPositionType(Xe(a.position,{absolute:s.POSITION_TYPE_ABSOLUTE,relative:s.POSITION_TYPE_RELATIVE,static:s.POSITION_TYPE_STATIC},s.POSITION_TYPE_RELATIVE,"position")),typeof a.top<"u"&&e.setPosition(s.EDGE_TOP,qt(a.top,"top")),typeof a.bottom<"u"&&e.setPosition(s.EDGE_BOTTOM,qt(a.bottom,"bottom")),typeof a.left<"u"&&e.setPosition(s.EDGE_LEFT,qt(a.left,"left")),typeof a.right<"u"&&e.setPosition(s.EDGE_RIGHT,qt(a.right,"right")),typeof a.height<"u"?e.setHeight(Kt(a.height,"height")):e.setHeightAuto(),typeof a.width<"u"?e.setWidth(Kt(a.width,"width")):e.setWidthAuto(),[a,io(a)]}import Ru from"escape-html";var Ou=[1,0,0,1,0,0];function bp(e,t,n){let r=[...Ou];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=[...Ou];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 l=a*Math.PI/180,f=Math.cos(l),c=Math.sin(l);u[0]=f,u[1]=c,u[2]=-c,u[3]=f;break}case"skewX":u[2]=Math.tan(a*Math.PI/180);break;case"skewY":u[1]=Math.tan(a*Math.PI/180);break}r=jr(u,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function Qr({left:e,top:t,width:n,height:r},i,o,s){let a;i.__resolved||bp(i,n,r);let u=i;if(o)a=u;else{let l=(s==null?void 0:s.xAbsolute)??((s==null?void 0:s.xRelative)??50)*n/100,f=(s==null?void 0:s.yAbsolute)??((s==null?void 0:s.yRelative)??50)*r/100,c=e+l,h=t+f;a=jr([1,0,0,1,c,h],jr(u,[1,0,0,1,-c,-h])),u.__parent&&(a=jr(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(l=>+l.toFixed(6)).join(",")})`}function Au({left:e,top:t,width:n,height:r,isInheritingTransform:i},o){let s="",a=1;return o.transform&&(s=Qr({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 lo({id:e,content:t,filter:n,left:r,top:i,width:o,height:s,matrix:a,opacity:u,image:l,clipPathId:f,debug:c,shape:h,decorationShape:m},g){let y="";if(c&&(y=I("rect",{x:r,y:i-s,width:o,height:s,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0})),l){let E={href:l,x:r,y:i,width:o,height:s,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:g.filter?`filter:${g.filter}`:void 0},T=I("image",{...E,opacity:u!==1?u:void 0})+(m||"");return[(n?n+I("g",{filter:`url(#satori_s-${e})`},T):T)+y,""]}let x={x:r,y:i,width:o,height:s,"font-weight":g.fontWeight,"font-style":g.fontStyle,"font-size":g.fontSize,"font-family":g.fontFamily,"letter-spacing":g.letterSpacing||void 0,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:g.filter?`filter:${g.filter}`:void 0,"stroke-width":g.WebkitTextStrokeWidth?`${g.WebkitTextStrokeWidth}px`:void 0,stroke:g.WebkitTextStrokeWidth?g.WebkitTextStrokeColor:void 0,"stroke-linejoin":g.WebkitTextStrokeWidth?"round":void 0,"paint-order":g.WebkitTextStrokeWidth?"stroke":void 0},_=I("text",{...x,fill:g.color,opacity:u!==1?u:void 0},Ru(t))+(m||"");return[(n?n+I("g",{filter:`url(#satori_s-${e})`},_):_)+y,h?I("text",x,Ru(t)):""]}function yp(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 ai=1.1;function Iu({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,l=t,f=0,c=n;for(let h=0;h<o;h++){let m=r.shadowRadius[h]*r.shadowRadius[h]/4;if(u=Math.min(r.shadowOffset[h].width-m,u),l=Math.max(r.shadowOffset[h].width+m+t,l),f=Math.min(r.shadowOffset[h].height-m,f),c=Math.max(r.shadowOffset[h].height+m+n,c),i){let g=`satori_s-${e}-result-${h}`;s+=I("feGaussianBlur",{in:"SourceAlpha",stdDeviation:r.shadowRadius[h]/2,result:`${g}-blur`})+I("feOffset",{in:`${g}-blur`,dx:r.shadowOffset[h].width,dy:r.shadowOffset[h].height,result:`${g}-offset`})+I("feFlood",{"flood-color":r.shadowColor[h],"flood-opacity":1,result:`${g}-color`})+I("feComposite",{in:`${g}-color`,in2:`${g}-offset`,operator:"in",result:o>1?g:void 0})}else s+=I("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=I("feMergeNode",{in:`satori_s-${e}-result-${h}`})+a)}return I("filter",{id:`satori_s-${e}`,x:(u/t*100*ai).toFixed(2)+"%",y:(f/n*100*ai).toFixed(2)+"%",width:((l-u)/t*100*ai).toFixed(2)+"%",height:((c-f)/n*100*ai).toFixed(2)+"%"},s+(a?I("feMerge",{},a):""))}function Cu({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 l="",f=o.boxShadow[u];f.spreadRadius&&f.inset&&(f.spreadRadius=-f.spreadRadius);let c=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),h=Math.min(-c-(f.inset?f.offsetX:0),0),m=Math.max(c+e-(f.inset?f.offsetX:0),e),g=Math.min(-c-(f.inset?f.offsetY:0),0),y=Math.max(c+t-(f.inset?f.offsetY:0),t),x=`satori_s-${i}-${u}`,_=`satori_ms-${i}-${u}`,E=f.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):n;l+=I("mask",{id:_,maskUnits:"userSpaceOnUse"},I("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:f.inset?"#000":"#fff"})+E.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let T=E.replace(/d="([^"]+)"/,(R,P)=>'d="'+yp(P,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(R,P)=>'x="'+(parseFloat(P)+f.offsetX)+'"').replace(/y="([^"]+)"/,(R,P)=>'y="'+(parseFloat(P)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(l+=I("mask",{id:_+"-neg",maskUnits:"userSpaceOnUse"},T.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(T=I("g",{mask:`url(#${_}-neg)`},T)),l+=I("defs",{},I("filter",{id:x,x:`${h/e*100}%`,y:`${g/t*100}%`,width:`${(m-h)/e*100}%`,height:`${(y-g)/t*100}%`},I("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+I("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+I("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+I("g",{mask:`url(#${_})`,filter:`url(#${x})`,opacity:r},T),f.inset?a+=l:s+=l}return[s,a]}function vp(e,t,n,r,i,o){let s=i/2,a=Math.max(s,i*1.25),u=[];for(let c of n){if(c.y2<o+s||c.y1>r+s)continue;let h=Math.max(e,c.x1-a),m=Math.min(t,c.x2+a);if(h>=m)continue;if(u.length===0){u.push([h,m]);continue}let g=u[u.length-1];h<=g[1]?g[1]=Math.max(g[1],m):u.push([h,m])}if(!u.length)return[[e,t]];let l=[],f=e;for(let[c,h]of u)if(c>f&&l.push([f,c]),f=Math.max(f,h),f>=t)break;return f<t&&l.push([f,t]),l}function fo({width:e,left:t,top:n,ascender:r,clipPathId:i,matrix:o,glyphBoxes:s},a){let{textDecorationColor:u,textDecorationStyle:l,textDecorationLine:f,textDecorationSkipInk:c,fontSize:h,color:m}=a;if(!f||f==="none")return"";let g=Math.max(1,h*.1),y=f==="line-through"?n+r*.7:f==="underline"?n+r*1.1:n,x=l==="dashed"?`${g*1.2} ${g*2}`:l==="dotted"?`0 ${g*2}`:void 0,_=f==="underline"&&(c||"auto")!=="none"&&(s==null?void 0:s.length),E=n+r,T=_?vp(t,t+e,s,y,g,E):[[t,t+e]],R=l==="double"?T.map(([S,A])=>I("line",{x1:S,y1:y+g+1,x2:A,y2:y+g+1,stroke:u||m,"stroke-width":g,"stroke-dasharray":x,"stroke-linecap":l==="dotted"?"round":"square",transform:o})).join(""):"",P=T.map(([S,A])=>I("line",{x1:S,y1:y,x2:A,y2:y,stroke:u||m,"stroke-width":g,"stroke-dasharray":x,"stroke-linecap":l==="dotted"?"round":"square",transform:o})).join("")+R;return i?I("g",{"clip-path":`url(#${i})`},P):P}function co(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var fr=co("U+0020"),po=co("U+0009"),Rr=co("U+2026");function Lu(e,t,n){let{fontSize:r,letterSpacing:i,fontFeatureSettings:o}=n,s=new Map;function a(c){let h=s.get(c);return h===void 0&&(h=e.measure(c,{fontSize:r,letterSpacing:i,fontFeatureSettings:o}),s.set(c,h)),h}function u(c){return a(c)}function l(c){let h=0,m="",g=()=>{m&&(h+=a(m),m="")};for(let y of c)t(y)?(g(),h+=r):m+=y;return g(),h}function f(c){return l(Fe(c,"grapheme"))}return{measureGrapheme:u,measureGraphemeArray:l,measureText:f}}function Mu(e,t,n){let{textTransform:r,whiteSpace:i,wordBreak:o}=t;e=xp(e,r,n);let{content:s,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=_p(e,i),{words:l,requiredBreaks:f,allowBreakWord:c}=Sp(s,o),[h,m]=wp(t,u);return{words:l,requiredBreaks:f,allowSoftWrap:u,allowBreakWord:c,processedContent:s,shouldCollapseTabsAndSpaces:a,lineLimit:h,blockEllipsis:m}}function xp(e,t,n){return t==="uppercase"?e=e.toLocaleUpperCase(n):t==="lowercase"?e=e.toLocaleLowerCase(n):t==="capitalize"&&(e=Fe(e,"word",n).map(r=>Fe(r,"grapheme",n).map((i,o)=>o===0?i.toLocaleUpperCase(n):i).join("")).join("")),e}function wp(e,t){let{textOverflow:n,lineClamp:r,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:s,display:a}=e;if(a==="block"&&r){let[u,l=Rr]=Ep(r);if(u)return[u,l]}return n==="ellipsis"&&a==="-webkit-box"&&o==="vertical"&&qa(i)&&i>0?[i,Rr]:n==="ellipsis"&&s==="hidden"&&!t?[1,Rr]:[1/0]}function Sp(e,t){let n=["break-all","break-word"].includes(t),{words:r,requiredBreaks:i}=Ga(e,t);return{words:r,requiredBreaks:i,allowBreakWord:n}}function _p(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,fr)),r&&(e=e.replace(/([ ]|\t)+/g,fr).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:r,allowSoftWrap:i}}function Ep(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[]}import Nu from"parse-css-color";var Tp=new Set([po]);function kp(e){return Tp.has(e)}function ho(e){if(e==="transparent")return!0;let t=Nu(e);return t?t.alpha===0:!1}function Fu(e){if(!e)return!1;let t=Nu(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*mo(e,t){let n=await Qt(),{parentStyle:r,inheritedStyle:i,parent:o,font:s,id:a,isInheritingTransform:u,debug:l,embedFont:f,graphemeImages:c,locale:h,canLoadAdditionalAssets:m}=t,{textAlign:g,textIndent:y=0,lineHeight:x,textWrap:_,fontSize:E,filter:T,tabSize:R=8,letterSpacing:P,fontFeatureSettings:S,_inheritedBackgroundClipTextPath:A,_inheritedBackgroundClipTextHasBackground:C,flexShrink:G}=r,{words:V,requiredBreaks:ee,allowSoftWrap:re,allowBreakWord:pe,processedContent:ce,shouldCollapseTabsAndSpaces:Ke,lineLimit:Pe,blockEllipsis:we}=Mu(e,r,h),De=Pp(n,g);o.insertChild(De,o.getChildCount()),za(G)&&o.setFlexShrink(1);let J=s.getEngine(E,x,r,h),xe=m?Fe(ce,"grapheme").filter(Y=>!kp(Y)&&!J.has(Y)):[];yield xe.map(Y=>({word:Y,locale:h})),xe.length&&(J=s.getEngine(E,x,r,h));function qe(Y){return!!(c&&Object.prototype.hasOwnProperty.call(c,Y)&&c[Y])}let{measureGrapheme:Be,measureGraphemeArray:Oe,measureText:ne}=Lu(J,qe,{fontSize:E,letterSpacing:P,fontFeatureSettings:S}),at=Hn(R)?K(R,E,1,r):Be(fr)*R,Re=(Y,Q)=>{if(Y.length===0)return{originWidth:0,endingSpacesWidth:0,text:Y};let{index:te,tabCount:Z}=Op(Y),Te=0;if(Z>0){let be=Y.slice(0,te),fe=Y.slice(te+Z),ie=ne(be),ut=ie+Q;Te=(at===0?ie:(Math.floor(ut/at)+Z)*at)+ne(fe)}else Te=ne(Y);let le=Y.trimEnd()===Y?Te:ne(Y.trimEnd());return{originWidth:Te,endingSpacesWidth:Te-le,text:Y}},j=[],q=[],he=[],Ae=[],Ie=[];function Le(Y){let Q=0,te=0,Z=-1,Te=0,le=0,be=0,fe=0;j=[],he=[0],Ae=[],Ie=[];let ie=0,ut=0;for(;ie<V.length&&Q<Pe;){let X=V[ie],Rt=ee[ie],je=0,{originWidth:Ve,endingSpacesWidth:ot,text:Wt}=Re(X,le);X=Wt,je=Ve;let He=ot;Rt&&be===0&&(be=J.height(X));let $t=g==="justify",Se=ie&&le+je>Y+He&&re;if(pe&&je>Y&&(!le||Se||Rt)){let Je=Fe(X,"grapheme");V.splice(ie,1,...Je),le>0&&(j.push(le-ut),q.push(fe),Q++,Te+=be,le=0,be=0,fe=0,he.push(1),Z=-1),ut=He;continue}if(Rt||Se)Ke&&X===fr&&(je=0),j.push(le-ut),q.push(fe),Q++,Te+=be,le=je,be=je?Math.round(J.height(X)):0,fe=je?Math.round(J.baseline(X)):0,he.push(1),Z=-1,Rt||(te=Math.max(te,Y));else{le+=je;let Je=Math.round(J.height(X));Je>be&&(be=Je,fe=Math.round(J.baseline(X))),$t&&he[he.length-1]++}$t&&Z++,te=Math.max(te,le);let lt=le-je;if(je===0)Ie.push({y:Te,x:lt,width:0,line:Q,lineIndex:Z,isImage:!1});else{let Je=Fe(X,"word");for(let ft=0;ft<Je.length;ft++){let vt=Je[ft],Ye=0,ct=!1;qe(vt)?(Ye=E,ct=!0):!f&&vt.length>1?Ye=ne(vt):Ye=Be(vt),Ae.push(vt),Ie.push({y:Te,x:lt,width:Ye,line:Q,lineIndex:Z,isImage:ct}),lt+=Ye,ft<Je.length-1&&P>0&&(lt+=P)}}ie++,ut=He}return le&&(Q<Pe&&(Te+=be),Q++,j.push(le),q.push(fe)),{width:te,height:Te}}let ue={width:0,height:0};De.setMeasureFunc(Y=>{let{width:Q,height:te}=Le(Y);if(_==="balance"){let Te=Q/2,le=Q,be=Q;for(;Te+1<le;){be=(Te+le)/2;let{height:ie}=Le(be);ie>te?Te=be:le=be}Le(le);let fe=Math.ceil(le);return ue={width:fe,height:te},{width:fe,height:te}}if(_==="pretty"&&j[j.length-1]<Q/3){let be=Q*.9,fe=Le(be);if(fe.height<=te*1.3)return ue={width:Q,height:fe.height},{width:Q,height:fe.height}}let Z=Math.ceil(Q);return ue={width:Z,height:te},{width:Z,height:te}});let[Qe,rt]=yield,Me="",ge="",ze=i._inheritedClipPathId,Et=i._inheritedMaskId,{left:Dr,top:Wr,width:Ft,height:$r}=De.getComputedLayout(),Br=typeof y=="string"?K(y,E,Ft,r,!0)||0:y,or=o.getComputedWidth()-o.getComputedPadding(n.EDGE_LEFT)-o.getComputedPadding(n.EDGE_RIGHT)-o.getComputedBorder(n.EDGE_LEFT)-o.getComputedBorder(n.EDGE_RIGHT),Tt=Qe+Dr,kt=rt+Wr,{matrix:nt,opacity:Nt}=Au({left:Dr,top:Wr,width:Ft,height:$r,isInheritingTransform:u},r),Ge="";if(r.textShadowOffset){let{textShadowColor:Y,textShadowOffset:Q,textShadowRadius:te}=r;Ge=Iu({width:ue.width,height:ue.height,id:a},{shadowColor:Y,shadowOffset:Q,shadowRadius:te},ho(r.color)||C&&Fu(r.color)),Ge=I("defs",{},Ge)}let it="",Dt="",yr="",Pt=-1,Ue={},Ot={},We=null,vr=0;for(let Y=0;Y<Ae.length;Y++){let Q=Ie[Y],te=Ie[Y+1];if(!Q)continue;let Z=Ae[Y],Te=null,le=!1,be=c&&Object.prototype.hasOwnProperty.call(c,Z)?c[Z]:null,fe=Q.y,ie=Q.x,ut=Q.width,X=Q.line,Rt=r.textDecorationLine==="underline"&&(r.textDecorationSkipInk||"auto")!=="none";if(X===Pt)continue;let je=!1;if(X===0&&Br!==0&&(ie+=Br),j.length>1){let Se=Ft-j[X];if(g==="right"||g==="end")ie+=Se;else if(g==="center")ie+=Se/2;else if(g==="justify"&&X<j.length-1){let ke=he[X],lt=ke>1?Se/(ke-1):0;ie+=lt*Q.lineIndex,je=!0}f&&(ie=Math.round(ie))}let Ve=q[X],ot=J.baseline(Z),Wt=J.height(Z),He=Ve-ot,$t=Se=>!Rt||r.textDecorationLine!=="underline"?void 0:{underlineY:kt+Se+He+ot+ot*.1,strokeWidth:Math.max(1,E*.1)};if(Ue[X]||(Ue[X]={left:ie,top:kt+fe+He,ascender:ot,width:je?Ft:j[X]}),Pe!==1/0){let vt=function(Ye,ct){let Ur=Fe(ct,"grapheme",h),xr="",Bn=0;for(let qr of Ur){let sr=Ye+Oe([xr+qr]);if(xr&&sr+ke>or)break;xr+=qr,Bn=sr}return{subset:xr,resolvedWidth:Bn}},Se=we,ke=Be(we);ke>or&&(Se=Rr,ke=Be(Se));let lt=Be(fr),Je=X<j.length-1;if(X+1===Pe&&(Je||j[X]>or)){if(ie+ut+ke+lt>or){let{subset:Ye,resolvedWidth:ct}=vt(ie,Z);Z=Ye+Se,Pt=X,Ue[X].width=Math.max(0,ct-Ue[X].left),le=!0}else if(te&&te.line!==X)if(g==="center"){let{subset:Ye,resolvedWidth:ct}=vt(ie,Z);Z=Ye+Se,Pt=X,Ue[X].width=Math.max(0,ct-Ue[X].left),le=!0}else{let Ye=Ae[Y+1],{subset:ct,resolvedWidth:Ur}=vt(ut+ie,Ye);Z=Z+ct+Se,Pt=X,Ue[X].width=Math.max(0,Ur-Ue[X].left),le=!0}}}if(be)fe+=0;else if(f){if(!Z.includes(po)&&!Wa.includes(Z)&&Ae[Y+1]&&te&&!te.isImage&&fe===te.y&&!le){We===null&&(vr=ie),We=We===null?Z:We+Z;continue}let Se=We===null?Z:We+Z,ke=We===null?ie:vr,lt=Q.width+ie-ke,Je=$t(fe),ft=J.getSVG(Se.replace(/(\t)+/g,""),{fontSize:E,left:Tt+ke,top:kt+fe+ot+He,letterSpacing:P,fontFeatureSettings:S},Je);Te=ft.path,Rt&&ft.boxes&&ft.boxes.length&&(Ot[X]||(Ot[X]=[])).push(...ft.boxes),We=null,l&&(yr+=I("rect",{x:Tt+ke,y:kt+fe+He,width:lt,height:Wt,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:nt||void 0,"clip-path":ze?`url(#${ze})`:void 0})+I("line",{x1:Tt+ie,x2:Tt+ie+Q.width,y1:kt+fe+He+ot,y2:kt+fe+He+ot,stroke:"#14c000","stroke-width":1,transform:nt||void 0,"clip-path":ze?`url(#${ze})`:void 0}))}else if(fe+=ot+He,Rt&&!be){let Se=$t(fe),ke=J.getSVG(Z.replace(/(\t)+/g,""),{fontSize:E,left:Tt+ie,top:kt+fe,letterSpacing:P,fontFeatureSettings:S},Se);ke.boxes&&ke.boxes.length&&(Ot[X]||(Ot[X]=[])).push(...ke.boxes)}if(Te!==null)Dt+=Te+" ";else{let[Se,ke]=lo({content:Z,filter:Ge,id:a,left:Tt+ie,top:kt+fe,width:ut,height:Wt,matrix:nt,opacity:Nt,image:be,clipPathId:ze,debug:l,shape:!!A},r);Me+=Se,ge+=ke}if(le)break}if(r.textDecorationLine&&(it=Object.entries(Ue).map(([Y,Q])=>{if(!Q)return"";let te=Ot[Y]||[];return fo({left:Tt+Q.left,top:Q.top,width:Q.width,ascender:Q.ascender,clipPathId:ze,matrix:nt,glyphBoxes:te},r)}).join("")),Dt){let Y=(!ho(r.color)||Ge)&&Nt!==0?I("path",{fill:Ge&&(ho(r.color)||C&&Fu(r.color))?"black":r.color,d:Dt,transform:nt||void 0,[i.WebkitTextStrokeWidth||T||Ge?"opacity":"fill-opacity"]:Nt!==1?Nt:void 0,style:T?`filter:${T}`: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}):"",Q=Y?I("g",{mask:Et?`url(#${Et})`:void 0,"clip-path":ze?`url(#${ze})`:void 0},Y):"";A&&(ge=I("path",{d:Dt,transform:nt||void 0})),Me+=(Ge?Ge+I("g",{filter:`url(#satori_s-${a})`},Q+it):Q+it)+yr}else it&&(Me+=Ge?I("g",{filter:`url(#satori_s-${a})`},it):it);return ge&&(r._inheritedBackgroundClipTextPath.value+=ge),Me}function Pp(e,t){let n=e.Node.create();return n.setAlignItems(e.ALIGN_BASELINE),n.setJustifyContent(Xe(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 Op(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}import{parseLinearGradient as Ap}from"css-gradient-parser";import Rp from"parse-css-color";function ui(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 c of t){let{color:h}=c;if(!o.length&&(o.push({offset:0,color:h}),!c.offset||c.offset.value==="0"))continue;let m=typeof c.offset>"u"?void 0:c.offset.unit==="%"?+c.offset.value/a:Number(K(`${c.offset.value}${c.offset.unit}`,n.fontSize,e,n,!0))/e;o.push({offset:m,color:h})}o.length||o.push({offset:0,color:"transparent"});let u=o[o.length-1];u.offset!==1&&(typeof u.offset>"u"?u.offset=1:r?o[o.length-1]={offset:1,color:u.color}:o.push({offset:1,color:u.color}));let l=0,f=1;for(let c=0;c<o.length;c++)if(typeof o[c].offset>"u"){for(f<c&&(f=c);typeof o[f].offset>"u";)f++;o[c].offset=(o[f].offset-o[l].offset)/(f-l)*(c-l)+o[l].offset}else l=c;return i==="mask"?o.map(c=>{let h=Rp(c.color);return h?h.alpha===0?{...c,color:"rgba(0, 0, 0, 1)"}:{...c,color:`rgba(255, 255, 255, ${h.alpha})`}:c}):o}function Du({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,l){let f=Ap(o),[c,h]=s,m=o.startsWith("repeating"),g,y,x;if(f.orientation.type==="directional")g=Cp(f.orientation.value),y=Math.sqrt(Math.pow((g.x2-g.x1)*c,2)+Math.pow((g.y2-g.y1)*h,2));else if(f.orientation.type==="angular"){let{length:P,...S}=Lp(ur(`${f.orientation.value.value}${f.orientation.value.unit}`)/180*Math.PI,c,h);y=P,g=S}x=m?Mp(f.stops,y,g,u):g;let _=ui(m?Ip(f.stops,y):y,f.stops,u,m,l),E=`satori_bi${e}`,T=`satori_pattern_${e}`,R=I("pattern",{id:T,x:a[0]/t,y:a[1]/n,width:r?c/t:"1",height:i?h/n:"1",patternUnits:"objectBoundingBox"},I("linearGradient",{id:E,...x,spreadMethod:m?"repeat":"pad"},_.map(P=>I("stop",{offset:(P.offset??0)*100+"%","stop-color":P.color})).join(""))+I("rect",{x:0,y:0,width:c,height:h,fill:`url(#${E})`}));return[T,R]}function Ip(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 Cp(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 Lp(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,l,f,c,h=m=>{if(m===0){i=0,o=n,s=0,a=0,u=n;return}else if(m===Math.PI/2){i=0,o=0,s=t,a=0,u=t;return}if(m>0&&m<Math.PI/2){i=(r*t/2/Math.tan(m)-n/2)/(Math.tan(m)+r/Math.tan(m)),o=Math.tan(m)*i+n,s=Math.abs(t/2-i)+t/2,a=n/2-Math.abs(o-n/2),u=Math.sqrt(Math.pow(s-i,2)+Math.pow(a-o,2)),f=(t/2/Math.tan(m)-n/2)/(Math.tan(m)+1/Math.tan(m)),c=Math.tan(m)*f+n,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(n/2-c,2));return}else if(m>Math.PI/2&&m<Math.PI){i=(n/2+r*t/2/Math.tan(m))/(Math.tan(m)+r/Math.tan(m)),o=Math.tan(m)*i,s=Math.abs(t/2-i)+t/2,a=n/2+Math.abs(o-n/2),f=(t/2/Math.tan(m)+n/2)/(Math.tan(m)+1/Math.tan(m)),c=Math.tan(m)*f,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(n/2-c,2));return}else m>=Math.PI&&(h(m-Math.PI),l=i,i=s,s=l,l=o,o=a,a=l)};return h(e),{x1:i/t,y1:o/n,x2:s/t,y2:a/n,length:u}}function Mp(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:K(`${e[0].offset.value}${e[0].offset.unit}`,r.fontSize,t,r,!0)/t:0,l=e.at(-1).offset?e.at(-1).offset.unit==="%"?Number(e.at(-1).offset.value)/100:K(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,r.fontSize,t,r,!0)/t:1,f=(o-i)*u+i,c=(a-s)*u+s,h=(o-i)*l+i,m=(a-s)*l+s;return{x1:f,y1:c,x2:h,y2:m}}import{parseRadialGradient as Fp}from"css-gradient-parser";function $u({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,l){var pe;let{shape:f,stops:c,position:h,size:m,repeating:g}=Fp(o),[y,x]=s,_=y/2,E=x/2,T=Dp(h.x,h.y,y,x,u.fontSize,u);_=T.x,E=T.y;let R=Np(t,c,g,u),P=ui(R,c,u,g,l),S=`satori_radial_${e}`,A=`satori_pattern_${e}`,C=`satori_mask_${e}`,G=$p(f,m,u.fontSize,{x:_,y:E},[y,x],u,g),V=Wp(f,u.fontSize,c,[y,x],u,g,G),ee=I("pattern",{id:A,x:a[0]/t,y:a[1]/n,width:r?y/t:"1",height:i?x/n:"1",patternUnits:"objectBoundingBox"},I("radialGradient",{id:S,...V},P.map(ce=>I("stop",{offset:ce.offset||0,"stop-color":ce.color})).join(""))+I("mask",{id:C},I("rect",{x:0,y:0,width:y,height:x,fill:"#fff"}))+I("rect",{x:0,y:0,width:y,height:x,fill:((pe=P.at(-1))==null?void 0:pe.color)||"transparent"})+I(f,{cx:_,cy:E,width:y,height:x,...G,fill:`url(#${S})`,mask:`url(#${C})`}));return[A,ee]}function Np(e,t,n,r){if(!n)return e;let i=t.at(-1);return!i||!i.offset||i.offset.unit==="%"?e:K(`${i.offset.value}${i.offset.unit}`,+r.fontSize,e,r,!0)}function Dp(e,t,n,r,i,o){let s={x:n/2,y:r/2};return e.type==="keyword"?Object.assign(s,Wu(e.value,n,r,"x")):s.x=K(`${e.value.value}${e.value.unit}`,i,n,o,!0)??n/2,t.type==="keyword"?Object.assign(s,Wu(t.value,n,r,"y")):s.y=K(`${t.value.value}${t.value.unit}`,i,r,o,!0)??r/2,s}function Wu(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 Wp(e,t,n,[r,i],o,s,a){let{r:u,rx:l,ratio:f=1}=a;if(!s)return{spreadMethod:"pad"};let c=n.at(-1),h=e==="circle"?u*2:l*2;return{spreadMethod:"repeat",cx:"50%",cy:"50%",r:c.offset.unit==="%"?`${Number(c.offset.value)*Math.min(i/r,1)/f}%`:Number(K(`${c.offset.value}${c.offset.unit}`,t,r,o,!0)/h)}}function $p(e,t,n,r,i,o,s){let[a,u]=i,{x:l,y:f}=r,c={},h=0,m=0;if(Bp(t)){if(t.some(g=>g.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(c,{r:Number(K(`${t[0].value.value}${t[0].value.unit}`,n,a,o,!0))}):Object.assign(c,{rx:Number(K(`${t[0].value.value}${t[0].value.unit}`,n,a,o,!0)),ry:Number(K(`${t[1].value.value}${t[1].value.unit}`,n,u,o,!0))}),li(c,a,u,l,f,s,e),c}switch(t[0].value){case"farthest-corner":h=Math.max(Math.abs(a-l),Math.abs(l)),m=Math.max(Math.abs(u-f),Math.abs(f));break;case"closest-corner":h=Math.min(Math.abs(a-l),Math.abs(l)),m=Math.min(Math.abs(u-f),Math.abs(f));break;case"farthest-side":return e==="circle"?c.r=Math.max(Math.abs(a-l),Math.abs(l),Math.abs(u-f),Math.abs(f)):(c.rx=Math.max(Math.abs(a-l),Math.abs(l)),c.ry=Math.max(Math.abs(u-f),Math.abs(f))),li(c,a,u,l,f,s,e),c;case"closest-side":return e==="circle"?c.r=Math.min(Math.abs(a-l),Math.abs(l),Math.abs(u-f),Math.abs(f)):(c.rx=Math.min(Math.abs(a-l),Math.abs(l)),c.ry=Math.min(Math.abs(u-f),Math.abs(f))),li(c,a,u,l,f,s,e),c}return e==="circle"?c.r=Math.sqrt(h*h+m*m):Object.assign(c,Bu(h,m)),li(c,a,u,l,f,s,e),c}function li(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:l,ry:f}=Bu(a,u);e.ratio=Math.max(l/e.rx,f/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)),l=Math.sqrt(a*a+u*u);e.ratio=l/e.r,e.ratio>1&&(e.r=l)}}function Bu(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 Bp(e){return!e.some(t=>t.type==="keyword")}import Uu from"parse-css-color";function bo(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function Up(e,t,n,r,i){if(!r||!i)return[t,n];if(e==="cover"){let o=t/r,s=n/i,a=Math.max(o,s);return[r*a,i*a]}if(e==="contain"){let o=t/r,s=n/i,a=Math.min(o,s);return[r*a,i*a]}if(e==="auto"||e.includes("auto")){let o=e.split(" "),s=o[0]||"auto",a=o[1]||o[0]||"auto",u=r,l=i;if(s==="auto"&&a!=="auto"){let f=bo(a,n);l=f,u=r/i*f}else if(a==="auto"&&s!=="auto"){let f=bo(s,t);u=f,l=i/r*f}return[u,l]}return[t,n]}function go(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(o=>{try{let s=new wt(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)=>bo(o,[t,n][s]))}async function Jr({id:e,width:t,height:n,left:r,top:i},{image:o,size:s,position:a,repeat:u},l,f){u=u||"repeat",f=f||"background";let c=u==="repeat-x"||u==="repeat",h=u==="repeat-y"||u==="repeat",m=s&&(s==="cover"||s==="contain"||s==="auto"||s.includes("auto")),g=o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient(")||o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("),y=m&&g?[t,n]:m?[0,0]:go(s,{x:t,y:n,defaultX:t,defaultY:n}),x=go(a,{x:t,y:n,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return Du({id:e,width:t,height:n,repeatX:c,repeatY:h},o,y,x,l,f);if(o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("))return $u({id:e,width:t,height:n,repeatX:c,repeatY:h},o,y,x,l,f);if(o.startsWith("url(")){let[_,E,T]=await Or(o.slice(4,-1)),R,P;if(m){let[S,A]=Up(s,t,n,E,T);R=S,P=A}else{let S=go(s,{x:t,y:n,defaultX:0,defaultY:0});R=f==="mask"?E||S[0]:S[0]||E,P=f==="mask"?T||S[1]:S[1]||T}return[`satori_bi${e}`,I("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:x[0]+r,y:x[1]+i,width:c?R:"100%",height:h?P:"100%"},I("image",{x:0,y:0,width:R,height:P,preserveAspectRatio:"none",href:_}))]}if(Uu(o)){let _=Uu(o),[E,T,R,P]=_.values,A=`rgba(${E},${T},${R},${P!==void 0?P:1})`;return[`satori_bi${e}`,I("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:r,y:i,width:t,height:n},I("rect",{x:0,y:0,width:t,height:n,fill:A}))]}throw new Error(`Invalid background image: "${o}"`)}function qp([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 fi(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 ci(e){e[0]=e[1]=Math.min(e[0],e[1])}function di(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(K(o[0],r,t,i,!0),t),Math.min(K(o[1],r,n,i,!0),n)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,n)]]:[!0,void 0]}var pi=e=>e&&e[0]!==0&&e[1]!==0;function hi(e){return typeof e!="string"?1:ao(e)}function mi(e,t,n,r,i){if(i===1/0)return[e,n,t];if(i===-1/0)return[e,r,t];if(i===0)return[e,[(e[0]+t[0])/2,(e[1]+t[1])/2],t];let o=i<0?n:r,s=Math.pow(2,1-Math.abs(i));if(s===0)return i>0?[e,n,t]:[e,r,t];let a=[],u=16;for(let l=0;l<=u;l++){let f=Math.PI*l/u/2,c=Math.pow(Math.sin(f),s),h=Math.pow(Math.cos(f),s);a.push([o[0]+(t[0]-o[0])*c+(e[0]-o[0])*h,o[1]+(t[1]-o[1])*c+(e[1]-o[1])*h])}return a}function cr(e){return`${Math.round(e[0]*1e3)/1e3},${Math.round(e[1]*1e3)/1e3}`}function qu(e,t,n,r){return Math.min(1,n/(e[0]+t[0]||n),r/(e[1]+t[1]||r))}function zp(e,t,n,r,i,o,s){s!=null&&s.every(Boolean)&&(s=void 0);let a=e+n,u=t+r,[l,f,c,h]=i,m=[mi([e,t+l[1]],[e+l[0],t],[e,t],[e+l[0],t+l[1]],o[0]),mi([a-f[0],t],[a,t+f[1]],[a,t],[a-f[0],t+f[1]],o[1]),mi([a,u-c[1]],[a-c[0],u],[a,u],[a-c[0],u-c[1]],o[2]),mi([e+h[0],u],[e,u-h[1]],[e,u],[e+h[0],u-h[1]],o[3])];if(s){let y=s.indexOf(!0);if(y===-1)throw new Error("Invalid `partialSides`.");for(;s[(y+3)%4];)y=(y+3)%4;let x=m[y],_=Math.floor(x.length/2),E=`M${cr(x[_])}`,T=y;do{let R=m[T],P=Math.floor(R.length/2);for(let C=P+1;C<R.length;C++)E+=` L${cr(R[C])}`;let S=m[(T+1)%4];E+=` L${cr(S[0])}`;let A=Math.floor(S.length/2);for(let C=1;C<=A;C++)E+=` L${cr(S[C])}`;T=(T+1)%4}while(s[T]&&T!==y);return E}let g=`M${cr(m[0][m[0].length-1])}`;for(let y=0;y<4;y++){let x=m[(y+1)%4];g+=` L${cr(x[0])}`;for(let _=1;_<x.length;_++)g+=` L${cr(x[_])}`}return g+" Z"}function zu({id:e,borderRadiusPath:t,borderType:n,left:r,top:i,width:o,height:s},a){let u=`satori_brc-${e}`;return[I("clipPath",{id:u},I(n,{x:r,y:i,width:o,height:s,d:t||void 0})),u]}function Zt({left:e,top:t,width:n,height:r},i,o){let{borderTopLeftRadius:s,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:l,fontSize:f}=i,c=[hi(i.cornerTopLeftShape),hi(i.cornerTopRightShape),hi(i.cornerBottomRightShape),hi(i.cornerBottomLeftShape)],h,m,g,y;if([h,s]=di(s,n,r,f,i),[m,a]=di(a,n,r,f,i),[g,u]=di(u,n,r,f,i),[y,l]=di(l,n,r,f,i),!o&&!pi(s)&&!pi(a)&&!pi(u)&&!pi(l))return"";if(s||=[0,0],a||=[0,0],u||=[0,0],l||=[0,0],[s[0],a[0]]=fi(s[0],a[0],n),[u[0],l[0]]=fi(u[0],l[0],n),[s[1],u[1]]=fi(s[1],u[1],r),[a[1],l[1]]=fi(a[1],l[1],r),h&&ci(s),m&&ci(a),g&&ci(u),y&&ci(l),c.some(P=>P<0)){let P=Math.min(qu(s,l,n,r),qu(a,u,n,r));if(P<1)for(let S of[s,a,l,u])S[0]*=P,S[1]*=P}if(c.some(P=>P!==1))return zp(e,t,n,r,[s,a,l,u],c,o);let x=[];x[0]=[a,a],x[1]=[l,[-l[0],l[1]]],x[2]=[u,[-u[0],-u[1]]],x[3]=[s,[s[0],-s[1]]];let _=`h${n-s[0]-a[0]} a${x[0][0]} 0 0 1 ${x[0][1]}`,E=`v${r-a[1]-l[1]} a${x[1][0]} 0 0 1 ${x[1][1]}`,T=`h${l[0]+u[0]-n} a${x[2][0]} 0 0 1 ${x[2][1]}`,R=`v${u[1]+s[1]-r} a${x[3][0]} 0 0 1 ${x[3][1]}`;if(o){let S=function(pe){let ce=qp([s,a,l,u][pe]);return pe===0?[[e+s[0]-ce,t+s[1]-ce],[e+s[0],t]]:pe===1?[[e+n-a[0]+ce,t+a[1]-ce],[e+n,t+a[1]]]:pe===2?[[e+n-l[0]+ce,t+r-l[1]+ce],[e+n-l[0],t+r]]:[[e+u[0]-ce,t+r-u[1]+ce],[e,t+r-u[1]]]},P=o.indexOf(!1);if(!o.includes(!0))throw new Error("Invalid `partialSides`.");if(P===-1)P=0;else for(;!o[P];)P=(P+1)%4;let A="",C=S(P),G=`M${C[0]} A${x[(P+3)%4][0]} 0 0 1 ${C[1]}`,V=0;for(;V<4&&o[(P+V)%4];V++)A+=G+" ",G=[_,E,T,R][(P+V)%4];let ee=(P+V)%4;A+=G.split(" ")[0];let re=S(ee);return A+=` A${x[(ee+3)%4][0]} 0 0 1 ${re[0]}`,A}return`M${e+s[0]},${t} ${_} ${E} ${T} ${R}`}function Gu(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function ju({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 f=`satori_bc-${e}`;return[I("clipPath",{id:f,"clip-path":t?`url(#${t})`:void 0},I(r,{x:i,y:o,width:s,height:a,d:n||void 0})),f]}function Zr({left:e,top:t,width:n,height:r,props:i,asContentMask:o,maskBorderOnly:s},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!o&&!u.some(m=>a[m+"Width"]))return"";let l="",f=0;for(;f>0&&Gu(u[f],u[(f+3)%4],a);)f=(f+3)%4;let c=[!1,!1,!1,!1],h=[];for(let m=0;m<4;m++){let g=(f+m)%4,y=(f+m+1)%4,x=u[g],_=u[y];if(c[g]=!0,h=[a[x+"Width"],a[x+"Style"],a[x+"Color"],x],!Gu(x,_,a)){let E=(h[0]||0)+(o&&!s&&a[x.replace("border","padding")]||0);E&&(l+=I("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":h[2],"stroke-width":E*2,"stroke-dasharray":!o&&h[1]==="dashed"?E*2+" "+E:void 0,d:Zt({left:e,top:t,width:n,height:r},a,c)})),c=[!1,!1,!1,!1]}}if(c.some(Boolean)){let m=(h[0]||0)+(o&&!s&&a[h[3].replace("border","padding")]||0);m&&(l+=I("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":h[2],"stroke-width":m*2,"stroke-dasharray":!o&&h[1]==="dashed"?m*2+" "+m:void 0,d:Zt({left:e,top:t,width:n,height:r},a,c)}))}return l}function yo({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),l=(a.borderTopWidth||0)+(s?0:a.paddingTop||0),f=(a.borderRightWidth||0)+(s?0:a.paddingRight||0),c=(a.borderBottomWidth||0)+(s?0:a.paddingBottom||0),h={x:t+u,y:n+l,width:r-u-f,height:i-l-c};return I("mask",{id:e},I("rect",{...h,fill:"#fff",transform:a.overflow==="hidden"&&a.transform&&o?o:void 0,mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+Zr({left:t,top:n,width:r,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:s},a))}import{getStylesForProperty as Yu}from"css-to-react-native";var wo={left:0,"x-start":0,center:.5,right:1,"x-end":1},So={top:0,"y-start":0,center:.5,bottom:1,"y-end":1};function It(e){return Math.round(e*1e3)/1e3}function Hu(e,t,n,r){let i=e.match(/^shape\((.*)\)$/s);if(!i)return null;let o=zt(i[1]),s=o.shift();if(!s)throw new Error("Invalid `shape()` value.");let a=s.match(/^(?:(nonzero|evenodd)\s+)?from\s+(.+)$/);if(!a)throw new Error("Invalid `shape()` starting point.");let u=a[1]||"nonzero",l=_o(Vu(a[2]),t,n,r),f=l,c=`M${It(l[0])},${It(l[1])}`;for(let h of o){let m=Vu(h),g=m.shift();if(g==="close"){if(m.length)throw new Error("Invalid `close` command in `shape()`.");c+=" Z",l=f;continue}if(g==="move"||g==="line"){let y=vo(m,l,t,n,r);c+=` ${g==="move"?"M":"L"}${It(y[0])},${It(y[1])}`,l=y,g==="move"&&(f=y);continue}if(g==="hline"||g==="vline"){let y=g==="hline"?0:1,x=m.shift(),_=m.shift();if(x!=="to"&&x!=="by"||!_||m.length)throw new Error(`Invalid \`${g}\` command in \`shape()\`.`);let E=y===0?t:n,T=y===0?wo:So,R=x==="to"&&_ in T?T[_]*E:er(_,E,r);l=[...l],l[y]=x==="by"?l[y]+R:R,c+=` ${y===0?"H":"V"}${It(l[y])}`;continue}if(g==="curve"||g==="smooth"){let y=m.indexOf("with"),x=y===-1?m:m.slice(0,y),_=y===-1?[]:m.slice(y+1),E=x[0],T=vo(x,l,t,n,r);if(g==="curve"&&y===-1)throw new Error("A `curve` command requires a control point.");let R=Gp(_).map(P=>jp(P,l,T,t,n,r));if(g==="curve")if(R.length===1)c+=` Q${Vt(R[0])} ${Vt(T)}`;else if(R.length===2)c+=` C${Vt(R[0])} ${Vt(R[1])} ${Vt(T)}`;else throw new Error("A `curve` command accepts one or two control points.");else if(!R.length)c+=` T${Vt(T)}`;else if(R.length===1)c+=` S${Vt(R[0])} ${Vt(T)}`;else throw new Error("A `smooth` command accepts at most one control point.");l=T;continue}if(g==="arc"){let y=m.findIndex(C=>["of","cw","ccw","large","small","rotate"].includes(C)),x=y===-1?m:m.slice(0,y),_=y===-1?[]:m.slice(y),E=vo(x,l,t,n,r),T=0,R=0,P=0,S=0,A=0;for(let C=0;C<_.length;C++){let G=_[C];if(G==="of"){let V=_[++C];if(!V)throw new Error("Invalid `arc` radius in `shape()`.");let ee=_[C+1],re=ee&&!["cw","ccw","large","small","rotate"].includes(ee);if(re&&C++,re)T=er(V,t,r),R=er(ee,n,r);else{let pe=Math.sqrt(t*t+n*n)/Math.sqrt(2);T=R=er(V,pe,r)}}else if(G==="cw"||G==="ccw")A=G==="cw"?1:0;else if(G==="large"||G==="small")S=G==="large"?1:0;else if(G==="rotate"){let V=_[++C];if(!V)throw new Error("Invalid `arc` rotation in `shape()`.");let ee=ur(V);if(typeof ee>"u")throw new Error("Invalid `arc` rotation in `shape()`.");P=ee}else throw new Error("Invalid `arc` option in `shape()`.")}c+=` A${It(Math.abs(T))},${It(Math.abs(R))} ${It(P)} ${S} ${A} ${Vt(E)}`,l=E;continue}throw new Error(`Unsupported \`${g}\` command in \`shape()\`.`)}return{type:"path",d:c,"fill-rule":u}}function Vu(e){return e.trim().replace(/\//g," / ").split(/\s+/).filter(Boolean)}function Gp(e){if(!e.length)return[];let t=e.indexOf("/");return t===-1?[e]:[e.slice(0,t),e.slice(t+1)]}function vo(e,t,n,r,i){let o=e[0];if(o!=="to"&&o!=="by")throw new Error("A `shape()` command must use `to` or `by`.");let s=_o(e.slice(1),n,r,i);return o==="by"?[t[0]+s[0],t[1]+s[1]]:s}function jp(e,t,n,r,i,o){let s=e.indexOf("from"),a=s===-1?e:e.slice(0,s),u=s===-1?void 0:e[s+1];if(s!==-1&&(s+2!==e.length||!u))throw new Error("Invalid control point reference in `shape()`.");let l=_o(a,r,i,o,!0);return u==="start"||!u&&!Vp(e)?[t[0]+l[0],t[1]+l[1]]:u==="end"?[n[0]+l[0],n[1]+l[1]]:l}function _o(e,t,n,r,i=!1){if(!e.length||e.length>4)throw new Error("Invalid position in `shape()`.");let o,s,a=[...e];for(let u=0;u<a.length;u++){let l=a[u];if(l==="left"||l==="right"||l==="x-start"||l==="x-end"){let f=a[u+1];if(f&&!xo(f)){let c=er(f,t,r);o=l==="left"||l==="x-start"?c:t-c,u++}else o=wo[l]*t}else if(l==="top"||l==="bottom"||l==="y-start"||l==="y-end"){let f=a[u+1];if(f&&!xo(f)){let c=er(f,n,r);s=l==="top"||l==="y-start"?c:n-c,u++}else s=So[l]*n}else if(l==="center")if(o===void 0)o=t/2;else if(s===void 0)s=n/2;else throw new Error("Invalid position in `shape()`.");else if(o===void 0)o=er(l,t,r);else if(s===void 0)s=er(l,n,r);else throw new Error("Invalid position in `shape()`.")}return!i&&e.length===1&&s===void 0&&(s=n/2),[o??(i?0:t/2),s??(i?0:n/2)]}function xo(e){return e in wo||e in So}function Vp(e){return e.some(xo)}function er(e,t,n){let r=K(e,n.fontSize,t,n,!0);if(typeof r>"u")throw new Error(`Invalid length \`${e}\` in \`shape()\`.`);return r}function Vt(e){return`${It(e[0])},${It(e[1])}`}var Ar={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/,shape:/shape\((.+)\)/};function Qu({width:e,height:t},n,r){function i(f){let c=f.match(Ar.circle);if(!c)return null;let[,h]=c,[m,g=""]=h.split("at").map(_=>_.trim()),{x:y,y:x}=Ku(g,e,t);return{type:"circle",r:K(m,r.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),r,!0),cx:K(y,r.fontSize,e,r,!0),cy:K(x,r.fontSize,t,r,!0)}}function o(f){let c=f.match(Ar.ellipse);if(!c)return null;let[,h]=c,[m,g=""]=h.split("at").map(T=>T.trim()),[y,x]=m.split(" "),{x:_,y:E}=Ku(g,e,t);return{type:"ellipse",rx:K(y||"50%",r.fontSize,e,r,!0),ry:K(x||"50%",r.fontSize,t,r,!0),cx:K(_,r.fontSize,e,r,!0),cy:K(E,r.fontSize,t,r,!0)}}function s(f){let c=f.match(Ar.path);if(!c)return null;let[h,m]=Xu(c[1]);return{type:"path",d:m,"fill-rule":h}}function a(f){let c=f.match(Ar.polygon);if(!c)return null;let[h,m]=Xu(c[1]);return{type:"polygon","fill-rule":h,points:m.split(",").map(g=>g.split(" ").map((y,x)=>K(y,r.fontSize,x===0?e:t,r,!0)).join(" ")).join(",")}}function u(f){let c=f.match(Ar.inset);if(!c)return null;let[h,m]=(c[1].includes("round")?c[1]:`${c[1].trim()} round 0`).split("round"),g=Yu("borderRadius",m,!0),y=Object.values(g).map(P=>String(P)).map((P,S)=>K(P,r.fontSize,S===0||S===2?t:e,r,!0)||0),x=Object.values(Yu("margin",h,!0)).map(P=>String(P)).map((P,S)=>K(P,r.fontSize,S===0||S===2?t:e,r,!0)||0),_=x[3],E=x[0],T=e-(x[1]+x[3]),R=t-(x[0]+x[2]);return y.some(P=>P>0)?{type:"path",d:Zt({left:_,top:E,width:T,height:R},{...n,...g})}:{type:"rect",x:_,y:E,width:T,height:R}}function l(f){return Ar.shape.test(f)?Hu(f,e,t,r):null}return{parseCircle:i,parseEllipse:o,parsePath:s,parsePolygon:a,parseInset:u,parseShape:l}}function Xu(e){let[,t="nonzero",n]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,n]}function Ku(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 gi(e){return`satori_cp-${e}`}function Ju(e){return`url(#${gi(e)})`}function Zu(e,t,n){if(t.clipPath==="none")return"";let r=Qu(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 I("clipPath",{id:gi(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},I(s,a))}return""}function Eo({left:e,top:t,width:n,height:r,path:i,matrix:o,id:s,currentClipPath:a,src:u},l,f){let c="",h=l.clipPath&&l.clipPath!=="none"?Zu({left:e,top:t,width:n,height:r,path:i,id:s,matrix:o,currentClipPath:a,src:u},l,f):"";if(l.overflow!=="hidden"&&!u)c="";else{let g=h?`satori_ocp-${s}`:gi(s);c=I("clipPath",{id:g,"clip-path":a},I(i?"path":"rect",{x:e,y:t,width:n,height:r,d:i||void 0,transform:l.overflow==="hidden"&&l.transform&&o?o:void 0}))}let m=yo({id:`satori_om-${s}`,left:e,top:t,width:n,height:r,matrix:o,borderOnly:!u},l);return h+c+m}var Hp=e=>`satori_mi-${e}`;async function To(e,t,n){if(!t.maskImage)return["",""];let{left:r,top:i,width:o,height:s,id:a}=e,u=t.maskImage,l=u.length;if(!l)return["",""];let f=Hp(a),c="";for(let h=0;h<l;h++){let m=u[h],[g,y]=await Jr({id:`${f}-${h}`,left:r,top:i,width:o,height:s},m,n,"mask");c+=y+I("rect",{x:r,y:i,width:o,height:s,fill:`url(#${g})`})}return c=I("mask",{id:f},c),[f,c]}function el({id:e,left:t,top:n,width:r,height:i,path:o,type:s,matrix:a,currentClipPath:u,mask:l,filters:f}){if(!f.length)return["",""];let c=`satori_bf-${e}`,h=`satori_bfc-${e}`,m=Xp(f),g="BackgroundImage",y="";f.forEach((E,T)=>{let R=`${c}-${T}`;y+=Yp(E,g,R),g=R});let x=I("filter",{id:c,x:t-m.left,y:n-m.top,width:r+m.left+m.right,height:i+m.top+m.bottom,filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},y)+I("clipPath",{id:h,"clip-path":u},I(s,{x:t,y:n,width:r,height:i,d:o||void 0,transform:a||void 0})),_=I(s,{x:t,y:n,width:r,height:i,d:o||void 0,fill:"#000",transform:a||void 0,filter:`url(#${c})`,"clip-path":`url(#${h})`,mask:l});return[x,_]}function Yp(e,t,n){if(e.type==="blur")return I("feGaussianBlur",{in:t,stdDeviation:e.value,result:n});if(e.type==="hue-rotate")return I("feColorMatrix",{in:t,type:"hueRotate",values:e.value,result:n});if(e.type==="saturate"||e.type==="grayscale")return I("feColorMatrix",{in:t,type:"saturate",values:e.type==="grayscale"?1-e.value:e.value,result:n});if(e.type==="sepia"){let s=e.value,a=1-s;return I("feColorMatrix",{in:t,type:"matrix",values:[a+.393*s,.769*s,.189*s,0,0,.349*s,a+.686*s,.168*s,0,0,.272*s,.534*s,a+.131*s,0,0,0,0,0,1,0].join(" "),result:n})}if(e.type==="drop-shadow"){let s=`${n}-input`;return I("feComposite",{in:t,in2:"SourceAlpha",operator:"in",result:s})+I("feDropShadow",{in:s,dx:e.offsetX,dy:e.offsetY,stdDeviation:e.blurRadius,"flood-color":e.color,result:n})}let r=e.value,i=e.type==="brightness"?{slope:r}:e.type==="contrast"?{slope:r,intercept:.5-.5*r}:e.type==="invert"?{slope:1-2*r,intercept:r}:{slope:r},o=e.type==="opacity"?["A"]:["R","G","B"];return I("feComponentTransfer",{in:t,result:n},o.map(s=>I(`feFunc${s}`,{type:"linear",...i})).join(""))}function Xp(e){let t=0,n=0,r=0,i=0;for(let o of e)if(o.type==="blur"){let s=o.value*3;t=Math.max(t,s),n=Math.max(n,s),r=Math.max(r,s),i=Math.max(i,s)}else if(o.type==="drop-shadow"){let s=o.blurRadius*3;t=Math.max(t,s-o.offsetX),n=Math.max(n,s-o.offsetY),r=Math.max(r,s+o.offsetX),i=Math.max(i,s+o.offsetY)}return{left:t,top:n,right:r,bottom:i}}function Kp(e,t,n){let r=e.toLowerCase().trim().split(/\s+/),i=(u,l)=>({left:"0%",center:"50%",right:"100%",top:"0%",bottom:"100%"})[u]||u,o,s;if(r.length===1){let u=r[0];u==="left"||u==="center"||u==="right"?(o=i(u,"x"),s="50%"):u==="top"||u==="bottom"?(o="50%",s=i(u,"y")):(o=u,s="50%")}else{let u=r[0],l=r[1];u==="top"||u==="bottom"?(s=i(u,"y"),l==="left"||l==="right"||l==="center"?o=i(l,"x"):(o="50%",s=u==="top"||u==="bottom"?i(u,"y"):l)):(o=i(u,"x"),s=i(l,"y"))}let a=(u,l)=>{try{if(u.endsWith("%"))return l*parseFloat(u)/100;let f=new wt(u);return f.type==="length"||f.type==="number"?f.value:0}catch{return 0}};return[a(o,t),a(s,n)]}async function en({id:e,left:t,top:n,width:r,height:i,isInheritingTransform:o,src:s,debug:a},u,l){if(u.display==="none")return"";let f=!!s,c="rect",h="",m="",g=[],y=1,x="";u.backgroundColor&&g.push(u.backgroundColor),u.opacity!==void 0&&(y=+u.opacity),u.transform&&(h=Qr({left:t,top:n,width:r,height:i},u.transform,o,u.transformOrigin));let _="";if(u.backgroundImage){let J=[];for(let xe=0;xe<u.backgroundImage.length;xe++){let qe=u.backgroundImage[xe],Be=await Jr({id:e+"_"+xe,width:r,height:i,left:t,top:n},qe,l);Be&&J.unshift(Be)}for(let xe of J)g.push(`url(#${xe[0]})`),m+=xe[1],xe[2]&&(_+=xe[2])}let[E,T]=await To({id:e,left:t,top:n,width:r,height:i},u,l);m+=T;let R=E?`url(#${E})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,P=Zt({left:t,top:n,width:r,height:i},u);P&&(c="path");let S=u._inheritedClipPathId;a&&(x=I("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:h||void 0,"clip-path":S?`url(#${S})`:void 0}));let{backgroundClip:A,filter:C}=u,G=A==="text"?`url(#satori_bct-${e})`:S?`url(#${S})`:u.clipPath?Ju(e):void 0,V=Eo({left:t,top:n,width:r,height:i,path:P,id:e,matrix:h,currentClipPath:G,src:s},u,l),[ee,re]=el({id:e,left:t,top:n,width:r,height:i,path:P,type:c,matrix:h||void 0,currentClipPath:G,mask:R,filters:u._backdropFilters||[]});m+=ee;let pe=y!==1&&!f&&g.length===1&&!re&&!_&&!C&&!R&&!u.boxShadow&&!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth),ce=g.map(J=>I(c,{x:t,y:n,width:r,height:i,fill:J,"fill-opacity":pe?y:void 0,d:P||void 0,transform:h||void 0,"clip-path":u.transform?void 0:G,style:C?`filter:${C}`:void 0,mask:u.transform?void 0:R})).join(""),Ke=ju({id:e,left:t,top:n,width:r,height:i,currentClipPathId:S,borderPath:P,borderType:c},u),Pe;if(f){let J=(u.borderLeftWidth||0)+(u.paddingLeft||0),xe=(u.borderTopWidth||0)+(u.paddingTop||0),qe=(u.borderRightWidth||0)+(u.paddingRight||0),Be=(u.borderBottomWidth||0)+(u.paddingBottom||0),Oe=r-J-qe,ne=i-xe-Be,at=(u.objectPosition||"center").toString(),[Re,j]=Kp(at,Oe,ne),q=u.__naturalWidth||Oe,he=u.__naturalHeight||ne,Ae,Ie=Oe,Le=ne,ue=t+J,Qe=n+xe;if(u.objectFit==="contain"){let rt=Oe/q,Me=ne/he,ge=Math.min(rt,Me);Ie=q*ge,Le=he*ge,ue=t+J+Re-Ie*Re/Oe,Qe=n+xe+j-Le*j/ne,Ae="none"}else if(u.objectFit==="cover"){let rt=Oe/q,Me=ne/he,ge=Math.max(rt,Me);Ie=q*ge,Le=he*ge,ue=t+J+Re-Ie*Re/Oe,Qe=n+xe+j-Le*j/ne,Ae="none"}else if(u.objectFit==="fill")Ae="none";else if(u.objectFit==="scale-down")if(q&&he){let rt=Oe/q,Me=ne/he,ge=Math.min(rt,Me);if(ge>=1)Ie=q,Le=he,Ae="none",ue=t+J+Re-Ie*Re/Oe,Qe=n+xe+j-Le*j/ne;else{let ze=ge;Ie=q*ze,Le=he*ze,ue=t+J+Re-Ie*Re/Oe,Qe=n+xe+j-Le*j/ne,Ae="none"}}else{let rt=Oe/q,Me=ne/he,ge=Math.min(rt,Me);Ie=q*ge,Le=he*ge,ue=t+J+Re-Ie*Re/Oe,Qe=n+xe+j-Le*j/ne,Ae="none"}else Ae="none";u.transform&&(Pe=zu({id:e,borderRadiusPath:P,borderType:c,left:t,top:n,width:r,height:i},u)),ce+=I("image",{x:ue,y:Qe,width:Ie,height:Le,href:s,preserveAspectRatio:Ae,transform:h||void 0,style:C?`filter:${C}`:void 0,"clip-path":u.transform?Pe?`url(#${Pe[1]})`:void 0:`url(#satori_cp-${e})`,mask:u.transform?void 0:E?`url(#${E})`:`url(#satori_om-${e})`})}if(Ke){m+=Ke[0];let J=Ke[1];ce+=Zr({left:t,top:n,width:r,height:i,props:{transform:h||void 0,"clip-path":`url(#${J})`}},u)}let we=Cu({width:r,height:i,id:e,opacity:y,shape:I(c,{x:t,y:n,width:r,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:P||void 0,transform:h||void 0,"clip-path":G,mask:R})},u),De=re+(_||ce);return u.transform&&(G||R)&&(De=I("g",{"clip-path":G||void 0,mask:R||void 0},De)),y!==1&&!pe&&(De=I("g",{opacity:y},De)),(m?I("defs",{},m):"")+(we?we[0]:"")+(Pe?Pe[0]:"")+V+De+(we?we[1]:"")+x}var rl=String.raw,tl=rl`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,nl=()=>new RegExp(rl`\p{RI}{2}|(?)${tl}(?:\u200D${tl})*`,"gu");var Qp=new RegExp(nl(),"u"),ko={emoji:Qp,symbol:/\p{Symbol}/u,math:/\p{Math}/u},Po={"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},bi=Object.keys({...Po,...ko});function il(e){return bi.includes(e)}function ol(e,t){for(let r of Object.keys(ko))if(ko[r].test(e))return[r];let n=Object.keys(Po).filter(r=>Po[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 sl(e){if(e)return bi.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*tn(e,t){var at,Re;let n=await Qt(),{id:r,inheritedStyle:i,parent:o,font:s,debug:a,locale:u,embedFont:l=!0,graphemeImages:f,canLoadAdditionalAssets:c,getTwStyles:h}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!Sr(e)||Fa(e.type)){let j;if(!Sr(e))j=mo(String(e),t),yield(await j.next()).value;else{if(Ma(e.type))throw new Error("Class component is not supported.");let he;ji(e.type)?he=e.type.render:he=e.type,j=tn(await he(e.props),t),yield(await j.next()).value}await j.next();let q=yield;return(await j.next(q)).value}let{type:m,props:g}=e,y=m;if(g&&Na(g))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:x,children:_,tw:E,lang:T=u}=g||{},R=sl(T);if(E){let j=h(E,x);x=Object.assign(j,x)}let P=n.Node.create();o.insertChild(P,o.getChildCount());let[S,A]=await uo(P,y,i,x,g,t.replacedElements),C=S.transform===i.transform;if(C||(S.transform.__parent=i.transform),(S.overflow==="hidden"||S.clipPath&&S.clipPath!=="none")&&(A._inheritedClipPathId=`satori_cp-${r}`,A._inheritedMaskId=`satori_om-${r}`),S.maskImage&&(A._inheritedMaskId=`satori_mi-${r}`),S.backgroundClip==="text"){let j={value:""};A._inheritedBackgroundClipTextPath=j,S._inheritedBackgroundClipTextPath=j,S.backgroundImage&&(A._inheritedBackgroundClipTextHasBackground="true",S._inheritedBackgroundClipTextHasBackground="true")}let G=!!((at=t.replacedElements)!=null&&at[y]),V=G?[]:Da(_),ee=[],re=0,pe=[];for(let j of V){let q=tn(j,{id:r+"-"+re++,parentStyle:S,inheritedStyle:A,isInheritingTransform:!0,parent:P,font:s,embedFont:l,debug:a,graphemeImages:f,canLoadAdditionalAssets:c,locale:R,getTwStyles:h,onNodeDetected:t.onNodeDetected,replacedElements:t.replacedElements});c?pe.push(...(await q.next()).value||[]):await q.next(),ee.push(q)}yield pe;for(let j of ee)await j.next();let[ce,Ke]=yield,{left:Pe,top:we,width:De,height:J}=P.getComputedLayout();Pe+=ce,we+=Ke;let xe="",qe="",Be="",{children:Oe,...ne}=g;if((Re=t.onNodeDetected)==null||Re.call(t,{left:Pe,top:we,width:De,height:J,type:y,props:ne,key:e.key,textContent:Sr(Oe)?void 0:Oe}),y==="img"||G){let j=S.__src;qe=await en({id:r,left:Pe,top:we,width:De,height:J,src:j,isInheritingTransform:C,debug:a},S,A)}else if(y==="svg"){let j=S.color,q=await gu(e,j);qe=await en({id:r,left:Pe,top:we,width:De,height:J,src:q,isInheritingTransform:C,debug:a},S,A)}else{let j=x==null?void 0:x.display;if(y==="div"&&_&&typeof _!="string"&&j!=="flex"&&j!=="none"&&j!=="contents")throw new Error('Expected <div> to have explicit "display: flex", "display: contents", or "display: none" if it has more than one child node.');qe=await en({id:r,left:Pe,top:we,width:De,height:J,isInheritingTransform:C,debug:a},S,A)}for(let j of ee)xe+=(await j.next([Pe,we])).value;return S._inheritedBackgroundClipTextPath&&(Be+=I("clipPath",{id:`satori_bct-${r}`,"clip-path":S._inheritedClipPathId?`url(#${S._inheritedClipPathId})`:void 0},S._inheritedBackgroundClipTextPath.value)),Be+qe+xe}import vi from"@shuding/opentype.js";import{inflateSync as eh}from"fflate";import Jp from"harfbuzzjs";var pt=null,yi=null,Oo=new WeakMap,Ro=typeof FinalizationRegistry=="function"?new FinalizationRegistry(e=>e.destroy()):null;async function al(){if(!pt){if(yi){await yi;return}yi=(async()=>{if(pt=await Jp,!pt||typeof pt.createBlob!="function")throw new Error("HarfBuzz module loaded but API is not available")})(),await yi}}function Zp(e){if(!pt)throw new Error("HarfBuzz not initialized. Call initHarfBuzz() first.");if(Oo.has(e))return Oo.get(e);let t=e._rawFontData;if(!t)throw new Error("Font does not have _rawFontData. Make sure to store the original ArrayBuffer when loading fonts.");let n=pt.createBlob(new Uint8Array(t)),r=pt.createFace(n,0),i=pt.createFont(r);r.destroy(),n.destroy();let o=e.unitsPerEm;return i.setScale(o,o),Oo.set(e,i),Ro==null||Ro.register(e,i),i}function ul(e,t,n={}){if(!pt)throw new Error("HarfBuzz not initialized");if(!t||t.length===0)return[];let{features:r,language:i,script:o,direction:s}=n,a=Zp(e),u=pt.createBuffer();try{u.addText(t),u.guessSegmentProperties(),i&&u.setLanguage(i),o&&u.setScript(o),s&&u.setDirection(s);let l;if(r&&Object.keys(r).length>0){let c=[];for(let[h,m]of Object.entries(r))typeof m=="boolean"?c.push(m?`+${h}`:`-${h}`):c.push(`${h}=${m}`);l=c.join(",")}return l?pt.shape(a,u,l):pt.shape(a,u),u.json(a)}finally{u.destroy()}}function ll(e){if(!e||e==="normal")return{};let t={},n=e.split(",").map(r=>r.trim());for(let r of n){let i=r.match(/["']([a-z0-9]{4})["']\s*(?:(on|off|[0-9]+))?/i);if(i){let o=i[1],s=i[2];if(!s||s==="on"||s==="1")t[o]=!0;else if(s==="off"||s==="0")t[o]=!1;else{let a=parseInt(s,10);isNaN(a)||(t[o]=a)}}}return t}var th=256;function rh(e){return/^\s$/.test(e)}function nh(e,t){if(!e)return[];let n=Fe(e,"grapheme"),r=[],i="",o=null;for(let s of n){let a;rh(s)&&o!==null&&o.charToGlyphIndex(s)?a=o:a=t(s),o===null?(o=a,i=s):a===o?i+=s:(r.push([i,o]),i=s,o=a)}return i&&o&&r.push([i,o]),r}function ih(e){let t=new DataView(e),n=t.getUint16(12),r=t.getUint32(16),i=new ArrayBuffer(r),o=new DataView(i),s=new Uint8Array(i);o.setUint32(0,t.getUint32(4)),o.setUint16(4,n);let a=Math.floor(Math.log2(n)),u=(1<<a)*16;o.setUint16(6,u),o.setUint16(8,a),o.setUint16(10,n*16-u);let l=12+n*16;for(let f=0;f<n;f++){let c=44+f*20,h=t.getUint32(c),m=t.getUint32(c+4),g=t.getUint32(c+8),y=t.getUint32(c+12),x=t.getUint32(c+16),_=12+f*16;if(o.setUint32(_,h),o.setUint32(_+4,x),o.setUint32(_+8,l),o.setUint32(_+12,y),g<y){let E=new Uint8Array(e,m+2,g-2),T=new Uint8Array(y);eh(E,T),s.set(T,l)}else s.set(new Uint8Array(e,m,y),l);l+=y+3&-4}return i}var fl="unknown";function oh(e){let t=[],n=[0,0],r=[0,0],i=(o,s)=>{let a=o[0];for(let u=1;u<=s;u++){let l=u/s,f=sh(o,l);t.push({from:a,to:f}),a=f}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 sh(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 ah(e,t){if(!t)return[];let n=t.strokeWidth,r=t.underlineY-n*.25,i=t.underlineY+n*2.5,o=oh(e);if(!o.length)return[];let s=i-r,a=Math.max(12,Math.ceil(s/.25)),u=s/a,l=r+u/2,f=new Set;for(let T=0;T<a;T++){let R=l+u*T,P=[];for(let S of o){let[A,C]=S.from,[G,V]=S.to;if(C===V)continue;let ee=Math.min(C,V),re=Math.max(C,V);if(R<ee||R>=re)continue;let pe=(R-C)/(V-C),ce=A+(G-A)*pe;P.push(ce)}if(P.length){P.sort((S,A)=>S-A);for(let S=0;S<P.length-1;S+=2){let A=Math.min(P[S],P[S+1]),C=Math.max(P[S],P[S+1]),G=Math.floor(A),V=Math.ceil(C);for(let ee=G;ee<V;ee++)f.add(ee)}}}if(!f.size)return[];let c=Array.from(f.values()).sort((T,R)=>T-R),h=[],m=c[0],g=c[0];for(let T=1;T<c.length;T++){let R=c[T];R>g+1&&(h.push([m,g+1]),m=R),g=R}h.push([m,g+1]);let y=[],x=n*.6,_=h[0][0],E=h[h.length-1][1];for(let[T,R]of h){let P=Math.min(T,_)-x,S=Math.max(R,E)+x;y.push({x1:P,x2:S,y1:r,y2:i})}return y}function uh(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 Ao=new WeakMap,rn=class{constructor(t){this.fonts=new Map;this.shapedRunCache=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,[,l,f]=i[s];uh(n,r,[a,u],[l,f])>0&&(o=i[s])}return o[0]}addFonts(t){t.length&&this.fonts.size&&this.shapedRunCache.clear();for(let n of t){let{name:r,data:i,lang:o}=n;if(o&&!il(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${bi.join(", ")}.`);let s=o??fl,a;if(Ao.has(i))a=Ao.get(i);else{let l="buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i;a=vi.parse(l,{lowMemory:!0});let f=new Uint8Array(l),c=f[0]===119&&f[1]===79&&f[2]===70&&f[3]===70;a._rawFontData=c?ih(l):l;let h=a.charToGlyphIndex;a.charToGlyphIndex=m=>{let g=h.call(a,m);return g===0&&a._trackBrokenChars&&a._trackBrokenChars.push(m),g},Ao.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(S=>S.toLowerCase());let a=[];r.forEach(S=>{let A=this.get({name:S,weight:i,style:o});if(A){a.push(A);return}let C=this.get({name:S+"_unknown",weight:i,style:o});if(C){a.push(C);return}});let u=Array.from(this.fonts.keys()),l=[],f=[],c=[];for(let S of u)if(!r.includes(S))if(s){let A=lh(S);A?A===s?l.push(this.get({name:S,weight:i,style:o})):f.push(this.get({name:S,weight:i,style:o})):c.push(this.get({name:S,weight:i,style:o}))}else c.push(this.get({name:S,weight:i,style:o}));let h=new Map,m=(S,A=!0)=>{let C=[...a,...c,...l,...A?f:[]];if(typeof S>"u")return A?C[C.length-1]:void 0;let G=S.charCodeAt(0);if(h.has(G))return h.get(G);let V=C.find((ee,re)=>!!ee.charToGlyphIndex(S)||A&&re===C.length-1);return V&&h.set(G,V),V},g=(S,A=!1)=>{var G,V;return((A?(V=(G=S.tables)==null?void 0:G.os2)==null?void 0:V.sTypoAscender:0)||S.ascender)/S.unitsPerEm*t},y=(S,A=!1)=>{var G,V;return((A?(V=(G=S.tables)==null?void 0:G.os2)==null?void 0:V.sTypoDescender:0)||S.descender)/S.unitsPerEm*t},x=(S,A=!1)=>{var C,G;if(typeof n=="string"&&n==="normal"){let V=(A?(G=(C=S.tables)==null?void 0:C.os2)==null?void 0:G.sTypoLineGap:0)||0;return g(S,A)-y(S,A)+V/S.unitsPerEm*t}else if(typeof n=="number")return t*n},_=S=>m(S,!1),E=this.shapedRunCache,T=`${r.join(",")}|${i}|${o}|${s||""}`,R=(S,A)=>{let C=`${T}\0${A||""}\0${S}`,G=E.get(C);if(G!==void 0)return E.delete(C),E.set(C,G),G;let V=A?ll(A):{},ee=nh(S,m).map(([re,pe])=>[re,pe,ul(pe,re,{features:V})]);if(E.size>=th){let re=E.keys().next().value;re!==void 0&&E.delete(re)}return E.set(C,ee),ee};return{has:S=>{if(S===`
|
|
7
|
+
`)return!0;let A=_(S);if(!A)return!1;for(let C of Fe(S,"grapheme"))if(!A.charToGlyphIndex(C))return!1;return!0},baseline:(S,A=typeof S>"u"?a[0]:m(S))=>{let C=g(A),G=y(A),V=C-G;return C+(x(A)-V)/2},height:(S,A=typeof S>"u"?a[0]:m(S))=>x(A),measure:(S,A)=>this.measure(S,A,R),getSVG:(S,A,C)=>this.getSVG(S,A,R,C)}}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 l=r.shift(),f=n(l);if(f!==t){let c=f.charToGlyph(l),h=t.unitsPerEm/f.unitsPerEm,m=new vi.Path;m.unitsPerEm=t.unitsPerEm,m.commands=c.path.commands.map(y=>{let x={...y};for(let _ in x)typeof x[_]=="number"&&(x[_]*=h);return x});let g=new vi.Glyph({...c,advanceWidth:c.advanceWidth*h,xMin:c.xMin*h,xMax:c.xMax*h,yMin:c.yMin*h,yMax:c.yMax*h,path:m});a[u]=g}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,{fontSize:n,letterSpacing:r=0,fontFeatureSettings:i},o){let s=o(t,i),a=0,u=0;for(let[,f,c]of s){let h=0;for(let m of c)h+=m.ax;a+=h/f.unitsPerEm*n,u+=c.length}let l=r*Math.max(0,u-1);return a+l}getSVG(t,{fontSize:n,top:r,left:i,letterSpacing:o=0,fontFeatureSettings:s},a,u){if(n===0)return{path:"",boxes:[]};let l=a(t.replace(/\n/g,""),s),f=[],c=i,h=r,m=!1,g=new vi.Path;for(let[,y,x]of l){let _=n/y.unitsPerEm;for(let E=0;E<x.length;E++){let T=x[E];m&&(c+=o);let R=y.glyphs.get(T.g);if(R&&R.path){let P=c+T.dx*_,S=h+T.dy*_,A=R.getPath(P,S,n,{}),C=u?ah(A.commands,u):[];C.length&&f.push(...C),g.extend(A)}c+=T.ax*_,m=!0}}return{path:g.toPathData(1),boxes:f}}};function lh(e){let t=e.split("_"),n=t[t.length-1];return n===fl?void 0:n}function Io({width:e,height:t,content:n}){return I("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg","enable-background":n.includes('in="BackgroundImage"')?"new":void 0},n)}var Gc=id(wc());var Xy=["ios","android","windows","macos","web"];function _c(e){return Xy.includes(e)}var Ky=["portrait","landscape"];function Ec(e){return Ky.includes(e)}var Sc;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(Sc||(Sc={}));var ae;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(ae||(ae={}));function na(e){return typeof e=="string"}function ia(e){return typeof e=="object"}var oa;function k(e){return{kind:"complete",style:e}}function Ne(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[o="",s=""]=e.split("/",2),a=Ne(o),u=Ne(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,ae.none];switch(i==null?void 0:i[1]){case"rem":return[r,ae.rem];case"px":return[r,ae.px];case"em":return[r,ae.em];case"%":return[r,ae.percent];case"vw":return[r,ae.vw];case"vh":return[r,ae.vh];default:return null}}function Xt(e,t,n={}){let r=Lt(t,n);return r===null?null:k({[e]:r})}function Di(e,t,n){let r=Lt(t);return r!==null&&(n[e]=r),n}function kc(e,t){let n=Lt(t);return n===null?null:{[e]:n}}function Lt(e,t={}){if(e===void 0)return null;let n=Ne(String(e),t);return n?ir(...n,t):null}function ir(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case ae.rem:return e*16*(r?-1:1);case ae.px:return e*(r?-1:1);case ae.percent:return`${r?"-":""}${e}%`;case ae.none:return e*(r?-1:1);case ae.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(tt("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case ae.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(tt("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function sa(e){let t=Ne(e);if(!t)return null;let[n,r]=t;switch(r){case ae.rem:return n*16;case ae.px:return n;default:return null}}var Qy={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function aa(e){return Qy[e??""]||"All"}function ua(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=aa(i),"")),t]}function gr(e,t={}){if(e.includes("/")){let n=Tc(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),Tc(e,t)}function yt(e,t,n={}){let r=gr(t,n);return r===null?null:k({[e]:r})}function Tc(e,t={}){if(e==="px")return 1;let n=Ne(e,t);if(!n)return null;let[r,i]=n;return t.fractions&&(i=ae.percent,r*=100),i===ae.none&&(r=r/4,i=ae.rem),ir(r,i,t)}function Jy(...e){console.warn(...e)}function Zy(...e){}var tt=typeof process>"u"||((oa=process==null?void 0:process.env)===null||oa===void 0?void 0:oa.JEST_WORKER_ID)===void 0?Jy:Zy;var ev=[["aspect-square",k({aspectRatio:1})],["aspect-video",k({aspectRatio:16/9})],["items-center",k({alignItems:"center"})],["items-start",k({alignItems:"flex-start"})],["items-end",k({alignItems:"flex-end"})],["items-baseline",k({alignItems:"baseline"})],["items-stretch",k({alignItems:"stretch"})],["justify-start",k({justifyContent:"flex-start"})],["justify-end",k({justifyContent:"flex-end"})],["justify-center",k({justifyContent:"center"})],["justify-between",k({justifyContent:"space-between"})],["justify-around",k({justifyContent:"space-around"})],["justify-evenly",k({justifyContent:"space-evenly"})],["content-start",k({alignContent:"flex-start"})],["content-end",k({alignContent:"flex-end"})],["content-between",k({alignContent:"space-between"})],["content-around",k({alignContent:"space-around"})],["content-stretch",k({alignContent:"stretch"})],["content-center",k({alignContent:"center"})],["self-auto",k({alignSelf:"auto"})],["self-start",k({alignSelf:"flex-start"})],["self-end",k({alignSelf:"flex-end"})],["self-center",k({alignSelf:"center"})],["self-stretch",k({alignSelf:"stretch"})],["self-baseline",k({alignSelf:"baseline"})],["direction-inherit",k({direction:"inherit"})],["direction-ltr",k({direction:"ltr"})],["direction-rtl",k({direction:"rtl"})],["hidden",k({display:"none"})],["flex",k({display:"flex"})],["flex-row",k({flexDirection:"row"})],["flex-row-reverse",k({flexDirection:"row-reverse"})],["flex-col",k({flexDirection:"column"})],["flex-col-reverse",k({flexDirection:"column-reverse"})],["flex-wrap",k({flexWrap:"wrap"})],["flex-wrap-reverse",k({flexWrap:"wrap-reverse"})],["flex-nowrap",k({flexWrap:"nowrap"})],["flex-auto",k({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",k({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",k({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",k({overflow:"hidden"})],["overflow-visible",k({overflow:"visible"})],["overflow-scroll",k({overflow:"scroll"})],["absolute",k({position:"absolute"})],["relative",k({position:"relative"})],["italic",k({fontStyle:"italic"})],["not-italic",k({fontStyle:"normal"})],["oldstyle-nums",Mn("oldstyle-nums")],["small-caps",Mn("small-caps")],["lining-nums",Mn("lining-nums")],["tabular-nums",Mn("tabular-nums")],["proportional-nums",Mn("proportional-nums")],["font-thin",k({fontWeight:"100"})],["font-100",k({fontWeight:"100"})],["font-extralight",k({fontWeight:"200"})],["font-200",k({fontWeight:"200"})],["font-light",k({fontWeight:"300"})],["font-300",k({fontWeight:"300"})],["font-normal",k({fontWeight:"normal"})],["font-400",k({fontWeight:"400"})],["font-medium",k({fontWeight:"500"})],["font-500",k({fontWeight:"500"})],["font-semibold",k({fontWeight:"600"})],["font-600",k({fontWeight:"600"})],["font-bold",k({fontWeight:"bold"})],["font-700",k({fontWeight:"700"})],["font-extrabold",k({fontWeight:"800"})],["font-800",k({fontWeight:"800"})],["font-black",k({fontWeight:"900"})],["font-900",k({fontWeight:"900"})],["include-font-padding",k({includeFontPadding:!0})],["remove-font-padding",k({includeFontPadding:!1})],["max-w-none",k({maxWidth:"99999%"})],["text-left",k({textAlign:"left"})],["text-center",k({textAlign:"center"})],["text-right",k({textAlign:"right"})],["text-justify",k({textAlign:"justify"})],["text-auto",k({textAlign:"auto"})],["underline",k({textDecorationLine:"underline"})],["line-through",k({textDecorationLine:"line-through"})],["no-underline",k({textDecorationLine:"none"})],["uppercase",k({textTransform:"uppercase"})],["lowercase",k({textTransform:"lowercase"})],["capitalize",k({textTransform:"capitalize"})],["normal-case",k({textTransform:"none"})],["w-auto",k({width:"auto"})],["h-auto",k({height:"auto"})],["shadow-sm",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",k({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],la=ev;function Mn(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var Fn=class{constructor(t){this.ir=new Map(la),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...la,...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 fa(e,t,n={}){let r=t==null?void 0:t[e];if(!r)return yt("fontSize",e,n);if(typeof r=="string")return Xt("fontSize",r);let i={},[o,s]=r,a=kc("fontSize",o);if(a&&(i=a),typeof s=="string")return k(Di("lineHeight",Pc(s,i),i));let{lineHeight:u,letterSpacing:l}=s;return u&&Di("lineHeight",Pc(u,i),i),l&&Di("letterSpacing",l,i),k(i)}function Pc(e,t){let n=Ne(e);if(n){let[r,i]=n;if((i===ae.none||i===ae.em)&&typeof t.fontSize=="number")return t.fontSize*r}return e}function ca(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=Ne(r);if(!i)return null;let[o,s]=i;if(s===ae.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=ir(o,s);return a!==null?k({lineHeight:a}):null}function da(e,t,n,r,i){let o="";if(r[0]==="[")o=r.slice(1,-1);else{let l=i==null?void 0:i[r];if(l)o=l;else{let f=gr(r);return f&&typeof f=="number"?Oc(f,ae.px,t,e):null}}if(o==="auto")return Rc(t,e,"auto");let s=Ne(o);if(!s)return null;let[a,u]=s;return n&&(a=-a),Oc(a,u,t,e)}function Oc(e,t,n,r){let i=ir(e,t);return i===null?null:Rc(n,r,i)}function Rc(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 pa(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,l=u.min?sa(u.min):0;l===null?tt(`invalid screen config value: ${o}->min: ${u.min}`):a[0]=l;let f=u.max?sa(u.max):1/0;return f===null?tt(`invalid screen config value: ${o}->max: ${u.max}`):a[1]=f,i[o]=a,i},{}),n=Object.values(t);n.sort((i,o)=>{let[s,a]=i,[u,l]=o;return a===1/0||l===1/0?s-u:a-l});let r=0;return n.forEach(i=>i[2]=r++),t}function ha(e,t){let n=t==null?void 0:t[e];if(!n)return null;if(typeof n=="string")return k({fontFamily:n});let r=n[0];return r?k({fontFamily:r}):null}function br(e,t,n){if(!n)return null;let r;t.includes("/")&&([t="",r]=t.split("/",2));let i="";if(t.startsWith("[#")||t.startsWith("[rgb")?i=t.slice(1,-1):i=Cc(t,n),!i)return null;if(r){let o=Number(r);if(!Number.isNaN(o))return i=Ac(i,o/100),k({[Wi[e].color]:i})}return{kind:"dependent",complete(o){let s=Wi[e].opacity,a=o[s];typeof a=="number"&&(i=Ac(i,a)),o[Wi[e].color]=i}}}function Nn(e,t){let n=parseInt(t,10);if(Number.isNaN(n))return null;let r=n/100;return{kind:"complete",style:{[Wi[e].opacity]:r}}}function Ac(e,t){return e.startsWith("#")?e=tv(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function Ic(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var Wi={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 tv(e){let t=e;e=e.replace(rv,(s,a,u,l)=>a+a+u+u+l+l);let n=nv.exec(e);if(!n)return tt(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let r=parseInt(n[1],16),i=parseInt(n[2],16),o=parseInt(n[3],16);return`rgba(${r}, ${i}, ${o}, 1)`}function Cc(e,t){let n=t[e];if(na(n))return n;if(ia(n)&&na(n.DEFAULT))return n.DEFAULT;let[r="",...i]=e.split("-");for(;r!==e;){let o=t[r];if(ia(o))return Cc(i.join("-"),o);if(i.length===0)return"";r=`${r}-${i.shift()}`}return""}var rv=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,nv=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function Mc(e,t){let[n,r]=ua(e);if(n.match(/^(-?(\d)+)?$/))return iv(n,r,t==null?void 0:t.borderWidth);if(n=n.replace(/^-/,""),["dashed","solid","dotted"].includes(n))return k({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=br(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),l=yt(a,u);return typeof(l==null?void 0:l.style[a])!="number"?null:l}function iv(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 Xt(o,i)}function Fc(e,t){if(!t)return null;let[n,r]=ua(e);n=n.replace(/^-/,""),n===""&&(n="DEFAULT");let i=`border${r==="All"?"":r}Radius`,o=t[n];if(o)return Lc(Xt(i,o));let s=yt(i,n);return typeof(s==null?void 0:s.style[i])!="number"?null:Lc(s)}function Lc(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 Fr(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=Lt(o,{isNegative:n});if(a!==null)return Nc(e,i,a)}let s=gr(t,{isNegative:n});return s!==null?Nc(e,i,s):null}function Nc(e,t,n){if(e!=="inset")return k({[e]:n});switch(t){case null:return k({top:n,left:n,right:n,bottom:n});case"y":return k({top:n,bottom:n});case"x":return k({left:n,right:n})}}function Dn(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:k({[`flex${e}`]:o})}function Dc(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 k({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return k({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let o=Lt((n=i[2])!==null&&n!==void 0?n:"");return o?k({flexGrow:Number(i[1]),flexBasis:o}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let o=Lt((r=i[3])!==null&&r!==void 0?r:"");return o?k({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function ma(e,t,n={},r){let i=r==null?void 0:r[t];return i!==void 0?Xt(e,i,n):yt(e,t,n)}function Wn(e,t,n={},r){let i=Lt(r==null?void 0:r[t],n);return i?k({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),yt(e,t,n))}function Wc(e,t,n){let r=n==null?void 0:n[e];if(r){let i=Ne(r,{isNegative:t});if(!i)return null;let[o,s]=i;if(s===ae.em)return ov(o);if(s===ae.percent)return tt("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=ir(o,s,{isNegative:t});return a!==null?k({letterSpacing:a}):null}return yt("letterSpacing",e,{isNegative:t})}function ov(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 $c(e,t){let n=t==null?void 0:t[e];if(n){let i=Ne(String(n));if(i)return k({opacity:i[0]})}let r=Ne(e);return r?k({opacity:r[0]/100}):null}function Bc(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function Uc(e){if(e.includes("/")){let[n="",r=""]=e.split("/",2),i=ga(n),o=ga(r);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=ga(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function ga(e){let t=gr(e);return typeof t=="number"?t:null}var Nr=class{constructor(t,n={},r,i,o){var s,a,u,l,f,c;this.config=n,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let h=t.trim().split(":"),m=[];h.length===1?this.string=t:(this.string=(s=h.pop())!==null&&s!==void 0?s:"",m=h),this.char=this.string[0];let g=pa((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let y of m)if(g[y]){let x=(u=g[y])===null||u===void 0?void 0:u[2];x!==void 0&&(this.order=((l=this.order)!==null&&l!==void 0?l:0)+x);let _=(f=i.windowDimensions)===null||f===void 0?void 0:f.width;if(_){let[E,T]=(c=g[y])!==null&&c!==void 0?c:[0,0];(_<=E||_>T)&&(this.isNull=!0)}else this.isNull=!0}else _c(y)?this.isNull=y!==o:Ec(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 l=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 f=aa(u[1]),c=da(l,f,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[l]);if(c)return c}}}if(this.consumePeeked("h-")&&(a=ma("height",this.rest,this.context,s==null?void 0:s.height),a)||this.consumePeeked("w-")&&(a=ma("width",this.rest,this.context,s==null?void 0:s.width),a)||this.consumePeeked("min-w-")&&(a=Wn("minWidth",this.rest,this.context,s==null?void 0:s.minWidth),a)||this.consumePeeked("min-h-")&&(a=Wn("minHeight",this.rest,this.context,s==null?void 0:s.minHeight),a)||this.consumePeeked("max-w-")&&(a=Wn("maxWidth",this.rest,this.context,s==null?void 0:s.maxWidth),a)||this.consumePeeked("max-h-")&&(a=Wn("maxHeight",this.rest,this.context,s==null?void 0:s.maxHeight),a)||this.consumePeeked("leading-")&&(a=ca(this.rest,s==null?void 0:s.lineHeight),a)||this.consumePeeked("text-")&&(a=fa(this.rest,s==null?void 0:s.fontSize,this.context),a||(a=br("text",this.rest,s==null?void 0:s.textColor),a)||this.consumePeeked("opacity-")&&(a=Nn("text",this.rest),a))||this.consumePeeked("font-")&&(a=ha(this.rest,s==null?void 0:s.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&tt("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=Xt("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=br("tint",this.rest,s==null?void 0:s.colors),a)||this.consumePeeked("bg-")&&(a=br("bg",this.rest,s==null?void 0:s.backgroundColor),a||this.consumePeeked("opacity-")&&(a=Nn("bg",this.rest),a))||this.consumePeeked("border")&&(a=Mc(this.rest,s),a||this.consumePeeked("-opacity-")&&(a=Nn("border",this.rest),a))||this.consumePeeked("rounded")&&(a=Fc(this.rest,s==null?void 0:s.borderRadius),a)||this.consumePeeked("bottom-")&&(a=Fr("bottom",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("top-")&&(a=Fr("top",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("left-")&&(a=Fr("left",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("right-")&&(a=Fr("right",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("inset-")&&(a=Fr("inset",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=Dn("Grow",this.rest,s==null?void 0:s.flexGrow):this.consumePeeked("shrink")?a=Dn("Shrink",this.rest,s==null?void 0:s.flexShrink):a=Dc(this.rest,s==null?void 0:s.flex),a)||this.consumePeeked("grow")&&(a=Dn("Grow",this.rest,s==null?void 0:s.flexGrow),a)||this.consumePeeked("shrink")&&(a=Dn("Shrink",this.rest,s==null?void 0:s.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=Nn("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=Bc(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=Uc(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=yt("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=br("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 k({elevation:u})}if(this.consumePeeked("opacity-")&&(a=$c(this.rest,s==null?void 0:s.opacity),a)||this.consumePeeked("tracking-")&&(a=Wc(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 k({zIndex:u})}return tt(`\`${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,l=Ne(a,this.context);if(l===null)return this.isNull=!0,!0;let[f,c]=l;return c!=="px"&&(this.isNull=!0),(o==="min"?u>=f:u<=f)?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 qc(e){let t=[],n=null;return e.forEach(r=>{if(typeof r=="string")t=[...t,...ba(r)];else if(Array.isArray(r))t=[...t,...r.flatMap(ba)];else if(typeof r=="object"&&r!==null)for(let[i,o]of Object.entries(r))typeof o=="boolean"?t=[...t,...o?ba(i):[]]:n?n[i]=o:n={[i]:o}}),[t.filter(Boolean).filter(sv),n]}function ba(e){return e.trim().split(/\s+/)}function sv(e,t,n){return n.indexOf(e)===t}function zc(e){var t;return(t=e==null?void 0:e.reduce((n,r)=>({...n,...av(r.handler)}),{}))!==null&&t!==void 0?t:{}}function av(e){let t={};return e({addUtilities:n=>{t=n},...uv}),t}function Mt(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var uv={addComponents:Mt,addBase:Mt,addVariant:Mt,e:Mt,prefix:Mt,theme:Mt,variants:Mt,config:Mt,corePlugins:Mt,matchUtilities:Mt,postcss:null};function jc(e,t){let n=(0,Gc.default)(lv(e)),r={},i=zc(n.plugins),o={},s=Object.entries(i).map(([g,y])=>typeof y=="string"?(o[g]=y,[g,{kind:"null"}]):[g,k(y)]).filter(([,g])=>g.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(),l={};function f(){let g=l[u];if(g)return g;let y=new Fn(s);return l[u]=y,y}function c(...g){let y=f(),x={},_=[],E=[],[T,R]=qc(g),P=T.join(" "),S=y.getStyle(P);if(S)return{...S,...R||{}};for(let A of T){let C=y.getIr(A);if(!C&&A in o){let V=c(o[A]);y.setIr(A,k(V)),x={...x,...V};continue}switch(C=new Nr(A,n,y,r,t).parse(),C.kind){case"complete":x={...x,...C.style},y.setIr(A,C);break;case"dependent":_.push(C);break;case"ordered":E.push(C);break;case"null":y.setIr(A,C);break}}if(E.length>0){E.sort((A,C)=>A.order-C.order);for(let A of E)switch(A.styleIr.kind){case"complete":x={...x,...A.styleIr.style};break;case"dependent":_.push(A.styleIr);break}}if(_.length>0){for(let A of _){let C=A.complete(x);C&&tt(C)}Ic(x)}return P!==""&&y.setStyle(P,x),R&&(x={...x,...R}),x}function h(g){let y=c(g.split(/\s+/g).map(x=>x.replace(/^(bg|text|border)-/,"")).map(x=>`bg-${x}`).join(" "));return typeof y.backgroundColor=="string"?y.backgroundColor:void 0}let m=(g,...y)=>{let x="";return g.forEach((_,E)=>{var T;x+=_+((T=y[E])!==null&&T!==void 0?T:"")}),c(x)};return m.style=c,m.color=h,m.prefixMatch=(...g)=>{let y=g.sort().join(":"),x=f(),_=x.getPrefixMatch(y);if(_!==void 0)return _;let R=new Nr(`${y}:flex`,n,x,r,t).parse().kind!=="null";return x.setPrefixMatch(y,R),R},m.setWindowDimensions=g=>{r.windowDimensions=g,u=a()},m.setFontScale=g=>{r.fontScale=g,u=a()},m.setPixelDensity=g=>{r.pixelDensity=g,u=a()},m.setColorScheme=g=>{r.colorScheme=g,u=a()},m}function lv(e){return{...e,content:["_no_warnings_please"]}}var cv={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 dv(e){return jc({...e,plugins:[...(e==null?void 0:e.plugins)??[],cv]},"web")}var $i;function ya({width:e,height:t,config:n}){return $i||($i=dv(n)),$i.setWindowDimensions({width:+e,height:+t}),$i}var va=new WeakMap,Vc=new WeakMap,pv=0,hv=8,$n=new Map;function mv(e){let t="";for(let n of e){let r=Vc.get(n.data);r===void 0&&(r=++pv,Vc.set(n.data,r)),t+=`${r}:${n.name}:${n.weight??""}:${n.style??""}:${n.lang??""};`}return t}function gv(e){if(va.has(e))return va.get(e);let t=mv(e),n=$n.get(t);if(!n){if(n=new rn(e),$n.size>=hv){let r=$n.keys().next().value;r!==void 0&&$n.delete(r)}$n.set(t,n)}return va.set(e,n),n}var bv=vv,yv=bv;async function vv(e,t,n){let[r]=await Promise.all([Qt(),al()]);if(!r||!r.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+r);t.fonts=t.fonts||[];let i=gv(t.fonts),o="width"in t?t.width:void 0,s="height"in t?t.height:void 0,a=xv(r,t.pointScaleFactor);o&&a.setWidth(o),s&&a.setHeight(s),a.setFlexDirection(r.FLEX_DIRECTION_ROW),a.setFlexWrap(r.WRAP_WRAP),a.setAlignContent(r.ALIGN_AUTO),a.setAlignItems(r.ALIGN_FLEX_START),a.setJustifyContent(r.JUSTIFY_FLEX_START),a.setOverflow(r.OVERFLOW_HIDDEN);let u=Object.assign(Object.create(null),t.graphemeImages),l=new Set;At.clear(),Hr.clear(),await mu(e);let f=tn(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:o,_viewportHeight:s},parent:a,font:i,embedFont:t.embedFont,debug:t.debug,graphemeImages:u,canLoadAdditionalAssets:!!t.loadAdditionalAsset,onNodeDetected:t.onNodeDetected,replacedElements:n,getTwStyles:(y,x)=>{let E={...ya({width:o,height:s,config:t.tailwindConfig})([y])};return typeof E.lineHeight=="number"&&(E.lineHeight=E.lineHeight/(+E.fontSize||x.fontSize||16)),E.shadowColor&&E.boxShadow&&(E.boxShadow=E.boxShadow.replace(/rgba?\([^)]+\)/,E.shadowColor)),E}}),c=(await f.next()).value;if(t.loadAdditionalAsset&&c.length){let y=wv(c),x=[],_={};await Promise.all(Object.entries(y).flatMap(([E,T])=>T.map(R=>{let P=`${E}_${R}`;return l.has(P)?null:(l.add(P),t.loadAdditionalAsset(E,R).then(S=>{typeof S=="string"?_[R]=S:S&&(Array.isArray(S)?x.push(...S):x.push(S))}))}))),i.addFonts(x),Object.assign(u,_)}await f.next(),a.calculateLayout(o,s,r.DIRECTION_LTR);let h=(await f.next([0,0])).value,m=a.getComputedWidth(),g=a.getComputedHeight();return a.freeRecursive(),Io({width:m,height:g,content:h})}function xv(e,t){if(t){let n=e.Config.create();return n.setPointScaleFactor(t),e.Node.createWithConfig(n)}else return e.Node.create()}function wv(e){let t={},n={};for(let{word:r,locale:i}of e){let o=ol(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(...Hc(Fe(n[r],"grapheme"))):(t[r][0]=t[r][0]||"",t[r][0]+=Hc(Fe(n[r],"grapheme",r==="unknown"?void 0:r)).join(""))}),t}function Hc(e){return Array.from(new Set(e))}export{yv as default,Rd as init};
|
|
8
8
|
//# sourceMappingURL=standalone.js.map
|