satori 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -9
- package/dist/index.js.map +1 -1
- package/dist/index.wasm.cjs +7 -9
- package/dist/index.wasm.cjs.map +1 -1
- package/dist/index.wasm.js +7 -9
- package/dist/index.wasm.js.map +1 -1
- package/package.json +3 -2
package/dist/index.wasm.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
var qu=Object.create;var dr=Object.defineProperty;var Bu=Object.getOwnPropertyDescriptor;var Uu=Object.getOwnPropertyNames;var zu=Object.getPrototypeOf,Gu=Object.prototype.hasOwnProperty;var pr=(e,t)=>()=>(e&&(t=e(e=0)),t);var L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qr=(e,t)=>{for(var n in t)dr(e,n,{get:t[n],enumerable:!0})},xo=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Uu(t))!Gu.call(e,i)&&i!==n&&dr(e,i,{get:()=>t[i],enumerable:!(r=Bu(t,i))||r.enumerable});return e};var ju=(e,t,n)=>(n=e!=null?qu(zu(e)):{},xo(t||!e||!e.__esModule?dr(n,"default",{value:e,enumerable:!0}):n,e)),hr=e=>xo(dr({},"__esModule",{value:!0}),e);var c=pr(()=>{});var wo={};Qr(wo,{getYogaModule:()=>Vu});async function Vu(){return{}}var _o=pr(()=>{c()});var kn=L(Sn=>{"use strict";c();Object.defineProperty(Sn,"__esModule",{value:!0});Object.defineProperty(Sn,"default",{enumerable:!0,get:()=>Fl});function Fl(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 es=L(Tn=>{"use strict";c();Object.defineProperty(Tn,"__esModule",{value:!0});Object.defineProperty(Tn,"default",{enumerable:!0,get:()=>Ml});var Ml=["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 ts=L(On=>{"use strict";c();Object.defineProperty(On,"__esModule",{value:!0});Object.defineProperty(On,"default",{enumerable:!0,get:()=>Nl});function Nl(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 En=L((bg,rs)=>{c();rs.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 Or={};Qr(Or,{default:()=>$l});var $l,Er=pr(()=>{c();$l={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 ns=L(Pn=>{"use strict";c();Object.defineProperty(Pn,"__esModule",{value:!0});Object.defineProperty(Pn,"default",{enumerable:!0,get:()=>Bl});var Wl=ql((Er(),hr(Or)));function ql(e){return e&&e.__esModule?e:{default:e}}function Tt({version:e,from:t,to:n}){Wl.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 Bl={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 Tt({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return Tt({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return Tt({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return Tt({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return Tt({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var is=L(An=>{"use strict";c();Object.defineProperty(An,"__esModule",{value:!0});Object.defineProperty(An,"defaults",{enumerable:!0,get:()=>Ul});function Ul(e,...t){for(let i of t){for(let s in i){var n;!(e==null||(n=e.hasOwnProperty)===null||n===void 0)&&n.call(e,s)||(e[s]=i[s])}for(let s of Object.getOwnPropertySymbols(i)){var r;!(e==null||(r=e.hasOwnProperty)===null||r===void 0)&&r.call(e,s)||(e[s]=i[s])}}return e}});var os=L(In=>{"use strict";c();Object.defineProperty(In,"__esModule",{value:!0});Object.defineProperty(In,"toPath",{enumerable:!0,get:()=>zl});function zl(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 as=L(Rn=>{"use strict";c();Object.defineProperty(Rn,"__esModule",{value:!0});Object.defineProperty(Rn,"normalizeConfig",{enumerable:!0,get:()=>jl});var Ot=Gl((Er(),hr(Or)));function ss(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ss=function(r){return r?n:t})(e)}function Gl(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ss(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function jl(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?void 0: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?void 0: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})()||Ot.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:s,safelist:o}=e;return Array.isArray(o)?o:Array.isArray(i==null?void 0:i.safelist)?i.safelist:Array.isArray(s==null?void 0:s.safelist)?s.safelist:Array.isArray(s==null||(r=s.options)===null||r===void 0?void 0:r.safelist)?s.options.safelist:[]})(),typeof e.prefix=="function")Ot.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 o,a,u,l,f,d,v,p,h,b;return!((o=e.purge)===null||o===void 0)&&o.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||(d=f.extract)===null||d===void 0)&&d.DEFAULT?e.content.extract.DEFAULT:!((v=e.purge)===null||v===void 0||(p=v.options)===null||p===void 0)&&p.extractors?e.purge.options.extractors:!((h=e.content)===null||h===void 0||(b=h.options)===null||b===void 0)&&b.extractors?e.content.options.extractors:{}})(),i={},s=(()=>{var o,a,u,l;if(!((o=e.purge)===null||o===void 0||(a=o.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(s!==void 0&&(i.DEFAULT=s),typeof r=="function")i.DEFAULT=r;else if(Array.isArray(r))for(let{extensions:o,extractor:a}of r??[])for(let u of o)i[u]=a;else typeof r=="object"&&r!==null&&Object.assign(i,r);return i})(),transform:(()=>{let r=(()=>{var s,o,a,u,l,f;return!((s=e.purge)===null||s===void 0)&&s.transform?e.purge.transform:!((o=e.content)===null||o===void 0)&&o.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)){Ot.default.warn("invalid-glob-braces",[`The glob pattern ${(0,Ot.dim)(r)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,Ot.dim)(r.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var us=L(Ln=>{"use strict";c();Object.defineProperty(Ln,"__esModule",{value:!0});Object.defineProperty(Ln,"default",{enumerable:!0,get:()=>Vl});function Vl(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var ls=L(Dn=>{"use strict";c();Object.defineProperty(Dn,"__esModule",{value:!0});Object.defineProperty(Dn,"cloneDeep",{enumerable:!0,get:()=>Cn});function Cn(e){return Array.isArray(e)?e.map(t=>Cn(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Cn(n)])):e}});var Fn=L((Pr,fs)=>{"use strict";c();Pr.__esModule=!0;Pr.default=Xl;function Hl(e){for(var t=e.toLowerCase(),n="",r=!1,i=0;i<6&&t[i]!==void 0;i++){var s=t.charCodeAt(i),o=s>=97&&s<=102||s>=48&&s<=57;if(r=s===32,!o)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 Yl=/\\/;function Xl(e){var t=Yl.test(e);if(!t)return e;for(var n="",r=0;r<e.length;r++){if(e[r]==="\\"){var i=Hl(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}fs.exports=Pr.default});var ds=L((Ar,cs)=>{"use strict";c();Ar.__esModule=!0;Ar.default=Ql;function Ql(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}cs.exports=Ar.default});var hs=L((Ir,ps)=>{"use strict";c();Ir.__esModule=!0;Ir.default=Kl;function Kl(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]}}ps.exports=Ir.default});var gs=L((Rr,ms)=>{"use strict";c();Rr.__esModule=!0;Rr.default=Jl;function Jl(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}ms.exports=Rr.default});var Et=L(Ae=>{"use strict";c();Ae.__esModule=!0;Ae.stripComments=Ae.ensureObject=Ae.getProp=Ae.unesc=void 0;var Zl=Lr(Fn());Ae.unesc=Zl.default;var ef=Lr(ds());Ae.getProp=ef.default;var tf=Lr(hs());Ae.ensureObject=tf.default;var rf=Lr(gs());Ae.stripComments=rf.default;function Lr(e){return e&&e.__esModule?e:{default:e}}});var Ne=L((Pt,ys)=>{"use strict";c();Pt.__esModule=!0;Pt.default=void 0;var vs=Et();function bs(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 nf(e,t,n){return t&&bs(e.prototype,t),n&&bs(e,n),e}var of=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 s=t[i],o=typeof s;i==="parent"&&o==="object"?n&&(r[i]=n):s instanceof Array?r[i]=s.map(function(a){return e(a,r)}):r[i]=e(s,r)}return r},sf=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=of(this);for(var s in r)i[s]=r[s];return i},t.appendToPropertyAndEscape=function(r,i,s){this.raws||(this.raws={});var o=this[r],a=this.raws[r];this[r]=o+i,a||s!==i?this.raws[r]=(a||o)+s:delete this.raws[r]},t.setPropertyAndEscape=function(r,i,s){this.raws||(this.raws={}),this[r]=i,this.raws[r]=s},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("")},nf(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,vs.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,vs.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=r}}]),e}();Pt.default=sf;ys.exports=Pt.default});var le=L(X=>{"use strict";c();X.__esModule=!0;X.UNIVERSAL=X.ATTRIBUTE=X.CLASS=X.COMBINATOR=X.COMMENT=X.ID=X.NESTING=X.PSEUDO=X.ROOT=X.SELECTOR=X.STRING=X.TAG=void 0;var af="tag";X.TAG=af;var uf="string";X.STRING=uf;var lf="selector";X.SELECTOR=lf;var ff="root";X.ROOT=ff;var cf="pseudo";X.PSEUDO=cf;var df="nesting";X.NESTING=df;var pf="id";X.ID=pf;var hf="comment";X.COMMENT=hf;var mf="combinator";X.COMBINATOR=mf;var gf="class";X.CLASS=gf;var vf="attribute";X.ATTRIBUTE=vf;var bf="universal";X.UNIVERSAL=bf});var Cr=L((At,Ss)=>{"use strict";c();At.__esModule=!0;At.default=void 0;var yf=wf(Ne()),$e=xf(le());function _s(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return _s=function(){return e},e}function xf(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=_s();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 s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function wf(e){return e&&e.__esModule?e:{default:e}}function _f(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Sf(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.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}function Sf(e,t){if(!!e){if(typeof e=="string")return xs(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 xs(e,t)}}function xs(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 ws(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 kf(e,t,n){return t&&ws(e.prototype,t),n&&ws(e,n),e}function Tf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mn(e,t)}function Mn(e,t){return Mn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Mn(e,t)}var Of=function(e){Tf(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 s;for(var o in this.indexes)s=this.indexes[o],s>=i&&(this.indexes[o]=s-1);return this},n.removeAll=function(){for(var i=_f(this.nodes),s;!(s=i()).done;){var o=s.value;o.parent=void 0}return this.nodes=[],this},n.empty=function(){return this.removeAll()},n.insertAfter=function(i,s){s.parent=this;var o=this.index(i);this.nodes.splice(o+1,0,s),s.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],o<=a&&(this.indexes[u]=a+1);return this},n.insertBefore=function(i,s){s.parent=this;var o=this.index(i);this.nodes.splice(o,0,s),s.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],a<=o&&(this.indexes[u]=a+1);return this},n._findChildAtPosition=function(i,s){var o=void 0;return this.each(function(a){if(a.atPosition){var u=a.atPosition(i,s);if(u)return o=u,!1}else if(a.isAtPosition(i,s))return o=a,!1}),o},n.atPosition=function(i,s){if(this.isAtPosition(i,s))return this._findChildAtPosition(i,s)||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 s=this.lastEach;if(this.indexes[s]=0,!!this.length){for(var o,a;this.indexes[s]<this.length&&(o=this.indexes[s],a=i(this.at(o),o),a!==!1);)this.indexes[s]+=1;if(delete this.indexes[s],a===!1)return!1}},n.walk=function(i){return this.each(function(s,o){var a=i(s,o);if(a!==!1&&s.length&&(a=s.walk(i)),a===!1)return!1})},n.walkAttributes=function(i){var s=this;return this.walk(function(o){if(o.type===$e.ATTRIBUTE)return i.call(s,o)})},n.walkClasses=function(i){var s=this;return this.walk(function(o){if(o.type===$e.CLASS)return i.call(s,o)})},n.walkCombinators=function(i){var s=this;return this.walk(function(o){if(o.type===$e.COMBINATOR)return i.call(s,o)})},n.walkComments=function(i){var s=this;return this.walk(function(o){if(o.type===$e.COMMENT)return i.call(s,o)})},n.walkIds=function(i){var s=this;return this.walk(function(o){if(o.type===$e.ID)return i.call(s,o)})},n.walkNesting=function(i){var s=this;return this.walk(function(o){if(o.type===$e.NESTING)return i.call(s,o)})},n.walkPseudos=function(i){var s=this;return this.walk(function(o){if(o.type===$e.PSEUDO)return i.call(s,o)})},n.walkTags=function(i){var s=this;return this.walk(function(o){if(o.type===$e.TAG)return i.call(s,o)})},n.walkUniversals=function(i){var s=this;return this.walk(function(o){if(o.type===$e.UNIVERSAL)return i.call(s,o)})},n.split=function(i){var s=this,o=[];return this.reduce(function(a,u,l){var f=i.call(s,u);return o.push(u),f?(a.push(o),o=[]):l===s.length-1&&a.push(o),a},[])},n.map=function(i){return this.nodes.map(i)},n.reduce=function(i,s){return this.nodes.reduce(i,s)},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("")},kf(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}(yf.default);At.default=Of;Ss.exports=At.default});var $n=L((It,Ts)=>{"use strict";c();It.__esModule=!0;It.default=void 0;var Ef=Af(Cr()),Pf=le();function Af(e){return e&&e.__esModule?e:{default:e}}function ks(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 If(e,t,n){return t&&ks(e.prototype,t),n&&ks(e,n),e}function Rf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nn(e,t)}function Nn(e,t){return Nn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Nn(e,t)}var Lf=function(e){Rf(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Pf.ROOT,i}var n=t.prototype;return n.toString=function(){var i=this.reduce(function(s,o){return s.push(String(o)),s},[]).join(",");return this.trailingComma?i+",":i},n.error=function(i,s){return this._error?this._error(i,s):new Error(i)},If(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(Ef.default);It.default=Lf;Ts.exports=It.default});var qn=L((Rt,Os)=>{"use strict";c();Rt.__esModule=!0;Rt.default=void 0;var Cf=Ff(Cr()),Df=le();function Ff(e){return e&&e.__esModule?e:{default:e}}function Mf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wn(e,t)}function Wn(e,t){return Wn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Wn(e,t)}var Nf=function(e){Mf(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Df.SELECTOR,r}return t}(Cf.default);Rt.default=Nf;Os.exports=Rt.default});var Dr=L((Eg,Es)=>{"use strict";c();var $f={},Wf=$f.hasOwnProperty,qf=function(t,n){if(!t)return n;var r={};for(var i in n)r[i]=Wf.call(t,i)?t[i]:n[i];return r},Bf=/[ -,\.\/:-@\[-\^`\{-~]/,Uf=/[ -,\.\/:-@\[\]\^`\{-~]/,zf=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Bn=function e(t,n){n=qf(n,e.options),n.quotes!="single"&&n.quotes!="double"&&(n.quotes="single");for(var r=n.quotes=="double"?'"':"'",i=n.isIdentifier,s=t.charAt(0),o="",a=0,u=t.length;a<u;){var l=t.charAt(a++),f=l.charCodeAt(),d=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&a<u){var v=t.charCodeAt(a++);(v&64512)==56320?f=((f&1023)<<10)+(v&1023)+65536:a--}d="\\"+f.toString(16).toUpperCase()+" "}else n.escapeEverything?Bf.test(l)?d="\\"+l:d="\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?d="\\"+f.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&r==l||l=="'"&&r==l)||i&&Uf.test(l)?d="\\"+l:d=l;o+=d}return i&&(/^-[-\d]/.test(o)?o="\\-"+o.slice(1):/\d/.test(s)&&(o="\\3"+s+" "+o.slice(1))),o=o.replace(zf,function(p,h,b){return h&&h.length%2?p:(h||"")+b}),!i&&n.wrap?r+o+r:o};Bn.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Bn.version="3.0.0";Es.exports=Bn});var zn=L((Lt,Is)=>{"use strict";c();Lt.__esModule=!0;Lt.default=void 0;var Gf=As(Dr()),jf=Et(),Vf=As(Ne()),Hf=le();function As(e){return e&&e.__esModule?e:{default:e}}function Ps(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 Yf(e,t,n){return t&&Ps(e.prototype,t),n&&Ps(e,n),e}function Xf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Un(e,t)}function Un(e,t){return Un=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Un(e,t)}var Qf=function(e){Xf(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Hf.CLASS,i._constructed=!0,i}var n=t.prototype;return n.valueToString=function(){return"."+e.prototype.valueToString.call(this)},Yf(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var s=(0,Gf.default)(i,{isIdentifier:!0});s!==i?((0,jf.ensureObject)(this,"raws"),this.raws.value=s):this.raws&&delete this.raws.value}this._value=i}}]),t}(Vf.default);Lt.default=Qf;Is.exports=Lt.default});var jn=L((Ct,Rs)=>{"use strict";c();Ct.__esModule=!0;Ct.default=void 0;var Kf=Zf(Ne()),Jf=le();function Zf(e){return e&&e.__esModule?e:{default:e}}function ec(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gn(e,t)}function Gn(e,t){return Gn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Gn(e,t)}var tc=function(e){ec(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Jf.COMMENT,r}return t}(Kf.default);Ct.default=tc;Rs.exports=Ct.default});var Hn=L((Dt,Ls)=>{"use strict";c();Dt.__esModule=!0;Dt.default=void 0;var rc=ic(Ne()),nc=le();function ic(e){return e&&e.__esModule?e:{default:e}}function oc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vn(e,t)}function Vn(e,t){return Vn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Vn(e,t)}var sc=function(e){oc(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=nc.ID,i}var n=t.prototype;return n.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(rc.default);Dt.default=sc;Ls.exports=Dt.default});var Fr=L((Ft,Fs)=>{"use strict";c();Ft.__esModule=!0;Ft.default=void 0;var ac=Ds(Dr()),uc=Et(),lc=Ds(Ne());function Ds(e){return e&&e.__esModule?e:{default:e}}function Cs(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 fc(e,t,n){return t&&Cs(e.prototype,t),n&&Cs(e,n),e}function cc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yn(e,t)}function Yn(e,t){return Yn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Yn(e,t)}var dc=function(e){cc(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))},fc(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 s=(0,ac.default)(i,{isIdentifier:!0});this._namespace=i,s!==i?((0,uc.ensureObject)(this,"raws"),this.raws.namespace=s):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}(lc.default);Ft.default=dc;Fs.exports=Ft.default});var Qn=L((Mt,Ms)=>{"use strict";c();Mt.__esModule=!0;Mt.default=void 0;var pc=mc(Fr()),hc=le();function mc(e){return e&&e.__esModule?e:{default:e}}function gc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xn(e,t)}function Xn(e,t){return Xn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Xn(e,t)}var vc=function(e){gc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=hc.TAG,r}return t}(pc.default);Mt.default=vc;Ms.exports=Mt.default});var Jn=L((Nt,Ns)=>{"use strict";c();Nt.__esModule=!0;Nt.default=void 0;var bc=xc(Ne()),yc=le();function xc(e){return e&&e.__esModule?e:{default:e}}function wc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kn(e,t)}function Kn(e,t){return Kn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Kn(e,t)}var _c=function(e){wc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=yc.STRING,r}return t}(bc.default);Nt.default=_c;Ns.exports=Nt.default});var ei=L(($t,$s)=>{"use strict";c();$t.__esModule=!0;$t.default=void 0;var Sc=Tc(Cr()),kc=le();function Tc(e){return e&&e.__esModule?e:{default:e}}function Oc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zn(e,t)}function Zn(e,t){return Zn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Zn(e,t)}var Ec=function(e){Oc(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=kc.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}(Sc.default);$t.default=Ec;$s.exports=$t.default});var qs=L((Pg,Ws)=>{c();Ws.exports=function(t,n){return function(...r){return console.warn(n),t(...r)}}});var si=L(Bt=>{"use strict";c();Bt.__esModule=!0;Bt.unescapeValue=oi;Bt.default=void 0;var Wt=ii(Dr()),Pc=ii(Fn()),Ac=ii(Fr()),Ic=le(),ti;function ii(e){return e&&e.__esModule?e:{default:e}}function Bs(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 Rc(e,t,n){return t&&Bs(e.prototype,t),n&&Bs(e,n),e}function Lc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ni(e,t)}function ni(e,t){return ni=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ni(e,t)}var qt=qs(),Cc=/^('|")([^]*)\1$/,Dc=qt(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),Fc=qt(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),Mc=qt(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function oi(e){var t=!1,n=null,r=e,i=r.match(Cc);return i&&(n=i[1],r=i[2]),r=(0,Pc.default)(r),r!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}function Nc(e){if(e.quoteMark!==void 0||e.value===void 0)return e;Mc();var t=oi(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 Mr=function(e){Lc(t,e);function t(r){var i;return r===void 0&&(r={}),i=e.call(this,Nc(r))||this,i.type=Ic.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:qt(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:qt(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 s=this._determineQuoteMark(i),o=ri[s],a=(0,Wt.default)(this._value,o);return a},n._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},n.setValue=function(i,s){s===void 0&&(s={}),this._value=i,this._quoteMark=this._determineQuoteMark(s),this._syncRawValue()},n.smartQuoteMark=function(i){var s=this.value,o=s.replace(/[^']/g,"").length,a=s.replace(/[^"]/g,"").length;if(o+a===0){var u=(0,Wt.default)(s,{isIdentifier:!0});if(u===s)return t.NO_QUOTE;var l=this.preferredQuoteMark(i);if(l===t.NO_QUOTE){var f=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,d=ri[f],v=(0,Wt.default)(s,d);if(v.length<u.length)return f}return l}else return a===o?this.preferredQuoteMark(i):a<o?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},n.preferredQuoteMark=function(i){var s=i.preferCurrentQuoteMark?this.quoteMark:i.quoteMark;return s===void 0&&(s=i.preferCurrentQuoteMark?i.quoteMark:this.quoteMark),s===void 0&&(s=t.DOUBLE_QUOTE),s},n._syncRawValue=function(){var i=(0,Wt.default)(this._value,ri[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},n._handleEscapes=function(i,s){if(this._constructed){var o=(0,Wt.default)(s,{isIdentifier:!0});o!==s?this.raws[i]=o:delete this.raws[i]}},n._spacesFor=function(i){var s={before:"",after:""},o=this.spaces[i]||{},a=this.raws.spaces&&this.raws.spaces[i]||{};return Object.assign(s,o,a)},n._stringFor=function(i,s,o){s===void 0&&(s=i),o===void 0&&(o=Us);var a=this._spacesFor(s);return o(this.stringifyProperty(i),a)},n.offsetOf=function(i){var s=1,o=this._spacesFor("attribute");if(s+=o.before.length,i==="namespace"||i==="ns")return this.namespace?s:-1;if(i==="attributeNS"||(s+=this.namespaceString.length,this.namespace&&(s+=1),i==="attribute"))return s;s+=this.stringifyProperty("attribute").length,s+=o.after.length;var a=this._spacesFor("operator");s+=a.before.length;var u=this.stringifyProperty("operator");if(i==="operator")return u?s:-1;s+=u.length,s+=a.after.length;var l=this._spacesFor("value");s+=l.before.length;var f=this.stringifyProperty("value");if(i==="value")return f?s:-1;s+=f.length,s+=l.after.length;var d=this._spacesFor("insensitive");return s+=d.before.length,i==="insensitive"&&this.insensitive?s:-1},n.toString=function(){var i=this,s=[this.rawSpaceBefore,"["];return s.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(s.push(this._stringFor("operator")),s.push(this._stringFor("value")),s.push(this._stringFor("insensitiveFlag","insensitive",function(o,a){return o.length>0&&!i.quoted&&a.before.length===0&&!(i.spaces.value&&i.spaces.value.after)&&(a.before=" "),Us(o,a)}))),s.push("]"),s.push(this.rawSpaceAfter),s.join("")},Rc(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){Fc()}},{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 s=oi(i),o=s.deprecatedUsage,a=s.unescaped,u=s.quoteMark;if(o&&Dc(),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}(Ac.default);Bt.default=Mr;Mr.NO_QUOTE=null;Mr.SINGLE_QUOTE="'";Mr.DOUBLE_QUOTE='"';var ri=(ti={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},ti[null]={isIdentifier:!0},ti);function Us(e,t){return""+t.before+e+t.after}});var ui=L((Ut,zs)=>{"use strict";c();Ut.__esModule=!0;Ut.default=void 0;var $c=qc(Fr()),Wc=le();function qc(e){return e&&e.__esModule?e:{default:e}}function Bc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ai(e,t)}function ai(e,t){return ai=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ai(e,t)}var Uc=function(e){Bc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Wc.UNIVERSAL,r.value="*",r}return t}($c.default);Ut.default=Uc;zs.exports=Ut.default});var fi=L((zt,Gs)=>{"use strict";c();zt.__esModule=!0;zt.default=void 0;var zc=jc(Ne()),Gc=le();function jc(e){return e&&e.__esModule?e:{default:e}}function Vc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,li(e,t)}function li(e,t){return li=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},li(e,t)}var Hc=function(e){Vc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Gc.COMBINATOR,r}return t}(zc.default);zt.default=Hc;Gs.exports=zt.default});var di=L((Gt,js)=>{"use strict";c();Gt.__esModule=!0;Gt.default=void 0;var Yc=Qc(Ne()),Xc=le();function Qc(e){return e&&e.__esModule?e:{default:e}}function Kc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ci(e,t)}function ci(e,t){return ci=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ci(e,t)}var Jc=function(e){Kc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Xc.NESTING,r.value="&",r}return t}(Yc.default);Gt.default=Jc;js.exports=Gt.default});var Hs=L((Nr,Vs)=>{"use strict";c();Nr.__esModule=!0;Nr.default=Zc;function Zc(e){return e.sort(function(t,n){return t-n})}Vs.exports=Nr.default});var pi=L(A=>{"use strict";c();A.__esModule=!0;A.combinator=A.word=A.comment=A.str=A.tab=A.newline=A.feed=A.cr=A.backslash=A.bang=A.slash=A.doubleQuote=A.singleQuote=A.space=A.greaterThan=A.pipe=A.equals=A.plus=A.caret=A.tilde=A.dollar=A.closeSquare=A.openSquare=A.closeParenthesis=A.openParenthesis=A.semicolon=A.colon=A.comma=A.at=A.asterisk=A.ampersand=void 0;var ed=38;A.ampersand=ed;var td=42;A.asterisk=td;var rd=64;A.at=rd;var nd=44;A.comma=nd;var id=58;A.colon=id;var od=59;A.semicolon=od;var sd=40;A.openParenthesis=sd;var ad=41;A.closeParenthesis=ad;var ud=91;A.openSquare=ud;var ld=93;A.closeSquare=ld;var fd=36;A.dollar=fd;var cd=126;A.tilde=cd;var dd=94;A.caret=dd;var pd=43;A.plus=pd;var hd=61;A.equals=hd;var md=124;A.pipe=md;var gd=62;A.greaterThan=gd;var vd=32;A.space=vd;var Ys=39;A.singleQuote=Ys;var bd=34;A.doubleQuote=bd;var yd=47;A.slash=yd;var xd=33;A.bang=xd;var wd=92;A.backslash=wd;var _d=13;A.cr=_d;var Sd=12;A.feed=Sd;var kd=10;A.newline=kd;var Td=9;A.tab=Td;var Od=Ys;A.str=Od;var Ed=-1;A.comment=Ed;var Pd=-2;A.word=Pd;var Ad=-3;A.combinator=Ad});var Ks=L(jt=>{"use strict";c();jt.__esModule=!0;jt.default=Md;jt.FIELDS=void 0;var O=Id(pi()),st,Y;function Qs(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Qs=function(){return e},e}function Id(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Qs();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 s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var Rd=(st={},st[O.tab]=!0,st[O.newline]=!0,st[O.cr]=!0,st[O.feed]=!0,st),Ld=(Y={},Y[O.space]=!0,Y[O.tab]=!0,Y[O.newline]=!0,Y[O.cr]=!0,Y[O.feed]=!0,Y[O.ampersand]=!0,Y[O.asterisk]=!0,Y[O.bang]=!0,Y[O.comma]=!0,Y[O.colon]=!0,Y[O.semicolon]=!0,Y[O.openParenthesis]=!0,Y[O.closeParenthesis]=!0,Y[O.openSquare]=!0,Y[O.closeSquare]=!0,Y[O.singleQuote]=!0,Y[O.doubleQuote]=!0,Y[O.plus]=!0,Y[O.pipe]=!0,Y[O.tilde]=!0,Y[O.greaterThan]=!0,Y[O.equals]=!0,Y[O.dollar]=!0,Y[O.caret]=!0,Y[O.slash]=!0,Y),hi={},Xs="0123456789abcdefABCDEF";for($r=0;$r<Xs.length;$r++)hi[Xs.charCodeAt($r)]=!0;var $r;function Cd(e,t){var n=t,r;do{if(r=e.charCodeAt(n),Ld[r])return n-1;r===O.backslash?n=Dd(e,n)+1:n++}while(n<e.length);return n-1}function Dd(e,t){var n=t,r=e.charCodeAt(n+1);if(!Rd[r])if(hi[r]){var i=0;do n++,i++,r=e.charCodeAt(n+1);while(hi[r]&&i<6);i<6&&r===O.space&&n++}else n++;return n}var Fd={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};jt.FIELDS=Fd;function Md(e){var t=[],n=e.css.valueOf(),r=n,i=r.length,s=-1,o=1,a=0,u=0,l,f,d,v,p,h,b,_,g,y,S,E,T;function D(F,C){if(e.safe)n+=C,g=n.length-1;else throw e.error("Unclosed "+F,o,a-s,a)}for(;a<i;){switch(l=n.charCodeAt(a),l===O.newline&&(s=a,o+=1),l){case O.space:case O.tab:case O.newline:case O.cr:case O.feed:g=a;do g+=1,l=n.charCodeAt(g),l===O.newline&&(s=g,o+=1);while(l===O.space||l===O.newline||l===O.tab||l===O.cr||l===O.feed);T=O.space,v=o,d=g-s-1,u=g;break;case O.plus:case O.greaterThan:case O.tilde:case O.pipe:g=a;do g+=1,l=n.charCodeAt(g);while(l===O.plus||l===O.greaterThan||l===O.tilde||l===O.pipe);T=O.combinator,v=o,d=a-s,u=g;break;case O.asterisk:case O.ampersand:case O.bang:case O.comma:case O.equals:case O.dollar:case O.caret:case O.openSquare:case O.closeSquare:case O.colon:case O.semicolon:case O.openParenthesis:case O.closeParenthesis:g=a,T=l,v=o,d=a-s,u=g+1;break;case O.singleQuote:case O.doubleQuote:E=l===O.singleQuote?"'":'"',g=a;do for(p=!1,g=n.indexOf(E,g+1),g===-1&&D("quote",E),h=g;n.charCodeAt(h-1)===O.backslash;)h-=1,p=!p;while(p);T=O.str,v=o,d=a-s,u=g+1;break;default:l===O.slash&&n.charCodeAt(a+1)===O.asterisk?(g=n.indexOf("*/",a+2)+1,g===0&&D("comment","*/"),f=n.slice(a,g+1),_=f.split(`
|
|
3
|
-
`),b=_.length-1,b>0?(y=o+b,S=g-_[b].length):(y=o,S=s),T=O.comment,o=y,v=y,d=g-S):l===O.slash?(g=a,T=l,v=o,d=a-s,u=g+1):(g=Cd(n,a),T=O.word,v=o,d=g-s),u=g+1;break}t.push([T,o,a-s,v,d,a,u]),S&&(s=S,S=null),a=u}return t}});var oa=L((Vt,ia)=>{"use strict";c();Vt.__esModule=!0;Vt.default=void 0;var Nd=we($n()),mi=we(qn()),$d=we(zn()),Js=we(jn()),Wd=we(Hn()),qd=we(Qn()),gi=we(Jn()),Bd=we(ei()),Zs=Wr(si()),Ud=we(ui()),vi=we(fi()),zd=we(di()),Gd=we(Hs()),k=Wr(Ks()),P=Wr(pi()),jd=Wr(le()),ee=Et(),Ke,bi;function na(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return na=function(){return e},e}function Wr(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=na();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 s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function we(e){return e&&e.__esModule?e:{default:e}}function ea(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 Vd(e,t,n){return t&&ea(e.prototype,t),n&&ea(e,n),e}var wi=(Ke={},Ke[P.space]=!0,Ke[P.cr]=!0,Ke[P.feed]=!0,Ke[P.newline]=!0,Ke[P.tab]=!0,Ke),Hd=Object.assign({},wi,(bi={},bi[P.comment]=!0,bi));function ta(e){return{line:e[k.FIELDS.START_LINE],column:e[k.FIELDS.START_COL]}}function ra(e){return{line:e[k.FIELDS.END_LINE],column:e[k.FIELDS.END_COL]}}function Je(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function at(e){return Je(e[k.FIELDS.START_LINE],e[k.FIELDS.START_COL],e[k.FIELDS.END_LINE],e[k.FIELDS.END_COL])}function yi(e,t){if(!!e)return Je(e[k.FIELDS.START_LINE],e[k.FIELDS.START_COL],t[k.FIELDS.END_LINE],t[k.FIELDS.END_COL])}function ut(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,ee.ensureObject)(e,"raws"),e[t]=(0,ee.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function xi(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function Yd(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var Xd=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,k.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=yi(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Nd.default({source:i}),this.root.errorGenerator=this._errorGenerator();var s=new mi.default({source:{start:{line:1,column:1}}});this.root.append(s),this.current=s,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var r=this;return function(i,s){return typeof r.rule=="string"?new Error(i):r.rule.error(i,s)}},t.attribute=function(){var r=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[k.FIELDS.TYPE]!==P.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[k.FIELDS.TYPE]!==P.closeSquare)return this.expected("closing square bracket",this.currToken[k.FIELDS.START_POS]);var s=r.length,o={source:Je(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[k.FIELDS.START_POS]};if(s===1&&!~[P.word].indexOf(r[0][k.FIELDS.TYPE]))return this.expected("attribute",r[0][k.FIELDS.START_POS]);for(var a=0,u="",l="",f=null,d=!1;a<s;){var v=r[a],p=this.content(v),h=r[a+1];switch(v[k.FIELDS.TYPE]){case P.space:if(d=!0,this.options.lossy)break;if(f){(0,ee.ensureObject)(o,"spaces",f);var b=o.spaces[f].after||"";o.spaces[f].after=b+p;var _=(0,ee.getProp)(o,"raws","spaces",f,"after")||null;_&&(o.raws.spaces[f].after=_+p)}else u=u+p,l=l+p;break;case P.asterisk:if(h[k.FIELDS.TYPE]===P.equals)o.operator=p,f="operator";else if((!o.namespace||f==="namespace"&&!d)&&h){u&&((0,ee.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=u,u=""),l&&((0,ee.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=u,l=""),o.namespace=(o.namespace||"")+p;var g=(0,ee.getProp)(o,"raws","namespace")||null;g&&(o.raws.namespace+=p),f="namespace"}d=!1;break;case P.dollar:if(f==="value"){var y=(0,ee.getProp)(o,"raws","value");o.value+="$",y&&(o.raws.value=y+"$");break}case P.caret:h[k.FIELDS.TYPE]===P.equals&&(o.operator=p,f="operator"),d=!1;break;case P.combinator:if(p==="~"&&h[k.FIELDS.TYPE]===P.equals&&(o.operator=p,f="operator"),p!=="|"){d=!1;break}h[k.FIELDS.TYPE]===P.equals?(o.operator=p,f="operator"):!o.namespace&&!o.attribute&&(o.namespace=!0),d=!1;break;case P.word:if(h&&this.content(h)==="|"&&r[a+2]&&r[a+2][k.FIELDS.TYPE]!==P.equals&&!o.operator&&!o.namespace)o.namespace=p,f="namespace";else if(!o.attribute||f==="attribute"&&!d){u&&((0,ee.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=u,u=""),l&&((0,ee.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=l,l=""),o.attribute=(o.attribute||"")+p;var S=(0,ee.getProp)(o,"raws","attribute")||null;S&&(o.raws.attribute+=p),f="attribute"}else if(!o.value&&o.value!==""||f==="value"&&!d){var E=(0,ee.unesc)(p),T=(0,ee.getProp)(o,"raws","value")||"",D=o.value||"";o.value=D+E,o.quoteMark=null,(E!==p||T)&&((0,ee.ensureObject)(o,"raws"),o.raws.value=(T||D)+p),f="value"}else{var F=p==="i"||p==="I";(o.value||o.value==="")&&(o.quoteMark||d)?(o.insensitive=F,(!F||p==="I")&&((0,ee.ensureObject)(o,"raws"),o.raws.insensitiveFlag=p),f="insensitive",u&&((0,ee.ensureObject)(o,"spaces","insensitive"),o.spaces.insensitive.before=u,u=""),l&&((0,ee.ensureObject)(o,"raws","spaces","insensitive"),o.raws.spaces.insensitive.before=l,l="")):(o.value||o.value==="")&&(f="value",o.value+=p,o.raws.value&&(o.raws.value+=p))}d=!1;break;case P.str:if(!o.attribute||!o.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:v[k.FIELDS.START_POS]});var C=(0,Zs.unescapeValue)(p),M=C.unescaped,j=C.quoteMark;o.value=M,o.quoteMark=j,f="value",(0,ee.ensureObject)(o,"raws"),o.raws.value=p,d=!1;break;case P.equals:if(!o.attribute)return this.expected("attribute",v[k.FIELDS.START_POS],p);if(o.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:v[k.FIELDS.START_POS]});o.operator=o.operator?o.operator+p:p,f="operator",d=!1;break;case P.comment:if(f)if(d||h&&h[k.FIELDS.TYPE]===P.space||f==="insensitive"){var U=(0,ee.getProp)(o,"spaces",f,"after")||"",q=(0,ee.getProp)(o,"raws","spaces",f,"after")||U;(0,ee.ensureObject)(o,"raws","spaces",f),o.raws.spaces[f].after=q+p}else{var W=o[f]||"",re=(0,ee.getProp)(o,"raws",f)||W;(0,ee.ensureObject)(o,"raws"),o.raws[f]=re+p}else l=l+p;break;default:return this.error('Unexpected "'+p+'" found.',{index:v[k.FIELDS.START_POS]})}a++}ut(o,"attribute"),ut(o,"namespace"),this.newNode(new Zs.default(o)),this.position++},t.parseWhitespaceEquivalentTokens=function(r){r<0&&(r=this.tokens.length);var i=this.position,s=[],o="",a=void 0;do if(wi[this.currToken[k.FIELDS.TYPE]])this.options.lossy||(o+=this.content());else if(this.currToken[k.FIELDS.TYPE]===P.comment){var u={};o&&(u.before=o,o=""),a=new Js.default({value:this.content(),source:at(this.currToken),sourceIndex:this.currToken[k.FIELDS.START_POS],spaces:u}),s.push(a)}while(++this.position<r);if(o){if(a)a.spaces.after=o;else if(!this.options.lossy){var l=this.tokens[i],f=this.tokens[this.position-1];s.push(new gi.default({value:"",source:Je(l[k.FIELDS.START_LINE],l[k.FIELDS.START_COL],f[k.FIELDS.END_LINE],f[k.FIELDS.END_COL]),sourceIndex:l[k.FIELDS.START_POS],spaces:{before:o,after:""}}))}}return s},t.convertWhitespaceNodesToSpace=function(r,i){var s=this;i===void 0&&(i=!1);var o="",a="";r.forEach(function(l){var f=s.lossySpace(l.spaces.before,i),d=s.lossySpace(l.rawSpaceBefore,i);o+=f+s.lossySpace(l.spaces.after,i&&f.length===0),a+=f+l.value+s.lossySpace(l.rawSpaceAfter,i&&d.length===0)}),a===o&&(a=void 0);var u={space:o,rawSpace:a};return u},t.isNamedCombinator=function(r){return r===void 0&&(r=this.position),this.tokens[r+0]&&this.tokens[r+0][k.FIELDS.TYPE]===P.slash&&this.tokens[r+1]&&this.tokens[r+1][k.FIELDS.TYPE]===P.word&&this.tokens[r+2]&&this.tokens[r+2][k.FIELDS.TYPE]===P.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var r=this.content(this.tokens[this.position+1]),i=(0,ee.unesc)(r).toLowerCase(),s={};i!==r&&(s.value="/"+r+"/");var o=new vi.default({value:"/"+i+"/",source:Je(this.currToken[k.FIELDS.START_LINE],this.currToken[k.FIELDS.START_COL],this.tokens[this.position+2][k.FIELDS.END_LINE],this.tokens[this.position+2][k.FIELDS.END_COL]),sourceIndex:this.currToken[k.FIELDS.START_POS],raws:s});return this.position=this.position+3,o}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][k.FIELDS.TYPE]===P.comma){var s=this.parseWhitespaceEquivalentTokens(i);if(s.length>0){var o=this.current.last;if(o){var a=this.convertWhitespaceNodesToSpace(s),u=a.space,l=a.rawSpace;l!==void 0&&(o.rawSpaceAfter+=l),o.spaces.after+=u}else s.forEach(function(T){return r.newNode(T)})}return}var f=this.currToken,d=void 0;i>this.position&&(d=this.parseWhitespaceEquivalentTokens(i));var v;if(this.isNamedCombinator()?v=this.namedCombinator():this.currToken[k.FIELDS.TYPE]===P.combinator?(v=new vi.default({value:this.content(),source:at(this.currToken),sourceIndex:this.currToken[k.FIELDS.START_POS]}),this.position++):wi[this.currToken[k.FIELDS.TYPE]]||d||this.unexpected(),v){if(d){var p=this.convertWhitespaceNodesToSpace(d),h=p.space,b=p.rawSpace;v.spaces.before=h,v.rawSpaceBefore=b}}else{var _=this.convertWhitespaceNodesToSpace(d,!0),g=_.space,y=_.rawSpace;y||(y=g);var S={},E={spaces:{}};g.endsWith(" ")&&y.endsWith(" ")?(S.before=g.slice(0,g.length-1),E.spaces.before=y.slice(0,y.length-1)):g.startsWith(" ")&&y.startsWith(" ")?(S.after=g.slice(1),E.spaces.after=y.slice(1)):E.value=y,v=new vi.default({value:" ",source:yi(f,this.tokens[this.position-1]),sourceIndex:f[k.FIELDS.START_POS],spaces:S,raws:E})}return this.currToken&&this.currToken[k.FIELDS.TYPE]===P.space&&(v.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(v)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var r=new mi.default({source:{start:ta(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 Js.default({value:this.content(),source:at(r),sourceIndex:r[k.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[k.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[k.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[k.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[k.FIELDS.START_POS])},t.namespace=function(){var r=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[k.FIELDS.TYPE]===P.word)return this.position++,this.word(r);if(this.nextToken[k.FIELDS.TYPE]===P.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 zd.default({value:this.content(),source:at(i),sourceIndex:i[k.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var r=this.current.last,i=1;if(this.position++,r&&r.type===jd.PSEUDO){var s=new mi.default({source:{start:ta(this.tokens[this.position-1])}}),o=this.current;for(r.append(s),this.current=s;this.position<this.tokens.length&&i;)this.currToken[k.FIELDS.TYPE]===P.openParenthesis&&i++,this.currToken[k.FIELDS.TYPE]===P.closeParenthesis&&i--,i?this.parse():(this.current.source.end=ra(this.currToken),this.current.parent.source.end=ra(this.currToken),this.position++);this.current=o}else{for(var a=this.currToken,u="(",l;this.position<this.tokens.length&&i;)this.currToken[k.FIELDS.TYPE]===P.openParenthesis&&i++,this.currToken[k.FIELDS.TYPE]===P.closeParenthesis&&i--,l=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;r?r.appendToPropertyAndEscape("value",u,u):this.newNode(new gi.default({value:u,source:Je(a[k.FIELDS.START_LINE],a[k.FIELDS.START_COL],l[k.FIELDS.END_LINE],l[k.FIELDS.END_COL]),sourceIndex:a[k.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[k.FIELDS.START_POS])},t.pseudo=function(){for(var r=this,i="",s=this.currToken;this.currToken&&this.currToken[k.FIELDS.TYPE]===P.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[k.FIELDS.TYPE]===P.word)this.splitWord(!1,function(o,a){i+=o,r.newNode(new Bd.default({value:i,source:yi(s,r.currToken),sourceIndex:s[k.FIELDS.START_POS]})),a>1&&r.nextToken&&r.nextToken[k.FIELDS.TYPE]===P.openParenthesis&&r.error("Misplaced parenthesis.",{index:r.nextToken[k.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[k.FIELDS.START_POS])},t.space=function(){var r=this.content();this.position===0||this.prevToken[k.FIELDS.TYPE]===P.comma||this.prevToken[k.FIELDS.TYPE]===P.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[k.FIELDS.TYPE]===P.comma||this.nextToken[k.FIELDS.TYPE]===P.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(r),this.position++):this.combinator()},t.string=function(){var r=this.currToken;this.newNode(new gi.default({value:this.content(),source:at(r),sourceIndex:r[k.FIELDS.START_POS]})),this.position++},t.universal=function(r){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var s=this.currToken;this.newNode(new Ud.default({value:this.content(),source:at(s),sourceIndex:s[k.FIELDS.START_POS]}),r),this.position++},t.splitWord=function(r,i){for(var s=this,o=this.nextToken,a=this.content();o&&~[P.dollar,P.caret,P.equals,P.word].indexOf(o[k.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&l[k.FIELDS.TYPE]===P.space&&(a+=this.requiredSpace(this.content(l)),this.position++)}o=this.nextToken}var f=xi(a,".").filter(function(h){var b=a[h-1]==="\\",_=/^\d+\.\d+%$/.test(a);return!b&&!_}),d=xi(a,"#").filter(function(h){return a[h-1]!=="\\"}),v=xi(a,"#{");v.length&&(d=d.filter(function(h){return!~v.indexOf(h)}));var p=(0,Gd.default)(Yd([0].concat(f,d)));p.forEach(function(h,b){var _=p[b+1]||a.length,g=a.slice(h,_);if(b===0&&i)return i.call(s,g,p.length);var y,S=s.currToken,E=S[k.FIELDS.START_POS]+p[b],T=Je(S[1],S[2]+h,S[3],S[2]+(_-1));if(~f.indexOf(h)){var D={value:g.slice(1),source:T,sourceIndex:E};y=new $d.default(ut(D,"value"))}else if(~d.indexOf(h)){var F={value:g.slice(1),source:T,sourceIndex:E};y=new Wd.default(ut(F,"value"))}else{var C={value:g,source:T,sourceIndex:E};ut(C,"value"),y=new qd.default(C)}s.newNode(y,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[k.FIELDS.TYPE]){case P.space:this.space();break;case P.comment:this.comment();break;case P.openParenthesis:this.parentheses();break;case P.closeParenthesis:r&&this.missingParenthesis();break;case P.openSquare:this.attribute();break;case P.dollar:case P.caret:case P.equals:case P.word:this.word();break;case P.colon:this.pseudo();break;case P.comma:this.comma();break;case P.asterisk:this.universal();break;case P.ampersand:this.nesting();break;case P.slash:case P.combinator:this.combinator();break;case P.str:this.string();break;case P.closeSquare:this.missingSquareBracket();case P.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(r,i,s){if(Array.isArray(r)){var o=r.pop();r=r.join(", ")+" or "+o}var a=/^[aeiou]/.test(r[0])?"an":"a";return s?this.error("Expected "+a+" "+r+', found "'+s+'" 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[k.FIELDS.TYPE]===P.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,ut(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[k.FIELDS.START_POS],r[k.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(r){r===void 0&&(r=this.position+1);for(var i=r;i<this.tokens.length;)if(Hd[this.tokens[i][k.FIELDS.TYPE]]){i++;continue}else return i;return-1},Vd(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}();Vt.default=Xd;ia.exports=Vt.default});var aa=L((Ht,sa)=>{"use strict";c();Ht.__esModule=!0;Ht.default=void 0;var Qd=Kd(oa());function Kd(e){return e&&e.__esModule?e:{default:e}}var Jd=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 s=Object.assign({},this.options,i);return s.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 s=new Qd.default(r,this._parseOptions(i));return s.root},t._parseOptions=function(r){return{lossy:this._isLossy(r)}},t._run=function(r,i){var s=this;return i===void 0&&(i={}),new Promise(function(o,a){try{var u=s._root(r,i);Promise.resolve(s.func(u)).then(function(l){var f=void 0;return s._shouldUpdateSelector(r,i)&&(f=u.toString(),r.selector=f),{transform:l,root:u,string:f}}).then(o,a)}catch(l){a(l);return}})},t._runSync=function(r,i){i===void 0&&(i={});var s=this._root(r,i),o=this.func(s);if(o&&typeof o.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=s.toString(),r.selector=a),{transform:o,root:s,string:a}},t.ast=function(r,i){return this._run(r,i).then(function(s){return s.root})},t.astSync=function(r,i){return this._runSync(r,i).root},t.transform=function(r,i){return this._run(r,i).then(function(s){return s.transform})},t.transformSync=function(r,i){return this._runSync(r,i).transform},t.process=function(r,i){return this._run(r,i).then(function(s){return s.string||s.root.toString()})},t.processSync=function(r,i){var s=this._runSync(r,i);return s.string||s.root.toString()},e}();Ht.default=Jd;sa.exports=Ht.default});var ua=L(Q=>{"use strict";c();Q.__esModule=!0;Q.universal=Q.tag=Q.string=Q.selector=Q.root=Q.pseudo=Q.nesting=Q.id=Q.comment=Q.combinator=Q.className=Q.attribute=void 0;var Zd=_e(si()),ep=_e(zn()),tp=_e(fi()),rp=_e(jn()),np=_e(Hn()),ip=_e(di()),op=_e(ei()),sp=_e($n()),ap=_e(qn()),up=_e(Jn()),lp=_e(Qn()),fp=_e(ui());function _e(e){return e&&e.__esModule?e:{default:e}}var cp=function(t){return new Zd.default(t)};Q.attribute=cp;var dp=function(t){return new ep.default(t)};Q.className=dp;var pp=function(t){return new tp.default(t)};Q.combinator=pp;var hp=function(t){return new rp.default(t)};Q.comment=hp;var mp=function(t){return new np.default(t)};Q.id=mp;var gp=function(t){return new ip.default(t)};Q.nesting=gp;var vp=function(t){return new op.default(t)};Q.pseudo=vp;var bp=function(t){return new sp.default(t)};Q.root=bp;var yp=function(t){return new ap.default(t)};Q.selector=yp;var xp=function(t){return new up.default(t)};Q.string=xp;var wp=function(t){return new lp.default(t)};Q.tag=wp;var _p=function(t){return new fp.default(t)};Q.universal=_p});var da=L(z=>{"use strict";c();z.__esModule=!0;z.isNode=_i;z.isPseudoElement=ca;z.isPseudoClass=Cp;z.isContainer=Dp;z.isNamespace=Fp;z.isUniversal=z.isTag=z.isString=z.isSelector=z.isRoot=z.isPseudo=z.isNesting=z.isIdentifier=z.isComment=z.isCombinator=z.isClassName=z.isAttribute=void 0;var te=le(),ge,Sp=(ge={},ge[te.ATTRIBUTE]=!0,ge[te.CLASS]=!0,ge[te.COMBINATOR]=!0,ge[te.COMMENT]=!0,ge[te.ID]=!0,ge[te.NESTING]=!0,ge[te.PSEUDO]=!0,ge[te.ROOT]=!0,ge[te.SELECTOR]=!0,ge[te.STRING]=!0,ge[te.TAG]=!0,ge[te.UNIVERSAL]=!0,ge);function _i(e){return typeof e=="object"&&Sp[e.type]}function Se(e,t){return _i(t)&&t.type===e}var la=Se.bind(null,te.ATTRIBUTE);z.isAttribute=la;var kp=Se.bind(null,te.CLASS);z.isClassName=kp;var Tp=Se.bind(null,te.COMBINATOR);z.isCombinator=Tp;var Op=Se.bind(null,te.COMMENT);z.isComment=Op;var Ep=Se.bind(null,te.ID);z.isIdentifier=Ep;var Pp=Se.bind(null,te.NESTING);z.isNesting=Pp;var Si=Se.bind(null,te.PSEUDO);z.isPseudo=Si;var Ap=Se.bind(null,te.ROOT);z.isRoot=Ap;var Ip=Se.bind(null,te.SELECTOR);z.isSelector=Ip;var Rp=Se.bind(null,te.STRING);z.isString=Rp;var fa=Se.bind(null,te.TAG);z.isTag=fa;var Lp=Se.bind(null,te.UNIVERSAL);z.isUniversal=Lp;function ca(e){return Si(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 Cp(e){return Si(e)&&!ca(e)}function Dp(e){return!!(_i(e)&&e.walk)}function Fp(e){return la(e)||fa(e)}});var pa=L(Oe=>{"use strict";c();Oe.__esModule=!0;var ki=le();Object.keys(ki).forEach(function(e){e==="default"||e==="__esModule"||e in Oe&&Oe[e]===ki[e]||(Oe[e]=ki[e])});var Ti=ua();Object.keys(Ti).forEach(function(e){e==="default"||e==="__esModule"||e in Oe&&Oe[e]===Ti[e]||(Oe[e]=Ti[e])});var Oi=da();Object.keys(Oi).forEach(function(e){e==="default"||e==="__esModule"||e in Oe&&Oe[e]===Oi[e]||(Oe[e]=Oi[e])})});var ga=L((Yt,ma)=>{"use strict";c();Yt.__esModule=!0;Yt.default=void 0;var Mp=Wp(aa()),Np=$p(pa());function ha(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return ha=function(){return e},e}function $p(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ha();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 s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Wp(e){return e&&e.__esModule?e:{default:e}}var Ei=function(t){return new Mp.default(t)};Object.assign(Ei,Np);delete Ei.__esModule;var qp=Ei;Yt.default=qp;ma.exports=Yt.default});var va=L(Pi=>{"use strict";c();Object.defineProperty(Pi,"__esModule",{value:!0});Object.defineProperty(Pi,"default",{enumerable:!0,get:()=>Bp});function Bp(e){return e.replace(/\\,/g,"\\2c ")}});var ya=L((Mg,ba)=>{"use strict";c();ba.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 Ii=L(Ai=>{"use strict";c();Object.defineProperty(Ai,"__esModule",{value:!0});function Up(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Up(Ai,{parseColor:()=>Yp,formatColor:()=>Xp});var xa=zp(ya());function zp(e){return e&&e.__esModule?e:{default:e}}var Gp=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,jp=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,je=/(?:\d+|\d*\.\d+)%?/,qr=/(?:\s*,\s*|\s+)/,wa=/\s*[,/]\s*/,Ve=/var\(--(?:[^ )]*?)\)/,Vp=new RegExp(`^(rgb)a?\\(\\s*(${je.source}|${Ve.source})(?:${qr.source}(${je.source}|${Ve.source}))?(?:${qr.source}(${je.source}|${Ve.source}))?(?:${wa.source}(${je.source}|${Ve.source}))?\\s*\\)$`),Hp=new RegExp(`^(hsl)a?\\(\\s*((?:${je.source})(?:deg|rad|grad|turn)?|${Ve.source})(?:${qr.source}(${je.source}|${Ve.source}))?(?:${qr.source}(${je.source}|${Ve.source}))?(?:${wa.source}(${je.source}|${Ve.source}))?\\s*\\)$`);function Yp(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 xa.default)return{mode:"rgb",color:xa.default[e].map(u=>u.toString())};let i=e.replace(jp,(u,l,f,d,v)=>["#",l,l,f,f,d,d,v?v+v:""].join("")).match(Gp);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 s;let o=(s=e.match(Vp))!==null&&s!==void 0?s:e.match(Hp);if(o===null)return null;let a=[o[2],o[3],o[4]].filter(Boolean).map(u=>u.toString());return!t&&a.length!==3||a.length<3&&!a.some(u=>/^var\(.*?\)$/.test(u))?null:{mode:o[1],color:a,alpha:(n=o[5])===null||n===void 0||(r=n.toString)===null||r===void 0?void 0:r.call(n)}}function Xp({mode:e,color:t,alpha:n}){let r=n!==void 0;return`${e}(${t.join(" ")}${r?` / ${n}`:""})`}});var Li=L(Ri=>{"use strict";c();Object.defineProperty(Ri,"__esModule",{value:!0});function Qp(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Qp(Ri,{withAlphaValue:()=>Kp,default:()=>Jp});var Br=Ii();function Kp(e,t,n){if(typeof e=="function")return e({opacityValue:t});let r=(0,Br.parseColor)(e,{loose:!0});return r===null?n:(0,Br.formatColor)({...r,alpha:t})}function Jp({color:e,property:t,variable:n}){let r=[].concat(t);if(typeof e=="function")return{[n]:"1",...Object.fromEntries(r.map(s=>[s,e({opacityVariable:n,opacityValue:`var(${n})`})]))};let i=(0,Br.parseColor)(e);return i===null?Object.fromEntries(r.map(s=>[s,e])):i.alpha!==void 0?Object.fromEntries(r.map(s=>[s,e])):{[n]:"1",...Object.fromEntries(r.map(s=>[s,(0,Br.formatColor)({...i,alpha:`var(${n})`})]))}}});var Oa=L(Ci=>{"use strict";c();Object.defineProperty(Ci,"__esModule",{value:!0});function Zp(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Zp(Ci,{pattern:()=>th,withoutCapturing:()=>Sa,any:()=>ka,optional:()=>rh,zeroOrMore:()=>nh,nestedBrackets:()=>Ta,escape:()=>Ze});var _a=/[\\^$.*+?()[\]{}|]/g,eh=RegExp(_a.source);function Xt(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function th(e){return new RegExp(Xt(e),"g")}function Sa(e){return new RegExp(`(?:${Xt(e)})`,"g")}function ka(e){return`(?:${e.map(Xt).join("|")})`}function rh(e){return`(?:${Xt(e)})?`}function nh(e){return`(?:${Xt(e)})*`}function Ta(e,t,n=1){return Sa([Ze(e),/[^\s]*/,n===1?`[^${Ze(e)}${Ze(t)}s]*`:ka([`[^${Ze(e)}${Ze(t)}s]*`,Ta(e,t,n-1)]),/[^\s]*/,Ze(t)])}function Ze(e){return e&&eh.test(e)?e.replace(_a,"\\$&"):e||""}});var Pa=L(Di=>{"use strict";c();Object.defineProperty(Di,"__esModule",{value:!0});Object.defineProperty(Di,"splitAtTopLevelOnly",{enumerable:!0,get:()=>sh});var ih=oh(Oa());function Ea(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ea=function(r){return r?n:t})(e)}function oh(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ea(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function*sh(e,t){let n=new RegExp(`[(){}\\[\\]${ih.escape(t)}]`,"g"),r=0,i=0,s=!1,o=0,a=0,u=t.length;for(let l of e.matchAll(n)){let f=l[0]===t[o],d=o===u-1,v=f&&d;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),o++),v&&r===0&&(s=!0,yield e.substring(i,a),i=a+u),o===u&&(o=0,a=0)}s?yield e.substring(i):yield e}});var Ia=L(Fi=>{"use strict";c();Object.defineProperty(Fi,"__esModule",{value:!0});function ah(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}ah(Fi,{parseBoxShadowValue:()=>ch,formatBoxShadowValue:()=>dh});var uh=Pa(),lh=new Set(["inset","inherit","initial","revert","unset"]),fh=/\ +(?![^(]*\))/g,Aa=/^-?(\d+|\.\d+)(.*?)$/g;function ch(e){return Array.from((0,uh.splitAtTopLevelOnly)(e,",")).map(n=>{let r=n.trim(),i={raw:r},s=r.split(fh),o=new Set;for(let a of s)Aa.lastIndex=0,!o.has("KEYWORD")&&lh.has(a)?(i.keyword=a,o.add("KEYWORD")):Aa.test(a)?o.has("X")?o.has("Y")?o.has("BLUR")?o.has("SPREAD")||(i.spread=a,o.add("SPREAD")):(i.blur=a,o.add("BLUR")):(i.y=a,o.add("Y")):(i.x=a,o.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 dh(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 Na=L(Ni=>{"use strict";c();Object.defineProperty(Ni,"__esModule",{value:!0});function ph(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}ph(Ni,{normalize:()=>He,url:()=>Ca,number:()=>gh,percentage:()=>Da,length:()=>Fa,lineWidth:()=>yh,shadow:()=>xh,color:()=>wh,image:()=>_h,gradient:()=>Ma,position:()=>Th,familyName:()=>Oh,genericName:()=>Ph,absoluteSize:()=>Ih,relativeSize:()=>Lh});var hh=Ii(),mh=Ia(),Mi=["min","max","clamp","calc"],La=/,(?![^(]*\))/g,Ur=/_(?![^(]*\))/g;function He(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(n=>/^url\(.*?\)$/.test(n)?n:He(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 Ca(e){return e.startsWith("url(")}function gh(e){return!isNaN(Number(e))||Mi.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function Da(e){return e.split(Ur).every(t=>/%$/g.test(t)||Mi.some(n=>new RegExp(`^${n}\\(.+?%`).test(t)))}var vh=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],Ra=`(?:${vh.join("|")})`;function Fa(e){return e.split(Ur).every(t=>t==="0"||new RegExp(`${Ra}$`).test(t)||Mi.some(n=>new RegExp(`^${n}\\(.+?${Ra}`).test(t)))}var bh=new Set(["thin","medium","thick"]);function yh(e){return bh.has(e)}function xh(e){let t=(0,mh.parseBoxShadowValue)(He(e));for(let n of t)if(!n.valid)return!1;return!0}function wh(e){let t=0;return e.split(Ur).every(r=>(r=He(r),r.startsWith("var(")?!0:(0,hh.parseColor)(r,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function _h(e){let t=0;return e.split(La).every(r=>(r=He(r),r.startsWith("var(")?!0:Ca(r)||Ma(r)||["element(","image(","cross-fade(","image-set("].some(i=>r.startsWith(i))?(t++,!0):!1))?t>0:!1}var Sh=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function Ma(e){e=He(e);for(let t of Sh)if(e.startsWith(`${t}(`))return!0;return!1}var kh=new Set(["center","top","right","bottom","left"]);function Th(e){let t=0;return e.split(Ur).every(r=>(r=He(r),r.startsWith("var(")?!0:kh.has(r)||Fa(r)||Da(r)?(t++,!0):!1))?t>0:!1}function Oh(e){let t=0;return e.split(La).every(r=>(r=He(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(t++,!0)))?t>0:!1}var Eh=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function Ph(e){return Eh.has(e)}var Ah=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function Ih(e){return Ah.has(e)}var Rh=new Set(["larger","smaller"]);function Lh(e){return Rh.has(e)}});var ja=L(qi=>{"use strict";c();Object.defineProperty(qi,"__esModule",{value:!0});function Ch(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Ch(qi,{updateAllClasses:()=>Mh,asValue:()=>Kt,parseColorFormat:()=>$i,asColor:()=>Ua,asLookupValue:()=>za,coerceValue:()=>qh});var Dh=Wi(ga()),Fh=Wi(va()),$a=Li(),ve=Na(),Wa=Wi(kn());function Wi(e){return e&&e.__esModule?e:{default:e}}function Mh(e,t){return(0,Dh.default)(i=>{i.walkClasses(s=>{let o=t(s.value);s.value=o,s.raws&&s.raws.value&&(s.raws.value=(0,Fh.default)(s.raws.value))})}).processSync(e)}function Ba(e,t){if(!Qt(e))return;let n=e.slice(1,-1);if(!!t(n))return(0,ve.normalize)(n)}function Nh(e,t={},n){let r=t[e];if(r!==void 0)return(0,Wa.default)(r);if(Qt(e)){let i=Ba(e,n);return i===void 0?void 0:(0,Wa.default)(i)}}function Kt(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("-")?Nh(e.slice(1),t.values,n):Ba(e,n)}function Qt(e){return e.startsWith("[")&&e.endsWith("]")}function $h(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function $i(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:n=1})=>t.replace("<alpha-value>",n)}return e}function Ua(e,t={},{tailwindConfig:n={}}={}){var r;if(((r=t.values)===null||r===void 0?void 0:r[e])!==void 0){var i;return $i((i=t.values)===null||i===void 0?void 0:i[e])}let[s,o]=$h(e);if(o!==void 0){var a,u,l,f;let d=(f=(a=t.values)===null||a===void 0?void 0:a[s])!==null&&f!==void 0?f:Qt(s)?s.slice(1,-1):void 0;return d===void 0?void 0:(d=$i(d),Qt(o)?(0,$a.withAlphaValue)(d,o.slice(1,-1)):((u=n.theme)===null||u===void 0||(l=u.opacity)===null||l===void 0?void 0:l[o])===void 0?void 0:(0,$a.withAlphaValue)(d,n.theme.opacity[o]))}return Kt(e,t,{validate:ve.color})}function za(e,t={}){var n;return(n=t.values)===null||n===void 0?void 0:n[e]}function ke(e){return(t,n)=>Kt(t,n,{validate:e})}var Ga={any:Kt,color:Ua,url:ke(ve.url),image:ke(ve.image),length:ke(ve.length),percentage:ke(ve.percentage),position:ke(ve.position),lookup:za,"generic-name":ke(ve.genericName),"family-name":ke(ve.familyName),number:ke(ve.number),"line-width":ke(ve.lineWidth),"absolute-size":ke(ve.absoluteSize),"relative-size":ke(ve.relativeSize),shadow:ke(ve.shadow)},qa=Object.keys(Ga);function Wh(e,t){let n=e.indexOf(t);return n===-1?[void 0,e]:[e.slice(0,n),e.slice(n+1)]}function qh(e,t,n,r){if(Qt(t)){let i=t.slice(1,-1),[s,o]=Wh(i,":");if(!/^[\w-_]+$/g.test(s))o=i;else if(s!==void 0&&!qa.includes(s))return[];if(o.length>0&&qa.includes(s))return[Kt(`[${o}]`,n),s]}for(let i of[].concat(e)){let s=Ga[i](t,n,{tailwindConfig:r});if(s!==void 0)return[s,i]}return[]}});var Va=L(Bi=>{"use strict";c();Object.defineProperty(Bi,"__esModule",{value:!0});Object.defineProperty(Bi,"default",{enumerable:!0,get:()=>Bh});function Bh(e){return typeof e=="function"?e({}):e}});var Ka=L(zi=>{"use strict";c();Object.defineProperty(zi,"__esModule",{value:!0});Object.defineProperty(zi,"default",{enumerable:!0,get:()=>a0});var Uh=et(kn()),zh=et(es()),Gh=et(ts()),jh=et(En()),Vh=et(ns()),Xa=is(),Ha=os(),Hh=as(),Yh=et(us()),Xh=ls(),Qh=ja(),Kh=Li(),Jh=et(Va());function et(e){return e&&e.__esModule?e:{default:e}}function lt(e){return typeof e=="function"}function Jt(e){return typeof e=="object"&&e!==null}function Zt(e,...t){let n=t.pop();for(let r of t)for(let i in r){let s=n(e[i],r[i]);s===void 0?Jt(e[i])&&Jt(r[i])?e[i]=Zt(e[i],r[i],n):e[i]=r[i]:e[i]=s}return e}var Ui={colors:Vh.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,n)=>{let r=(0,Uh.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 Zh(e,...t){return lt(e)?e(...t):e}function e0(e){return e.reduce((t,{extend:n})=>Zt(t,n,(r,i)=>r===void 0?[i]:Array.isArray(r)?[i,...r]:[i,r]),{})}function t0(e){return{...e.reduce((t,n)=>(0,Xa.defaults)(t,n),{}),extend:e0(e)}}function Ya(e,t){if(Array.isArray(e)&&Jt(e[0]))return e.concat(t);if(Array.isArray(t)&&Jt(t[0])&&Jt(e))return[e,...t];if(Array.isArray(t))return t}function r0({extend:e,...t}){return Zt(t,e,(n,r)=>!lt(n)&&!r.some(lt)?Zt({},n,...r,Ya):(i,s)=>Zt({},...[n,...r].map(o=>Zh(o,i,s)),Ya))}function*n0(e){let t=(0,Ha.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,s]=r,o=(0,Ha.toPath)(i);o.alpha=s,yield o}}function i0(e){let t=(n,r)=>{for(let i of n0(n)){let s=0,o=e;for(;o!=null&&s<i.length;)o=o[i[s++]],o=lt(o)&&(i.alpha===void 0||s<=i.length-1)?o(t,Ui):o;if(o!==void 0){if(i.alpha!==void 0){let a=(0,Qh.parseColorFormat)(o);return(0,Kh.withAlphaValue)(a,i.alpha,(0,Jh.default)(a))}return(0,Yh.default)(o)?(0,Xh.cloneDeep)(o):o}}return r};return Object.assign(t,{theme:t,...Ui}),Object.keys(e).reduce((n,r)=>(n[r]=lt(e[r])?e[r](t,Ui):e[r],n),{})}function Qa(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(s=>{s.__isOptionsFunction&&(s=s());var o;t=[...t,...Qa([(o=s==null?void 0:s.config)!==null&&o!==void 0?o:{}])]})}),t}function o0(e){return[...e].reduceRight((n,r)=>lt(r)?r({corePlugins:n}):(0,Gh.default)(r,n),zh.default)}function s0(e){return[...e].reduceRight((n,r)=>[...n,...r],[])}function a0(e){let t=[...Qa(e),{prefix:"",important:!1,separator:":",variantOrder:jh.default.variantOrder}];var n,r;return(0,Hh.normalizeConfig)((0,Xa.defaults)({theme:i0(r0(t0(t.map(i=>(n=i==null?void 0:i.theme)!==null&&n!==void 0?n:{})))),corePlugins:o0(t.map(i=>i.corePlugins)),plugins:s0(e.map(i=>(r=i==null?void 0:i.plugins)!==null&&r!==void 0?r:[]))},...t))}});var Ja={};Qr(Ja,{default:()=>u0});var u0,Za=pr(()=>{c();u0={yellow:e=>e}});var nu=L(Gi=>{"use strict";c();Object.defineProperty(Gi,"__esModule",{value:!0});function l0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}l0(Gi,{flagEnabled:()=>d0,issueFlagNotices:()=>p0,default:()=>h0});var f0=ru((Za(),hr(Ja))),c0=ru((Er(),hr(Or)));function ru(e){return e&&e.__esModule?e:{default:e}}var eu={optimizeUniversalDefaults:!1},er={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function d0(e,t){if(er.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:eu[t])!==null&&i!==void 0?i:!1)}if(er.experimental.includes(t)){var s,o,a;return e.experimental==="all"||((a=(o=e==null||(s=e.experimental)===null||s===void 0?void 0:s[t])!==null&&o!==void 0?o:eu[t])!==null&&a!==void 0?a:!1)}return!1}function tu(e){if(e.experimental==="all")return er.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(n=>er.experimental.includes(n)&&e.experimental[n])}function p0(e){if(process.env.JEST_WORKER_ID===void 0&&tu(e).length>0){let t=tu(e).map(n=>f0.default.yellow(n)).join(", ");c0.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 h0=er});var ou=L(ji=>{"use strict";c();Object.defineProperty(ji,"__esModule",{value:!0});Object.defineProperty(ji,"default",{enumerable:!0,get:()=>iu});var m0=v0(En()),g0=nu();function v0(e){return e&&e.__esModule?e:{default:e}}function iu(e){var t;let n=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[m0.default]).slice().reverse().flatMap(s=>iu(typeof s=="function"?s():s)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(r).filter(s=>(0,g0.flagEnabled)(e,s)).map(s=>r[s]);return[e,...i,...n]}});var au=L(Vi=>{"use strict";c();Object.defineProperty(Vi,"__esModule",{value:!0});Object.defineProperty(Vi,"default",{enumerable:!0,get:()=>x0});var b0=su(Ka()),y0=su(ou());function su(e){return e&&e.__esModule?e:{default:e}}function x0(...e){let[,...t]=(0,y0.default)(e[0]);return(0,b0.default)([...e,...t])}});var lu=L((Xg,uu)=>{c();var Hi=au();uu.exports=(Hi.__esModule?Hi:{default:Hi}).default});c();c();c();var mr;function Hu(e){mr=e}async function Fe(){return mr||(mr=await(await Promise.resolve().then(()=>(_o(),wo))).getYogaModule()),mr}c();c();c();var ht=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Yu=ht((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),Xu=ht((e,t)=>{t.exports=["deg","grad","rad","turn"]}),Qu=ht((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),Ku=ht((e,t)=>{t.exports=["Hz","kHz"]}),Ju=ht((e,t)=>{t.exports=["s","ms"]}),Zu=Yu(),So=Xu(),ko=Qu(),To=Ku(),Oo=Ju();function Jr(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(el(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=Kr(e),this.unit="%";return}var t=rl(e);if(!t){this.type="number",this.value=Kr(e);return}this.type=il(t),this.value=Kr(e.substr(0,e.length-t.length)),this.unit=t}Jr.prototype.valueOf=function(){return this.value};Jr.prototype.toString=function(){return this.value+(this.unit||"")};function Ge(e){return new Jr(e)}function el(e){var t=e.match(/\./g);return t?t.length:0}function Kr(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var tl=[].concat(So,To,Zu,ko,Oo);function rl(e){var t=e.match(/\D+$/),n=t&&t[0];if(n&&tl.indexOf(n)===-1)throw new Error("Invalid unit: "+n);return n}var nl=Object.assign(gr(So,"angle"),gr(To,"frequency"),gr(ko,"resolution"),gr(Oo,"time"));function gr(e,t){return Object.fromEntries(e.map(n=>[n,t]))}function il(e){return nl[e]||"length"}function rn(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function Eo(e){return/^class\s/.test(e.toString())}function Po(e){return"dangerouslySetInnerHTML"in e}function Ao(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 ye(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 s=new Ge(e);if(s.type==="length")switch(s.unit){case"em":return s.value*t;case"rem":return s.value*16;case"vw":return~~(s.value*r._viewportWidth/100);case"vh":return~~(s.value*r._viewportHeight/100);default:return s.value}else if(s.type==="angle")switch(s.unit){case"deg":return s.value;case"rad":return s.value*180/Math.PI;default:return s.value}else if(s.type==="percentage"&&i)return s.value/100*n}catch{}}function mt(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 de(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(s=>`"${s}"`).join(" | ")}. Received: "${e}".`);i=n}return i}var Zr,en,gt=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e));function Me(e,t,n){if(!Zr||!en){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");Zr=new Intl.Segmenter(n,{granularity:"word"}),en=new Intl.Segmenter(n,{granularity:"grapheme"})}return t==="word"?[...Zr.segment(e)].map(r=>r.segment):[...en.segment(e)].map(r=>r.segment)}function R(e,t,n){let r="";for(let[i,s]of Object.entries(t))typeof s<"u"&&(r+=` ${i}="${s}"`);return n?`<${e}${r}>${n}</${e}>`:`<${e}${r}/>`}function Io(e=20){let t=new Map;function n(i,s){if(t.size>=e){let o=t.keys().next().value;t.delete(o)}t.set(i,s)}function r(i){if(!t.has(i))return;let o=t.get(i);return t.delete(i),t.set(i,o),o}return{set:n,get:r}}var Ro={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",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"},ol=/[\r\n%#()<>?[\\\]^`{|}"']/g;function tn(e,t){if(!e)return"";if(Array.isArray(e))return e.map(a=>tn(a,t)).join("");if(typeof e!="object")return String(e);let n=e.type;if(n==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:r,style:i,...s}=e.props||{},o=(i==null?void 0:i.color)||t;return`<${n}${Object.entries(s).map(([a,u])=>(typeof u=="string"&&u.toLowerCase()==="currentcolor"&&(u=o),` ${Ro[a]||a}="${u}"`)).join("")}>${tn(r,o)}</${n}>`}function vt(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Lo(e,t){let{viewBox:n,viewbox:r,width:i,height:s,className:o,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,d=vt(n),v=d?d[3]/d[2]:null;return i=i||v&&s?s/v:null,s=s||v&&i?i*v:null,l.width=i,l.height=s,n&&(l.viewBox=n),`data:image/svg+xml;utf8,${`<svg ${Object.entries(l).map(([p,h])=>(typeof h=="string"&&h.toLowerCase()==="currentcolor"&&(h=f),` ${Ro[p]||p}="${h}"`)).join("")}>${tn(u,f)}</svg>`.replace(ol,encodeURIComponent)}`}function Co(e){return typeof e=="string"}c();c();var xe="flex",Do={p:{display:xe,marginTop:"1em",marginBottom:"1em"},div:{display:xe},blockquote:{display:xe,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:xe,textAlign:"center"},hr:{display:xe,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:xe,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:xe,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:xe,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:xe,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:xe,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:xe,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:xe,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};c();var sl=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","textDecorationLine","textDecorationStyle","textDecorationColor","whiteSpace","transform","wordBreak","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath"]);function nn(e){let t={};for(let n in e)sl.has(n)&&(t[n]=e[n]);return t}c();import{getPropertyName as ll,getStylesForProperty as Qe}from"css-to-react-native";import{parseElementStyle as fl}from"css-background-parser";import{parse as cl}from"css-box-shadow";c();import al from"postcss-value-parser";function ul(e,t){try{let n=new Ge(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 on(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=ul(e,t);return r.absolute?{[n?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[n?"xRelative":"yRelative"]:r.relative}:{}}}}function sn(e,t){if(typeof e=="number")return{xAbsolute:e};let n;try{n=al(e).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return n.length===1?on(n[0],t,!0):n.length===2?((n[0]==="top"||n[0]==="bottom"||n[1]==="left"||n[1]==="right")&&n.reverse(),{...on(n[0],t,!0),...on(n[1],t,!1)}):{}}var dl=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),pl=new Set(["lineHeight"]);function hl(e,t,n,r){return e==="textDecoration"&&!n.includes(t.textDecorationColor)&&(t.textDecorationColor=r),t}function bt(e,t){return typeof t=="number"?dl.has(e)?pl.has(e)?t:String(t):t+"px":t}function ml(e,t,n){if(e==="lineHeight")return{lineHeight:bt(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(r=>r.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[r,i]=t.split("/"),s=Qe(e,r,!0),o=Qe(e,i,!0);for(let a in s)o[a]=bt(e,s[a])+" "+bt(e,o[a]);return o}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let r=Qe("border",t,!0);r.borderWidth===1&&!String(t).includes("1px")&&(r.borderWidth=3),r.borderColor==="black"&&!String(t).includes("black")&&(r.borderColor=n);let i={Width:bt(e+"Width",r.borderWidth),Style:de(r.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:r.borderColor},s={};for(let o of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let a in i)s["border"+o+a]=i[a];return s}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?cl(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let r={},i=t.replace(/(-?[\d.]+%)/g,(o,a)=>{let u=~~(Math.random()*1e9);return r[u]=a,u+"px"}),s=Qe("transform",i,!0);for(let o of s.transform)for(let a in o)r[o[a]]&&(o[a]=r[o[a]]);return s}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url)\(/.test(t)?Qe("backgroundImage",t,!0):Qe("background",t,!0)}function Fo(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var Mo=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function No(e){if(typeof e=="string"&&Mo.test(e.trim()))return e.trim().replace(Mo,(t,n,r,i,s)=>`rgba(${n}, ${r}, ${i}, ${s})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=No(e[t]);return e}return e}function vr(e,t){let n={};if(e){let i=gl(e.color,t.color);n.color=i;for(let s in e){if(s.startsWith("_")){n[s]=e[s];continue}if(s==="color")continue;let o=ll(s),a=bl(e[s],i);try{let u=ml(o,a,i)||hl(o,Qe(o,bt(o,a),!0),a,i);Object.assign(n,u)}catch(u){throw new Error(u.message+(u.message.includes(a)?`
|
|
4
|
-
`+
|
|
5
|
-
in CSS rule \`${o}: ${a}\`.${Fo(o)}`))}}}if(n.backgroundImage){let{backgrounds:i}=fl(n);n.backgroundImage=i}let r=typeof n.fontSize=="number"?n.fontSize:t.fontSize;if(typeof r=="string")try{let i=new Ge(r);switch(i.unit){case"em":r=i.value*t.fontSize;break;case"rem":r=i.value*16;break}}catch{r=16}typeof n.fontSize<"u"&&(n.fontSize=r),n.transformOrigin&&(n.transformOrigin=sn(n.transformOrigin,r));for(let i in n){let s=n[i];if(i==="lineHeight")typeof s=="string"&&(s=n[i]=ye(s,r,r,t,!0)/r);else{if(typeof s=="string"){let o=ye(s,r,r,t);typeof o<"u"&&(n[i]=o),s=n[i]}if(typeof s=="string"||typeof s=="object"){let o=No(s);o&&(n[i]=o),s=n[i]}}if(i==="opacity"&&(s=n[i]=s*t.opacity),i==="transform"){let o=s;for(let a of o){let u=Object.keys(a)[0],l=a[u],f=typeof l=="string"?ye(l,r,r,t)??l:l;a[u]=f}}}return n}function gl(e,t){return e&&e.toLowerCase()!=="currentcolor"?e:t}function vl(e,t){return e.replace(/currentcolor/ig,t)}function bl(e,t){return Co(e)&&(e=vl(e,t)),e}c();var yl="image/avif",xl="image/webp",br="image/png",yr="image/jpeg",xr="image/gif",ln="image/svg+xml";function $o(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 s=t.getUint8(i+1+n);if(s===192||s===193||s===194)return[t.getUint16(i+7+n,!1),t.getUint16(i+5+n,!1)];n+=i+2}throw new TypeError("Invalid JPEG")}function Wo(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function qo(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var an=Io(100),un=new Map,wl=[br,yr,xr,ln];function _l(e){let t="",n=new Uint8Array(e);for(let r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return btoa(t)}function Sl(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 Bo(e,t){let n=t.match(/<svg[^>]*>/)[0],r=n.match(/viewBox=['"](.+)['"]/),i=r?vt(r[1]):null,s=n.match(/width=['"](\d*\.\d+|\d+)['"]/),o=n.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!i&&(!s||!o))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let a=i?[i[2],i[3]]:[+s[1],+o[1]],u=a[0]/a[1];return s&&o?[+s[1],+o[1]]:s?[+s[1],+s[1]/u]:o?[+o[1]*u,+o[1]]:[a[0],a[1]]}async function wr(e){if(!e)throw new Error("Image source is not provided.");if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),e.startsWith("data:")){let r;try{r=/data:(?<imageType>[a-z/+]+)(;(?<encodingType>base64|utf8))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:i,encodingType:s,dataString:o}=r;if(i===ln){let a=s==="base64"?atob(o):decodeURIComponent(o.replace(/ /g,"%20")),u=s==="base64"?e:`data:image/svg+xml;base64,${btoa(a)}`,l=Bo(e,a);return[u,...l]}else if(s==="base64"){let a,u=Sl(o);switch(i){case br:a=qo(u);break;case xr:a=Wo(u);break;case yr:a=$o(u);break}return[e,...a]}else return console.warn("Image data URI resolved without size:"+e),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(un.has(e))return un.get(e);let t=an.get(e);if(t)return t;let n=new Promise((r,i)=>{fetch(e).then(s=>{let o=s.headers.get("content-type");return o==="image/svg+xml"||o==="application/svg+xml"?s.text():s.arrayBuffer()}).then(s=>{if(typeof s=="string")try{let l=`data:image/svg+xml;base64,${btoa(s)}`,f=Bo(e,s);an.set(e,[l,...f]),r([l,...f]);return}catch(l){throw new Error(`Failed to parse SVG image: ${l.message}`)}let o,a=kl(new Uint8Array(s));switch(a){case br:o=qo(s);break;case xr:o=Wo(s);break;case yr:o=$o(s);break}if(!wl.includes(a))throw new Error(`Unsupported image type: ${a||"unknown"}`);let u=`data:${a};base64,${_l(s)}`;an.set(e,[u,...o]),r([u,...o])}).catch(s=>{i(new Error(`Can't load image ${e}: `+s.message))})});return un.set(e,n),n}function kl(e){return[255,216,255].every((t,n)=>e[n]===t)?yr:[137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)?br:[71,73,70,56].every((t,n)=>e[n]===t)?xr:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,n)=>!t||e[n]===t)?xl:[60,63,120,109,108].every((t,n)=>e[n]===t)?ln:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,n)=>!t||e[n]===t)?yl:null}async function fn(e,t,n,r,i){let s=await Fe(),o={...n,...vr(Do[t],n),...vr(r,n)};if(t==="img"){let[a,u,l]=await wr(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,d=(o.borderLeftWidth||0)+(o.borderRightWidth||0)+(o.paddingLeft||0)+(o.paddingRight||0),v=(o.borderTopWidth||0)+(o.borderBottomWidth||0)+(o.paddingTop||0)+(o.paddingBottom||0),p=o.width||i.width,h=o.height||i.height,b=typeof p!="string"&&typeof h!="string";typeof p=="number"&&b&&(p-=d),typeof h=="number"&&b&&(h-=v),p===void 0&&h===void 0?(p=u,h=l):p===void 0?typeof h=="number"?p=h/f:e.setAspectRatio(1/f):h===void 0&&(typeof p=="number"?h=p*f:e.setAspectRatio(1/f)),o.width=b?p+d:p,o.height=b?h+v:h,o.__src=a}if(t==="svg"){let a=i.viewBox||i.viewbox,u=vt(a),l=u?u[3]/u[2]:null,{width:f,height:d}=i;typeof f>"u"&&d?l==null?f=0:typeof d=="string"&&d.endsWith("%")?f=parseInt(d)/l+"%":(d=ye(d,n.fontSize,1,n),f=d/l):typeof d>"u"&&f?l==null?f=0:typeof f=="string"&&f.endsWith("%")?d=parseInt(f)*l+"%":(f=ye(f,n.fontSize,1,n),d=f*l):(typeof f<"u"&&(f=ye(f,n.fontSize,1,n)||f),typeof d<"u"&&(d=ye(d,n.fontSize,1,n)||d),f||=u==null?void 0:u[2],d||=u==null?void 0:u[3]),!o.width&&f&&(o.width=f),!o.height&&d&&(o.height=d)}return e.setDisplay(de(o.display,{flex:s.DISPLAY_FLEX,none:s.DISPLAY_NONE},s.DISPLAY_FLEX,"display")),e.setAlignContent(de(o.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(de(o.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_FLEX_START,"alignItems")),e.setAlignSelf(de(o.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(de(o.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(de(o.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(de(o.flexWrap,{wrap:s.WRAP_WRAP,nowrap:s.WRAP_NO_WRAP,"wrap-reverse":s.WRAP_WRAP_REVERSE},s.WRAP_NO_WRAP,"flexWrap")),typeof e.setGap<"u"&&typeof e.getGap<"u"&&(typeof o.gap<"u"&&e.setGap(s.GUTTER_ALL,o.gap),typeof o.rowGap<"u"&&e.setGap(s.GUTTER_ROW,o.rowGap),typeof o.columnGap<"u"&&e.setGap(s.GUTTER_COLUMN,o.columnGap)),typeof o.flexBasis<"u"&&e.setFlexBasis(o.flexBasis),e.setFlexGrow(typeof o.flexGrow>"u"?0:o.flexGrow),e.setFlexShrink(typeof o.flexShrink>"u"?0:o.flexShrink),typeof o.maxHeight<"u"&&e.setMaxHeight(o.maxHeight),typeof o.maxWidth<"u"&&e.setMaxWidth(o.maxWidth),typeof o.minHeight<"u"&&e.setMinHeight(o.minHeight),typeof o.minWidth<"u"&&e.setMinWidth(o.minWidth),e.setOverflow(de(o.overflow,{visible:s.OVERFLOW_VISIBLE,hidden:s.OVERFLOW_HIDDEN},s.OVERFLOW_VISIBLE,"overflow")),e.setMargin(s.EDGE_TOP,o.marginTop||0),e.setMargin(s.EDGE_BOTTOM,o.marginBottom||0),e.setMargin(s.EDGE_LEFT,o.marginLeft||0),e.setMargin(s.EDGE_RIGHT,o.marginRight||0),e.setBorder(s.EDGE_TOP,o.borderTopWidth||0),e.setBorder(s.EDGE_BOTTOM,o.borderBottomWidth||0),e.setBorder(s.EDGE_LEFT,o.borderLeftWidth||0),e.setBorder(s.EDGE_RIGHT,o.borderRightWidth||0),e.setPadding(s.EDGE_TOP,o.paddingTop||0),e.setPadding(s.EDGE_BOTTOM,o.paddingBottom||0),e.setPadding(s.EDGE_LEFT,o.paddingLeft||0),e.setPadding(s.EDGE_RIGHT,o.paddingRight||0),e.setPositionType(de(o.position,{absolute:s.POSITION_TYPE_ABSOLUTE,relative:s.POSITION_TYPE_RELATIVE},s.POSITION_TYPE_RELATIVE,"position")),typeof o.top<"u"&&e.setPosition(s.EDGE_TOP,o.top),typeof o.bottom<"u"&&e.setPosition(s.EDGE_BOTTOM,o.bottom),typeof o.left<"u"&&e.setPosition(s.EDGE_LEFT,o.left),typeof o.right<"u"&&e.setPosition(s.EDGE_RIGHT,o.right),typeof o.height<"u"?e.setHeight(o.height):e.setHeightAuto(),typeof o.width<"u"?e.setWidth(o.width):e.setWidthAuto(),[o,nn(o)]}c();c();c();var Uo=[1,0,0,1,0,0];function Tl(e,t,n){let r=[...Uo];for(let i of e){let s=Object.keys(i)[0],o=i[s];if(typeof o=="string")if(s==="translateX")o=parseFloat(o)/100*t,i[s]=o;else if(s==="translateY")o=parseFloat(o)/100*n,i[s]=o;else throw new Error(`Invalid transform: "${s}: ${o}".`);let a=o,u=[...Uo];switch(s){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),d=Math.sin(l);u[0]=f,u[1]=d,u[2]=-d,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=mt(u,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function yt({left:e,top:t,width:n,height:r},i,s,o){let a;i.__resolved||Tl(i,n,r);let u=i;if(s)a=u;else{let l=(o==null?void 0:o.xAbsolute)??((o==null?void 0:o.xRelative)??50)*n/100,f=(o==null?void 0:o.yAbsolute)??((o==null?void 0:o.yRelative)??50)*r/100,d=e+l,v=t+f;a=mt([1,0,0,1,d,v],mt(u,[1,0,0,1,-d,-v])),u.__parent&&(a=mt(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(l=>l.toFixed(2)).join(",")})`}function zo({left:e,top:t,width:n,height:r,isInheritingTransform:i},s){let o="",a=1;return s.transform&&(o=yt({left:e,top:t,width:n,height:r},s.transform,i,s.transformOrigin)),s.opacity!==void 0&&(a=+s.opacity),{matrix:o,opacity:a}}function cn({id:e,content:t,filter:n,left:r,top:i,width:s,height:o,matrix:a,opacity:u,image:l,clipPathId:f,debug:d,shape:v,decorationShape:p},h){let b="";if(d&&(b=R("rect",{x:r,y:i-o,width:s,height:o,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0})),l){let g={href:l,x:r,y:i,width:s,height:o,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:h.filter?`filter:${h.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+R("image",{...g,opacity:u!==1?u:void 0})+(p||"")+(n?"</g>":"")+b,""]}let _={x:r,y:i,width:s,height:o,"font-weight":h.fontWeight,"font-style":h.fontStyle,"font-size":h.fontSize,"font-family":h.fontFamily,"letter-spacing":h.letterSpacing||void 0,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:h.filter?`filter:${h.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+R("text",{..._,fill:h.color,opacity:u!==1?u:void 0},t)+(p||"")+(n?"</g>":"")+b,v?R("text",_,t):""]}c();function Ol(e,t,n){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(r,i,s,o){return i+(parseFloat(s)+t)+","+(parseFloat(o)+n)})}function Go({id:e,width:t,height:n},r){if(!r.shadowColor||!r.shadowOffset||typeof r.shadowRadius>"u")return"";let i=r.shadowRadius*r.shadowRadius/4,s=Math.min(r.shadowOffset.width-i,0),o=Math.max(r.shadowOffset.width+i+t,t),a=Math.min(r.shadowOffset.height-i,0),u=Math.max(r.shadowOffset.height+i+n,n);return`<defs><filter id="satori_s-${e}" x="${s/t*100}%" y="${a/n*100}%" width="${(o-s)/t*100}%" height="${(u-a)/n*100}%"><feDropShadow dx="${r.shadowOffset.width}" dy="${r.shadowOffset.height}" stdDeviation="${r.shadowRadius/2}" flood-color="${r.shadowColor}" flood-opacity="1"/></filter></defs>`}function jo({width:e,height:t,shape:n,opacity:r,id:i},s){if(!s.boxShadow)return null;let o="",a="";for(let u=s.boxShadow.length-1;u>=0;u--){let l="",f=s.boxShadow[u];f.spreadRadius&&f.inset&&(f.spreadRadius=-f.spreadRadius);let d=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),v=Math.min(-d-(f.inset?f.offsetX:0),0),p=Math.max(d+e-(f.inset?f.offsetX:0),e),h=Math.min(-d-(f.inset?f.offsetY:0),0),b=Math.max(d+t-(f.inset?f.offsetY:0),t),_=`satori_s-${i}-${u}`,g=`satori_ms-${i}-${u}`,y=f.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):n;l+=R("mask",{id:g,maskUnits:"userSpaceOnUse"},R("rect",{x:0,y:0,width:s._viewportWidth,height:s._viewportHeight,fill:f.inset?"#000":"#fff"})+y.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let S=y.replace(/d="([^"]+)"/,(E,T)=>'d="'+Ol(T,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(E,T)=>'x="'+(parseFloat(T)+f.offsetX)+'"').replace(/y="([^"]+)"/,(E,T)=>'y="'+(parseFloat(T)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(l+=R("mask",{id:g+"-neg",maskUnits:"userSpaceOnUse"},S.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(S=R("g",{mask:`url(#${g}-neg)`},S)),l+=R("defs",{},R("filter",{id:_,x:`${v/e*100}%`,y:`${h/t*100}%`,width:`${(p-v)/e*100}%`,height:`${(b-h)/t*100}%`},R("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+R("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+R("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+R("g",{mask:`url(#${g})`,filter:`url(#${_})`,opacity:r},S),f.inset?a+=l:o+=l}return[o,a]}c();function dn({width:e,left:t,top:n,ascender:r,clipPathId:i},s){let{textDecorationColor:o,textDecorationStyle:a,textDecorationLine:u,fontSize:l}=s;if(!u||u==="none")return"";let f=Math.max(1,l*.1),d=u==="line-through"?n+r*.5:u==="underline"?n+r*1.1:n,v=a==="dashed"?`${f*1.2} ${f*2}`:a==="dotted"?`0 ${f*2}`:void 0;return R("line",{x1:t,y1:d,x2:t+e,y2:d,stroke:o,"stroke-width":f,"stroke-dasharray":v,"stroke-linecap":a==="dotted"?"round":"square","clip-path":i?`url(#${i})`:void 0})}async function*pn(e,t){var yo;let n=await Fe(),{parentStyle:r,inheritedStyle:i,parent:s,font:o,id:a,isInheritingTransform:u,debug:l,embedFont:f,graphemeImages:d,locale:v,canLoadAdditionalAssets:p}=t;r.textTransform==="uppercase"?e=e.toLocaleUpperCase(v):r.textTransform==="lowercase"?e=e.toLocaleLowerCase(v):r.textTransform==="capitalize"&&(e=Me(e,"word",v).map(B=>Me(B,"grapheme",v).map((J,H)=>H===0?J.toLocaleUpperCase(v):J).join("")).join(""));let h=r.wordBreak==="break-word",b=de(r.wordBreak,{normal:"word","break-all":"grapheme","break-word":"word","keep-all":"word"},"word","wordBreak"),_=Me(e,b,v),g=n.Node.create();g.setAlignItems(n.ALIGN_BASELINE),g.setJustifyContent(de(r.textAlign,{left:n.JUSTIFY_FLEX_START,right:n.JUSTIFY_FLEX_END,center:n.JUSTIFY_CENTER,justify:n.JUSTIFY_SPACE_BETWEEN,start:n.JUSTIFY_FLEX_START,end:n.JUSTIFY_FLEX_END},n.JUSTIFY_FLEX_START,"textAlign")),s.insertChild(g,s.getChildCount());let{textAlign:y,textOverflow:S,whiteSpace:E,lineHeight:T,filter:D,_inheritedBackgroundClipTextPath:F}=r,C=r.fontSize,M=o.getEngine(C,T,r,v),j=p?_.filter(B=>!M.has(B)):[];yield j.map(B=>({word:B,locale:v})),j.length&&(M=o.getEngine(C,T,r,v));let U=[],q=[],W=[],re=[],K=new Map,ne=B=>{let J=0;for(let H of B){if(K.has(H)){J+=K.get(H);continue}let pe=M.measure(H,r);K.set(H,pe),J+=pe}return J},oe=0,I=[],$=0;for(let B of _){let J=!1,H=d&&d[B];E==="pre"?J=B[0]===`
|
|
6
|
-
`:E!=="nowrap"&&(H||gt.includes(B[0]))&&(J=!0),J?(E==="nowrap"?$+=ne(I)+r.fontSize:(oe=Math.max(oe,ne(I)),H&&(oe=Math.max(oe,r.fontSize))),I=[]):(!gt.includes(B[0])||!I.length)&&I.push(B===`
|
|
7
|
-
`?" ":B)}oe=Math.max(oe,ne(I)+$);let V=s.getMinWidth(),N=s.getMaxWidth(),Ee=s.getWidth();isNaN(Ee.value)&&(isNaN(V.value)||V.unit===1&&V.value>oe)&&(isNaN(N.value)||N.unit===1&&(oe=Math.min(oe,N.value)),s.setMinWidth(oe)),typeof r.flexShrink>"u"&&s.setFlexShrink(1);let dt=["pre","pre-wrap","pre-line"].includes(E),Mu=!["pre","pre-wrap"].includes(E);g.setMeasureFunc(B=>{let J=0,H="",pe=0,se=0,he=0,ce=-1,Ue=0,Z=0,Ce=0;U=[],W=[0];for(let De=0;De<_.length;De++){let ae=_[De],Pe=dt&&ae===`
|
|
8
|
-
`;if(Mu&>.includes(ae[0])&&!Pe)H||(H=" "),pe=ne([H]),re[De]=null;else{let me=Pe?0:d&&d[ae]?r.fontSize:ne([ae]);Pe&&Z===0&&(Z=M.height(ae)),se||(H="",pe=0);let ue=pe||",.!?:-@)>]}%#".indexOf(ae[0])<0,fe=!se||!!pe,ze=De&&ue&&se+pe+me>B&&E!=="nowrap"&&E!=="pre";if(h&&me>B&&(!se||ze||Pe)){let Xe=Me(ae,"grapheme");_.splice(De,1,"",...Xe),se>0&&(U.push(se),q.push(Ce),J++,Ue+=Z,se=0,Z=0,Ce=0,W.push(1),ce=-1);continue}if(Pe||ze)U.push(se),q.push(Ce),J++,Ue+=Z,se=me,Z=me?M.height(ae):0,Ce=me?M.baseline(ae):0,W.push(1),ce=-1,Pe||(he=Math.max(he,B));else{se+=pe+me;let Xe=M.height(ae);Xe>Z&&(Z=Xe,Ce=M.baseline(ae)),fe&&W[W.length-1]++}H="",pe=0,fe&&ce++,he=Math.max(he,se),re[De]={y:Ue,x:se-me,width:me,line:J,lineIndex:ce}}}return se&&(J++,U.push(se),q.push(Ce),Ue+=Z),{width:he,height:Ue}});let[Nu,$u]=yield,Vr="",sr="",qe=i._inheritedClipPathId,co=i._inheritedMaskId,{left:po,top:ho,width:ar,height:mo}=g.getComputedLayout(),Hr=s.getComputedWidth()-s.getComputedPadding(n.EDGE_LEFT)-s.getComputedPadding(n.EDGE_RIGHT)-s.getComputedBorder(n.EDGE_LEFT)-s.getComputedBorder(n.EDGE_RIGHT),nt=Nu+po,it=$u+ho,{matrix:Le,opacity:ur}=zo({left:po,top:ho,width:ar,height:mo,isInheritingTransform:u},r),lr="";r.textShadowOffset&&(lr=Go({width:ar,height:mo,id:a},{shadowColor:r.textShadowColor,shadowOffset:r.textShadowOffset,shadowRadius:r.textShadowRadius}));let pt="",fr="",go="",Yr=-1,vo=S==="ellipsis"?ne(["\u2026"]):0,Wu=S==="ellipsis"?ne([" "]):0,cr={},Be=null,bo=0;for(let B=0;B<_.length;B++){if(!re[B])continue;let J=re[B],H=_[B],pe=null,se=d?d[H]:null,he=J.y,ce=J.x,Ue=J.width,Z=J.line;if(Z===Yr)continue;let Ce=!1;if(U.length>1){let ue=ar-U[Z];if(y==="right"||y==="end")ce+=ue;else if(y==="center")ce+=ue/2;else if(y==="justify"&&Z<U.length-1){let fe=W[Z];ce+=(fe>1?ue/(fe-1):0)*J.lineIndex,Ce=!0}}if(cr[Z]||(cr[Z]=[ce,Ce?ar:U[Z]]),S==="ellipsis"&&U[Z]>Hr&&J.x+Ue+vo+Wu>Hr){let ue=Me(H,"grapheme",v),fe="",ze=0;for(let Xr of ue){let Xe=J.x+ne([fe+Xr]);if(fe&&Xe+vo>Hr)break;fe+=Xr,ze=Xe}H=fe+"\u2026",Yr=Z,cr[Z][1]=ze}let De=q[Z],ae=M.baseline(H),Pe=M.height(H),me=De-ae;if(se)he+=0;else if(f){if(!gt.includes(H)&&_[B+1]&&!d[_[B+1]]&&re[B+1]&&he===re[B+1].y){Be===null&&(bo=ce),Be=Be===null?H:Be+H;continue}let ue=Be===null?H:Be+H,fe=Be===null?ce:bo,ze=J.width+ce-fe;pe=M.getSVG(ue,{...r,left:nt+fe,top:it+he+ae+me,letterSpacing:r.letterSpacing}),Be=null,l&&(go+=R("rect",{x:nt+fe,y:it+he+me,width:ze,height:Pe,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:Le||void 0,"clip-path":qe?`url(#${qe})`:void 0})+R("line",{x1:nt+ce,x2:nt+ce+J.width,y1:it+he+me+ae,y2:it+he+me+ae,stroke:"#14c000","stroke-width":1,transform:Le||void 0,"clip-path":qe?`url(#${qe})`:void 0}))}else he+=ae+me;if(r.textDecorationLine&&(Z!==((yo=re[B+1])==null?void 0:yo.line)||Yr===Z)){let ue=cr[Z];ue&&!ue[2]&&(pt+=dn({left:nt+ue[0],top:it+Pe*+Z,width:ue[1],ascender:M.baseline(H),clipPathId:qe},r),ue[2]=1)}if(pe!==null)fr+=pe+" ";else{let[ue,fe]=cn({content:H,filter:lr,id:a,left:nt+ce,top:it+he,width:Ue,height:Pe,matrix:Le,opacity:ur,image:se,clipPathId:qe,debug:l,shape:!!F,decorationShape:pt},r);Vr+=ue,sr+=fe,pt=""}}if(fr){let B=r.color!=="transparent"&&ur!==0?R("path",{fill:r.color,d:fr,transform:Le||void 0,opacity:ur!==1?ur:void 0,"clip-path":qe?`url(#${qe})`:void 0,mask:co?`url(#${co})`:void 0,style:D?`filter:${D}`:void 0}):"";F&&(sr=R("path",{d:fr,transform:Le||void 0})),Vr+=(lr?lr+R("g",{filter:`url(#satori_s-${a})`},B+pt):B+pt)+go}return sr&&(r._inheritedBackgroundClipTextPath.value+=sr),Vr}c();c();c();var hn=hn||{},Vo={type:"directional",value:"bottom"};hn.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,zeroValue:/[0]/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(I){var $=new Error(t+": "+I);throw $.source=t,$}function r(){var I=i();return t.length>0&&n("Invalid input not EOF"),I}function i(){return E(s)}function s(){return o("linear-gradient",e.linearGradient,u,Vo)||o("repeating-linear-gradient",e.repeatingLinearGradient,u,Vo)||o("radial-gradient",e.radialGradient,v)||o("repeating-radial-gradient",e.repeatingRadialGradient,v)}function o(I,$,V,N){return a($,function(Ee){var dt=V();return dt?ne(e.comma)||n("Missing comma before color stops"):dt=N,{type:I,orientation:dt,colorStops:E(T)}})}function a(I,$){var V=ne(I);if(V){ne(e.startCall)||n("Missing (");var N=$(V);return ne(e.endCall)||n("Missing )"),N}}function u(){return l()||f()||d()}function l(){return K("directional",e.sideOrCorner,1)}function f(){return K("angular",e.angleValue,1)}function d(){return K("directional",e.zeroValue,0)}function v(){var I,$=p(),V;return $&&(I=[],I.push($),V=t,ne(e.comma)&&($=p(),$?I.push($):t=V)),I}function p(){var I=h()||b();if(I)I.at=g();else{var $=_();if($){I=$;var V=g();V&&(I.at=V)}else{var V=g();if(V)I={type:"shape",value:"ellipse",at:V};else{var N=y();N&&(I={type:"default-radial",at:N})}}}return I}function h(){var I=K("shape",/^(circle)/i,0);return I&&(I.style=re()||_()),I}function b(){var I=K("shape",/^(ellipse)/i,0);return I&&(I.style=q()||_()),I}function _(){return K("extent-keyword",e.extentKeywords,1)}function g(){if(K("position",/^at/,0)){var I=y();return I||n("Missing positioning value"),I}}function y(){var I=S();if(I.x||I.y)return{type:"position",value:I}}function S(){return{x:q(),y:q()}}function E(I){var $=I(),V=[];if($)for(V.push($);ne(e.comma);)$=I(),$?V.push($):n("One extra comma");return V}function T(){var I=D();return I||n("Expected color definition"),I.length=q(),I}function D(){return C()||j()||M()||F()}function F(){return K("literal",e.literalColor,0)}function C(){return K("hex",e.hexColor,1)}function M(){return a(e.rgbColor,function(){return{type:"rgb",value:E(U)}})}function j(){return a(e.rgbaColor,function(){return{type:"rgba",value:E(U)}})}function U(){return ne(e.number)[1]}function q(){return K("%",e.percentageValue,1)||W()||re()}function W(){return K("position-keyword",e.positionKeywords,1)}function re(){return K("px",e.pixelValue,1)||K("em",e.emValue,1)}function K(I,$,V){var N=ne($);if(N)return{type:I,value:N[V]}}function ne(I){var $,V;return V=/^[\n\r\t\s]+/.exec(t),V&&oe(V[0].length),$=I.exec(t),$&&oe($[0].length),$}function oe(I){t=t.substr(I)}return function(I){return t=I.toString(),r()}}();var mn=hn;function El(e){return e.type==="literal"?e.value:e.type==="hex"?`#${e.value}`:e.type==="rgb"?`rgb(${e.value.join(",")})`:e.type==="rgba"?`rgba(${e.value.join(",")})`:"transparent"}function Pl(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),[t,n,r,i]}function Al(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function gn(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(s=>{try{let o=new Ge(s);return o.type==="length"||o.type==="number"?o.value:o.value+o.unit}catch{return null}}).filter(s=>s!==null):[r,i]).map((s,o)=>Al(s,[t,n][o]))}function Ho(e,t){let n=[];for(let o of t){let a=El(o);if(!n.length&&(n.push({offset:0,color:a}),typeof o.length>"u"||o.length.value==="0"))continue;let u=typeof o.length>"u"?void 0:o.length.type==="%"?o.length.value/100:o.length.value/e;n.push({offset:u,color:a})}n.length||n.push({offset:0,color:"transparent"});let r=n[n.length-1];r.offset!==1&&(typeof r.offset>"u"?r.offset=1:n.push({offset:1,color:r.color}));let i=0,s=1;for(let o=0;o<n.length;o++)if(typeof n[o].offset>"u"){for(s<o&&(s=o);typeof n[s].offset>"u";)s++;n[o].offset=(n[s].offset-n[i].offset)/(s-i)*(o-i)+n[i].offset}else i=o;return n}async function vn({id:e,width:t,height:n,left:r,top:i},{image:s,size:o,position:a,repeat:u}){u=u||"repeat";let l=u==="repeat-x"||u==="repeat",f=u==="repeat-y"||u==="repeat",d=gn(o,{x:t,y:n,defaultX:t,defaultY:n}),v=gn(a,{x:t,y:n,defaultX:0,defaultY:0});if(s.startsWith("linear-gradient(")){let p=mn.parse(s)[0],[h,b]=d,_,g,y,S;if(p.orientation.type==="directional")[_,g,y,S]=Pl(p.orientation.value);else if(p.orientation.type==="angular"){let C=+p.orientation.value/180*Math.PI-Math.PI/2,M=Math.cos(C),j=Math.sin(C);_=0,g=0,y=M,S=j,y<0&&(_-=y,y=0),S<0&&(g-=S,S=0)}let E=Ho(t,p.colorStops),T=`satori_bi${e}`,D=`satori_pattern_${e}`,F=R("pattern",{id:D,x:v[0]/t,y:v[1]/n,width:l?h/t:"1",height:f?b/n:"1",patternUnits:"objectBoundingBox"},R("linearGradient",{id:T,x1:_,y1:g,x2:y,y2:S},E.map(C=>R("stop",{offset:C.offset*100+"%","stop-color":C.color})).join(""))+R("rect",{x:0,y:0,width:h,height:b,fill:`url(#${T})`}));return[D,F]}if(s.startsWith("radial-gradient(")){let p=mn.parse(s)[0],h=p.orientation[0],[b,_]=d,g="circle",y=b/2,S=_/2;if(h.type==="shape"){if(g=h.value,h.at)if(h.at.type==="position")y=h.at.value.x.value,S=h.at.value.y.value;else throw new Error("orientation.at.type not implemented: "+h.at.type)}else throw new Error("orientation.type not implemented: "+h.type);let E=Ho(t,p.colorStops),T=`satori_radial_${e}`,D=`satori_pattern_${e}`,F=`satori_mask_${e}`,C={},M=Math.max(Math.abs(b-y),Math.abs(y)),j=Math.max(Math.abs(_-S),Math.abs(S));if(g==="circle")C.r=Math.sqrt(M*M+j*j);else if(g==="ellipse"){let W=j!==0?M/j:1;C.ry=Math.sqrt(M*M+j*j*W*W)/W,C.rx=C.ry*W}let U=R("pattern",{id:D,x:v[0]/t,y:v[1]/n,width:l?b/t:"1",height:f?_/n:"1",patternUnits:"objectBoundingBox"},R("radialGradient",{id:T},E.map(W=>R("stop",{offset:W.offset,"stop-color":W.color})).join(""))+R("mask",{id:F},R("rect",{x:0,y:0,width:b,height:_,fill:"#fff"}))+R(g,{cx:y,cy:S,width:b,height:_,...C,fill:`url(#${T})`,mask:`url(#${F})`}));return[D,U]}if(s.startsWith("url(")){let p=gn(o,{x:t,y:n,defaultX:0,defaultY:0}),[h,b,_]=await wr(s.slice(4,-1)),g=p[0]||b,y=p[1]||_;return[`satori_bi${e}`,R("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:v[0]+r,y:v[1]+i,width:l?g:"100%",height:f?y:"100%"},R("image",{x:0,y:0,width:g,height:y,preserveAspectRatio:"none",href:h}))]}throw new Error(`Invalid background image: "${s}"`)}c();function Il([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 _r(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 Sr(e){e[0]=e[1]=Math.min(e[0],e[1])}function kr(e,t,n,r,i){if(typeof e=="string"){let s=e.split(" ").map(a=>a.trim()),o=!s[1]&&!s[0].endsWith("%");return s[1]=s[1]||s[0],[o,[Math.min(ye(s[0],r,t,i,!0),t),Math.min(ye(s[1],r,n,i,!0),n)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,n)]]:[!0,void 0]}function ot({left:e,top:t,width:n,height:r},i,s){let{borderTopLeftRadius:o,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:l,fontSize:f}=i,d,v,p,h;if([d,o]=kr(o,n,r,f,i),[v,a]=kr(a,n,r,f,i),[p,u]=kr(u,n,r,f,i),[h,l]=kr(l,n,r,f,i),!s&&!o&&!a&&!u&&!l)return"";o||=[0,0],a||=[0,0],u||=[0,0],l||=[0,0],[o[0],a[0]]=_r(o[0],a[0],n),[u[0],l[0]]=_r(u[0],l[0],n),[o[1],u[1]]=_r(o[1],u[1],r),[a[1],l[1]]=_r(a[1],l[1],r),d&&Sr(o),v&&Sr(a),p&&Sr(u),h&&Sr(l);let b=[];b[0]=[a,a],b[1]=[l,[-l[0],l[1]]],b[2]=[u,[-u[0],-u[1]]],b[3]=[o,[o[0],-o[1]]];let _=`h${n-o[0]-a[0]} a${b[0][0]} 0 0 1 ${b[0][1]}`,g=`v${r-a[1]-l[1]} a${b[1][0]} 0 0 1 ${b[1][1]}`,y=`h${l[0]+u[0]-n} a${b[2][0]} 0 0 1 ${b[2][1]}`,S=`v${u[1]+o[1]-r} a${b[3][0]} 0 0 1 ${b[3][1]}`;if(s){let T=function(q){let W=Il([o,a,l,u][q]);return q===0?[[e+o[0]-W,t+o[1]-W],[e+o[0],t]]:q===1?[[e+n-a[0]+W,t+a[1]-W],[e+n,t+a[1]]]:q===2?[[e+n-l[0]+W,t+r-l[1]+W],[e+n-l[0],t+r]]:[[e+u[0]-W,t+r-u[1]+W],[e,t+r-u[1]]]},E=s.indexOf(!1);if(!s.includes(!0))throw new Error("Invalid `partialSides`.");if(E===-1)E=0;else for(;!s[E];)E=(E+1)%4;let D="",F=T(E),C=`M${F[0]} A${b[(E+3)%4][0]} 0 0 1 ${F[1]}`,M=0;for(;M<4&&s[(E+M)%4];M++)D+=C+" ",C=[_,g,y,S][(E+M)%4];let j=(E+M)%4;D+=C.split(" ")[0];let U=T(j);return D+=` A${b[(j+3)%4][0]} 0 0 1 ${U[0]}`,D}return`M${e+o[0]},${t} ${_} ${g} ${y} ${S}`}c();c();c();function Yo(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function Xo({id:e,currentClipPathId:t,borderPath:n,borderType:r,left:i,top:s,width:o,height:a},u){if(!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth))return null;let f=`satori_bc-${e}`;return[R("clipPath",{id:f,"clip-path":t?`url(#${t})`:void 0},R(r,{x:i,y:s,width:o,height:a,d:n||void 0})),f]}function xt({left:e,top:t,width:n,height:r,props:i,asContentMask:s,maskBorderOnly:o},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!s&&!u.some(p=>a[p+"Width"]))return"";let l="",f=0;for(;f>0&&Yo(u[f],u[(f+3)%4],a);)f=(f+3)%4;let d=[!1,!1,!1,!1],v=[];for(let p=0;p<4;p++){let h=(f+p)%4,b=(f+p+1)%4,_=u[h],g=u[b];if(d[h]=!0,v=[a[_+"Width"],a[_+"Style"],a[_+"Color"],_],!Yo(_,g,a)){let y=(v[0]||0)+(s&&!o&&a[_.replace("border","padding")]||0);y&&(l+=R("path",{width:n,height:r,...i,fill:"none",stroke:s?"#000":v[2],"stroke-width":y*2,"stroke-dasharray":!s&&v[1]==="dashed"?y*2+" "+y:void 0,d:ot({left:e,top:t,width:n,height:r},a,d)})),d=[!1,!1,!1,!1]}}if(d.some(Boolean)){let p=(v[0]||0)+(s&&!o&&a[v[3].replace("border","padding")]||0);p&&(l+=R("path",{width:n,height:r,...i,fill:"none",stroke:s?"#000":v[2],"stroke-width":p*2,"stroke-dasharray":!s&&v[1]==="dashed"?p*2+" "+p:void 0,d:ot({left:e,top:t,width:n,height:r},a,d)}))}return l}function bn({id:e,left:t,top:n,width:r,height:i,matrix:s,borderOnly:o},a){let u=(a.borderLeftWidth||0)+(o?0:a.paddingLeft||0),l=(a.borderTopWidth||0)+(o?0:a.paddingTop||0),f=(a.borderRightWidth||0)+(o?0:a.paddingRight||0),d=(a.borderBottomWidth||0)+(o?0:a.paddingBottom||0),v={x:t+u,y:n+l,width:r-u-f,height:i-l-d};return R("mask",{id:e},R("rect",{...v,fill:"#fff",mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+xt({left:t,top:n,width:r,height:i,props:{transform:s||void 0},asContentMask:!0,maskBorderOnly:o},a))}function yn({left:e,top:t,width:n,height:r,path:i,matrix:s,id:o,currentClipPath:a,src:u},l){if(l.overflow!=="hidden"&&!u)return"";let f=bn({id:`satori_om-${o}`,left:e,top:t,width:n,height:r,matrix:s,borderOnly:!u},l);return R("clipPath",{id:`satori_cp-${o}`,"clip-path":a},R(i?"path":"rect",{x:e,y:t,width:n,height:r,d:i||void 0}))+f}async function wt({id:e,left:t,top:n,width:r,height:i,isInheritingTransform:s,src:o,debug:a},u){if(u.display==="none")return"";let l=!!o,f="rect",d="",v="",p=[],h=1,b="";u.backgroundColor&&p.push(u.backgroundColor),u.opacity!==void 0&&(h=+u.opacity),u.transform&&(d=yt({left:t,top:n,width:r,height:i},u.transform,s,u.transformOrigin));let _="";if(u.backgroundImage){let U=[];for(let q=0;q<u.backgroundImage.length;q++){let W=u.backgroundImage[q],re=await vn({id:e+"_"+q,width:r,height:i,left:t,top:n},W);re&&U.unshift(re)}for(let q of U)p.push(`url(#${q[0]})`),v+=q[1],q[2]&&(_+=q[2])}let g=ot({left:t,top:n,width:r,height:i},u);g&&(f="path");let y=u._inheritedClipPathId,S=u._inheritedMaskId;a&&(b=R("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:d||void 0,"clip-path":y?`url(#${y})`:void 0}));let{backgroundClip:E,filter:T}=u,D=E==="text"?`url(#satori_bct-${e})`:y?`url(#${y})`:void 0,F=yn({left:t,top:n,width:r,height:i,path:g,id:e,matrix:d,currentClipPath:D,src:o},u),C=p.map(U=>R(f,{x:t,y:n,width:r,height:i,fill:U,d:g||void 0,transform:d||void 0,"clip-path":D,style:T?`filter:${T}`:void 0,mask:S?`url(#${S})`:void 0})).join(""),M=Xo({id:e,left:t,top:n,width:r,height:i,currentClipPathId:y,borderPath:g,borderType:f},u);if(l){let U=(u.borderLeftWidth||0)+(u.paddingLeft||0),q=(u.borderTopWidth||0)+(u.paddingTop||0),W=(u.borderRightWidth||0)+(u.paddingRight||0),re=(u.borderBottomWidth||0)+(u.paddingBottom||0),K=u.objectFit==="contain"?"xMidYMid":u.objectFit==="cover"?"xMidYMid slice":"none";C+=R("image",{x:t+U,y:n+q,width:r-U-W,height:i-q-re,href:o,preserveAspectRatio:K,transform:d||void 0,style:T?`filter:${T}`:void 0,"clip-path":`url(#satori_cp-${e})`,mask:`url(#satori_om-${e})`})}if(M){v+=M[0];let U=M[1];C+=xt({left:t,top:n,width:r,height:i,props:{transform:d||void 0,"clip-path":`url(#${U})`}},u)}let j=jo({width:r,height:i,id:e,opacity:h,shape:R(f,{x:t,y:n,width:r,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:g||void 0,transform:d||void 0,"clip-path":D,mask:S?`url(#${S})`:void 0})},u);return(v?R("defs",{},v):"")+(j?j[0]:"")+F+(h!==1?`<g opacity="${h}">`:"")+(_||C)+(h!==1?"</g>":"")+(j?j[1]:"")+b}c();import Rl from"emoji-regex";var Ll=new RegExp(Rl(),""),xn={emoji:Ll,symbol:/\p{Symbol}/u,math:/\p{Math}/u},_t={"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},Tr=Object.keys({..._t,...xn});function Qo(e){return Tr.includes(e)}function Ko(e,t){if(t&&_t[t]&&_t[t].test(e))return t;for(let n of Object.keys(xn))if(xn[n].test(e))return n;for(let n of Object.keys(_t))if(_t[n].test(e))return n;return"unknown"}function Jo(e){if(e)return Tr.find(t=>t.toLowerCase()===e.toLowerCase()||t.toLowerCase().startsWith(e.toLowerCase()))}async function*St(e,t){let n=await Fe(),{id:r,inheritedStyle:i,parent:s,font:o,debug:a,locale:u,embedFont:l=!0,graphemeImages:f,canLoadAdditionalAssets:d,getTwStyles:v}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!rn(e)||typeof e.type=="function"){let N;if(!rn(e))N=pn(String(e),t),yield(await N.next()).value;else{if(Eo(e.type))throw new Error("Class component is not supported.");N=St(e.type(e.props),t),yield(await N.next()).value}await N.next();let Ee=yield;return(await N.next(Ee)).value}let{type:p,props:h}=e;if(h&&Po(h))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:b,children:_,tw:g,lang:y=u}=h||{},S=Jo(y);if(g){let N=v(g,b);b=Object.assign(N,b)}let E=n.Node.create();s.insertChild(E,s.getChildCount());let[T,D]=await fn(E,p,i,b,h),F=T.transform===i.transform;if(F||(T.transform.__parent=i.transform),T.overflow==="hidden"&&(D._inheritedClipPathId=`satori_cp-${r}`,D._inheritedMaskId=`satori_om-${r}`),T.backgroundClip==="text"){let N={value:""};D._inheritedBackgroundClipTextPath=N,T._inheritedBackgroundClipTextPath=N}let C=Ao(_),M=[],j=0,U=[];for(let N of C){let Ee=St(N,{id:r+"-"+j++,parentStyle:T,inheritedStyle:D,isInheritingTransform:!0,parent:E,font:o,embedFont:l,debug:a,graphemeImages:f,canLoadAdditionalAssets:d,locale:S,getTwStyles:v});d?U.push(...(await Ee.next()).value||[]):await Ee.next(),M.push(Ee)}yield U;for(let N of M)await N.next();let[q,W]=yield,{left:re,top:K,width:ne,height:oe}=E.getComputedLayout();re+=q,K+=W;let I="",$="",V="";if(p==="img"){let N=T.__src;$=await wt({id:r,left:re,top:K,width:ne,height:oe,src:N,isInheritingTransform:F,debug:a},T)}else if(p==="svg"){let N=T.color,Ee=Lo(e,N);$=await wt({id:r,left:re,top:K,width:ne,height:oe,src:Ee,isInheritingTransform:F,debug:a},T)}else{let N=b==null?void 0:b.display;if(p==="div"&&_&&typeof _!="string"&&N!=="flex"&&N!=="none")throw new Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');$=await wt({id:r,left:re,top:K,width:ne,height:oe,isInheritingTransform:F,debug:a},T)}for(let N of M)I+=(await N.next([re,K])).value;return T._inheritedBackgroundClipTextPath&&(V+=R("clipPath",{id:`satori_bct-${r}`,"clip-path":T._inheritedClipPathId?`url(#${T._inheritedClipPathId})`:void 0},T._inheritedBackgroundClipTextPath.value)),V+$+I}c();import wn from"@shuding/opentype.js";var Zo="unknown";function Cl(e,t,[n,r],[i,s]){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!==s){if(r===t)return-1;if(s===t)return 1}return-1}var kt=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:n,style:r}){if(!this.fonts.has(t))return null;n==="normal"&&(n=400),n==="bold"&&(n=700),typeof n=="string"&&(n=Number.parseInt(n,10));let i=[...this.fonts.get(t)],s=i[0];for(let o=1;o<i.length;o++){let[,a,u]=s,[,l,f]=i[o];Cl(n,r,[a,u],[l,f])>0&&(s=i[o])}return s[0]}addFonts(t){for(let n of t){let{name:r,data:i,lang:s}=n;if(s&&!Qo(s))throw new Error(`Invalid value for props \`lang\`: "${s}". The value must be one of the following: ${Tr.join(", ")}.`);let o=s??Zo,a=wn.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0}),u=a.charToGlyphIndex;a.charToGlyphIndex=f=>{let d=u.call(a,f);return d===0&&a._trackBrokenChars&&a._trackBrokenChars.push(f),d},this.defaultFont||(this.defaultFont=a);let l=`${r.toLowerCase()}_${o}`;this.fonts.has(l)||this.fonts.set(l,[]),this.fonts.get(l).push([a,n.weight,n.style])}}getEngine(t=16,n=1.2,{fontFamily:r,fontWeight:i=400,fontStyle:s="normal"},o){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(y=>y.toLowerCase());let a=[];r.forEach(y=>{let S=this.get({name:y,weight:i,style:s});if(S){a.push(S);return}let E=this.get({name:y+"_unknown",weight:i,style:s});if(E){a.push(E);return}});let u=Array.from(this.fonts.keys()),l=[],f=[],d=[];for(let y of u)if(!r.includes(y))if(o){let S=Dl(y);S?S===o?l.push(this.get({name:y,weight:i,style:s})):f.push(this.get({name:y,weight:i,style:s})):d.push(this.get({name:y,weight:i,style:s}))}else d.push(this.get({name:y,weight:i,style:s}));let v=new Map,p=(y,S=!0)=>{let E=y.charCodeAt(0);if(v.has(E))return v.get(E);let T=[...a,...d,...l,...S?f:[]],D=T.find((F,C)=>!!F.charToGlyphIndex(y)||S&&C===T.length-1);return D&&v.set(E,D),D},h=(y,S=!1)=>{var T,D;return((S?(D=(T=y.tables)==null?void 0:T.os2)==null?void 0:D.sTypoAscender:0)||y.ascender)/y.unitsPerEm*t},b=(y,S=!1)=>{var T,D;return((S?(D=(T=y.tables)==null?void 0:T.os2)==null?void 0:D.sTypoDescender:0)||y.descender)/y.unitsPerEm*t},_=y=>p(y,!1),g={has:y=>{if(y===`
|
|
9
|
-
`)return!0;let S=_(y);return S?(S._trackBrokenChars=[],S.stringToGlyphs(y),S._trackBrokenChars.length?(S._trackBrokenChars=void 0,!1):!0):!1},baseline:(y,S=typeof y>"u"?a[0]:p(y))=>{let E=h(S,!0),T=b(S,!0),D=g.height(y,S),{yMax:F,yMin:C}=S.tables.head,M=E-T,j=(F/(F-C)-1)*M;return D*((1.2/n+1)/2)+j},height:(y,S=typeof y>"u"?a[0]:p(y))=>(h(S)-b(S))*(n/1.2),measure:(y,S)=>this.measure(p,y,S),getSVG:(y,S)=>this.getSVG(p,y,S)};return g}patchFontFallbackResolver(t,n){let r=[];t._trackBrokenChars=r;let i=t.stringToGlyphs;return t.stringToGlyphs=(s,...o)=>{let a=i.call(t,s,...o);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 d=f.charToGlyph(l),v=t.unitsPerEm/f.unitsPerEm,p=new wn.Path;p.unitsPerEm=t.unitsPerEm,p.commands=d.path.commands.map(b=>{let _={...b};for(let g in _)typeof _[g]=="number"&&(_[g]*=v);return _});let h=new wn.Glyph({...d,advanceWidth:d.advanceWidth*v,xMin:d.xMin*v,xMax:d.xMax*v,yMin:d.yMin*v,yMax:d.yMax*v,path:p});a[u]=h}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,n,{fontSize:r,letterSpacing:i=0}){let s=t(n),o=this.patchFontFallbackResolver(s,t);try{return s.getAdvanceWidth(n,r,{letterSpacing:i/r})}finally{o()}}getSVG(t,n,{fontSize:r,top:i,left:s,letterSpacing:o=0}){let a=t(n),u=this.patchFontFallbackResolver(a,t);try{return r===0?"":a.getPath(n.replace(/\n/g,""),s,i,r,{letterSpacing:o/r}).toPathData(1)}finally{u()}}};function Dl(e){let t=e.split("_"),n=t[t.length-1];return n===Zo?void 0:n}c();function _n({width:e,height:t,content:n}){return R("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},n)}c();c();var Lu=ju(lu());c();c();c();c();var w0=["ios","android","windows","macos","web"];function cu(e){return w0.includes(e)}var _0=["portrait","landscape"];function du(e){return _0.includes(e)}var fu;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(fu||(fu={}));var G;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(G||(G={}));function Yi(e){return typeof e=="string"}function Xi(e){return typeof e=="object"}var Qi;function m(e){return{kind:"complete",style:e}}function ie(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[s="",o=""]=e.split("/",2),a=ie(s),u=ie(o);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,G.none];switch(i==null?void 0:i[1]){case"rem":return[r,G.rem];case"px":return[r,G.px];case"em":return[r,G.em];case"%":return[r,G.percent];case"vw":return[r,G.vw];case"vh":return[r,G.vh];default:return null}}function We(e,t,n={}){let r=Ie(t,n);return r===null?null:m({[e]:r})}function zr(e,t,n){let r=Ie(t);return r!==null&&(n[e]=r),n}function hu(e,t){let n=Ie(t);return n===null?null:{[e]:n}}function Ie(e,t={}){if(e===void 0)return null;let n=ie(String(e),t);return n?Ye(...n,t):null}function Ye(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case G.rem:return e*16*(r?-1:1);case G.px:return e*(r?-1:1);case G.percent:return`${r?"-":""}${e}%`;case G.none:return e*(r?-1:1);case G.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(be("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case G.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(be("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function Ki(e){let t=ie(e);if(!t)return null;let[n,r]=t;switch(r){case G.rem:return n*16;case G.px:return n;default:return null}}var S0={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function Ji(e){return S0[e??""]||"All"}function Zi(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=Ji(i),"")),t]}function tt(e,t={}){if(e.includes("/")){let n=pu(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),pu(e,t)}function Te(e,t,n={}){let r=tt(t,n);return r===null?null:m({[e]:r})}function pu(e,t={}){if(e==="px")return 1;let n=ie(e,t);if(!n)return null;let[r,i]=n;return t.fractions&&(i=G.percent,r*=100),i===G.none&&(r=r/4,i=G.rem),Ye(r,i,t)}function k0(...e){console.warn(...e)}function T0(...e){}var be=typeof process>"u"||((Qi=process==null?void 0:process.env)===null||Qi===void 0?void 0:Qi.JEST_WORKER_ID)===void 0?k0:T0;var O0=[["aspect-square",m({aspectRatio:1})],["aspect-video",m({aspectRatio:16/9})],["items-center",m({alignItems:"center"})],["items-start",m({alignItems:"flex-start"})],["items-end",m({alignItems:"flex-end"})],["items-baseline",m({alignItems:"baseline"})],["items-stretch",m({alignItems:"stretch"})],["justify-start",m({justifyContent:"flex-start"})],["justify-end",m({justifyContent:"flex-end"})],["justify-center",m({justifyContent:"center"})],["justify-between",m({justifyContent:"space-between"})],["justify-around",m({justifyContent:"space-around"})],["justify-evenly",m({justifyContent:"space-evenly"})],["content-start",m({alignContent:"flex-start"})],["content-end",m({alignContent:"flex-end"})],["content-between",m({alignContent:"space-between"})],["content-around",m({alignContent:"space-around"})],["content-stretch",m({alignContent:"stretch"})],["content-center",m({alignContent:"center"})],["self-auto",m({alignSelf:"auto"})],["self-start",m({alignSelf:"flex-start"})],["self-end",m({alignSelf:"flex-end"})],["self-center",m({alignSelf:"center"})],["self-stretch",m({alignSelf:"stretch"})],["self-baseline",m({alignSelf:"baseline"})],["direction-inherit",m({direction:"inherit"})],["direction-ltr",m({direction:"ltr"})],["direction-rtl",m({direction:"rtl"})],["hidden",m({display:"none"})],["flex",m({display:"flex"})],["flex-row",m({flexDirection:"row"})],["flex-row-reverse",m({flexDirection:"row-reverse"})],["flex-col",m({flexDirection:"column"})],["flex-col-reverse",m({flexDirection:"column-reverse"})],["flex-wrap",m({flexWrap:"wrap"})],["flex-wrap-reverse",m({flexWrap:"wrap-reverse"})],["flex-nowrap",m({flexWrap:"nowrap"})],["flex-auto",m({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",m({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",m({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",m({overflow:"hidden"})],["overflow-visible",m({overflow:"visible"})],["overflow-scroll",m({overflow:"scroll"})],["absolute",m({position:"absolute"})],["relative",m({position:"relative"})],["italic",m({fontStyle:"italic"})],["not-italic",m({fontStyle:"normal"})],["oldstyle-nums",tr("oldstyle-nums")],["small-caps",tr("small-caps")],["lining-nums",tr("lining-nums")],["tabular-nums",tr("tabular-nums")],["proportional-nums",tr("proportional-nums")],["font-thin",m({fontWeight:"100"})],["font-100",m({fontWeight:"100"})],["font-extralight",m({fontWeight:"200"})],["font-200",m({fontWeight:"200"})],["font-light",m({fontWeight:"300"})],["font-300",m({fontWeight:"300"})],["font-normal",m({fontWeight:"normal"})],["font-400",m({fontWeight:"400"})],["font-medium",m({fontWeight:"500"})],["font-500",m({fontWeight:"500"})],["font-semibold",m({fontWeight:"600"})],["font-600",m({fontWeight:"600"})],["font-bold",m({fontWeight:"bold"})],["font-700",m({fontWeight:"700"})],["font-extrabold",m({fontWeight:"800"})],["font-800",m({fontWeight:"800"})],["font-black",m({fontWeight:"900"})],["font-900",m({fontWeight:"900"})],["include-font-padding",m({includeFontPadding:!0})],["remove-font-padding",m({includeFontPadding:!1})],["max-w-none",m({maxWidth:"99999%"})],["text-left",m({textAlign:"left"})],["text-center",m({textAlign:"center"})],["text-right",m({textAlign:"right"})],["text-justify",m({textAlign:"justify"})],["text-auto",m({textAlign:"auto"})],["underline",m({textDecorationLine:"underline"})],["line-through",m({textDecorationLine:"line-through"})],["no-underline",m({textDecorationLine:"none"})],["uppercase",m({textTransform:"uppercase"})],["lowercase",m({textTransform:"lowercase"})],["capitalize",m({textTransform:"capitalize"})],["normal-case",m({textTransform:"none"})],["w-auto",m({width:"auto"})],["h-auto",m({height:"auto"})],["shadow-sm",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",m({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],eo=O0;function tr(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var rr=class{constructor(t){this.ir=new Map(eo),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...eo,...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)}};c();c();function to(e,t,n={}){let r=t==null?void 0:t[e];if(!r)return Te("fontSize",e,n);if(typeof r=="string")return We("fontSize",r);let i={},[s,o]=r,a=hu("fontSize",s);if(a&&(i=a),typeof o=="string")return m(zr("lineHeight",mu(o,i),i));let{lineHeight:u,letterSpacing:l}=o;return u&&zr("lineHeight",mu(u,i),i),l&&zr("letterSpacing",l,i),m(i)}function mu(e,t){let n=ie(e);if(n){let[r,i]=n;if((i===G.none||i===G.em)&&typeof t.fontSize=="number")return t.fontSize*r}return e}c();function ro(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=ie(r);if(!i)return null;let[s,o]=i;if(o===G.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*s}};let a=Ye(s,o);return a!==null?m({lineHeight:a}):null}c();function no(e,t,n,r,i){let s="";if(r[0]==="[")s=r.slice(1,-1);else{let l=i==null?void 0:i[r];if(l)s=l;else{let f=tt(r);return f&&typeof f=="number"?gu(f,G.px,t,e):null}}if(s==="auto")return vu(t,e,"auto");let o=ie(s);if(!o)return null;let[a,u]=o;return n&&(a=-a),gu(a,u,t,e)}function gu(e,t,n,r){let i=Ye(e,t);return i===null?null:vu(n,r,i)}function vu(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}}c();function io(e){if(!e)return{};let t=Object.entries(e).reduce((i,[s,o])=>{let a=[0,1/0,0],u=typeof o=="string"?{min:o}:o,l=u.min?Ki(u.min):0;l===null?be(`invalid screen config value: ${s}->min: ${u.min}`):a[0]=l;let f=u.max?Ki(u.max):1/0;return f===null?be(`invalid screen config value: ${s}->max: ${u.max}`):a[1]=f,i[s]=a,i},{}),n=Object.values(t);n.sort((i,s)=>{let[o,a]=i,[u,l]=s;return a===1/0||l===1/0?o-u:a-l});let r=0;return n.forEach(i=>i[2]=r++),t}c();function oo(e,t){let n=t==null?void 0:t[e];if(!n)return null;if(typeof n=="string")return m({fontFamily:n});let r=n[0];return r?m({fontFamily:r}):null}c();function rt(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=xu(t,n),!i)return null;if(r){let s=Number(r);if(!Number.isNaN(s))return i=bu(i,s/100),m({[Gr[e].color]:i})}return{kind:"dependent",complete(s){let o=Gr[e].opacity,a=s[o];typeof a=="number"&&(i=bu(i,a)),s[Gr[e].color]=i}}}function nr(e,t){let n=parseInt(t,10);if(Number.isNaN(n))return null;let r=n/100,i={[Gr[e].opacity]:r};return{kind:"complete",style:i}}function bu(e,t){return e.startsWith("#")?e=E0(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function yu(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var Gr={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 E0(e){let t=e;e=e.replace(P0,(o,a,u,l)=>a+a+u+u+l+l);let n=A0.exec(e);if(!n)return be(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let r=parseInt(n[1],16),i=parseInt(n[2],16),s=parseInt(n[3],16);return`rgba(${r}, ${i}, ${s}, 1)`}function xu(e,t){let n=t[e];if(Yi(n))return n;if(Xi(n)&&Yi(n.DEFAULT))return n.DEFAULT;let[r="",...i]=e.split("-");for(;r!==e;){let s=t[r];if(Xi(s))return xu(i.join("-"),s);if(i.length===0)return"";r=`${r}-${i.shift()}`}return""}var P0=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,A0=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;c();function _u(e,t){let[n,r]=Zi(e);if(n.match(/^(-?(\d)+)?$/))return I0(n,r,t==null?void 0:t.borderWidth);if(n=n.replace(/^-/,""),["dashed","solid","dotted"].includes(n))return m({borderStyle:n});let s="border";switch(r){case"Bottom":s="borderBottom";break;case"Top":s="borderTop";break;case"Left":s="borderLeft";break;case"Right":s="borderRight";break}let o=rt(s,n,t==null?void 0:t.borderColor);if(o)return o;let a=`border${r==="All"?"":r}Width`;n=n.replace(/^-/,"");let u=n.slice(1,-1),l=Te(a,u);return typeof(l==null?void 0:l.style[a])!="number"?null:l}function I0(e,t,n){if(!n)return null;e=e.replace(/^-/,"");let i=n[e===""?"DEFAULT":e];if(i===void 0)return null;let s=`border${t==="All"?"":t}Width`;return We(s,i)}function Su(e,t){if(!t)return null;let[n,r]=Zi(e);n=n.replace(/^-/,""),n===""&&(n="DEFAULT");let i=`border${r==="All"?"":r}Radius`,s=t[n];if(s)return wu(We(i,s));let o=Te(i,n);return typeof(o==null?void 0:o.style[i])!="number"?null:wu(o)}function wu(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}c();function ft(e,t,n,r){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(a,u)=>(i=u==="x"?"x":"y","")));let s=r==null?void 0:r[t];if(s){let a=Ie(s,{isNegative:n});if(a!==null)return ku(e,i,a)}let o=tt(t,{isNegative:n});return o!==null?ku(e,i,o):null}function ku(e,t,n){if(e!=="inset")return m({[e]:n});switch(t){case null:return m({top:n,left:n,right:n,bottom:n});case"y":return m({top:n,bottom:n});case"x":return m({left:n,right:n})}}c();function ir(e,t,n){var r;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,s=Number((r=n==null?void 0:n[i])!==null&&r!==void 0?r:t);return Number.isNaN(s)?null:m({[`flex${e}`]:s})}function Tu(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 m({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return m({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let s=Ie((n=i[2])!==null&&n!==void 0?n:"");return s?m({flexGrow:Number(i[1]),flexBasis:s}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let s=Ie((r=i[3])!==null&&r!==void 0?r:"");return s?m({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:s}):null}return null}c();function so(e,t,n={},r){let i=r==null?void 0:r[t];return i!==void 0?We(e,i,n):Te(e,t,n)}function or(e,t,n={},r){let i=Ie(r==null?void 0:r[t],n);return i?m({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),Te(e,t,n))}c();function Ou(e,t,n){let r=n==null?void 0:n[e];if(r){let i=ie(r,{isNegative:t});if(!i)return null;let[s,o]=i;if(o===G.em)return R0(s);if(o===G.percent)return be("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=Ye(s,o,{isNegative:t});return a!==null?m({letterSpacing:a}):null}return Te("letterSpacing",e,{isNegative:t})}function R0(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}}}c();function Eu(e,t){let n=t==null?void 0:t[e];if(n){let i=ie(String(n));if(i)return m({opacity:i[0]})}let r=ie(e);return r?m({opacity:r[0]/100}):null}c();function Pu(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function Au(e){if(e.includes("/")){let[n="",r=""]=e.split("/",2),i=ao(n),s=ao(r);return i===null||s===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:s}}}}let t=ao(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function ao(e){let t=tt(e);return typeof t=="number"?t:null}var ct=class{constructor(t,n={},r,i,s){var o,a,u,l,f,d;this.config=n,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let v=t.trim().split(":"),p=[];v.length===1?this.string=t:(this.string=(o=v.pop())!==null&&o!==void 0?o:"",p=v),this.char=this.string[0];let h=io((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let b of p)if(h[b]){let _=(u=h[b])===null||u===void 0?void 0:u[2];_!==void 0&&(this.order=((l=this.order)!==null&&l!==void 0?l:0)+_);let g=(f=i.windowDimensions)===null||f===void 0?void 0:f.width;if(g){let[y,S]=(d=h[b])!==null&&d!==void 0?d:[0,0];(g<=y||g>S)&&(this.isNull=!0)}else this.isNull=!0}else cu(b)?this.isNull=b!==s:du(b)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==b?this.isNull=!0:this.incrementOrder():this.isNull=!0:b==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:b==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(b)||(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,s;let o=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=Ji(u[1]),d=no(l,f,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[l]);if(d)return d}}}if(this.consumePeeked("h-")&&(a=so("height",this.rest,this.context,o==null?void 0:o.height),a)||this.consumePeeked("w-")&&(a=so("width",this.rest,this.context,o==null?void 0:o.width),a)||this.consumePeeked("min-w-")&&(a=or("minWidth",this.rest,this.context,o==null?void 0:o.minWidth),a)||this.consumePeeked("min-h-")&&(a=or("minHeight",this.rest,this.context,o==null?void 0:o.minHeight),a)||this.consumePeeked("max-w-")&&(a=or("maxWidth",this.rest,this.context,o==null?void 0:o.maxWidth),a)||this.consumePeeked("max-h-")&&(a=or("maxHeight",this.rest,this.context,o==null?void 0:o.maxHeight),a)||this.consumePeeked("leading-")&&(a=ro(this.rest,o==null?void 0:o.lineHeight),a)||this.consumePeeked("text-")&&(a=to(this.rest,o==null?void 0:o.fontSize,this.context),a||(a=rt("text",this.rest,o==null?void 0:o.textColor),a)||this.consumePeeked("opacity-")&&(a=nr("text",this.rest),a))||this.consumePeeked("font-")&&(a=oo(this.rest,o==null?void 0:o.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&be("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=We("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=rt("tint",this.rest,o==null?void 0:o.colors),a)||this.consumePeeked("bg-")&&(a=rt("bg",this.rest,o==null?void 0:o.backgroundColor),a||this.consumePeeked("opacity-")&&(a=nr("bg",this.rest),a))||this.consumePeeked("border")&&(a=_u(this.rest,o),a||this.consumePeeked("-opacity-")&&(a=nr("border",this.rest),a))||this.consumePeeked("rounded")&&(a=Su(this.rest,o==null?void 0:o.borderRadius),a)||this.consumePeeked("bottom-")&&(a=ft("bottom",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("top-")&&(a=ft("top",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("left-")&&(a=ft("left",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("right-")&&(a=ft("right",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("inset-")&&(a=ft("inset",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=ir("Grow",this.rest,o==null?void 0:o.flexGrow):this.consumePeeked("shrink")?a=ir("Shrink",this.rest,o==null?void 0:o.flexShrink):a=Tu(this.rest,o==null?void 0:o.flex),a)||this.consumePeeked("grow")&&(a=ir("Grow",this.rest,o==null?void 0:o.flexGrow),a)||this.consumePeeked("shrink")&&(a=ir("Shrink",this.rest,o==null?void 0:o.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=nr("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=Pu(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=Au(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=Te("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=rt("shadow",this.rest,o==null?void 0:o.colors),a))return a;if(this.consumePeeked("elevation-")){let u=parseInt(this.rest,10);if(!Number.isNaN(u))return m({elevation:u})}if(this.consumePeeked("opacity-")&&(a=Eu(this.rest,o==null?void 0:o.opacity),a)||this.consumePeeked("tracking-")&&(a=Ou(this.rest,this.isNegative,o==null?void 0:o.letterSpacing),a))return a;if(this.consumePeeked("z-")){let u=Number((s=(i=o==null?void 0:o.zIndex)===null||i===void 0?void 0:i[this.rest])!==null&&s!==void 0?s:this.rest);if(!Number.isNaN(u))return m({zIndex:u})}return be(`\`${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,[,s="",o="",a=""]=r,u=o==="w"?i.width:i.height,l=ie(a,this.context);if(l===null)return this.isNull=!0,!0;let[f,d]=l;return d!=="px"&&(this.isNull=!0),(s==="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}};c();function Iu(e){let t=[],n=null;return e.forEach(r=>{if(typeof r=="string")t=[...t,...uo(r)];else if(Array.isArray(r))t=[...t,...r.flatMap(uo)];else if(typeof r=="object"&&r!==null)for(let[i,s]of Object.entries(r))typeof s=="boolean"?t=[...t,...s?uo(i):[]]:n?n[i]=s:n={[i]:s}}),[t.filter(Boolean).filter(L0),n]}function uo(e){return e.trim().split(/\s+/)}function L0(e,t,n){return n.indexOf(e)===t}c();function Ru(e){var t;return(t=e==null?void 0:e.reduce((n,r)=>({...n,...C0(r.handler)}),{}))!==null&&t!==void 0?t:{}}function C0(e){let t={};return e({addUtilities:n=>{t=n},...D0}),t}function Re(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var D0={addComponents:Re,addBase:Re,addVariant:Re,e:Re,prefix:Re,theme:Re,variants:Re,config:Re,corePlugins:Re,matchUtilities:Re,postcss:null};function Cu(e,t){let n=(0,Lu.default)(F0(e)),r={},i=Ru(n.plugins),s={},o=Object.entries(i).map(([h,b])=>typeof b=="string"?(s[h]=b,[h,{kind:"null"}]):[h,m(b)]).filter(([,h])=>h.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 h=l[u];if(h)return h;let b=new rr(o);return l[u]=b,b}function d(...h){let b=f(),_={},g=[],y=[],[S,E]=Iu(h),T=S.join(" "),D=b.getStyle(T);if(D)return{...D,...E||{}};for(let F of S){let C=b.getIr(F);if(!C&&F in s){let j=d(s[F]);b.setIr(F,m(j)),_={..._,...j};continue}switch(C=new ct(F,n,b,r,t).parse(),C.kind){case"complete":_={..._,...C.style},b.setIr(F,C);break;case"dependent":g.push(C);break;case"ordered":y.push(C);break;case"null":b.setIr(F,C);break}}if(y.length>0){y.sort((F,C)=>F.order-C.order);for(let F of y)switch(F.styleIr.kind){case"complete":_={..._,...F.styleIr.style};break;case"dependent":g.push(F.styleIr);break}}if(g.length>0){for(let F of g){let C=F.complete(_);C&&be(C)}yu(_)}return T!==""&&b.setStyle(T,_),E&&(_={..._,...E}),_}function v(h){let b=d(h.split(/\s+/g).map(_=>_.replace(/^(bg|text|border)-/,"")).map(_=>`bg-${_}`).join(" "));return typeof b.backgroundColor=="string"?b.backgroundColor:void 0}let p=(h,...b)=>{let _="";return h.forEach((g,y)=>{var S;_+=g+((S=b[y])!==null&&S!==void 0?S:"")}),d(_)};return p.style=d,p.color=v,p.prefixMatch=(...h)=>{let b=h.sort().join(":"),_=f(),g=_.getPrefixMatch(b);if(g!==void 0)return g;let E=new ct(`${b}:flex`,n,_,r,t).parse().kind!=="null";return _.setPrefixMatch(b,E),E},p.setWindowDimensions=h=>{r.windowDimensions=h,u=a()},p.setFontScale=h=>{r.fontScale=h,u=a()},p.setPixelDensity=h=>{r.pixelDensity=h,u=a()},p.setColorScheme=h=>{r.colorScheme=h,u=a()},p}function F0(e){return{...e,content:["_no_warnings_please"]}}var N0={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 $0(e){return Cu({...e,plugins:[...(e==null?void 0:e.plugins)??[],N0]},"web")}var jr;function lo({width:e,height:t,config:n}){return jr||(jr=$0(n)),jr.setWindowDimensions({width:+e,height:+t}),jr}var fo=new WeakMap;async function Fu(e,t){let n=await Fe();if(!n||!n.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+n);t.fonts=t.fonts||[];let r;fo.has(t.fonts)?r=fo.get(t.fonts):fo.set(t.fonts,r=new kt(t.fonts));let i="width"in t?t.width:void 0,s="height"in t?t.height:void 0,o=n.Node.create();i&&o.setWidth(i),s&&o.setHeight(s),o.setFlexDirection(n.FLEX_DIRECTION_ROW),o.setFlexWrap(n.WRAP_WRAP),o.setAlignContent(n.ALIGN_AUTO),o.setAlignItems(n.ALIGN_FLEX_START),o.setJustifyContent(n.JUSTIFY_FLEX_START),o.setOverflow(n.OVERFLOW_HIDDEN);let a={...t.graphemeImages},u=new Set,l=St(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:1.2,color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:i,_viewportHeight:s},parent:o,font:r,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,getTwStyles:(h,b)=>{let g={...lo({width:i,height:s,config:t.tailwindConfig})([h])};return typeof g.lineHeight=="number"&&(g.lineHeight=g.lineHeight/(+g.fontSize||b.fontSize||16)),g.shadowColor&&g.boxShadow&&(g.boxShadow=g.boxShadow.replace(/rgba?\([^)]+\)/,g.shadowColor)),g}}),f=(await l.next()).value;if(t.loadAdditionalAsset&&f.length){let h=W0(f),b=[],_={};await Promise.all(Object.entries(h).flatMap(([g,y])=>y.map(S=>{let E=`${g}_${S}`;return u.has(E)?null:(u.add(E),t.loadAdditionalAsset(g,S).then(T=>{typeof T=="string"?_[S]=T:T&&b.push(T)}))}))),r.addFonts(b),Object.assign(a,_)}await l.next(),o.calculateLayout(i,s,n.DIRECTION_LTR);let d=(await l.next([0,0])).value,v=o.getComputedWidth(),p=o.getComputedHeight();return o.freeRecursive(),_n({width:v,height:p,content:d})}function W0(e){let t={},n={};for(let{word:r,locale:i}of e){let s=Ko(r,i);n[s]=n[s]||"",n[s]+=r}return Object.keys(n).forEach(r=>{t[r]=t[r]||[],r==="emoji"?t[r].push(...Du(Me(n[r],"grapheme"))):(t[r][0]=t[r][0]||"",t[r][0]+=Du(Me(n[r],"grapheme",r==="unknown"?void 0:r)).join(""))}),t}function Du(e){return Array.from(new Set(e))}export{Fu as default,Hu as init};
|
|
1
|
+
var Gu=Object.create;var pr=Object.defineProperty;var ju=Object.getOwnPropertyDescriptor;var Vu=Object.getOwnPropertyNames;var Hu=Object.getPrototypeOf,Yu=Object.prototype.hasOwnProperty;var hr=(e,t)=>()=>(e&&(t=e(e=0)),t);var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jr=(e,t)=>{for(var n in t)pr(e,n,{get:t[n],enumerable:!0})},So=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Vu(t))!Yu.call(e,i)&&i!==n&&pr(e,i,{get:()=>t[i],enumerable:!(r=ju(t,i))||r.enumerable});return e};var Xu=(e,t,n)=>(n=e!=null?Gu(Hu(e)):{},So(t||!e||!e.__esModule?pr(n,"default",{value:e,enumerable:!0}):n,e)),mr=e=>So(pr({},"__esModule",{value:!0}),e);var c=hr(()=>{});var ko={};Jr(ko,{getYogaModule:()=>Qu});async function Qu(){return{}}var To=hr(()=>{c()});var En=R(On=>{"use strict";c();Object.defineProperty(On,"__esModule",{value:!0});Object.defineProperty(On,"default",{enumerable:!0,get:()=>ql});function ql(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 is=R(Pn=>{"use strict";c();Object.defineProperty(Pn,"__esModule",{value:!0});Object.defineProperty(Pn,"default",{enumerable:!0,get:()=>Bl});var Bl=["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 os=R(An=>{"use strict";c();Object.defineProperty(An,"__esModule",{value:!0});Object.defineProperty(An,"default",{enumerable:!0,get:()=>Ul});function Ul(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 In=R((kg,ss)=>{c();ss.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 Pr={};Jr(Pr,{default:()=>zl});var zl,Ar=hr(()=>{c();zl={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 as=R(Ln=>{"use strict";c();Object.defineProperty(Ln,"__esModule",{value:!0});Object.defineProperty(Ln,"default",{enumerable:!0,get:()=>Vl});var Gl=jl((Ar(),mr(Pr)));function jl(e){return e&&e.__esModule?e:{default:e}}function Tt({version:e,from:t,to:n}){Gl.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 Vl={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 Tt({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return Tt({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return Tt({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return Tt({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return Tt({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var us=R(Rn=>{"use strict";c();Object.defineProperty(Rn,"__esModule",{value:!0});Object.defineProperty(Rn,"defaults",{enumerable:!0,get:()=>Hl});function Hl(e,...t){for(let i of t){for(let s in i){var n;!(e==null||(n=e.hasOwnProperty)===null||n===void 0)&&n.call(e,s)||(e[s]=i[s])}for(let s of Object.getOwnPropertySymbols(i)){var r;!(e==null||(r=e.hasOwnProperty)===null||r===void 0)&&r.call(e,s)||(e[s]=i[s])}}return e}});var ls=R(Cn=>{"use strict";c();Object.defineProperty(Cn,"__esModule",{value:!0});Object.defineProperty(Cn,"toPath",{enumerable:!0,get:()=>Yl});function Yl(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 cs=R(Dn=>{"use strict";c();Object.defineProperty(Dn,"__esModule",{value:!0});Object.defineProperty(Dn,"normalizeConfig",{enumerable:!0,get:()=>Ql});var Ot=Xl((Ar(),mr(Pr)));function fs(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(fs=function(r){return r?n:t})(e)}function Xl(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=fs(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function Ql(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?void 0: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?void 0: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})()||Ot.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:s,safelist:o}=e;return Array.isArray(o)?o:Array.isArray(i==null?void 0:i.safelist)?i.safelist:Array.isArray(s==null?void 0:s.safelist)?s.safelist:Array.isArray(s==null||(r=s.options)===null||r===void 0?void 0:r.safelist)?s.options.safelist:[]})(),typeof e.prefix=="function")Ot.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 o,a,u,l,f,d,g,h,p,v;return!((o=e.purge)===null||o===void 0)&&o.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||(d=f.extract)===null||d===void 0)&&d.DEFAULT?e.content.extract.DEFAULT:!((g=e.purge)===null||g===void 0||(h=g.options)===null||h===void 0)&&h.extractors?e.purge.options.extractors:!((p=e.content)===null||p===void 0||(v=p.options)===null||v===void 0)&&v.extractors?e.content.options.extractors:{}})(),i={},s=(()=>{var o,a,u,l;if(!((o=e.purge)===null||o===void 0||(a=o.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(s!==void 0&&(i.DEFAULT=s),typeof r=="function")i.DEFAULT=r;else if(Array.isArray(r))for(let{extensions:o,extractor:a}of r??[])for(let u of o)i[u]=a;else typeof r=="object"&&r!==null&&Object.assign(i,r);return i})(),transform:(()=>{let r=(()=>{var s,o,a,u,l,f;return!((s=e.purge)===null||s===void 0)&&s.transform?e.purge.transform:!((o=e.content)===null||o===void 0)&&o.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)){Ot.default.warn("invalid-glob-braces",[`The glob pattern ${(0,Ot.dim)(r)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,Ot.dim)(r.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var ds=R(Fn=>{"use strict";c();Object.defineProperty(Fn,"__esModule",{value:!0});Object.defineProperty(Fn,"default",{enumerable:!0,get:()=>Kl});function Kl(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var ps=R(Mn=>{"use strict";c();Object.defineProperty(Mn,"__esModule",{value:!0});Object.defineProperty(Mn,"cloneDeep",{enumerable:!0,get:()=>Nn});function Nn(e){return Array.isArray(e)?e.map(t=>Nn(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Nn(n)])):e}});var $n=R((Ir,hs)=>{"use strict";c();Ir.__esModule=!0;Ir.default=ef;function Jl(e){for(var t=e.toLowerCase(),n="",r=!1,i=0;i<6&&t[i]!==void 0;i++){var s=t.charCodeAt(i),o=s>=97&&s<=102||s>=48&&s<=57;if(r=s===32,!o)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 Zl=/\\/;function ef(e){var t=Zl.test(e);if(!t)return e;for(var n="",r=0;r<e.length;r++){if(e[r]==="\\"){var i=Jl(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}hs.exports=Ir.default});var gs=R((Lr,ms)=>{"use strict";c();Lr.__esModule=!0;Lr.default=tf;function tf(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}ms.exports=Lr.default});var bs=R((Rr,vs)=>{"use strict";c();Rr.__esModule=!0;Rr.default=rf;function rf(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]}}vs.exports=Rr.default});var xs=R((Cr,ys)=>{"use strict";c();Cr.__esModule=!0;Cr.default=nf;function nf(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}ys.exports=Cr.default});var Et=R(Pe=>{"use strict";c();Pe.__esModule=!0;Pe.stripComments=Pe.ensureObject=Pe.getProp=Pe.unesc=void 0;var of=Dr($n());Pe.unesc=of.default;var sf=Dr(gs());Pe.getProp=sf.default;var af=Dr(bs());Pe.ensureObject=af.default;var uf=Dr(xs());Pe.stripComments=uf.default;function Dr(e){return e&&e.__esModule?e:{default:e}}});var Ce=R((Pt,Ss)=>{"use strict";c();Pt.__esModule=!0;Pt.default=void 0;var ws=Et();function _s(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 lf(e,t,n){return t&&_s(e.prototype,t),n&&_s(e,n),e}var ff=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 s=t[i],o=typeof s;i==="parent"&&o==="object"?n&&(r[i]=n):s instanceof Array?r[i]=s.map(function(a){return e(a,r)}):r[i]=e(s,r)}return r},cf=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=ff(this);for(var s in r)i[s]=r[s];return i},t.appendToPropertyAndEscape=function(r,i,s){this.raws||(this.raws={});var o=this[r],a=this.raws[r];this[r]=o+i,a||s!==i?this.raws[r]=(a||o)+s:delete this.raws[r]},t.setPropertyAndEscape=function(r,i,s){this.raws||(this.raws={}),this[r]=i,this.raws[r]=s},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("")},lf(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,ws.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,ws.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=r}}]),e}();Pt.default=cf;Ss.exports=Pt.default});var ue=R(K=>{"use strict";c();K.__esModule=!0;K.UNIVERSAL=K.ATTRIBUTE=K.CLASS=K.COMBINATOR=K.COMMENT=K.ID=K.NESTING=K.PSEUDO=K.ROOT=K.SELECTOR=K.STRING=K.TAG=void 0;var df="tag";K.TAG=df;var pf="string";K.STRING=pf;var hf="selector";K.SELECTOR=hf;var mf="root";K.ROOT=mf;var gf="pseudo";K.PSEUDO=gf;var vf="nesting";K.NESTING=vf;var bf="id";K.ID=bf;var yf="comment";K.COMMENT=yf;var xf="combinator";K.COMBINATOR=xf;var wf="class";K.CLASS=wf;var _f="attribute";K.ATTRIBUTE=_f;var Sf="universal";K.UNIVERSAL=Sf});var Fr=R((At,Es)=>{"use strict";c();At.__esModule=!0;At.default=void 0;var kf=Of(Ce()),De=Tf(ue());function Os(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Os=function(){return e},e}function Tf(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Os();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 s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Of(e){return e&&e.__esModule?e:{default:e}}function Ef(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Pf(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.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}function Pf(e,t){if(!!e){if(typeof e=="string")return ks(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 ks(e,t)}}function ks(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 Ts(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 Af(e,t,n){return t&&Ts(e.prototype,t),n&&Ts(e,n),e}function If(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wn(e,t)}function Wn(e,t){return Wn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Wn(e,t)}var Lf=function(e){If(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 s;for(var o in this.indexes)s=this.indexes[o],s>=i&&(this.indexes[o]=s-1);return this},n.removeAll=function(){for(var i=Ef(this.nodes),s;!(s=i()).done;){var o=s.value;o.parent=void 0}return this.nodes=[],this},n.empty=function(){return this.removeAll()},n.insertAfter=function(i,s){s.parent=this;var o=this.index(i);this.nodes.splice(o+1,0,s),s.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],o<=a&&(this.indexes[u]=a+1);return this},n.insertBefore=function(i,s){s.parent=this;var o=this.index(i);this.nodes.splice(o,0,s),s.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],a<=o&&(this.indexes[u]=a+1);return this},n._findChildAtPosition=function(i,s){var o=void 0;return this.each(function(a){if(a.atPosition){var u=a.atPosition(i,s);if(u)return o=u,!1}else if(a.isAtPosition(i,s))return o=a,!1}),o},n.atPosition=function(i,s){if(this.isAtPosition(i,s))return this._findChildAtPosition(i,s)||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 s=this.lastEach;if(this.indexes[s]=0,!!this.length){for(var o,a;this.indexes[s]<this.length&&(o=this.indexes[s],a=i(this.at(o),o),a!==!1);)this.indexes[s]+=1;if(delete this.indexes[s],a===!1)return!1}},n.walk=function(i){return this.each(function(s,o){var a=i(s,o);if(a!==!1&&s.length&&(a=s.walk(i)),a===!1)return!1})},n.walkAttributes=function(i){var s=this;return this.walk(function(o){if(o.type===De.ATTRIBUTE)return i.call(s,o)})},n.walkClasses=function(i){var s=this;return this.walk(function(o){if(o.type===De.CLASS)return i.call(s,o)})},n.walkCombinators=function(i){var s=this;return this.walk(function(o){if(o.type===De.COMBINATOR)return i.call(s,o)})},n.walkComments=function(i){var s=this;return this.walk(function(o){if(o.type===De.COMMENT)return i.call(s,o)})},n.walkIds=function(i){var s=this;return this.walk(function(o){if(o.type===De.ID)return i.call(s,o)})},n.walkNesting=function(i){var s=this;return this.walk(function(o){if(o.type===De.NESTING)return i.call(s,o)})},n.walkPseudos=function(i){var s=this;return this.walk(function(o){if(o.type===De.PSEUDO)return i.call(s,o)})},n.walkTags=function(i){var s=this;return this.walk(function(o){if(o.type===De.TAG)return i.call(s,o)})},n.walkUniversals=function(i){var s=this;return this.walk(function(o){if(o.type===De.UNIVERSAL)return i.call(s,o)})},n.split=function(i){var s=this,o=[];return this.reduce(function(a,u,l){var f=i.call(s,u);return o.push(u),f?(a.push(o),o=[]):l===s.length-1&&a.push(o),a},[])},n.map=function(i){return this.nodes.map(i)},n.reduce=function(i,s){return this.nodes.reduce(i,s)},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("")},Af(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}(kf.default);At.default=Lf;Es.exports=At.default});var Bn=R((It,As)=>{"use strict";c();It.__esModule=!0;It.default=void 0;var Rf=Df(Fr()),Cf=ue();function Df(e){return e&&e.__esModule?e:{default:e}}function Ps(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 Ff(e,t,n){return t&&Ps(e.prototype,t),n&&Ps(e,n),e}function Nf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qn(e,t)}function qn(e,t){return qn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},qn(e,t)}var Mf=function(e){Nf(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Cf.ROOT,i}var n=t.prototype;return n.toString=function(){var i=this.reduce(function(s,o){return s.push(String(o)),s},[]).join(",");return this.trailingComma?i+",":i},n.error=function(i,s){return this._error?this._error(i,s):new Error(i)},Ff(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(Rf.default);It.default=Mf;As.exports=It.default});var zn=R((Lt,Is)=>{"use strict";c();Lt.__esModule=!0;Lt.default=void 0;var $f=qf(Fr()),Wf=ue();function qf(e){return e&&e.__esModule?e:{default:e}}function Bf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Un(e,t)}function Un(e,t){return Un=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Un(e,t)}var Uf=function(e){Bf(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Wf.SELECTOR,r}return t}($f.default);Lt.default=Uf;Is.exports=Lt.default});var Nr=R((Cg,Ls)=>{"use strict";c();var zf={},Gf=zf.hasOwnProperty,jf=function(t,n){if(!t)return n;var r={};for(var i in n)r[i]=Gf.call(t,i)?t[i]:n[i];return r},Vf=/[ -,\.\/:-@\[-\^`\{-~]/,Hf=/[ -,\.\/:-@\[\]\^`\{-~]/,Yf=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Gn=function e(t,n){n=jf(n,e.options),n.quotes!="single"&&n.quotes!="double"&&(n.quotes="single");for(var r=n.quotes=="double"?'"':"'",i=n.isIdentifier,s=t.charAt(0),o="",a=0,u=t.length;a<u;){var l=t.charAt(a++),f=l.charCodeAt(),d=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&a<u){var g=t.charCodeAt(a++);(g&64512)==56320?f=((f&1023)<<10)+(g&1023)+65536:a--}d="\\"+f.toString(16).toUpperCase()+" "}else n.escapeEverything?Vf.test(l)?d="\\"+l:d="\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?d="\\"+f.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&r==l||l=="'"&&r==l)||i&&Hf.test(l)?d="\\"+l:d=l;o+=d}return i&&(/^-[-\d]/.test(o)?o="\\-"+o.slice(1):/\d/.test(s)&&(o="\\3"+s+" "+o.slice(1))),o=o.replace(Yf,function(h,p,v){return p&&p.length%2?h:(p||"")+v}),!i&&n.wrap?r+o+r:o};Gn.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Gn.version="3.0.0";Ls.exports=Gn});var Vn=R((Rt,Ds)=>{"use strict";c();Rt.__esModule=!0;Rt.default=void 0;var Xf=Cs(Nr()),Qf=Et(),Kf=Cs(Ce()),Jf=ue();function Cs(e){return e&&e.__esModule?e:{default:e}}function Rs(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 Zf(e,t,n){return t&&Rs(e.prototype,t),n&&Rs(e,n),e}function ec(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jn(e,t)}function jn(e,t){return jn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},jn(e,t)}var tc=function(e){ec(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Jf.CLASS,i._constructed=!0,i}var n=t.prototype;return n.valueToString=function(){return"."+e.prototype.valueToString.call(this)},Zf(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var s=(0,Xf.default)(i,{isIdentifier:!0});s!==i?((0,Qf.ensureObject)(this,"raws"),this.raws.value=s):this.raws&&delete this.raws.value}this._value=i}}]),t}(Kf.default);Rt.default=tc;Ds.exports=Rt.default});var Yn=R((Ct,Fs)=>{"use strict";c();Ct.__esModule=!0;Ct.default=void 0;var rc=ic(Ce()),nc=ue();function ic(e){return e&&e.__esModule?e:{default:e}}function oc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hn(e,t)}function Hn(e,t){return Hn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Hn(e,t)}var sc=function(e){oc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=nc.COMMENT,r}return t}(rc.default);Ct.default=sc;Fs.exports=Ct.default});var Qn=R((Dt,Ns)=>{"use strict";c();Dt.__esModule=!0;Dt.default=void 0;var ac=lc(Ce()),uc=ue();function lc(e){return e&&e.__esModule?e:{default:e}}function fc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xn(e,t)}function Xn(e,t){return Xn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Xn(e,t)}var cc=function(e){fc(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=uc.ID,i}var n=t.prototype;return n.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(ac.default);Dt.default=cc;Ns.exports=Dt.default});var Mr=R((Ft,Ws)=>{"use strict";c();Ft.__esModule=!0;Ft.default=void 0;var dc=$s(Nr()),pc=Et(),hc=$s(Ce());function $s(e){return e&&e.__esModule?e:{default:e}}function Ms(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 mc(e,t,n){return t&&Ms(e.prototype,t),n&&Ms(e,n),e}function gc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kn(e,t)}function Kn(e,t){return Kn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Kn(e,t)}var vc=function(e){gc(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))},mc(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 s=(0,dc.default)(i,{isIdentifier:!0});this._namespace=i,s!==i?((0,pc.ensureObject)(this,"raws"),this.raws.namespace=s):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}(hc.default);Ft.default=vc;Ws.exports=Ft.default});var Zn=R((Nt,qs)=>{"use strict";c();Nt.__esModule=!0;Nt.default=void 0;var bc=xc(Mr()),yc=ue();function xc(e){return e&&e.__esModule?e:{default:e}}function wc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jn(e,t)}function Jn(e,t){return Jn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Jn(e,t)}var _c=function(e){wc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=yc.TAG,r}return t}(bc.default);Nt.default=_c;qs.exports=Nt.default});var ti=R((Mt,Bs)=>{"use strict";c();Mt.__esModule=!0;Mt.default=void 0;var Sc=Tc(Ce()),kc=ue();function Tc(e){return e&&e.__esModule?e:{default:e}}function Oc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ei(e,t)}function ei(e,t){return ei=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ei(e,t)}var Ec=function(e){Oc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=kc.STRING,r}return t}(Sc.default);Mt.default=Ec;Bs.exports=Mt.default});var ni=R(($t,Us)=>{"use strict";c();$t.__esModule=!0;$t.default=void 0;var Pc=Ic(Fr()),Ac=ue();function Ic(e){return e&&e.__esModule?e:{default:e}}function Lc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ri(e,t)}function ri(e,t){return ri=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ri(e,t)}var Rc=function(e){Lc(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Ac.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}(Pc.default);$t.default=Rc;Us.exports=$t.default});var Gs=R((Dg,zs)=>{c();zs.exports=function(t,n){return function(...r){return console.warn(n),t(...r)}}});var li=R(Bt=>{"use strict";c();Bt.__esModule=!0;Bt.unescapeValue=ui;Bt.default=void 0;var Wt=ai(Nr()),Cc=ai($n()),Dc=ai(Mr()),Fc=ue(),ii;function ai(e){return e&&e.__esModule?e:{default:e}}function js(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 Nc(e,t,n){return t&&js(e.prototype,t),n&&js(e,n),e}function Mc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,si(e,t)}function si(e,t){return si=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},si(e,t)}var qt=Gs(),$c=/^('|")([^]*)\1$/,Wc=qt(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),qc=qt(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),Bc=qt(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function ui(e){var t=!1,n=null,r=e,i=r.match($c);return i&&(n=i[1],r=i[2]),r=(0,Cc.default)(r),r!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}function Uc(e){if(e.quoteMark!==void 0||e.value===void 0)return e;Bc();var t=ui(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 $r=function(e){Mc(t,e);function t(r){var i;return r===void 0&&(r={}),i=e.call(this,Uc(r))||this,i.type=Fc.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:qt(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:qt(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 s=this._determineQuoteMark(i),o=oi[s],a=(0,Wt.default)(this._value,o);return a},n._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},n.setValue=function(i,s){s===void 0&&(s={}),this._value=i,this._quoteMark=this._determineQuoteMark(s),this._syncRawValue()},n.smartQuoteMark=function(i){var s=this.value,o=s.replace(/[^']/g,"").length,a=s.replace(/[^"]/g,"").length;if(o+a===0){var u=(0,Wt.default)(s,{isIdentifier:!0});if(u===s)return t.NO_QUOTE;var l=this.preferredQuoteMark(i);if(l===t.NO_QUOTE){var f=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,d=oi[f],g=(0,Wt.default)(s,d);if(g.length<u.length)return f}return l}else return a===o?this.preferredQuoteMark(i):a<o?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},n.preferredQuoteMark=function(i){var s=i.preferCurrentQuoteMark?this.quoteMark:i.quoteMark;return s===void 0&&(s=i.preferCurrentQuoteMark?i.quoteMark:this.quoteMark),s===void 0&&(s=t.DOUBLE_QUOTE),s},n._syncRawValue=function(){var i=(0,Wt.default)(this._value,oi[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},n._handleEscapes=function(i,s){if(this._constructed){var o=(0,Wt.default)(s,{isIdentifier:!0});o!==s?this.raws[i]=o:delete this.raws[i]}},n._spacesFor=function(i){var s={before:"",after:""},o=this.spaces[i]||{},a=this.raws.spaces&&this.raws.spaces[i]||{};return Object.assign(s,o,a)},n._stringFor=function(i,s,o){s===void 0&&(s=i),o===void 0&&(o=Vs);var a=this._spacesFor(s);return o(this.stringifyProperty(i),a)},n.offsetOf=function(i){var s=1,o=this._spacesFor("attribute");if(s+=o.before.length,i==="namespace"||i==="ns")return this.namespace?s:-1;if(i==="attributeNS"||(s+=this.namespaceString.length,this.namespace&&(s+=1),i==="attribute"))return s;s+=this.stringifyProperty("attribute").length,s+=o.after.length;var a=this._spacesFor("operator");s+=a.before.length;var u=this.stringifyProperty("operator");if(i==="operator")return u?s:-1;s+=u.length,s+=a.after.length;var l=this._spacesFor("value");s+=l.before.length;var f=this.stringifyProperty("value");if(i==="value")return f?s:-1;s+=f.length,s+=l.after.length;var d=this._spacesFor("insensitive");return s+=d.before.length,i==="insensitive"&&this.insensitive?s:-1},n.toString=function(){var i=this,s=[this.rawSpaceBefore,"["];return s.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(s.push(this._stringFor("operator")),s.push(this._stringFor("value")),s.push(this._stringFor("insensitiveFlag","insensitive",function(o,a){return o.length>0&&!i.quoted&&a.before.length===0&&!(i.spaces.value&&i.spaces.value.after)&&(a.before=" "),Vs(o,a)}))),s.push("]"),s.push(this.rawSpaceAfter),s.join("")},Nc(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){qc()}},{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 s=ui(i),o=s.deprecatedUsage,a=s.unescaped,u=s.quoteMark;if(o&&Wc(),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}(Dc.default);Bt.default=$r;$r.NO_QUOTE=null;$r.SINGLE_QUOTE="'";$r.DOUBLE_QUOTE='"';var oi=(ii={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},ii[null]={isIdentifier:!0},ii);function Vs(e,t){return""+t.before+e+t.after}});var ci=R((Ut,Hs)=>{"use strict";c();Ut.__esModule=!0;Ut.default=void 0;var zc=jc(Mr()),Gc=ue();function jc(e){return e&&e.__esModule?e:{default:e}}function Vc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fi(e,t)}function fi(e,t){return fi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},fi(e,t)}var Hc=function(e){Vc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Gc.UNIVERSAL,r.value="*",r}return t}(zc.default);Ut.default=Hc;Hs.exports=Ut.default});var pi=R((zt,Ys)=>{"use strict";c();zt.__esModule=!0;zt.default=void 0;var Yc=Qc(Ce()),Xc=ue();function Qc(e){return e&&e.__esModule?e:{default:e}}function Kc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,di(e,t)}function di(e,t){return di=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},di(e,t)}var Jc=function(e){Kc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Xc.COMBINATOR,r}return t}(Yc.default);zt.default=Jc;Ys.exports=zt.default});var mi=R((Gt,Xs)=>{"use strict";c();Gt.__esModule=!0;Gt.default=void 0;var Zc=td(Ce()),ed=ue();function td(e){return e&&e.__esModule?e:{default:e}}function rd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hi(e,t)}function hi(e,t){return hi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},hi(e,t)}var nd=function(e){rd(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=ed.NESTING,r.value="&",r}return t}(Zc.default);Gt.default=nd;Xs.exports=Gt.default});var Ks=R((Wr,Qs)=>{"use strict";c();Wr.__esModule=!0;Wr.default=id;function id(e){return e.sort(function(t,n){return t-n})}Qs.exports=Wr.default});var gi=R(A=>{"use strict";c();A.__esModule=!0;A.combinator=A.word=A.comment=A.str=A.tab=A.newline=A.feed=A.cr=A.backslash=A.bang=A.slash=A.doubleQuote=A.singleQuote=A.space=A.greaterThan=A.pipe=A.equals=A.plus=A.caret=A.tilde=A.dollar=A.closeSquare=A.openSquare=A.closeParenthesis=A.openParenthesis=A.semicolon=A.colon=A.comma=A.at=A.asterisk=A.ampersand=void 0;var od=38;A.ampersand=od;var sd=42;A.asterisk=sd;var ad=64;A.at=ad;var ud=44;A.comma=ud;var ld=58;A.colon=ld;var fd=59;A.semicolon=fd;var cd=40;A.openParenthesis=cd;var dd=41;A.closeParenthesis=dd;var pd=91;A.openSquare=pd;var hd=93;A.closeSquare=hd;var md=36;A.dollar=md;var gd=126;A.tilde=gd;var vd=94;A.caret=vd;var bd=43;A.plus=bd;var yd=61;A.equals=yd;var xd=124;A.pipe=xd;var wd=62;A.greaterThan=wd;var _d=32;A.space=_d;var Js=39;A.singleQuote=Js;var Sd=34;A.doubleQuote=Sd;var kd=47;A.slash=kd;var Td=33;A.bang=Td;var Od=92;A.backslash=Od;var Ed=13;A.cr=Ed;var Pd=12;A.feed=Pd;var Ad=10;A.newline=Ad;var Id=9;A.tab=Id;var Ld=Js;A.str=Ld;var Rd=-1;A.comment=Rd;var Cd=-2;A.word=Cd;var Dd=-3;A.combinator=Dd});var ta=R(jt=>{"use strict";c();jt.__esModule=!0;jt.default=Bd;jt.FIELDS=void 0;var O=Fd(gi()),at,Q;function ea(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return ea=function(){return e},e}function Fd(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ea();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 s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var Nd=(at={},at[O.tab]=!0,at[O.newline]=!0,at[O.cr]=!0,at[O.feed]=!0,at),Md=(Q={},Q[O.space]=!0,Q[O.tab]=!0,Q[O.newline]=!0,Q[O.cr]=!0,Q[O.feed]=!0,Q[O.ampersand]=!0,Q[O.asterisk]=!0,Q[O.bang]=!0,Q[O.comma]=!0,Q[O.colon]=!0,Q[O.semicolon]=!0,Q[O.openParenthesis]=!0,Q[O.closeParenthesis]=!0,Q[O.openSquare]=!0,Q[O.closeSquare]=!0,Q[O.singleQuote]=!0,Q[O.doubleQuote]=!0,Q[O.plus]=!0,Q[O.pipe]=!0,Q[O.tilde]=!0,Q[O.greaterThan]=!0,Q[O.equals]=!0,Q[O.dollar]=!0,Q[O.caret]=!0,Q[O.slash]=!0,Q),vi={},Zs="0123456789abcdefABCDEF";for(qr=0;qr<Zs.length;qr++)vi[Zs.charCodeAt(qr)]=!0;var qr;function $d(e,t){var n=t,r;do{if(r=e.charCodeAt(n),Md[r])return n-1;r===O.backslash?n=Wd(e,n)+1:n++}while(n<e.length);return n-1}function Wd(e,t){var n=t,r=e.charCodeAt(n+1);if(!Nd[r])if(vi[r]){var i=0;do n++,i++,r=e.charCodeAt(n+1);while(vi[r]&&i<6);i<6&&r===O.space&&n++}else n++;return n}var qd={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};jt.FIELDS=qd;function Bd(e){var t=[],n=e.css.valueOf(),r=n,i=r.length,s=-1,o=1,a=0,u=0,l,f,d,g,h,p,v,_,b,y,S,E,T;function D(F,C){if(e.safe)n+=C,b=n.length-1;else throw e.error("Unclosed "+F,o,a-s,a)}for(;a<i;){switch(l=n.charCodeAt(a),l===O.newline&&(s=a,o+=1),l){case O.space:case O.tab:case O.newline:case O.cr:case O.feed:b=a;do b+=1,l=n.charCodeAt(b),l===O.newline&&(s=b,o+=1);while(l===O.space||l===O.newline||l===O.tab||l===O.cr||l===O.feed);T=O.space,g=o,d=b-s-1,u=b;break;case O.plus:case O.greaterThan:case O.tilde:case O.pipe:b=a;do b+=1,l=n.charCodeAt(b);while(l===O.plus||l===O.greaterThan||l===O.tilde||l===O.pipe);T=O.combinator,g=o,d=a-s,u=b;break;case O.asterisk:case O.ampersand:case O.bang:case O.comma:case O.equals:case O.dollar:case O.caret:case O.openSquare:case O.closeSquare:case O.colon:case O.semicolon:case O.openParenthesis:case O.closeParenthesis:b=a,T=l,g=o,d=a-s,u=b+1;break;case O.singleQuote:case O.doubleQuote:E=l===O.singleQuote?"'":'"',b=a;do for(h=!1,b=n.indexOf(E,b+1),b===-1&&D("quote",E),p=b;n.charCodeAt(p-1)===O.backslash;)p-=1,h=!h;while(h);T=O.str,g=o,d=a-s,u=b+1;break;default:l===O.slash&&n.charCodeAt(a+1)===O.asterisk?(b=n.indexOf("*/",a+2)+1,b===0&&D("comment","*/"),f=n.slice(a,b+1),_=f.split(`
|
|
3
|
+
`),v=_.length-1,v>0?(y=o+v,S=b-_[v].length):(y=o,S=s),T=O.comment,o=y,g=y,d=b-S):l===O.slash?(b=a,T=l,g=o,d=a-s,u=b+1):(b=$d(n,a),T=O.word,g=o,d=b-s),u=b+1;break}t.push([T,o,a-s,g,d,a,u]),S&&(s=S,S=null),a=u}return t}});var la=R((Vt,ua)=>{"use strict";c();Vt.__esModule=!0;Vt.default=void 0;var Ud=xe(Bn()),bi=xe(zn()),zd=xe(Vn()),ra=xe(Yn()),Gd=xe(Qn()),jd=xe(Zn()),yi=xe(ti()),Vd=xe(ni()),na=Br(li()),Hd=xe(ci()),xi=xe(pi()),Yd=xe(mi()),Xd=xe(Ks()),k=Br(ta()),P=Br(gi()),Qd=Br(ue()),ee=Et(),Ke,wi;function aa(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return aa=function(){return e},e}function Br(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=aa();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 s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function xe(e){return e&&e.__esModule?e:{default:e}}function ia(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 Kd(e,t,n){return t&&ia(e.prototype,t),n&&ia(e,n),e}var ki=(Ke={},Ke[P.space]=!0,Ke[P.cr]=!0,Ke[P.feed]=!0,Ke[P.newline]=!0,Ke[P.tab]=!0,Ke),Jd=Object.assign({},ki,(wi={},wi[P.comment]=!0,wi));function oa(e){return{line:e[k.FIELDS.START_LINE],column:e[k.FIELDS.START_COL]}}function sa(e){return{line:e[k.FIELDS.END_LINE],column:e[k.FIELDS.END_COL]}}function Je(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function ut(e){return Je(e[k.FIELDS.START_LINE],e[k.FIELDS.START_COL],e[k.FIELDS.END_LINE],e[k.FIELDS.END_COL])}function _i(e,t){if(!!e)return Je(e[k.FIELDS.START_LINE],e[k.FIELDS.START_COL],t[k.FIELDS.END_LINE],t[k.FIELDS.END_COL])}function lt(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,ee.ensureObject)(e,"raws"),e[t]=(0,ee.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function Si(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function Zd(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var ep=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,k.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=_i(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Ud.default({source:i}),this.root.errorGenerator=this._errorGenerator();var s=new bi.default({source:{start:{line:1,column:1}}});this.root.append(s),this.current=s,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var r=this;return function(i,s){return typeof r.rule=="string"?new Error(i):r.rule.error(i,s)}},t.attribute=function(){var r=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[k.FIELDS.TYPE]!==P.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[k.FIELDS.TYPE]!==P.closeSquare)return this.expected("closing square bracket",this.currToken[k.FIELDS.START_POS]);var s=r.length,o={source:Je(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[k.FIELDS.START_POS]};if(s===1&&!~[P.word].indexOf(r[0][k.FIELDS.TYPE]))return this.expected("attribute",r[0][k.FIELDS.START_POS]);for(var a=0,u="",l="",f=null,d=!1;a<s;){var g=r[a],h=this.content(g),p=r[a+1];switch(g[k.FIELDS.TYPE]){case P.space:if(d=!0,this.options.lossy)break;if(f){(0,ee.ensureObject)(o,"spaces",f);var v=o.spaces[f].after||"";o.spaces[f].after=v+h;var _=(0,ee.getProp)(o,"raws","spaces",f,"after")||null;_&&(o.raws.spaces[f].after=_+h)}else u=u+h,l=l+h;break;case P.asterisk:if(p[k.FIELDS.TYPE]===P.equals)o.operator=h,f="operator";else if((!o.namespace||f==="namespace"&&!d)&&p){u&&((0,ee.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=u,u=""),l&&((0,ee.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=u,l=""),o.namespace=(o.namespace||"")+h;var b=(0,ee.getProp)(o,"raws","namespace")||null;b&&(o.raws.namespace+=h),f="namespace"}d=!1;break;case P.dollar:if(f==="value"){var y=(0,ee.getProp)(o,"raws","value");o.value+="$",y&&(o.raws.value=y+"$");break}case P.caret:p[k.FIELDS.TYPE]===P.equals&&(o.operator=h,f="operator"),d=!1;break;case P.combinator:if(h==="~"&&p[k.FIELDS.TYPE]===P.equals&&(o.operator=h,f="operator"),h!=="|"){d=!1;break}p[k.FIELDS.TYPE]===P.equals?(o.operator=h,f="operator"):!o.namespace&&!o.attribute&&(o.namespace=!0),d=!1;break;case P.word:if(p&&this.content(p)==="|"&&r[a+2]&&r[a+2][k.FIELDS.TYPE]!==P.equals&&!o.operator&&!o.namespace)o.namespace=h,f="namespace";else if(!o.attribute||f==="attribute"&&!d){u&&((0,ee.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=u,u=""),l&&((0,ee.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=l,l=""),o.attribute=(o.attribute||"")+h;var S=(0,ee.getProp)(o,"raws","attribute")||null;S&&(o.raws.attribute+=h),f="attribute"}else if(!o.value&&o.value!==""||f==="value"&&!d){var E=(0,ee.unesc)(h),T=(0,ee.getProp)(o,"raws","value")||"",D=o.value||"";o.value=D+E,o.quoteMark=null,(E!==h||T)&&((0,ee.ensureObject)(o,"raws"),o.raws.value=(T||D)+h),f="value"}else{var F=h==="i"||h==="I";(o.value||o.value==="")&&(o.quoteMark||d)?(o.insensitive=F,(!F||h==="I")&&((0,ee.ensureObject)(o,"raws"),o.raws.insensitiveFlag=h),f="insensitive",u&&((0,ee.ensureObject)(o,"spaces","insensitive"),o.spaces.insensitive.before=u,u=""),l&&((0,ee.ensureObject)(o,"raws","spaces","insensitive"),o.raws.spaces.insensitive.before=l,l="")):(o.value||o.value==="")&&(f="value",o.value+=h,o.raws.value&&(o.raws.value+=h))}d=!1;break;case P.str:if(!o.attribute||!o.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:g[k.FIELDS.START_POS]});var C=(0,na.unescapeValue)(h),W=C.unescaped,z=C.quoteMark;o.value=W,o.quoteMark=z,f="value",(0,ee.ensureObject)(o,"raws"),o.raws.value=h,d=!1;break;case P.equals:if(!o.attribute)return this.expected("attribute",g[k.FIELDS.START_POS],h);if(o.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:g[k.FIELDS.START_POS]});o.operator=o.operator?o.operator+h:h,f="operator",d=!1;break;case P.comment:if(f)if(d||p&&p[k.FIELDS.TYPE]===P.space||f==="insensitive"){var X=(0,ee.getProp)(o,"spaces",f,"after")||"",H=(0,ee.getProp)(o,"raws","spaces",f,"after")||X;(0,ee.ensureObject)(o,"raws","spaces",f),o.raws.spaces[f].after=H+h}else{var M=o[f]||"",re=(0,ee.getProp)(o,"raws",f)||M;(0,ee.ensureObject)(o,"raws"),o.raws[f]=re+h}else l=l+h;break;default:return this.error('Unexpected "'+h+'" found.',{index:g[k.FIELDS.START_POS]})}a++}lt(o,"attribute"),lt(o,"namespace"),this.newNode(new na.default(o)),this.position++},t.parseWhitespaceEquivalentTokens=function(r){r<0&&(r=this.tokens.length);var i=this.position,s=[],o="",a=void 0;do if(ki[this.currToken[k.FIELDS.TYPE]])this.options.lossy||(o+=this.content());else if(this.currToken[k.FIELDS.TYPE]===P.comment){var u={};o&&(u.before=o,o=""),a=new ra.default({value:this.content(),source:ut(this.currToken),sourceIndex:this.currToken[k.FIELDS.START_POS],spaces:u}),s.push(a)}while(++this.position<r);if(o){if(a)a.spaces.after=o;else if(!this.options.lossy){var l=this.tokens[i],f=this.tokens[this.position-1];s.push(new yi.default({value:"",source:Je(l[k.FIELDS.START_LINE],l[k.FIELDS.START_COL],f[k.FIELDS.END_LINE],f[k.FIELDS.END_COL]),sourceIndex:l[k.FIELDS.START_POS],spaces:{before:o,after:""}}))}}return s},t.convertWhitespaceNodesToSpace=function(r,i){var s=this;i===void 0&&(i=!1);var o="",a="";r.forEach(function(l){var f=s.lossySpace(l.spaces.before,i),d=s.lossySpace(l.rawSpaceBefore,i);o+=f+s.lossySpace(l.spaces.after,i&&f.length===0),a+=f+l.value+s.lossySpace(l.rawSpaceAfter,i&&d.length===0)}),a===o&&(a=void 0);var u={space:o,rawSpace:a};return u},t.isNamedCombinator=function(r){return r===void 0&&(r=this.position),this.tokens[r+0]&&this.tokens[r+0][k.FIELDS.TYPE]===P.slash&&this.tokens[r+1]&&this.tokens[r+1][k.FIELDS.TYPE]===P.word&&this.tokens[r+2]&&this.tokens[r+2][k.FIELDS.TYPE]===P.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var r=this.content(this.tokens[this.position+1]),i=(0,ee.unesc)(r).toLowerCase(),s={};i!==r&&(s.value="/"+r+"/");var o=new xi.default({value:"/"+i+"/",source:Je(this.currToken[k.FIELDS.START_LINE],this.currToken[k.FIELDS.START_COL],this.tokens[this.position+2][k.FIELDS.END_LINE],this.tokens[this.position+2][k.FIELDS.END_COL]),sourceIndex:this.currToken[k.FIELDS.START_POS],raws:s});return this.position=this.position+3,o}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][k.FIELDS.TYPE]===P.comma){var s=this.parseWhitespaceEquivalentTokens(i);if(s.length>0){var o=this.current.last;if(o){var a=this.convertWhitespaceNodesToSpace(s),u=a.space,l=a.rawSpace;l!==void 0&&(o.rawSpaceAfter+=l),o.spaces.after+=u}else s.forEach(function(T){return r.newNode(T)})}return}var f=this.currToken,d=void 0;i>this.position&&(d=this.parseWhitespaceEquivalentTokens(i));var g;if(this.isNamedCombinator()?g=this.namedCombinator():this.currToken[k.FIELDS.TYPE]===P.combinator?(g=new xi.default({value:this.content(),source:ut(this.currToken),sourceIndex:this.currToken[k.FIELDS.START_POS]}),this.position++):ki[this.currToken[k.FIELDS.TYPE]]||d||this.unexpected(),g){if(d){var h=this.convertWhitespaceNodesToSpace(d),p=h.space,v=h.rawSpace;g.spaces.before=p,g.rawSpaceBefore=v}}else{var _=this.convertWhitespaceNodesToSpace(d,!0),b=_.space,y=_.rawSpace;y||(y=b);var S={},E={spaces:{}};b.endsWith(" ")&&y.endsWith(" ")?(S.before=b.slice(0,b.length-1),E.spaces.before=y.slice(0,y.length-1)):b.startsWith(" ")&&y.startsWith(" ")?(S.after=b.slice(1),E.spaces.after=y.slice(1)):E.value=y,g=new xi.default({value:" ",source:_i(f,this.tokens[this.position-1]),sourceIndex:f[k.FIELDS.START_POS],spaces:S,raws:E})}return this.currToken&&this.currToken[k.FIELDS.TYPE]===P.space&&(g.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(g)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var r=new bi.default({source:{start:oa(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 ra.default({value:this.content(),source:ut(r),sourceIndex:r[k.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[k.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[k.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[k.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[k.FIELDS.START_POS])},t.namespace=function(){var r=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[k.FIELDS.TYPE]===P.word)return this.position++,this.word(r);if(this.nextToken[k.FIELDS.TYPE]===P.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 Yd.default({value:this.content(),source:ut(i),sourceIndex:i[k.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var r=this.current.last,i=1;if(this.position++,r&&r.type===Qd.PSEUDO){var s=new bi.default({source:{start:oa(this.tokens[this.position-1])}}),o=this.current;for(r.append(s),this.current=s;this.position<this.tokens.length&&i;)this.currToken[k.FIELDS.TYPE]===P.openParenthesis&&i++,this.currToken[k.FIELDS.TYPE]===P.closeParenthesis&&i--,i?this.parse():(this.current.source.end=sa(this.currToken),this.current.parent.source.end=sa(this.currToken),this.position++);this.current=o}else{for(var a=this.currToken,u="(",l;this.position<this.tokens.length&&i;)this.currToken[k.FIELDS.TYPE]===P.openParenthesis&&i++,this.currToken[k.FIELDS.TYPE]===P.closeParenthesis&&i--,l=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;r?r.appendToPropertyAndEscape("value",u,u):this.newNode(new yi.default({value:u,source:Je(a[k.FIELDS.START_LINE],a[k.FIELDS.START_COL],l[k.FIELDS.END_LINE],l[k.FIELDS.END_COL]),sourceIndex:a[k.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[k.FIELDS.START_POS])},t.pseudo=function(){for(var r=this,i="",s=this.currToken;this.currToken&&this.currToken[k.FIELDS.TYPE]===P.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[k.FIELDS.TYPE]===P.word)this.splitWord(!1,function(o,a){i+=o,r.newNode(new Vd.default({value:i,source:_i(s,r.currToken),sourceIndex:s[k.FIELDS.START_POS]})),a>1&&r.nextToken&&r.nextToken[k.FIELDS.TYPE]===P.openParenthesis&&r.error("Misplaced parenthesis.",{index:r.nextToken[k.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[k.FIELDS.START_POS])},t.space=function(){var r=this.content();this.position===0||this.prevToken[k.FIELDS.TYPE]===P.comma||this.prevToken[k.FIELDS.TYPE]===P.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[k.FIELDS.TYPE]===P.comma||this.nextToken[k.FIELDS.TYPE]===P.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(r),this.position++):this.combinator()},t.string=function(){var r=this.currToken;this.newNode(new yi.default({value:this.content(),source:ut(r),sourceIndex:r[k.FIELDS.START_POS]})),this.position++},t.universal=function(r){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var s=this.currToken;this.newNode(new Hd.default({value:this.content(),source:ut(s),sourceIndex:s[k.FIELDS.START_POS]}),r),this.position++},t.splitWord=function(r,i){for(var s=this,o=this.nextToken,a=this.content();o&&~[P.dollar,P.caret,P.equals,P.word].indexOf(o[k.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&l[k.FIELDS.TYPE]===P.space&&(a+=this.requiredSpace(this.content(l)),this.position++)}o=this.nextToken}var f=Si(a,".").filter(function(p){var v=a[p-1]==="\\",_=/^\d+\.\d+%$/.test(a);return!v&&!_}),d=Si(a,"#").filter(function(p){return a[p-1]!=="\\"}),g=Si(a,"#{");g.length&&(d=d.filter(function(p){return!~g.indexOf(p)}));var h=(0,Xd.default)(Zd([0].concat(f,d)));h.forEach(function(p,v){var _=h[v+1]||a.length,b=a.slice(p,_);if(v===0&&i)return i.call(s,b,h.length);var y,S=s.currToken,E=S[k.FIELDS.START_POS]+h[v],T=Je(S[1],S[2]+p,S[3],S[2]+(_-1));if(~f.indexOf(p)){var D={value:b.slice(1),source:T,sourceIndex:E};y=new zd.default(lt(D,"value"))}else if(~d.indexOf(p)){var F={value:b.slice(1),source:T,sourceIndex:E};y=new Gd.default(lt(F,"value"))}else{var C={value:b,source:T,sourceIndex:E};lt(C,"value"),y=new jd.default(C)}s.newNode(y,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[k.FIELDS.TYPE]){case P.space:this.space();break;case P.comment:this.comment();break;case P.openParenthesis:this.parentheses();break;case P.closeParenthesis:r&&this.missingParenthesis();break;case P.openSquare:this.attribute();break;case P.dollar:case P.caret:case P.equals:case P.word:this.word();break;case P.colon:this.pseudo();break;case P.comma:this.comma();break;case P.asterisk:this.universal();break;case P.ampersand:this.nesting();break;case P.slash:case P.combinator:this.combinator();break;case P.str:this.string();break;case P.closeSquare:this.missingSquareBracket();case P.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(r,i,s){if(Array.isArray(r)){var o=r.pop();r=r.join(", ")+" or "+o}var a=/^[aeiou]/.test(r[0])?"an":"a";return s?this.error("Expected "+a+" "+r+', found "'+s+'" 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[k.FIELDS.TYPE]===P.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,lt(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[k.FIELDS.START_POS],r[k.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(r){r===void 0&&(r=this.position+1);for(var i=r;i<this.tokens.length;)if(Jd[this.tokens[i][k.FIELDS.TYPE]]){i++;continue}else return i;return-1},Kd(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}();Vt.default=ep;ua.exports=Vt.default});var ca=R((Ht,fa)=>{"use strict";c();Ht.__esModule=!0;Ht.default=void 0;var tp=rp(la());function rp(e){return e&&e.__esModule?e:{default:e}}var np=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 s=Object.assign({},this.options,i);return s.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 s=new tp.default(r,this._parseOptions(i));return s.root},t._parseOptions=function(r){return{lossy:this._isLossy(r)}},t._run=function(r,i){var s=this;return i===void 0&&(i={}),new Promise(function(o,a){try{var u=s._root(r,i);Promise.resolve(s.func(u)).then(function(l){var f=void 0;return s._shouldUpdateSelector(r,i)&&(f=u.toString(),r.selector=f),{transform:l,root:u,string:f}}).then(o,a)}catch(l){a(l);return}})},t._runSync=function(r,i){i===void 0&&(i={});var s=this._root(r,i),o=this.func(s);if(o&&typeof o.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=s.toString(),r.selector=a),{transform:o,root:s,string:a}},t.ast=function(r,i){return this._run(r,i).then(function(s){return s.root})},t.astSync=function(r,i){return this._runSync(r,i).root},t.transform=function(r,i){return this._run(r,i).then(function(s){return s.transform})},t.transformSync=function(r,i){return this._runSync(r,i).transform},t.process=function(r,i){return this._run(r,i).then(function(s){return s.string||s.root.toString()})},t.processSync=function(r,i){var s=this._runSync(r,i);return s.string||s.root.toString()},e}();Ht.default=np;fa.exports=Ht.default});var da=R(J=>{"use strict";c();J.__esModule=!0;J.universal=J.tag=J.string=J.selector=J.root=J.pseudo=J.nesting=J.id=J.comment=J.combinator=J.className=J.attribute=void 0;var ip=we(li()),op=we(Vn()),sp=we(pi()),ap=we(Yn()),up=we(Qn()),lp=we(mi()),fp=we(ni()),cp=we(Bn()),dp=we(zn()),pp=we(ti()),hp=we(Zn()),mp=we(ci());function we(e){return e&&e.__esModule?e:{default:e}}var gp=function(t){return new ip.default(t)};J.attribute=gp;var vp=function(t){return new op.default(t)};J.className=vp;var bp=function(t){return new sp.default(t)};J.combinator=bp;var yp=function(t){return new ap.default(t)};J.comment=yp;var xp=function(t){return new up.default(t)};J.id=xp;var wp=function(t){return new lp.default(t)};J.nesting=wp;var _p=function(t){return new fp.default(t)};J.pseudo=_p;var Sp=function(t){return new cp.default(t)};J.root=Sp;var kp=function(t){return new dp.default(t)};J.selector=kp;var Tp=function(t){return new pp.default(t)};J.string=Tp;var Op=function(t){return new hp.default(t)};J.tag=Op;var Ep=function(t){return new mp.default(t)};J.universal=Ep});var ga=R(j=>{"use strict";c();j.__esModule=!0;j.isNode=Ti;j.isPseudoElement=ma;j.isPseudoClass=$p;j.isContainer=Wp;j.isNamespace=qp;j.isUniversal=j.isTag=j.isString=j.isSelector=j.isRoot=j.isPseudo=j.isNesting=j.isIdentifier=j.isComment=j.isCombinator=j.isClassName=j.isAttribute=void 0;var te=ue(),pe,Pp=(pe={},pe[te.ATTRIBUTE]=!0,pe[te.CLASS]=!0,pe[te.COMBINATOR]=!0,pe[te.COMMENT]=!0,pe[te.ID]=!0,pe[te.NESTING]=!0,pe[te.PSEUDO]=!0,pe[te.ROOT]=!0,pe[te.SELECTOR]=!0,pe[te.STRING]=!0,pe[te.TAG]=!0,pe[te.UNIVERSAL]=!0,pe);function Ti(e){return typeof e=="object"&&Pp[e.type]}function _e(e,t){return Ti(t)&&t.type===e}var pa=_e.bind(null,te.ATTRIBUTE);j.isAttribute=pa;var Ap=_e.bind(null,te.CLASS);j.isClassName=Ap;var Ip=_e.bind(null,te.COMBINATOR);j.isCombinator=Ip;var Lp=_e.bind(null,te.COMMENT);j.isComment=Lp;var Rp=_e.bind(null,te.ID);j.isIdentifier=Rp;var Cp=_e.bind(null,te.NESTING);j.isNesting=Cp;var Oi=_e.bind(null,te.PSEUDO);j.isPseudo=Oi;var Dp=_e.bind(null,te.ROOT);j.isRoot=Dp;var Fp=_e.bind(null,te.SELECTOR);j.isSelector=Fp;var Np=_e.bind(null,te.STRING);j.isString=Np;var ha=_e.bind(null,te.TAG);j.isTag=ha;var Mp=_e.bind(null,te.UNIVERSAL);j.isUniversal=Mp;function ma(e){return Oi(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 $p(e){return Oi(e)&&!ma(e)}function Wp(e){return!!(Ti(e)&&e.walk)}function qp(e){return pa(e)||ha(e)}});var va=R(Te=>{"use strict";c();Te.__esModule=!0;var Ei=ue();Object.keys(Ei).forEach(function(e){e==="default"||e==="__esModule"||e in Te&&Te[e]===Ei[e]||(Te[e]=Ei[e])});var Pi=da();Object.keys(Pi).forEach(function(e){e==="default"||e==="__esModule"||e in Te&&Te[e]===Pi[e]||(Te[e]=Pi[e])});var Ai=ga();Object.keys(Ai).forEach(function(e){e==="default"||e==="__esModule"||e in Te&&Te[e]===Ai[e]||(Te[e]=Ai[e])})});var xa=R((Yt,ya)=>{"use strict";c();Yt.__esModule=!0;Yt.default=void 0;var Bp=Gp(ca()),Up=zp(va());function ba(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return ba=function(){return e},e}function zp(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ba();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 s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Gp(e){return e&&e.__esModule?e:{default:e}}var Ii=function(t){return new Bp.default(t)};Object.assign(Ii,Up);delete Ii.__esModule;var jp=Ii;Yt.default=jp;ya.exports=Yt.default});var wa=R(Li=>{"use strict";c();Object.defineProperty(Li,"__esModule",{value:!0});Object.defineProperty(Li,"default",{enumerable:!0,get:()=>Vp});function Vp(e){return e.replace(/\\,/g,"\\2c ")}});var Sa=R((Ug,_a)=>{"use strict";c();_a.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 Ci=R(Ri=>{"use strict";c();Object.defineProperty(Ri,"__esModule",{value:!0});function Hp(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Hp(Ri,{parseColor:()=>Zp,formatColor:()=>eh});var ka=Yp(Sa());function Yp(e){return e&&e.__esModule?e:{default:e}}var Xp=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Qp=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Ge=/(?:\d+|\d*\.\d+)%?/,Ur=/(?:\s*,\s*|\s+)/,Ta=/\s*[,/]\s*/,je=/var\(--(?:[^ )]*?)\)/,Kp=new RegExp(`^(rgb)a?\\(\\s*(${Ge.source}|${je.source})(?:${Ur.source}(${Ge.source}|${je.source}))?(?:${Ur.source}(${Ge.source}|${je.source}))?(?:${Ta.source}(${Ge.source}|${je.source}))?\\s*\\)$`),Jp=new RegExp(`^(hsl)a?\\(\\s*((?:${Ge.source})(?:deg|rad|grad|turn)?|${je.source})(?:${Ur.source}(${Ge.source}|${je.source}))?(?:${Ur.source}(${Ge.source}|${je.source}))?(?:${Ta.source}(${Ge.source}|${je.source}))?\\s*\\)$`);function Zp(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 ka.default)return{mode:"rgb",color:ka.default[e].map(u=>u.toString())};let i=e.replace(Qp,(u,l,f,d,g)=>["#",l,l,f,f,d,d,g?g+g:""].join("")).match(Xp);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 s;let o=(s=e.match(Kp))!==null&&s!==void 0?s:e.match(Jp);if(o===null)return null;let a=[o[2],o[3],o[4]].filter(Boolean).map(u=>u.toString());return!t&&a.length!==3||a.length<3&&!a.some(u=>/^var\(.*?\)$/.test(u))?null:{mode:o[1],color:a,alpha:(n=o[5])===null||n===void 0||(r=n.toString)===null||r===void 0?void 0:r.call(n)}}function eh({mode:e,color:t,alpha:n}){let r=n!==void 0;return`${e}(${t.join(" ")}${r?` / ${n}`:""})`}});var Fi=R(Di=>{"use strict";c();Object.defineProperty(Di,"__esModule",{value:!0});function th(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}th(Di,{withAlphaValue:()=>rh,default:()=>nh});var zr=Ci();function rh(e,t,n){if(typeof e=="function")return e({opacityValue:t});let r=(0,zr.parseColor)(e,{loose:!0});return r===null?n:(0,zr.formatColor)({...r,alpha:t})}function nh({color:e,property:t,variable:n}){let r=[].concat(t);if(typeof e=="function")return{[n]:"1",...Object.fromEntries(r.map(s=>[s,e({opacityVariable:n,opacityValue:`var(${n})`})]))};let i=(0,zr.parseColor)(e);return i===null?Object.fromEntries(r.map(s=>[s,e])):i.alpha!==void 0?Object.fromEntries(r.map(s=>[s,e])):{[n]:"1",...Object.fromEntries(r.map(s=>[s,(0,zr.formatColor)({...i,alpha:`var(${n})`})]))}}});var Ia=R(Ni=>{"use strict";c();Object.defineProperty(Ni,"__esModule",{value:!0});function ih(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}ih(Ni,{pattern:()=>sh,withoutCapturing:()=>Ea,any:()=>Pa,optional:()=>ah,zeroOrMore:()=>uh,nestedBrackets:()=>Aa,escape:()=>Ze});var Oa=/[\\^$.*+?()[\]{}|]/g,oh=RegExp(Oa.source);function Xt(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function sh(e){return new RegExp(Xt(e),"g")}function Ea(e){return new RegExp(`(?:${Xt(e)})`,"g")}function Pa(e){return`(?:${e.map(Xt).join("|")})`}function ah(e){return`(?:${Xt(e)})?`}function uh(e){return`(?:${Xt(e)})*`}function Aa(e,t,n=1){return Ea([Ze(e),/[^\s]*/,n===1?`[^${Ze(e)}${Ze(t)}s]*`:Pa([`[^${Ze(e)}${Ze(t)}s]*`,Aa(e,t,n-1)]),/[^\s]*/,Ze(t)])}function Ze(e){return e&&oh.test(e)?e.replace(Oa,"\\$&"):e||""}});var Ra=R(Mi=>{"use strict";c();Object.defineProperty(Mi,"__esModule",{value:!0});Object.defineProperty(Mi,"splitAtTopLevelOnly",{enumerable:!0,get:()=>ch});var lh=fh(Ia());function La(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(La=function(r){return r?n:t})(e)}function fh(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=La(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function*ch(e,t){let n=new RegExp(`[(){}\\[\\]${lh.escape(t)}]`,"g"),r=0,i=0,s=!1,o=0,a=0,u=t.length;for(let l of e.matchAll(n)){let f=l[0]===t[o],d=o===u-1,g=f&&d;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),o++),g&&r===0&&(s=!0,yield e.substring(i,a),i=a+u),o===u&&(o=0,a=0)}s?yield e.substring(i):yield e}});var Da=R($i=>{"use strict";c();Object.defineProperty($i,"__esModule",{value:!0});function dh(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}dh($i,{parseBoxShadowValue:()=>gh,formatBoxShadowValue:()=>vh});var ph=Ra(),hh=new Set(["inset","inherit","initial","revert","unset"]),mh=/\ +(?![^(]*\))/g,Ca=/^-?(\d+|\.\d+)(.*?)$/g;function gh(e){return Array.from((0,ph.splitAtTopLevelOnly)(e,",")).map(n=>{let r=n.trim(),i={raw:r},s=r.split(mh),o=new Set;for(let a of s)Ca.lastIndex=0,!o.has("KEYWORD")&&hh.has(a)?(i.keyword=a,o.add("KEYWORD")):Ca.test(a)?o.has("X")?o.has("Y")?o.has("BLUR")?o.has("SPREAD")||(i.spread=a,o.add("SPREAD")):(i.blur=a,o.add("BLUR")):(i.y=a,o.add("Y")):(i.x=a,o.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 vh(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 Ba=R(qi=>{"use strict";c();Object.defineProperty(qi,"__esModule",{value:!0});function bh(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}bh(qi,{normalize:()=>Ve,url:()=>Ma,number:()=>wh,percentage:()=>$a,length:()=>Wa,lineWidth:()=>kh,shadow:()=>Th,color:()=>Oh,image:()=>Eh,gradient:()=>qa,position:()=>Ih,familyName:()=>Lh,genericName:()=>Ch,absoluteSize:()=>Fh,relativeSize:()=>Mh});var yh=Ci(),xh=Da(),Wi=["min","max","clamp","calc"],Na=/,(?![^(]*\))/g,Gr=/_(?![^(]*\))/g;function Ve(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(n=>/^url\(.*?\)$/.test(n)?n:Ve(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 Ma(e){return e.startsWith("url(")}function wh(e){return!isNaN(Number(e))||Wi.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function $a(e){return e.split(Gr).every(t=>/%$/g.test(t)||Wi.some(n=>new RegExp(`^${n}\\(.+?%`).test(t)))}var _h=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],Fa=`(?:${_h.join("|")})`;function Wa(e){return e.split(Gr).every(t=>t==="0"||new RegExp(`${Fa}$`).test(t)||Wi.some(n=>new RegExp(`^${n}\\(.+?${Fa}`).test(t)))}var Sh=new Set(["thin","medium","thick"]);function kh(e){return Sh.has(e)}function Th(e){let t=(0,xh.parseBoxShadowValue)(Ve(e));for(let n of t)if(!n.valid)return!1;return!0}function Oh(e){let t=0;return e.split(Gr).every(r=>(r=Ve(r),r.startsWith("var(")?!0:(0,yh.parseColor)(r,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function Eh(e){let t=0;return e.split(Na).every(r=>(r=Ve(r),r.startsWith("var(")?!0:Ma(r)||qa(r)||["element(","image(","cross-fade(","image-set("].some(i=>r.startsWith(i))?(t++,!0):!1))?t>0:!1}var Ph=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function qa(e){e=Ve(e);for(let t of Ph)if(e.startsWith(`${t}(`))return!0;return!1}var Ah=new Set(["center","top","right","bottom","left"]);function Ih(e){let t=0;return e.split(Gr).every(r=>(r=Ve(r),r.startsWith("var(")?!0:Ah.has(r)||Wa(r)||$a(r)?(t++,!0):!1))?t>0:!1}function Lh(e){let t=0;return e.split(Na).every(r=>(r=Ve(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(t++,!0)))?t>0:!1}var Rh=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function Ch(e){return Rh.has(e)}var Dh=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function Fh(e){return Dh.has(e)}var Nh=new Set(["larger","smaller"]);function Mh(e){return Nh.has(e)}});var Xa=R(zi=>{"use strict";c();Object.defineProperty(zi,"__esModule",{value:!0});function $h(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}$h(zi,{updateAllClasses:()=>Bh,asValue:()=>Kt,parseColorFormat:()=>Bi,asColor:()=>Va,asLookupValue:()=>Ha,coerceValue:()=>jh});var Wh=Ui(xa()),qh=Ui(wa()),Ua=Fi(),he=Ba(),za=Ui(En());function Ui(e){return e&&e.__esModule?e:{default:e}}function Bh(e,t){return(0,Wh.default)(i=>{i.walkClasses(s=>{let o=t(s.value);s.value=o,s.raws&&s.raws.value&&(s.raws.value=(0,qh.default)(s.raws.value))})}).processSync(e)}function ja(e,t){if(!Qt(e))return;let n=e.slice(1,-1);if(!!t(n))return(0,he.normalize)(n)}function Uh(e,t={},n){let r=t[e];if(r!==void 0)return(0,za.default)(r);if(Qt(e)){let i=ja(e,n);return i===void 0?void 0:(0,za.default)(i)}}function Kt(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("-")?Uh(e.slice(1),t.values,n):ja(e,n)}function Qt(e){return e.startsWith("[")&&e.endsWith("]")}function zh(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function Bi(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:n=1})=>t.replace("<alpha-value>",n)}return e}function Va(e,t={},{tailwindConfig:n={}}={}){var r;if(((r=t.values)===null||r===void 0?void 0:r[e])!==void 0){var i;return Bi((i=t.values)===null||i===void 0?void 0:i[e])}let[s,o]=zh(e);if(o!==void 0){var a,u,l,f;let d=(f=(a=t.values)===null||a===void 0?void 0:a[s])!==null&&f!==void 0?f:Qt(s)?s.slice(1,-1):void 0;return d===void 0?void 0:(d=Bi(d),Qt(o)?(0,Ua.withAlphaValue)(d,o.slice(1,-1)):((u=n.theme)===null||u===void 0||(l=u.opacity)===null||l===void 0?void 0:l[o])===void 0?void 0:(0,Ua.withAlphaValue)(d,n.theme.opacity[o]))}return Kt(e,t,{validate:he.color})}function Ha(e,t={}){var n;return(n=t.values)===null||n===void 0?void 0:n[e]}function Se(e){return(t,n)=>Kt(t,n,{validate:e})}var Ya={any:Kt,color:Va,url:Se(he.url),image:Se(he.image),length:Se(he.length),percentage:Se(he.percentage),position:Se(he.position),lookup:Ha,"generic-name":Se(he.genericName),"family-name":Se(he.familyName),number:Se(he.number),"line-width":Se(he.lineWidth),"absolute-size":Se(he.absoluteSize),"relative-size":Se(he.relativeSize),shadow:Se(he.shadow)},Ga=Object.keys(Ya);function Gh(e,t){let n=e.indexOf(t);return n===-1?[void 0,e]:[e.slice(0,n),e.slice(n+1)]}function jh(e,t,n,r){if(Qt(t)){let i=t.slice(1,-1),[s,o]=Gh(i,":");if(!/^[\w-_]+$/g.test(s))o=i;else if(s!==void 0&&!Ga.includes(s))return[];if(o.length>0&&Ga.includes(s))return[Kt(`[${o}]`,n),s]}for(let i of[].concat(e)){let s=Ya[i](t,n,{tailwindConfig:r});if(s!==void 0)return[s,i]}return[]}});var Qa=R(Gi=>{"use strict";c();Object.defineProperty(Gi,"__esModule",{value:!0});Object.defineProperty(Gi,"default",{enumerable:!0,get:()=>Vh});function Vh(e){return typeof e=="function"?e({}):e}});var tu=R(Vi=>{"use strict";c();Object.defineProperty(Vi,"__esModule",{value:!0});Object.defineProperty(Vi,"default",{enumerable:!0,get:()=>d0});var Hh=et(En()),Yh=et(is()),Xh=et(os()),Qh=et(In()),Kh=et(as()),Za=us(),Ka=ls(),Jh=cs(),Zh=et(ds()),e0=ps(),t0=Xa(),r0=Fi(),n0=et(Qa());function et(e){return e&&e.__esModule?e:{default:e}}function ft(e){return typeof e=="function"}function Jt(e){return typeof e=="object"&&e!==null}function Zt(e,...t){let n=t.pop();for(let r of t)for(let i in r){let s=n(e[i],r[i]);s===void 0?Jt(e[i])&&Jt(r[i])?e[i]=Zt(e[i],r[i],n):e[i]=r[i]:e[i]=s}return e}var ji={colors:Kh.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,n)=>{let r=(0,Hh.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 i0(e,...t){return ft(e)?e(...t):e}function o0(e){return e.reduce((t,{extend:n})=>Zt(t,n,(r,i)=>r===void 0?[i]:Array.isArray(r)?[i,...r]:[i,r]),{})}function s0(e){return{...e.reduce((t,n)=>(0,Za.defaults)(t,n),{}),extend:o0(e)}}function Ja(e,t){if(Array.isArray(e)&&Jt(e[0]))return e.concat(t);if(Array.isArray(t)&&Jt(t[0])&&Jt(e))return[e,...t];if(Array.isArray(t))return t}function a0({extend:e,...t}){return Zt(t,e,(n,r)=>!ft(n)&&!r.some(ft)?Zt({},n,...r,Ja):(i,s)=>Zt({},...[n,...r].map(o=>i0(o,i,s)),Ja))}function*u0(e){let t=(0,Ka.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,s]=r,o=(0,Ka.toPath)(i);o.alpha=s,yield o}}function l0(e){let t=(n,r)=>{for(let i of u0(n)){let s=0,o=e;for(;o!=null&&s<i.length;)o=o[i[s++]],o=ft(o)&&(i.alpha===void 0||s<=i.length-1)?o(t,ji):o;if(o!==void 0){if(i.alpha!==void 0){let a=(0,t0.parseColorFormat)(o);return(0,r0.withAlphaValue)(a,i.alpha,(0,n0.default)(a))}return(0,Zh.default)(o)?(0,e0.cloneDeep)(o):o}}return r};return Object.assign(t,{theme:t,...ji}),Object.keys(e).reduce((n,r)=>(n[r]=ft(e[r])?e[r](t,ji):e[r],n),{})}function eu(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(s=>{s.__isOptionsFunction&&(s=s());var o;t=[...t,...eu([(o=s==null?void 0:s.config)!==null&&o!==void 0?o:{}])]})}),t}function f0(e){return[...e].reduceRight((n,r)=>ft(r)?r({corePlugins:n}):(0,Xh.default)(r,n),Yh.default)}function c0(e){return[...e].reduceRight((n,r)=>[...n,...r],[])}function d0(e){let t=[...eu(e),{prefix:"",important:!1,separator:":",variantOrder:Qh.default.variantOrder}];var n,r;return(0,Jh.normalizeConfig)((0,Za.defaults)({theme:l0(a0(s0(t.map(i=>(n=i==null?void 0:i.theme)!==null&&n!==void 0?n:{})))),corePlugins:f0(t.map(i=>i.corePlugins)),plugins:c0(e.map(i=>(r=i==null?void 0:i.plugins)!==null&&r!==void 0?r:[]))},...t))}});var ru={};Jr(ru,{default:()=>p0});var p0,nu=hr(()=>{c();p0={yellow:e=>e}});var au=R(Hi=>{"use strict";c();Object.defineProperty(Hi,"__esModule",{value:!0});function h0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}h0(Hi,{flagEnabled:()=>v0,issueFlagNotices:()=>b0,default:()=>y0});var m0=su((nu(),mr(ru))),g0=su((Ar(),mr(Pr)));function su(e){return e&&e.__esModule?e:{default:e}}var iu={optimizeUniversalDefaults:!1},er={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function v0(e,t){if(er.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:iu[t])!==null&&i!==void 0?i:!1)}if(er.experimental.includes(t)){var s,o,a;return e.experimental==="all"||((a=(o=e==null||(s=e.experimental)===null||s===void 0?void 0:s[t])!==null&&o!==void 0?o:iu[t])!==null&&a!==void 0?a:!1)}return!1}function ou(e){if(e.experimental==="all")return er.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(n=>er.experimental.includes(n)&&e.experimental[n])}function b0(e){if(process.env.JEST_WORKER_ID===void 0&&ou(e).length>0){let t=ou(e).map(n=>m0.default.yellow(n)).join(", ");g0.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 y0=er});var lu=R(Yi=>{"use strict";c();Object.defineProperty(Yi,"__esModule",{value:!0});Object.defineProperty(Yi,"default",{enumerable:!0,get:()=>uu});var x0=_0(In()),w0=au();function _0(e){return e&&e.__esModule?e:{default:e}}function uu(e){var t;let n=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[x0.default]).slice().reverse().flatMap(s=>uu(typeof s=="function"?s():s)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(r).filter(s=>(0,w0.flagEnabled)(e,s)).map(s=>r[s]);return[e,...i,...n]}});var cu=R(Xi=>{"use strict";c();Object.defineProperty(Xi,"__esModule",{value:!0});Object.defineProperty(Xi,"default",{enumerable:!0,get:()=>T0});var S0=fu(tu()),k0=fu(lu());function fu(e){return e&&e.__esModule?e:{default:e}}function T0(...e){let[,...t]=(0,k0.default)(e[0]);return(0,S0.default)([...e,...t])}});var pu=R((tv,du)=>{c();var Qi=cu();du.exports=(Qi.__esModule?Qi:{default:Qi}).default});c();c();c();var gr;function Ku(e){gr=e}async function Re(){return gr||(gr=await(await Promise.resolve().then(()=>(To(),ko))).getYogaModule()),gr}c();c();c();var mt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ju=mt((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),Zu=mt((e,t)=>{t.exports=["deg","grad","rad","turn"]}),el=mt((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),tl=mt((e,t)=>{t.exports=["Hz","kHz"]}),rl=mt((e,t)=>{t.exports=["s","ms"]}),nl=Ju(),Oo=Zu(),Eo=el(),Po=tl(),Ao=rl();function en(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(il(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=Zr(e),this.unit="%";return}var t=sl(e);if(!t){this.type="number",this.value=Zr(e);return}this.type=ul(t),this.value=Zr(e.substr(0,e.length-t.length)),this.unit=t}en.prototype.valueOf=function(){return this.value};en.prototype.toString=function(){return this.value+(this.unit||"")};function ze(e){return new en(e)}function il(e){var t=e.match(/\./g);return t?t.length:0}function Zr(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var ol=[].concat(Oo,Po,nl,Eo,Ao);function sl(e){var t=e.match(/\D+$/),n=t&&t[0];if(n&&ol.indexOf(n)===-1)throw new Error("Invalid unit: "+n);return n}var al=Object.assign(vr(Oo,"angle"),vr(Po,"frequency"),vr(Eo,"resolution"),vr(Ao,"time"));function vr(e,t){return Object.fromEntries(e.map(n=>[n,t]))}function ul(e){return al[e]||"length"}import ll from"linebreak";function on(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function Io(e){return/^class\s/.test(e.toString())}function Lo(e){return"dangerouslySetInnerHTML"in e}function Ro(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 be(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 s=new ze(e);if(s.type==="length")switch(s.unit){case"em":return s.value*t;case"rem":return s.value*16;case"vw":return~~(s.value*r._viewportWidth/100);case"vh":return~~(s.value*r._viewportHeight/100);default:return s.value}else if(s.type==="angle")switch(s.unit){case"deg":return s.value;case"rad":return s.value*180/Math.PI;default:return s.value}else if(s.type==="percentage"&&i)return s.value/100*n}catch{}}function gt(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 ce(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(s=>`"${s}"`).join(" | ")}. Received: "${e}".`);i=n}return i}var tn,rn,sn=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e));function de(e,t,n){if(!tn||!rn){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");tn=new Intl.Segmenter(n,{granularity:"word"}),rn=new Intl.Segmenter(n,{granularity:"grapheme"})}return t==="word"?[...tn.segment(e)].map(r=>r.segment):[...rn.segment(e)].map(r=>r.segment)}function L(e,t,n){let r="";for(let[i,s]of Object.entries(t))typeof s<"u"&&(r+=` ${i}="${s}"`);return n?`<${e}${r}>${n}</${e}>`:`<${e}${r}/>`}function Co(e=20){let t=new Map;function n(i,s){if(t.size>=e){let o=t.keys().next().value;t.delete(o)}t.set(i,s)}function r(i){if(!t.has(i))return;let o=t.get(i);return t.delete(i),t.set(i,o),o}return{set:n,get:r}}var Do={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",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"},fl=/[\r\n%#()<>?[\\\]^`{|}"']/g;function nn(e,t){if(!e)return"";if(Array.isArray(e))return e.map(a=>nn(a,t)).join("");if(typeof e!="object")return String(e);let n=e.type;if(n==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:r,style:i,...s}=e.props||{},o=(i==null?void 0:i.color)||t;return`<${n}${Object.entries(s).map(([a,u])=>(typeof u=="string"&&u.toLowerCase()==="currentcolor"&&(u=o),` ${Do[a]||a}="${u}"`)).join("")}>${nn(r,o)}</${n}>`}function vt(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Fo(e,t){let{viewBox:n,viewbox:r,width:i,height:s,className:o,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,d=vt(n),g=d?d[3]/d[2]:null;return i=i||g&&s?s/g:null,s=s||g&&i?i*g:null,l.width=i,l.height=s,n&&(l.viewBox=n),`data:image/svg+xml;utf8,${`<svg ${Object.entries(l).map(([h,p])=>(typeof p=="string"&&p.toLowerCase()==="currentcolor"&&(p=f),` ${Do[h]||h}="${p}"`)).join("")}>${nn(u,f)}</svg>`.replace(fl,encodeURIComponent)}`}function No(e){return typeof e=="string"}function Mo(e,t){if(t)return{words:de(e,"grapheme"),requiredBreaks:[]};let n=new ll(e),r=0,i=n.nextBreak(),s=[],o=[!1];for(;i;){let a=e.slice(r,i.position);s.push(a),i.required?o.push(!0):o.push(!1),r=i.position,i=n.nextBreak()}return{words:s,requiredBreaks:o}}c();c();var ye="flex",$o={p:{display:ye,marginTop:"1em",marginBottom:"1em"},div:{display:ye},blockquote:{display:ye,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:ye,textAlign:"center"},hr:{display:ye,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:ye,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:ye,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:ye,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:ye,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:ye,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:ye,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:ye,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};c();var cl=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","textDecorationLine","textDecorationStyle","textDecorationColor","whiteSpace","transform","wordBreak","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath"]);function an(e){let t={};for(let n in e)cl.has(n)&&(t[n]=e[n]);return t}c();import{getPropertyName as hl,getStylesForProperty as Qe}from"css-to-react-native";import{parseElementStyle as ml}from"css-background-parser";import{parse as gl}from"css-box-shadow";c();import dl from"postcss-value-parser";function pl(e,t){try{let n=new ze(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 un(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=pl(e,t);return r.absolute?{[n?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[n?"xRelative":"yRelative"]:r.relative}:{}}}}function ln(e,t){if(typeof e=="number")return{xAbsolute:e};let n;try{n=dl(e).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return n.length===1?un(n[0],t,!0):n.length===2?((n[0]==="top"||n[0]==="bottom"||n[1]==="left"||n[1]==="right")&&n.reverse(),{...un(n[0],t,!0),...un(n[1],t,!1)}):{}}var vl=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),bl=new Set(["lineHeight"]);function yl(e,t,n,r){return e==="textDecoration"&&!n.includes(t.textDecorationColor)&&(t.textDecorationColor=r),t}function bt(e,t){return typeof t=="number"?vl.has(e)?bl.has(e)?t:String(t):t+"px":t}function xl(e,t,n){if(e==="lineHeight")return{lineHeight:bt(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(r=>r.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[r,i]=t.split("/"),s=Qe(e,r,!0),o=Qe(e,i,!0);for(let a in s)o[a]=bt(e,s[a])+" "+bt(e,o[a]);return o}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let r=Qe("border",t,!0);r.borderWidth===1&&!String(t).includes("1px")&&(r.borderWidth=3),r.borderColor==="black"&&!String(t).includes("black")&&(r.borderColor=n);let i={Width:bt(e+"Width",r.borderWidth),Style:ce(r.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:r.borderColor},s={};for(let o of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let a in i)s["border"+o+a]=i[a];return s}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?gl(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let r={},i=t.replace(/(-?[\d.]+%)/g,(o,a)=>{let u=~~(Math.random()*1e9);return r[u]=a,u+"px"}),s=Qe("transform",i,!0);for(let o of s.transform)for(let a in o)r[o[a]]&&(o[a]=r[o[a]]);return s}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url)\(/.test(t)?Qe("backgroundImage",t,!0):Qe("background",t,!0)}function Wo(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var qo=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function Bo(e){if(typeof e=="string"&&qo.test(e.trim()))return e.trim().replace(qo,(t,n,r,i,s)=>`rgba(${n}, ${r}, ${i}, ${s})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=Bo(e[t]);return e}return e}function br(e,t){let n={};if(e){let i=wl(e.color,t.color);n.color=i;for(let s in e){if(s.startsWith("_")){n[s]=e[s];continue}if(s==="color")continue;let o=hl(s),a=Sl(e[s],i);try{let u=xl(o,a,i)||yl(o,Qe(o,bt(o,a),!0),a,i);Object.assign(n,u)}catch(u){throw new Error(u.message+(u.message.includes(a)?`
|
|
4
|
+
`+Wo(o):`
|
|
5
|
+
in CSS rule \`${o}: ${a}\`.${Wo(o)}`))}}}if(n.backgroundImage){let{backgrounds:i}=ml(n);n.backgroundImage=i}let r=typeof n.fontSize=="number"?n.fontSize:t.fontSize;if(typeof r=="string")try{let i=new ze(r);switch(i.unit){case"em":r=i.value*t.fontSize;break;case"rem":r=i.value*16;break}}catch{r=16}typeof n.fontSize<"u"&&(n.fontSize=r),n.transformOrigin&&(n.transformOrigin=ln(n.transformOrigin,r));for(let i in n){let s=n[i];if(i==="lineHeight")typeof s=="string"&&(s=n[i]=be(s,r,r,t,!0)/r);else{if(typeof s=="string"){let o=be(s,r,r,t);typeof o<"u"&&(n[i]=o),s=n[i]}if(typeof s=="string"||typeof s=="object"){let o=Bo(s);o&&(n[i]=o),s=n[i]}}if(i==="opacity"&&(s=n[i]=s*t.opacity),i==="transform"){let o=s;for(let a of o){let u=Object.keys(a)[0],l=a[u],f=typeof l=="string"?be(l,r,r,t)??l:l;a[u]=f}}}return n}function wl(e,t){return e&&e.toLowerCase()!=="currentcolor"?e:t}function _l(e,t){return e.replace(/currentcolor/ig,t)}function Sl(e,t){return No(e)&&(e=_l(e,t)),e}c();var kl="image/avif",Tl="image/webp",yr="image/png",xr="image/jpeg",wr="image/gif",dn="image/svg+xml";function Uo(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 s=t.getUint8(i+1+n);if(s===192||s===193||s===194)return[t.getUint16(i+7+n,!1),t.getUint16(i+5+n,!1)];n+=i+2}throw new TypeError("Invalid JPEG")}function zo(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function Go(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var fn=Co(100),cn=new Map,Ol=[yr,xr,wr,dn];function El(e){let t="",n=new Uint8Array(e);for(let r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return btoa(t)}function Pl(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 jo(e,t){let n=t.match(/<svg[^>]*>/)[0],r=n.match(/viewBox=['"](.+)['"]/),i=r?vt(r[1]):null,s=n.match(/width=['"](\d*\.\d+|\d+)['"]/),o=n.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!i&&(!s||!o))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let a=i?[i[2],i[3]]:[+s[1],+o[1]],u=a[0]/a[1];return s&&o?[+s[1],+o[1]]:s?[+s[1],+s[1]/u]:o?[+o[1]*u,+o[1]]:[a[0],a[1]]}async function _r(e){if(!e)throw new Error("Image source is not provided.");if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),e.startsWith("data:")){let r;try{r=/data:(?<imageType>[a-z/+]+)(;(?<encodingType>base64|utf8))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:i,encodingType:s,dataString:o}=r;if(i===dn){let a=s==="base64"?atob(o):decodeURIComponent(o.replace(/ /g,"%20")),u=s==="base64"?e:`data:image/svg+xml;base64,${btoa(a)}`,l=jo(e,a);return[u,...l]}else if(s==="base64"){let a,u=Pl(o);switch(i){case yr:a=Go(u);break;case wr:a=zo(u);break;case xr:a=Uo(u);break}return[e,...a]}else return console.warn("Image data URI resolved without size:"+e),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(cn.has(e))return cn.get(e);let t=fn.get(e);if(t)return t;let n=new Promise((r,i)=>{fetch(e).then(s=>{let o=s.headers.get("content-type");return o==="image/svg+xml"||o==="application/svg+xml"?s.text():s.arrayBuffer()}).then(s=>{if(typeof s=="string")try{let l=`data:image/svg+xml;base64,${btoa(s)}`,f=jo(e,s);fn.set(e,[l,...f]),r([l,...f]);return}catch(l){throw new Error(`Failed to parse SVG image: ${l.message}`)}let o,a=Al(new Uint8Array(s));switch(a){case yr:o=Go(s);break;case wr:o=zo(s);break;case xr:o=Uo(s);break}if(!Ol.includes(a))throw new Error(`Unsupported image type: ${a||"unknown"}`);let u=`data:${a};base64,${El(s)}`;fn.set(e,[u,...o]),r([u,...o])}).catch(s=>{i(new Error(`Can't load image ${e}: `+s.message))})});return cn.set(e,n),n}function Al(e){return[255,216,255].every((t,n)=>e[n]===t)?xr:[137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)?yr:[71,73,70,56].every((t,n)=>e[n]===t)?wr:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,n)=>!t||e[n]===t)?Tl:[60,63,120,109,108].every((t,n)=>e[n]===t)?dn:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,n)=>!t||e[n]===t)?kl:null}async function pn(e,t,n,r,i){let s=await Re(),o={...n,...br($o[t],n),...br(r,n)};if(t==="img"){let[a,u,l]=await _r(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,d=(o.borderLeftWidth||0)+(o.borderRightWidth||0)+(o.paddingLeft||0)+(o.paddingRight||0),g=(o.borderTopWidth||0)+(o.borderBottomWidth||0)+(o.paddingTop||0)+(o.paddingBottom||0),h=o.width||i.width,p=o.height||i.height,v=typeof h!="string"&&typeof p!="string";typeof h=="number"&&v&&(h-=d),typeof p=="number"&&v&&(p-=g),h===void 0&&p===void 0?(h=u,p=l):h===void 0?typeof p=="number"?h=p/f:e.setAspectRatio(1/f):p===void 0&&(typeof h=="number"?p=h*f:e.setAspectRatio(1/f)),o.width=v?h+d:h,o.height=v?p+g:p,o.__src=a}if(t==="svg"){let a=i.viewBox||i.viewbox,u=vt(a),l=u?u[3]/u[2]:null,{width:f,height:d}=i;typeof f>"u"&&d?l==null?f=0:typeof d=="string"&&d.endsWith("%")?f=parseInt(d)/l+"%":(d=be(d,n.fontSize,1,n),f=d/l):typeof d>"u"&&f?l==null?f=0:typeof f=="string"&&f.endsWith("%")?d=parseInt(f)*l+"%":(f=be(f,n.fontSize,1,n),d=f*l):(typeof f<"u"&&(f=be(f,n.fontSize,1,n)||f),typeof d<"u"&&(d=be(d,n.fontSize,1,n)||d),f||=u==null?void 0:u[2],d||=u==null?void 0:u[3]),!o.width&&f&&(o.width=f),!o.height&&d&&(o.height=d)}return e.setDisplay(ce(o.display,{flex:s.DISPLAY_FLEX,none:s.DISPLAY_NONE},s.DISPLAY_FLEX,"display")),e.setAlignContent(ce(o.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(ce(o.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_FLEX_START,"alignItems")),e.setAlignSelf(ce(o.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(ce(o.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(ce(o.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(ce(o.flexWrap,{wrap:s.WRAP_WRAP,nowrap:s.WRAP_NO_WRAP,"wrap-reverse":s.WRAP_WRAP_REVERSE},s.WRAP_NO_WRAP,"flexWrap")),typeof e.setGap<"u"&&typeof e.getGap<"u"&&(typeof o.gap<"u"&&e.setGap(s.GUTTER_ALL,o.gap),typeof o.rowGap<"u"&&e.setGap(s.GUTTER_ROW,o.rowGap),typeof o.columnGap<"u"&&e.setGap(s.GUTTER_COLUMN,o.columnGap)),typeof o.flexBasis<"u"&&e.setFlexBasis(o.flexBasis),e.setFlexGrow(typeof o.flexGrow>"u"?0:o.flexGrow),e.setFlexShrink(typeof o.flexShrink>"u"?0:o.flexShrink),typeof o.maxHeight<"u"&&e.setMaxHeight(o.maxHeight),typeof o.maxWidth<"u"&&e.setMaxWidth(o.maxWidth),typeof o.minHeight<"u"&&e.setMinHeight(o.minHeight),typeof o.minWidth<"u"&&e.setMinWidth(o.minWidth),e.setOverflow(ce(o.overflow,{visible:s.OVERFLOW_VISIBLE,hidden:s.OVERFLOW_HIDDEN},s.OVERFLOW_VISIBLE,"overflow")),e.setMargin(s.EDGE_TOP,o.marginTop||0),e.setMargin(s.EDGE_BOTTOM,o.marginBottom||0),e.setMargin(s.EDGE_LEFT,o.marginLeft||0),e.setMargin(s.EDGE_RIGHT,o.marginRight||0),e.setBorder(s.EDGE_TOP,o.borderTopWidth||0),e.setBorder(s.EDGE_BOTTOM,o.borderBottomWidth||0),e.setBorder(s.EDGE_LEFT,o.borderLeftWidth||0),e.setBorder(s.EDGE_RIGHT,o.borderRightWidth||0),e.setPadding(s.EDGE_TOP,o.paddingTop||0),e.setPadding(s.EDGE_BOTTOM,o.paddingBottom||0),e.setPadding(s.EDGE_LEFT,o.paddingLeft||0),e.setPadding(s.EDGE_RIGHT,o.paddingRight||0),e.setPositionType(ce(o.position,{absolute:s.POSITION_TYPE_ABSOLUTE,relative:s.POSITION_TYPE_RELATIVE},s.POSITION_TYPE_RELATIVE,"position")),typeof o.top<"u"&&e.setPosition(s.EDGE_TOP,o.top),typeof o.bottom<"u"&&e.setPosition(s.EDGE_BOTTOM,o.bottom),typeof o.left<"u"&&e.setPosition(s.EDGE_LEFT,o.left),typeof o.right<"u"&&e.setPosition(s.EDGE_RIGHT,o.right),typeof o.height<"u"?e.setHeight(o.height):e.setHeightAuto(),typeof o.width<"u"?e.setWidth(o.width):e.setWidthAuto(),[o,an(o)]}c();c();c();var Vo=[1,0,0,1,0,0];function Il(e,t,n){let r=[...Vo];for(let i of e){let s=Object.keys(i)[0],o=i[s];if(typeof o=="string")if(s==="translateX")o=parseFloat(o)/100*t,i[s]=o;else if(s==="translateY")o=parseFloat(o)/100*n,i[s]=o;else throw new Error(`Invalid transform: "${s}: ${o}".`);let a=o,u=[...Vo];switch(s){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),d=Math.sin(l);u[0]=f,u[1]=d,u[2]=-d,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=gt(u,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function yt({left:e,top:t,width:n,height:r},i,s,o){let a;i.__resolved||Il(i,n,r);let u=i;if(s)a=u;else{let l=(o==null?void 0:o.xAbsolute)??((o==null?void 0:o.xRelative)??50)*n/100,f=(o==null?void 0:o.yAbsolute)??((o==null?void 0:o.yRelative)??50)*r/100,d=e+l,g=t+f;a=gt([1,0,0,1,d,g],gt(u,[1,0,0,1,-d,-g])),u.__parent&&(a=gt(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(l=>l.toFixed(2)).join(",")})`}function Ho({left:e,top:t,width:n,height:r,isInheritingTransform:i},s){let o="",a=1;return s.transform&&(o=yt({left:e,top:t,width:n,height:r},s.transform,i,s.transformOrigin)),s.opacity!==void 0&&(a=+s.opacity),{matrix:o,opacity:a}}function hn({id:e,content:t,filter:n,left:r,top:i,width:s,height:o,matrix:a,opacity:u,image:l,clipPathId:f,debug:d,shape:g,decorationShape:h},p){let v="";if(d&&(v=L("rect",{x:r,y:i-o,width:s,height:o,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0})),l){let b={href:l,x:r,y:i,width:s,height:o,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:p.filter?`filter:${p.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+L("image",{...b,opacity:u!==1?u:void 0})+(h||"")+(n?"</g>":"")+v,""]}let _={x:r,y:i,width:s,height:o,"font-weight":p.fontWeight,"font-style":p.fontStyle,"font-size":p.fontSize,"font-family":p.fontFamily,"letter-spacing":p.letterSpacing||void 0,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:p.filter?`filter:${p.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+L("text",{..._,fill:p.color,opacity:u!==1?u:void 0},t)+(h||"")+(n?"</g>":"")+v,g?L("text",_,t):""]}c();function Ll(e,t,n){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(r,i,s,o){return i+(parseFloat(s)+t)+","+(parseFloat(o)+n)})}function Yo({id:e,width:t,height:n},r){if(!r.shadowColor||!r.shadowOffset||typeof r.shadowRadius>"u")return"";let i=r.shadowRadius*r.shadowRadius/4,s=Math.min(r.shadowOffset.width-i,0),o=Math.max(r.shadowOffset.width+i+t,t),a=Math.min(r.shadowOffset.height-i,0),u=Math.max(r.shadowOffset.height+i+n,n);return`<defs><filter id="satori_s-${e}" x="${s/t*100}%" y="${a/n*100}%" width="${(o-s)/t*100}%" height="${(u-a)/n*100}%"><feDropShadow dx="${r.shadowOffset.width}" dy="${r.shadowOffset.height}" stdDeviation="${r.shadowRadius/2}" flood-color="${r.shadowColor}" flood-opacity="1"/></filter></defs>`}function Xo({width:e,height:t,shape:n,opacity:r,id:i},s){if(!s.boxShadow)return null;let o="",a="";for(let u=s.boxShadow.length-1;u>=0;u--){let l="",f=s.boxShadow[u];f.spreadRadius&&f.inset&&(f.spreadRadius=-f.spreadRadius);let d=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),g=Math.min(-d-(f.inset?f.offsetX:0),0),h=Math.max(d+e-(f.inset?f.offsetX:0),e),p=Math.min(-d-(f.inset?f.offsetY:0),0),v=Math.max(d+t-(f.inset?f.offsetY:0),t),_=`satori_s-${i}-${u}`,b=`satori_ms-${i}-${u}`,y=f.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):n;l+=L("mask",{id:b,maskUnits:"userSpaceOnUse"},L("rect",{x:0,y:0,width:s._viewportWidth,height:s._viewportHeight,fill:f.inset?"#000":"#fff"})+y.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let S=y.replace(/d="([^"]+)"/,(E,T)=>'d="'+Ll(T,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(E,T)=>'x="'+(parseFloat(T)+f.offsetX)+'"').replace(/y="([^"]+)"/,(E,T)=>'y="'+(parseFloat(T)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(l+=L("mask",{id:b+"-neg",maskUnits:"userSpaceOnUse"},S.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(S=L("g",{mask:`url(#${b}-neg)`},S)),l+=L("defs",{},L("filter",{id:_,x:`${g/e*100}%`,y:`${p/t*100}%`,width:`${(h-g)/e*100}%`,height:`${(v-p)/t*100}%`},L("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+L("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+L("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+L("g",{mask:`url(#${b})`,filter:`url(#${_})`,opacity:r},S),f.inset?a+=l:o+=l}return[o,a]}c();function mn({width:e,left:t,top:n,ascender:r,clipPathId:i},s){let{textDecorationColor:o,textDecorationStyle:a,textDecorationLine:u,fontSize:l}=s;if(!u||u==="none")return"";let f=Math.max(1,l*.1),d=u==="line-through"?n+r*.5:u==="underline"?n+r*1.1:n,g=a==="dashed"?`${f*1.2} ${f*2}`:a==="dotted"?`0 ${f*2}`:void 0;return L("line",{x1:t,y1:d,x2:t+e,y2:d,stroke:o,"stroke-width":f,"stroke-dasharray":g,"stroke-linecap":a==="dotted"?"round":"square","clip-path":i?`url(#${i})`:void 0})}async function*gn(e,t){var _o;let n=await Re(),{parentStyle:r,inheritedStyle:i,parent:s,font:o,id:a,isInheritingTransform:u,debug:l,embedFont:f,graphemeImages:d,locale:g,canLoadAdditionalAssets:h}=t,{textAlign:p,textOverflow:v,whiteSpace:_,wordBreak:b,lineHeight:y,filter:S,_inheritedBackgroundClipTextPath:E}=r;r.textTransform==="uppercase"?e=e.toLocaleUpperCase(g):r.textTransform==="lowercase"?e=e.toLocaleLowerCase(g):r.textTransform==="capitalize"&&(e=de(e,"word",g).map($=>de($,"grapheme",g).map((U,B)=>B===0?U.toLocaleUpperCase(g):U).join("")).join(""));let T=["pre","pre-wrap","pre-line"].includes(_),D=!["pre","pre-wrap"].includes(_);T||(e=e.replace(/\n/g," ")),D&&(e=e.replace(/[ ]+/g," "),e=e.trim());let F=b==="break-word",C=b==="break-all",{words:W,requiredBreaks:z}=Mo(e,C),X=n.Node.create();X.setAlignItems(n.ALIGN_BASELINE),X.setJustifyContent(ce(r.textAlign,{left:n.JUSTIFY_FLEX_START,right:n.JUSTIFY_FLEX_END,center:n.JUSTIFY_CENTER,justify:n.JUSTIFY_SPACE_BETWEEN,start:n.JUSTIFY_FLEX_START,end:n.JUSTIFY_FLEX_END},n.JUSTIFY_FLEX_START,"textAlign")),s.insertChild(X,s.getChildCount());let H=r.fontSize,M=o.getEngine(H,y,r,g),re=h?de(e,"grapheme").filter($=>!M.has($)):[];yield re.map($=>({word:$,locale:g})),re.length&&(M=o.getEngine(H,y,r,g));let G=[],oe=[],ge=[],I=[],q=new Map;function Y($){if(q.has($))return q.get($);let U=M.measure($,r);return q.set($,U),U}function N($){let U=0,B=!1;for(let le of $)d&&d[le]?(U+=r.fontSize,B=!0):U+=Y(le);return{width:U,isImage:B}}let Oe=$=>{if($.length===0)return{originWidth:0,endingSpacesWidth:0,isImage:!1};let{width:U,isImage:B}=N(de($,"grapheme")),{width:le}=N(de($.trimEnd(),"grapheme"));return{originWidth:U,endingSpacesWidth:U-le,isImage:B}},Ne=[],qu=0;for(let $=0;$<W.length;$++){let U=W[$],B=!1,le=d&&d[U];_==="pre"?B=z[$]:_!=="nowrap"&&(le||z[$])&&(B=!0),B?(_==="nowrap"&&(qu+=N(Ne).width+r.fontSize),Ne=[]):(!sn.includes(U[0])||!Ne.length)&&Ne.push(U===`
|
|
6
|
+
`?" ":U)}typeof r.flexShrink>"u"&&s.setFlexShrink(1),X.setMeasureFunc($=>{let U=0,B=0,le=0,Ye=-1,We=0,ne=0,se=0;G=[],ge=[0];for(let Ee=0;Ee<W.length;Ee++){let Z=W[Ee],Xe=T&&z[Ee],ve=0,qe=0,{originWidth:ot,endingSpacesWidth:Be,isImage:ae}=Oe(Z);ve=ot,qe=Be,Xe&&ne===0&&(ne=M.height(Z));let fe=",.!?:-@)>]}%#".indexOf(Z[0])<0,Ue=!B,ht=Ee&&fe&&B+ve>$+qe&&_!=="nowrap"&&_!=="pre";if(F&&ve>$&&(!B||ht||Xe)){let dr=de(Z,"grapheme");W.splice(Ee,1,"",...dr),B>0&&(G.push(B),oe.push(se),U++,We+=ne,B=0,ne=0,se=0,ge.push(1),Ye=-1);continue}if(Xe||ht)D&&Z===" "&&(ve=0),G.push(B),oe.push(se),U++,We+=ne,B=ve,ne=ve?M.height(Z):0,se=ve?M.baseline(Z):0,ge.push(1),Ye=-1,Xe||(le=Math.max(le,$));else{B+=ve;let dr=M.height(Z);dr>ne&&(ne=dr,se=M.baseline(Z)),Ue&&ge[ge.length-1]++}Ue&&Ye++,le=Math.max(le,B),I[Ee]={y:We,x:B-ve,width:ae?ot-Be:ve,line:U,lineIndex:Ye}}return B&&(U++,G.push(B),oe.push(se),We+=ne),{width:le,height:We}});let[Bu,Uu]=yield,Yr="",sr="",Me=i._inheritedClipPathId,mo=i._inheritedMaskId,{left:go,top:vo,width:ar,height:bo}=X.getComputedLayout(),Xr=s.getComputedWidth()-s.getComputedPadding(n.EDGE_LEFT)-s.getComputedPadding(n.EDGE_RIGHT)-s.getComputedBorder(n.EDGE_LEFT)-s.getComputedBorder(n.EDGE_RIGHT),nt=Bu+go,it=Uu+vo,{matrix:Le,opacity:ur}=Ho({left:go,top:vo,width:ar,height:bo,isInheritingTransform:u},r),lr="";r.textShadowOffset&&(lr=Yo({width:ar,height:bo,id:a},{shadowColor:r.textShadowColor,shadowOffset:r.textShadowOffset,shadowRadius:r.textShadowRadius}));let pt="",fr="",yo="",Qr=-1,xo=v==="ellipsis"?N(["\u2026"]).width:0,zu=v==="ellipsis"?N([" "]).width:0,cr={},$e=null,wo=0;for(let $=0;$<W.length;$++){let U=I[$];if(!U)continue;let B=W[$],le=null,Ye=!1,We=d?d[de(B,"grapheme")[0]]:null,ne=U.y,se=U.x,Ee=U.width,Z=U.line;if(Z===Qr)continue;let Xe=!1;if(G.length>1){let ae=ar-G[Z];if(p==="right"||p==="end")se+=ae;else if(p==="center")se+=ae/2;else if(p==="justify"&&Z<G.length-1){let fe=ge[Z];se+=(fe>1?ae/(fe-1):0)*U.lineIndex,Xe=!0}}if(cr[Z]||(cr[Z]=[se,Xe?ar:G[Z]]),v==="ellipsis"&&G[Z]>Xr&&U.x+Ee+xo+zu>Xr){let ae=de(B,"grapheme",g),fe="",Ue=0;for(let ht of ae){let Kr=U.x+N([fe+ht]).width;if(fe&&Kr+xo>Xr)break;fe+=ht,Ue=Kr}B=fe+"\u2026",Qr=Z,cr[Z][1]=Ue,Ye=!0}let ve=oe[Z],qe=M.baseline(B),ot=M.height(B),Be=ve-qe;if(We)ne+=0;else if(f){if(!sn.includes(B)&&W[$+1]&&!d[de(W[$+1],"grapheme")[0]]&&I[$+1]&&ne===I[$+1].y&&!Ye){$e===null&&(wo=se),$e=$e===null?B:$e+B;continue}let ae=$e===null?B:$e+B,fe=$e===null?se:wo,Ue=U.width+se-fe;le=M.getSVG(ae,{...r,left:nt+fe,top:it+ne+qe+Be,letterSpacing:r.letterSpacing}),$e=null,l&&(yo+=L("rect",{x:nt+fe,y:it+ne+Be,width:Ue,height:ot,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:Le||void 0,"clip-path":Me?`url(#${Me})`:void 0})+L("line",{x1:nt+se,x2:nt+se+U.width,y1:it+ne+Be+qe,y2:it+ne+Be+qe,stroke:"#14c000","stroke-width":1,transform:Le||void 0,"clip-path":Me?`url(#${Me})`:void 0}))}else ne+=qe+Be;if(r.textDecorationLine&&(Z!==((_o=I[$+1])==null?void 0:_o.line)||Qr===Z)){let ae=cr[Z];ae&&!ae[2]&&(pt+=mn({left:nt+ae[0],top:it+ot*+Z,width:ae[1],ascender:M.baseline(B),clipPathId:Me},r),ae[2]=1)}if(le!==null)fr+=le+" ";else{let[ae,fe]=hn({content:B,filter:lr,id:a,left:nt+se,top:it+ne,width:Ee,height:ot,matrix:Le,opacity:ur,image:We,clipPathId:Me,debug:l,shape:!!E,decorationShape:pt},r);Yr+=ae,sr+=fe,pt=""}}if(fr){let $=r.color!=="transparent"&&ur!==0?L("path",{fill:r.color,d:fr,transform:Le||void 0,opacity:ur!==1?ur:void 0,"clip-path":Me?`url(#${Me})`:void 0,mask:mo?`url(#${mo})`:void 0,style:S?`filter:${S}`:void 0}):"";E&&(sr=L("path",{d:fr,transform:Le||void 0})),Yr+=(lr?lr+L("g",{filter:`url(#satori_s-${a})`},$+pt):$+pt)+yo}return sr&&(r._inheritedBackgroundClipTextPath.value+=sr),Yr}c();c();c();var vn=vn||{},Qo={type:"directional",value:"bottom"};vn.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,zeroValue:/[0]/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(I){var q=new Error(t+": "+I);throw q.source=t,q}function r(){var I=i();return t.length>0&&n("Invalid input not EOF"),I}function i(){return E(s)}function s(){return o("linear-gradient",e.linearGradient,u,Qo)||o("repeating-linear-gradient",e.repeatingLinearGradient,u,Qo)||o("radial-gradient",e.radialGradient,g)||o("repeating-radial-gradient",e.repeatingRadialGradient,g)}function o(I,q,Y,N){return a(q,function(Oe){var Ne=Y();return Ne?oe(e.comma)||n("Missing comma before color stops"):Ne=N,{type:I,orientation:Ne,colorStops:E(T)}})}function a(I,q){var Y=oe(I);if(Y){oe(e.startCall)||n("Missing (");var N=q(Y);return oe(e.endCall)||n("Missing )"),N}}function u(){return l()||f()||d()}function l(){return G("directional",e.sideOrCorner,1)}function f(){return G("angular",e.angleValue,1)}function d(){return G("directional",e.zeroValue,0)}function g(){var I,q=h(),Y;return q&&(I=[],I.push(q),Y=t,oe(e.comma)&&(q=h(),q?I.push(q):t=Y)),I}function h(){var I=p()||v();if(I)I.at=b();else{var q=_();if(q){I=q;var Y=b();Y&&(I.at=Y)}else{var Y=b();if(Y)I={type:"shape",value:"ellipse",at:Y};else{var N=y();N&&(I={type:"default-radial",at:N})}}}return I}function p(){var I=G("shape",/^(circle)/i,0);return I&&(I.style=re()||_()),I}function v(){var I=G("shape",/^(ellipse)/i,0);return I&&(I.style=H()||_()),I}function _(){return G("extent-keyword",e.extentKeywords,1)}function b(){if(G("position",/^at/,0)){var I=y();return I||n("Missing positioning value"),I}}function y(){var I=S();if(I.x||I.y)return{type:"position",value:I}}function S(){return{x:H(),y:H()}}function E(I){var q=I(),Y=[];if(q)for(Y.push(q);oe(e.comma);)q=I(),q?Y.push(q):n("One extra comma");return Y}function T(){var I=D();return I||n("Expected color definition"),I.length=H(),I}function D(){return C()||z()||W()||F()}function F(){return G("literal",e.literalColor,0)}function C(){return G("hex",e.hexColor,1)}function W(){return a(e.rgbColor,function(){return{type:"rgb",value:E(X)}})}function z(){return a(e.rgbaColor,function(){return{type:"rgba",value:E(X)}})}function X(){return oe(e.number)[1]}function H(){return G("%",e.percentageValue,1)||M()||re()}function M(){return G("position-keyword",e.positionKeywords,1)}function re(){return G("px",e.pixelValue,1)||G("em",e.emValue,1)}function G(I,q,Y){var N=oe(q);if(N)return{type:I,value:N[Y]}}function oe(I){var q,Y;return Y=/^[\n\r\t\s]+/.exec(t),Y&&ge(Y[0].length),q=I.exec(t),q&&ge(q[0].length),q}function ge(I){t=t.substr(I)}return function(I){return t=I.toString(),r()}}();var bn=vn;function Rl(e){return e.type==="literal"?e.value:e.type==="hex"?`#${e.value}`:e.type==="rgb"?`rgb(${e.value.join(",")})`:e.type==="rgba"?`rgba(${e.value.join(",")})`:"transparent"}function Cl(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),[t,n,r,i]}function Dl(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function yn(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(s=>{try{let o=new ze(s);return o.type==="length"||o.type==="number"?o.value:o.value+o.unit}catch{return null}}).filter(s=>s!==null):[r,i]).map((s,o)=>Dl(s,[t,n][o]))}function Ko(e,t){let n=[];for(let o of t){let a=Rl(o);if(!n.length&&(n.push({offset:0,color:a}),typeof o.length>"u"||o.length.value==="0"))continue;let u=typeof o.length>"u"?void 0:o.length.type==="%"?o.length.value/100:o.length.value/e;n.push({offset:u,color:a})}n.length||n.push({offset:0,color:"transparent"});let r=n[n.length-1];r.offset!==1&&(typeof r.offset>"u"?r.offset=1:n.push({offset:1,color:r.color}));let i=0,s=1;for(let o=0;o<n.length;o++)if(typeof n[o].offset>"u"){for(s<o&&(s=o);typeof n[s].offset>"u";)s++;n[o].offset=(n[s].offset-n[i].offset)/(s-i)*(o-i)+n[i].offset}else i=o;return n}async function xn({id:e,width:t,height:n,left:r,top:i},{image:s,size:o,position:a,repeat:u}){u=u||"repeat";let l=u==="repeat-x"||u==="repeat",f=u==="repeat-y"||u==="repeat",d=yn(o,{x:t,y:n,defaultX:t,defaultY:n}),g=yn(a,{x:t,y:n,defaultX:0,defaultY:0});if(s.startsWith("linear-gradient(")){let h=bn.parse(s)[0],[p,v]=d,_,b,y,S;if(h.orientation.type==="directional")[_,b,y,S]=Cl(h.orientation.value);else if(h.orientation.type==="angular"){let C=+h.orientation.value/180*Math.PI-Math.PI/2,W=Math.cos(C),z=Math.sin(C);_=0,b=0,y=W,S=z,y<0&&(_-=y,y=0),S<0&&(b-=S,S=0)}let E=Ko(t,h.colorStops),T=`satori_bi${e}`,D=`satori_pattern_${e}`,F=L("pattern",{id:D,x:g[0]/t,y:g[1]/n,width:l?p/t:"1",height:f?v/n:"1",patternUnits:"objectBoundingBox"},L("linearGradient",{id:T,x1:_,y1:b,x2:y,y2:S},E.map(C=>L("stop",{offset:C.offset*100+"%","stop-color":C.color})).join(""))+L("rect",{x:0,y:0,width:p,height:v,fill:`url(#${T})`}));return[D,F]}if(s.startsWith("radial-gradient(")){let h=bn.parse(s)[0],p=h.orientation[0],[v,_]=d,b="circle",y=v/2,S=_/2;if(p.type==="shape"){if(b=p.value,p.at)if(p.at.type==="position")y=p.at.value.x.value,S=p.at.value.y.value;else throw new Error("orientation.at.type not implemented: "+p.at.type)}else throw new Error("orientation.type not implemented: "+p.type);let E=Ko(t,h.colorStops),T=`satori_radial_${e}`,D=`satori_pattern_${e}`,F=`satori_mask_${e}`,C={},W=Math.max(Math.abs(v-y),Math.abs(y)),z=Math.max(Math.abs(_-S),Math.abs(S));if(b==="circle")C.r=Math.sqrt(W*W+z*z);else if(b==="ellipse"){let M=z!==0?W/z:1;C.ry=Math.sqrt(W*W+z*z*M*M)/M,C.rx=C.ry*M}let X=L("pattern",{id:D,x:g[0]/t,y:g[1]/n,width:l?v/t:"1",height:f?_/n:"1",patternUnits:"objectBoundingBox"},L("radialGradient",{id:T},E.map(M=>L("stop",{offset:M.offset,"stop-color":M.color})).join(""))+L("mask",{id:F},L("rect",{x:0,y:0,width:v,height:_,fill:"#fff"}))+L(b,{cx:y,cy:S,width:v,height:_,...C,fill:`url(#${T})`,mask:`url(#${F})`}));return[D,X]}if(s.startsWith("url(")){let h=yn(o,{x:t,y:n,defaultX:0,defaultY:0}),[p,v,_]=await _r(s.slice(4,-1)),b=h[0]||v,y=h[1]||_;return[`satori_bi${e}`,L("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:g[0]+r,y:g[1]+i,width:l?b:"100%",height:f?y:"100%"},L("image",{x:0,y:0,width:b,height:y,preserveAspectRatio:"none",href:p}))]}throw new Error(`Invalid background image: "${s}"`)}c();function Fl([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 Sr(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 kr(e){e[0]=e[1]=Math.min(e[0],e[1])}function Tr(e,t,n,r,i){if(typeof e=="string"){let s=e.split(" ").map(a=>a.trim()),o=!s[1]&&!s[0].endsWith("%");return s[1]=s[1]||s[0],[o,[Math.min(be(s[0],r,t,i,!0),t),Math.min(be(s[1],r,n,i,!0),n)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,n)]]:[!0,void 0]}var Or=e=>e&&e[0]!==0&&e[1]!==0;function st({left:e,top:t,width:n,height:r},i,s){let{borderTopLeftRadius:o,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:l,fontSize:f}=i,d,g,h,p;if([d,o]=Tr(o,n,r,f,i),[g,a]=Tr(a,n,r,f,i),[h,u]=Tr(u,n,r,f,i),[p,l]=Tr(l,n,r,f,i),!s&&!Or(o)&&!Or(a)&&!Or(u)&&!Or(l))return"";o||=[0,0],a||=[0,0],u||=[0,0],l||=[0,0],[o[0],a[0]]=Sr(o[0],a[0],n),[u[0],l[0]]=Sr(u[0],l[0],n),[o[1],u[1]]=Sr(o[1],u[1],r),[a[1],l[1]]=Sr(a[1],l[1],r),d&&kr(o),g&&kr(a),h&&kr(u),p&&kr(l);let v=[];v[0]=[a,a],v[1]=[l,[-l[0],l[1]]],v[2]=[u,[-u[0],-u[1]]],v[3]=[o,[o[0],-o[1]]];let _=`h${n-o[0]-a[0]} a${v[0][0]} 0 0 1 ${v[0][1]}`,b=`v${r-a[1]-l[1]} a${v[1][0]} 0 0 1 ${v[1][1]}`,y=`h${l[0]+u[0]-n} a${v[2][0]} 0 0 1 ${v[2][1]}`,S=`v${u[1]+o[1]-r} a${v[3][0]} 0 0 1 ${v[3][1]}`;if(s){let T=function(H){let M=Fl([o,a,l,u][H]);return H===0?[[e+o[0]-M,t+o[1]-M],[e+o[0],t]]:H===1?[[e+n-a[0]+M,t+a[1]-M],[e+n,t+a[1]]]:H===2?[[e+n-l[0]+M,t+r-l[1]+M],[e+n-l[0],t+r]]:[[e+u[0]-M,t+r-u[1]+M],[e,t+r-u[1]]]},E=s.indexOf(!1);if(!s.includes(!0))throw new Error("Invalid `partialSides`.");if(E===-1)E=0;else for(;!s[E];)E=(E+1)%4;let D="",F=T(E),C=`M${F[0]} A${v[(E+3)%4][0]} 0 0 1 ${F[1]}`,W=0;for(;W<4&&s[(E+W)%4];W++)D+=C+" ",C=[_,b,y,S][(E+W)%4];let z=(E+W)%4;D+=C.split(" ")[0];let X=T(z);return D+=` A${v[(z+3)%4][0]} 0 0 1 ${X[0]}`,D}return`M${e+o[0]},${t} ${_} ${b} ${y} ${S}`}c();c();c();function Jo(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function Zo({id:e,currentClipPathId:t,borderPath:n,borderType:r,left:i,top:s,width:o,height:a},u){if(!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth))return null;let f=`satori_bc-${e}`;return[L("clipPath",{id:f,"clip-path":t?`url(#${t})`:void 0},L(r,{x:i,y:s,width:o,height:a,d:n||void 0})),f]}function xt({left:e,top:t,width:n,height:r,props:i,asContentMask:s,maskBorderOnly:o},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!s&&!u.some(h=>a[h+"Width"]))return"";let l="",f=0;for(;f>0&&Jo(u[f],u[(f+3)%4],a);)f=(f+3)%4;let d=[!1,!1,!1,!1],g=[];for(let h=0;h<4;h++){let p=(f+h)%4,v=(f+h+1)%4,_=u[p],b=u[v];if(d[p]=!0,g=[a[_+"Width"],a[_+"Style"],a[_+"Color"],_],!Jo(_,b,a)){let y=(g[0]||0)+(s&&!o&&a[_.replace("border","padding")]||0);y&&(l+=L("path",{width:n,height:r,...i,fill:"none",stroke:s?"#000":g[2],"stroke-width":y*2,"stroke-dasharray":!s&&g[1]==="dashed"?y*2+" "+y:void 0,d:st({left:e,top:t,width:n,height:r},a,d)})),d=[!1,!1,!1,!1]}}if(d.some(Boolean)){let h=(g[0]||0)+(s&&!o&&a[g[3].replace("border","padding")]||0);h&&(l+=L("path",{width:n,height:r,...i,fill:"none",stroke:s?"#000":g[2],"stroke-width":h*2,"stroke-dasharray":!s&&g[1]==="dashed"?h*2+" "+h:void 0,d:st({left:e,top:t,width:n,height:r},a,d)}))}return l}function wn({id:e,left:t,top:n,width:r,height:i,matrix:s,borderOnly:o},a){let u=(a.borderLeftWidth||0)+(o?0:a.paddingLeft||0),l=(a.borderTopWidth||0)+(o?0:a.paddingTop||0),f=(a.borderRightWidth||0)+(o?0:a.paddingRight||0),d=(a.borderBottomWidth||0)+(o?0:a.paddingBottom||0),g={x:t+u,y:n+l,width:r-u-f,height:i-l-d};return L("mask",{id:e},L("rect",{...g,fill:"#fff",mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+xt({left:t,top:n,width:r,height:i,props:{transform:s||void 0},asContentMask:!0,maskBorderOnly:o},a))}function _n({left:e,top:t,width:n,height:r,path:i,matrix:s,id:o,currentClipPath:a,src:u},l){if(l.overflow!=="hidden"&&!u)return"";let f=wn({id:`satori_om-${o}`,left:e,top:t,width:n,height:r,matrix:s,borderOnly:!u},l);return L("clipPath",{id:`satori_cp-${o}`,"clip-path":a},L(i?"path":"rect",{x:e,y:t,width:n,height:r,d:i||void 0}))+f}async function wt({id:e,left:t,top:n,width:r,height:i,isInheritingTransform:s,src:o,debug:a},u){if(u.display==="none")return"";let l=!!o,f="rect",d="",g="",h=[],p=1,v="";u.backgroundColor&&h.push(u.backgroundColor),u.opacity!==void 0&&(p=+u.opacity),u.transform&&(d=yt({left:t,top:n,width:r,height:i},u.transform,s,u.transformOrigin));let _="";if(u.backgroundImage){let X=[];for(let H=0;H<u.backgroundImage.length;H++){let M=u.backgroundImage[H],re=await xn({id:e+"_"+H,width:r,height:i,left:t,top:n},M);re&&X.unshift(re)}for(let H of X)h.push(`url(#${H[0]})`),g+=H[1],H[2]&&(_+=H[2])}let b=st({left:t,top:n,width:r,height:i},u);b&&(f="path");let y=u._inheritedClipPathId,S=u._inheritedMaskId;a&&(v=L("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:d||void 0,"clip-path":y?`url(#${y})`:void 0}));let{backgroundClip:E,filter:T}=u,D=E==="text"?`url(#satori_bct-${e})`:y?`url(#${y})`:void 0,F=_n({left:t,top:n,width:r,height:i,path:b,id:e,matrix:d,currentClipPath:D,src:o},u),C=h.map(X=>L(f,{x:t,y:n,width:r,height:i,fill:X,d:b||void 0,transform:d||void 0,"clip-path":D,style:T?`filter:${T}`:void 0,mask:S?`url(#${S})`:void 0})).join(""),W=Zo({id:e,left:t,top:n,width:r,height:i,currentClipPathId:y,borderPath:b,borderType:f},u);if(l){let X=(u.borderLeftWidth||0)+(u.paddingLeft||0),H=(u.borderTopWidth||0)+(u.paddingTop||0),M=(u.borderRightWidth||0)+(u.paddingRight||0),re=(u.borderBottomWidth||0)+(u.paddingBottom||0),G=u.objectFit==="contain"?"xMidYMid":u.objectFit==="cover"?"xMidYMid slice":"none";C+=L("image",{x:t+X,y:n+H,width:r-X-M,height:i-H-re,href:o,preserveAspectRatio:G,transform:d||void 0,style:T?`filter:${T}`:void 0,"clip-path":`url(#satori_cp-${e})`,mask:`url(#satori_om-${e})`})}if(W){g+=W[0];let X=W[1];C+=xt({left:t,top:n,width:r,height:i,props:{transform:d||void 0,"clip-path":`url(#${X})`}},u)}let z=Xo({width:r,height:i,id:e,opacity:p,shape:L(f,{x:t,y:n,width:r,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:b||void 0,transform:d||void 0,"clip-path":D,mask:S?`url(#${S})`:void 0})},u);return(g?L("defs",{},g):"")+(z?z[0]:"")+F+(p!==1?`<g opacity="${p}">`:"")+(_||C)+(p!==1?"</g>":"")+(z?z[1]:"")+v}c();import Nl from"emoji-regex";var Ml=new RegExp(Nl(),""),Sn={emoji:Ml,symbol:/\p{Symbol}/u,math:/\p{Math}/u},_t={"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},Er=Object.keys({..._t,...Sn});function es(e){return Er.includes(e)}function ts(e,t){if(t&&_t[t]&&_t[t].test(e))return t;for(let n of Object.keys(Sn))if(Sn[n].test(e))return n;for(let n of Object.keys(_t))if(_t[n].test(e))return n;return"unknown"}function rs(e){if(e)return Er.find(t=>t.toLowerCase()===e.toLowerCase()||t.toLowerCase().startsWith(e.toLowerCase()))}async function*St(e,t){let n=await Re(),{id:r,inheritedStyle:i,parent:s,font:o,debug:a,locale:u,embedFont:l=!0,graphemeImages:f,canLoadAdditionalAssets:d,getTwStyles:g}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!on(e)||typeof e.type=="function"){let N;if(!on(e))N=gn(String(e),t),yield(await N.next()).value;else{if(Io(e.type))throw new Error("Class component is not supported.");N=St(e.type(e.props),t),yield(await N.next()).value}await N.next();let Oe=yield;return(await N.next(Oe)).value}let{type:h,props:p}=e;if(p&&Lo(p))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:v,children:_,tw:b,lang:y=u}=p||{},S=rs(y);if(b){let N=g(b,v);v=Object.assign(N,v)}let E=n.Node.create();s.insertChild(E,s.getChildCount());let[T,D]=await pn(E,h,i,v,p),F=T.transform===i.transform;if(F||(T.transform.__parent=i.transform),T.overflow==="hidden"&&(D._inheritedClipPathId=`satori_cp-${r}`,D._inheritedMaskId=`satori_om-${r}`),T.backgroundClip==="text"){let N={value:""};D._inheritedBackgroundClipTextPath=N,T._inheritedBackgroundClipTextPath=N}let C=Ro(_),W=[],z=0,X=[];for(let N of C){let Oe=St(N,{id:r+"-"+z++,parentStyle:T,inheritedStyle:D,isInheritingTransform:!0,parent:E,font:o,embedFont:l,debug:a,graphemeImages:f,canLoadAdditionalAssets:d,locale:S,getTwStyles:g});d?X.push(...(await Oe.next()).value||[]):await Oe.next(),W.push(Oe)}yield X;for(let N of W)await N.next();let[H,M]=yield,{left:re,top:G,width:oe,height:ge}=E.getComputedLayout();re+=H,G+=M;let I="",q="",Y="";if(h==="img"){let N=T.__src;q=await wt({id:r,left:re,top:G,width:oe,height:ge,src:N,isInheritingTransform:F,debug:a},T)}else if(h==="svg"){let N=T.color,Oe=Fo(e,N);q=await wt({id:r,left:re,top:G,width:oe,height:ge,src:Oe,isInheritingTransform:F,debug:a},T)}else{let N=v==null?void 0:v.display;if(h==="div"&&_&&typeof _!="string"&&N!=="flex"&&N!=="none")throw new Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');q=await wt({id:r,left:re,top:G,width:oe,height:ge,isInheritingTransform:F,debug:a},T)}for(let N of W)I+=(await N.next([re,G])).value;return T._inheritedBackgroundClipTextPath&&(Y+=L("clipPath",{id:`satori_bct-${r}`,"clip-path":T._inheritedClipPathId?`url(#${T._inheritedClipPathId})`:void 0},T._inheritedBackgroundClipTextPath.value)),Y+q+I}c();import kn from"@shuding/opentype.js";var ns="unknown";function $l(e,t,[n,r],[i,s]){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!==s){if(r===t)return-1;if(s===t)return 1}return-1}var kt=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:n,style:r}){if(!this.fonts.has(t))return null;n==="normal"&&(n=400),n==="bold"&&(n=700),typeof n=="string"&&(n=Number.parseInt(n,10));let i=[...this.fonts.get(t)],s=i[0];for(let o=1;o<i.length;o++){let[,a,u]=s,[,l,f]=i[o];$l(n,r,[a,u],[l,f])>0&&(s=i[o])}return s[0]}addFonts(t){for(let n of t){let{name:r,data:i,lang:s}=n;if(s&&!es(s))throw new Error(`Invalid value for props \`lang\`: "${s}". The value must be one of the following: ${Er.join(", ")}.`);let o=s??ns,a=kn.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0}),u=a.charToGlyphIndex;a.charToGlyphIndex=f=>{let d=u.call(a,f);return d===0&&a._trackBrokenChars&&a._trackBrokenChars.push(f),d},this.defaultFont||(this.defaultFont=a);let l=`${r.toLowerCase()}_${o}`;this.fonts.has(l)||this.fonts.set(l,[]),this.fonts.get(l).push([a,n.weight,n.style])}}getEngine(t=16,n=1.2,{fontFamily:r,fontWeight:i=400,fontStyle:s="normal"},o){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(y=>y.toLowerCase());let a=[];r.forEach(y=>{let S=this.get({name:y,weight:i,style:s});if(S){a.push(S);return}let E=this.get({name:y+"_unknown",weight:i,style:s});if(E){a.push(E);return}});let u=Array.from(this.fonts.keys()),l=[],f=[],d=[];for(let y of u)if(!r.includes(y))if(o){let S=Wl(y);S?S===o?l.push(this.get({name:y,weight:i,style:s})):f.push(this.get({name:y,weight:i,style:s})):d.push(this.get({name:y,weight:i,style:s}))}else d.push(this.get({name:y,weight:i,style:s}));let g=new Map,h=(y,S=!0)=>{let E=y.charCodeAt(0);if(g.has(E))return g.get(E);let T=[...a,...d,...l,...S?f:[]],D=T.find((F,C)=>!!F.charToGlyphIndex(y)||S&&C===T.length-1);return D&&g.set(E,D),D},p=(y,S=!1)=>{var T,D;return((S?(D=(T=y.tables)==null?void 0:T.os2)==null?void 0:D.sTypoAscender:0)||y.ascender)/y.unitsPerEm*t},v=(y,S=!1)=>{var T,D;return((S?(D=(T=y.tables)==null?void 0:T.os2)==null?void 0:D.sTypoDescender:0)||y.descender)/y.unitsPerEm*t},_=y=>h(y,!1),b={has:y=>{if(y===`
|
|
7
|
+
`)return!0;let S=_(y);return S?(S._trackBrokenChars=[],S.stringToGlyphs(y),S._trackBrokenChars.length?(S._trackBrokenChars=void 0,!1):!0):!1},baseline:(y,S=typeof y>"u"?a[0]:h(y))=>{let E=p(S,!0),T=v(S,!0),D=b.height(y,S),{yMax:F,yMin:C}=S.tables.head,W=E-T,z=(F/(F-C)-1)*W;return D*((1.2/n+1)/2)+z},height:(y,S=typeof y>"u"?a[0]:h(y))=>(p(S)-v(S))*(n/1.2),measure:(y,S)=>this.measure(h,y,S),getSVG:(y,S)=>this.getSVG(h,y,S)};return b}patchFontFallbackResolver(t,n){let r=[];t._trackBrokenChars=r;let i=t.stringToGlyphs;return t.stringToGlyphs=(s,...o)=>{let a=i.call(t,s,...o);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 d=f.charToGlyph(l),g=t.unitsPerEm/f.unitsPerEm,h=new kn.Path;h.unitsPerEm=t.unitsPerEm,h.commands=d.path.commands.map(v=>{let _={...v};for(let b in _)typeof _[b]=="number"&&(_[b]*=g);return _});let p=new kn.Glyph({...d,advanceWidth:d.advanceWidth*g,xMin:d.xMin*g,xMax:d.xMax*g,yMin:d.yMin*g,yMax:d.yMax*g,path:h});a[u]=p}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,n,{fontSize:r,letterSpacing:i=0}){let s=t(n),o=this.patchFontFallbackResolver(s,t);try{return s.getAdvanceWidth(n,r,{letterSpacing:i/r})}finally{o()}}getSVG(t,n,{fontSize:r,top:i,left:s,letterSpacing:o=0}){let a=t(n),u=this.patchFontFallbackResolver(a,t);try{return r===0?"":a.getPath(n.replace(/\n/g,""),s,i,r,{letterSpacing:o/r}).toPathData(1)}finally{u()}}};function Wl(e){let t=e.split("_"),n=t[t.length-1];return n===ns?void 0:n}c();function Tn({width:e,height:t,content:n}){return L("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},n)}c();c();var Nu=Xu(pu());c();c();c();c();var O0=["ios","android","windows","macos","web"];function mu(e){return O0.includes(e)}var E0=["portrait","landscape"];function gu(e){return E0.includes(e)}var hu;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(hu||(hu={}));var V;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(V||(V={}));function Ki(e){return typeof e=="string"}function Ji(e){return typeof e=="object"}var Zi;function m(e){return{kind:"complete",style:e}}function ie(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[s="",o=""]=e.split("/",2),a=ie(s),u=ie(o);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,V.none];switch(i==null?void 0:i[1]){case"rem":return[r,V.rem];case"px":return[r,V.px];case"em":return[r,V.em];case"%":return[r,V.percent];case"vw":return[r,V.vw];case"vh":return[r,V.vh];default:return null}}function Fe(e,t,n={}){let r=Ae(t,n);return r===null?null:m({[e]:r})}function jr(e,t,n){let r=Ae(t);return r!==null&&(n[e]=r),n}function bu(e,t){let n=Ae(t);return n===null?null:{[e]:n}}function Ae(e,t={}){if(e===void 0)return null;let n=ie(String(e),t);return n?He(...n,t):null}function He(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case V.rem:return e*16*(r?-1:1);case V.px:return e*(r?-1:1);case V.percent:return`${r?"-":""}${e}%`;case V.none:return e*(r?-1:1);case V.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(me("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case V.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(me("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function eo(e){let t=ie(e);if(!t)return null;let[n,r]=t;switch(r){case V.rem:return n*16;case V.px:return n;default:return null}}var P0={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function to(e){return P0[e??""]||"All"}function ro(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=to(i),"")),t]}function tt(e,t={}){if(e.includes("/")){let n=vu(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),vu(e,t)}function ke(e,t,n={}){let r=tt(t,n);return r===null?null:m({[e]:r})}function vu(e,t={}){if(e==="px")return 1;let n=ie(e,t);if(!n)return null;let[r,i]=n;return t.fractions&&(i=V.percent,r*=100),i===V.none&&(r=r/4,i=V.rem),He(r,i,t)}function A0(...e){console.warn(...e)}function I0(...e){}var me=typeof process>"u"||((Zi=process==null?void 0:process.env)===null||Zi===void 0?void 0:Zi.JEST_WORKER_ID)===void 0?A0:I0;var L0=[["aspect-square",m({aspectRatio:1})],["aspect-video",m({aspectRatio:16/9})],["items-center",m({alignItems:"center"})],["items-start",m({alignItems:"flex-start"})],["items-end",m({alignItems:"flex-end"})],["items-baseline",m({alignItems:"baseline"})],["items-stretch",m({alignItems:"stretch"})],["justify-start",m({justifyContent:"flex-start"})],["justify-end",m({justifyContent:"flex-end"})],["justify-center",m({justifyContent:"center"})],["justify-between",m({justifyContent:"space-between"})],["justify-around",m({justifyContent:"space-around"})],["justify-evenly",m({justifyContent:"space-evenly"})],["content-start",m({alignContent:"flex-start"})],["content-end",m({alignContent:"flex-end"})],["content-between",m({alignContent:"space-between"})],["content-around",m({alignContent:"space-around"})],["content-stretch",m({alignContent:"stretch"})],["content-center",m({alignContent:"center"})],["self-auto",m({alignSelf:"auto"})],["self-start",m({alignSelf:"flex-start"})],["self-end",m({alignSelf:"flex-end"})],["self-center",m({alignSelf:"center"})],["self-stretch",m({alignSelf:"stretch"})],["self-baseline",m({alignSelf:"baseline"})],["direction-inherit",m({direction:"inherit"})],["direction-ltr",m({direction:"ltr"})],["direction-rtl",m({direction:"rtl"})],["hidden",m({display:"none"})],["flex",m({display:"flex"})],["flex-row",m({flexDirection:"row"})],["flex-row-reverse",m({flexDirection:"row-reverse"})],["flex-col",m({flexDirection:"column"})],["flex-col-reverse",m({flexDirection:"column-reverse"})],["flex-wrap",m({flexWrap:"wrap"})],["flex-wrap-reverse",m({flexWrap:"wrap-reverse"})],["flex-nowrap",m({flexWrap:"nowrap"})],["flex-auto",m({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",m({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",m({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",m({overflow:"hidden"})],["overflow-visible",m({overflow:"visible"})],["overflow-scroll",m({overflow:"scroll"})],["absolute",m({position:"absolute"})],["relative",m({position:"relative"})],["italic",m({fontStyle:"italic"})],["not-italic",m({fontStyle:"normal"})],["oldstyle-nums",tr("oldstyle-nums")],["small-caps",tr("small-caps")],["lining-nums",tr("lining-nums")],["tabular-nums",tr("tabular-nums")],["proportional-nums",tr("proportional-nums")],["font-thin",m({fontWeight:"100"})],["font-100",m({fontWeight:"100"})],["font-extralight",m({fontWeight:"200"})],["font-200",m({fontWeight:"200"})],["font-light",m({fontWeight:"300"})],["font-300",m({fontWeight:"300"})],["font-normal",m({fontWeight:"normal"})],["font-400",m({fontWeight:"400"})],["font-medium",m({fontWeight:"500"})],["font-500",m({fontWeight:"500"})],["font-semibold",m({fontWeight:"600"})],["font-600",m({fontWeight:"600"})],["font-bold",m({fontWeight:"bold"})],["font-700",m({fontWeight:"700"})],["font-extrabold",m({fontWeight:"800"})],["font-800",m({fontWeight:"800"})],["font-black",m({fontWeight:"900"})],["font-900",m({fontWeight:"900"})],["include-font-padding",m({includeFontPadding:!0})],["remove-font-padding",m({includeFontPadding:!1})],["max-w-none",m({maxWidth:"99999%"})],["text-left",m({textAlign:"left"})],["text-center",m({textAlign:"center"})],["text-right",m({textAlign:"right"})],["text-justify",m({textAlign:"justify"})],["text-auto",m({textAlign:"auto"})],["underline",m({textDecorationLine:"underline"})],["line-through",m({textDecorationLine:"line-through"})],["no-underline",m({textDecorationLine:"none"})],["uppercase",m({textTransform:"uppercase"})],["lowercase",m({textTransform:"lowercase"})],["capitalize",m({textTransform:"capitalize"})],["normal-case",m({textTransform:"none"})],["w-auto",m({width:"auto"})],["h-auto",m({height:"auto"})],["shadow-sm",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",m({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],no=L0;function tr(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var rr=class{constructor(t){this.ir=new Map(no),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...no,...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)}};c();c();function io(e,t,n={}){let r=t==null?void 0:t[e];if(!r)return ke("fontSize",e,n);if(typeof r=="string")return Fe("fontSize",r);let i={},[s,o]=r,a=bu("fontSize",s);if(a&&(i=a),typeof o=="string")return m(jr("lineHeight",yu(o,i),i));let{lineHeight:u,letterSpacing:l}=o;return u&&jr("lineHeight",yu(u,i),i),l&&jr("letterSpacing",l,i),m(i)}function yu(e,t){let n=ie(e);if(n){let[r,i]=n;if((i===V.none||i===V.em)&&typeof t.fontSize=="number")return t.fontSize*r}return e}c();function oo(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=ie(r);if(!i)return null;let[s,o]=i;if(o===V.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*s}};let a=He(s,o);return a!==null?m({lineHeight:a}):null}c();function so(e,t,n,r,i){let s="";if(r[0]==="[")s=r.slice(1,-1);else{let l=i==null?void 0:i[r];if(l)s=l;else{let f=tt(r);return f&&typeof f=="number"?xu(f,V.px,t,e):null}}if(s==="auto")return wu(t,e,"auto");let o=ie(s);if(!o)return null;let[a,u]=o;return n&&(a=-a),xu(a,u,t,e)}function xu(e,t,n,r){let i=He(e,t);return i===null?null:wu(n,r,i)}function wu(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}}c();function ao(e){if(!e)return{};let t=Object.entries(e).reduce((i,[s,o])=>{let a=[0,1/0,0],u=typeof o=="string"?{min:o}:o,l=u.min?eo(u.min):0;l===null?me(`invalid screen config value: ${s}->min: ${u.min}`):a[0]=l;let f=u.max?eo(u.max):1/0;return f===null?me(`invalid screen config value: ${s}->max: ${u.max}`):a[1]=f,i[s]=a,i},{}),n=Object.values(t);n.sort((i,s)=>{let[o,a]=i,[u,l]=s;return a===1/0||l===1/0?o-u:a-l});let r=0;return n.forEach(i=>i[2]=r++),t}c();function uo(e,t){let n=t==null?void 0:t[e];if(!n)return null;if(typeof n=="string")return m({fontFamily:n});let r=n[0];return r?m({fontFamily:r}):null}c();function rt(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=ku(t,n),!i)return null;if(r){let s=Number(r);if(!Number.isNaN(s))return i=_u(i,s/100),m({[Vr[e].color]:i})}return{kind:"dependent",complete(s){let o=Vr[e].opacity,a=s[o];typeof a=="number"&&(i=_u(i,a)),s[Vr[e].color]=i}}}function nr(e,t){let n=parseInt(t,10);if(Number.isNaN(n))return null;let r=n/100,i={[Vr[e].opacity]:r};return{kind:"complete",style:i}}function _u(e,t){return e.startsWith("#")?e=R0(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function Su(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var Vr={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 R0(e){let t=e;e=e.replace(C0,(o,a,u,l)=>a+a+u+u+l+l);let n=D0.exec(e);if(!n)return me(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let r=parseInt(n[1],16),i=parseInt(n[2],16),s=parseInt(n[3],16);return`rgba(${r}, ${i}, ${s}, 1)`}function ku(e,t){let n=t[e];if(Ki(n))return n;if(Ji(n)&&Ki(n.DEFAULT))return n.DEFAULT;let[r="",...i]=e.split("-");for(;r!==e;){let s=t[r];if(Ji(s))return ku(i.join("-"),s);if(i.length===0)return"";r=`${r}-${i.shift()}`}return""}var C0=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,D0=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;c();function Ou(e,t){let[n,r]=ro(e);if(n.match(/^(-?(\d)+)?$/))return F0(n,r,t==null?void 0:t.borderWidth);if(n=n.replace(/^-/,""),["dashed","solid","dotted"].includes(n))return m({borderStyle:n});let s="border";switch(r){case"Bottom":s="borderBottom";break;case"Top":s="borderTop";break;case"Left":s="borderLeft";break;case"Right":s="borderRight";break}let o=rt(s,n,t==null?void 0:t.borderColor);if(o)return o;let a=`border${r==="All"?"":r}Width`;n=n.replace(/^-/,"");let u=n.slice(1,-1),l=ke(a,u);return typeof(l==null?void 0:l.style[a])!="number"?null:l}function F0(e,t,n){if(!n)return null;e=e.replace(/^-/,"");let i=n[e===""?"DEFAULT":e];if(i===void 0)return null;let s=`border${t==="All"?"":t}Width`;return Fe(s,i)}function Eu(e,t){if(!t)return null;let[n,r]=ro(e);n=n.replace(/^-/,""),n===""&&(n="DEFAULT");let i=`border${r==="All"?"":r}Radius`,s=t[n];if(s)return Tu(Fe(i,s));let o=ke(i,n);return typeof(o==null?void 0:o.style[i])!="number"?null:Tu(o)}function Tu(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}c();function ct(e,t,n,r){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(a,u)=>(i=u==="x"?"x":"y","")));let s=r==null?void 0:r[t];if(s){let a=Ae(s,{isNegative:n});if(a!==null)return Pu(e,i,a)}let o=tt(t,{isNegative:n});return o!==null?Pu(e,i,o):null}function Pu(e,t,n){if(e!=="inset")return m({[e]:n});switch(t){case null:return m({top:n,left:n,right:n,bottom:n});case"y":return m({top:n,bottom:n});case"x":return m({left:n,right:n})}}c();function ir(e,t,n){var r;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,s=Number((r=n==null?void 0:n[i])!==null&&r!==void 0?r:t);return Number.isNaN(s)?null:m({[`flex${e}`]:s})}function Au(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 m({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return m({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let s=Ae((n=i[2])!==null&&n!==void 0?n:"");return s?m({flexGrow:Number(i[1]),flexBasis:s}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let s=Ae((r=i[3])!==null&&r!==void 0?r:"");return s?m({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:s}):null}return null}c();function lo(e,t,n={},r){let i=r==null?void 0:r[t];return i!==void 0?Fe(e,i,n):ke(e,t,n)}function or(e,t,n={},r){let i=Ae(r==null?void 0:r[t],n);return i?m({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),ke(e,t,n))}c();function Iu(e,t,n){let r=n==null?void 0:n[e];if(r){let i=ie(r,{isNegative:t});if(!i)return null;let[s,o]=i;if(o===V.em)return N0(s);if(o===V.percent)return me("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=He(s,o,{isNegative:t});return a!==null?m({letterSpacing:a}):null}return ke("letterSpacing",e,{isNegative:t})}function N0(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}}}c();function Lu(e,t){let n=t==null?void 0:t[e];if(n){let i=ie(String(n));if(i)return m({opacity:i[0]})}let r=ie(e);return r?m({opacity:r[0]/100}):null}c();function Ru(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function Cu(e){if(e.includes("/")){let[n="",r=""]=e.split("/",2),i=fo(n),s=fo(r);return i===null||s===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:s}}}}let t=fo(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function fo(e){let t=tt(e);return typeof t=="number"?t:null}var dt=class{constructor(t,n={},r,i,s){var o,a,u,l,f,d;this.config=n,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let g=t.trim().split(":"),h=[];g.length===1?this.string=t:(this.string=(o=g.pop())!==null&&o!==void 0?o:"",h=g),this.char=this.string[0];let p=ao((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let v of h)if(p[v]){let _=(u=p[v])===null||u===void 0?void 0:u[2];_!==void 0&&(this.order=((l=this.order)!==null&&l!==void 0?l:0)+_);let b=(f=i.windowDimensions)===null||f===void 0?void 0:f.width;if(b){let[y,S]=(d=p[v])!==null&&d!==void 0?d:[0,0];(b<=y||b>S)&&(this.isNull=!0)}else this.isNull=!0}else mu(v)?this.isNull=v!==s:gu(v)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==v?this.isNull=!0:this.incrementOrder():this.isNull=!0:v==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:v==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(v)||(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,s;let o=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=to(u[1]),d=so(l,f,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[l]);if(d)return d}}}if(this.consumePeeked("h-")&&(a=lo("height",this.rest,this.context,o==null?void 0:o.height),a)||this.consumePeeked("w-")&&(a=lo("width",this.rest,this.context,o==null?void 0:o.width),a)||this.consumePeeked("min-w-")&&(a=or("minWidth",this.rest,this.context,o==null?void 0:o.minWidth),a)||this.consumePeeked("min-h-")&&(a=or("minHeight",this.rest,this.context,o==null?void 0:o.minHeight),a)||this.consumePeeked("max-w-")&&(a=or("maxWidth",this.rest,this.context,o==null?void 0:o.maxWidth),a)||this.consumePeeked("max-h-")&&(a=or("maxHeight",this.rest,this.context,o==null?void 0:o.maxHeight),a)||this.consumePeeked("leading-")&&(a=oo(this.rest,o==null?void 0:o.lineHeight),a)||this.consumePeeked("text-")&&(a=io(this.rest,o==null?void 0:o.fontSize,this.context),a||(a=rt("text",this.rest,o==null?void 0:o.textColor),a)||this.consumePeeked("opacity-")&&(a=nr("text",this.rest),a))||this.consumePeeked("font-")&&(a=uo(this.rest,o==null?void 0:o.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&me("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=Fe("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=rt("tint",this.rest,o==null?void 0:o.colors),a)||this.consumePeeked("bg-")&&(a=rt("bg",this.rest,o==null?void 0:o.backgroundColor),a||this.consumePeeked("opacity-")&&(a=nr("bg",this.rest),a))||this.consumePeeked("border")&&(a=Ou(this.rest,o),a||this.consumePeeked("-opacity-")&&(a=nr("border",this.rest),a))||this.consumePeeked("rounded")&&(a=Eu(this.rest,o==null?void 0:o.borderRadius),a)||this.consumePeeked("bottom-")&&(a=ct("bottom",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("top-")&&(a=ct("top",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("left-")&&(a=ct("left",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("right-")&&(a=ct("right",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("inset-")&&(a=ct("inset",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=ir("Grow",this.rest,o==null?void 0:o.flexGrow):this.consumePeeked("shrink")?a=ir("Shrink",this.rest,o==null?void 0:o.flexShrink):a=Au(this.rest,o==null?void 0:o.flex),a)||this.consumePeeked("grow")&&(a=ir("Grow",this.rest,o==null?void 0:o.flexGrow),a)||this.consumePeeked("shrink")&&(a=ir("Shrink",this.rest,o==null?void 0:o.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=nr("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=Ru(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=Cu(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=ke("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=rt("shadow",this.rest,o==null?void 0:o.colors),a))return a;if(this.consumePeeked("elevation-")){let u=parseInt(this.rest,10);if(!Number.isNaN(u))return m({elevation:u})}if(this.consumePeeked("opacity-")&&(a=Lu(this.rest,o==null?void 0:o.opacity),a)||this.consumePeeked("tracking-")&&(a=Iu(this.rest,this.isNegative,o==null?void 0:o.letterSpacing),a))return a;if(this.consumePeeked("z-")){let u=Number((s=(i=o==null?void 0:o.zIndex)===null||i===void 0?void 0:i[this.rest])!==null&&s!==void 0?s:this.rest);if(!Number.isNaN(u))return m({zIndex:u})}return me(`\`${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,[,s="",o="",a=""]=r,u=o==="w"?i.width:i.height,l=ie(a,this.context);if(l===null)return this.isNull=!0,!0;let[f,d]=l;return d!=="px"&&(this.isNull=!0),(s==="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}};c();function Du(e){let t=[],n=null;return e.forEach(r=>{if(typeof r=="string")t=[...t,...co(r)];else if(Array.isArray(r))t=[...t,...r.flatMap(co)];else if(typeof r=="object"&&r!==null)for(let[i,s]of Object.entries(r))typeof s=="boolean"?t=[...t,...s?co(i):[]]:n?n[i]=s:n={[i]:s}}),[t.filter(Boolean).filter(M0),n]}function co(e){return e.trim().split(/\s+/)}function M0(e,t,n){return n.indexOf(e)===t}c();function Fu(e){var t;return(t=e==null?void 0:e.reduce((n,r)=>({...n,...$0(r.handler)}),{}))!==null&&t!==void 0?t:{}}function $0(e){let t={};return e({addUtilities:n=>{t=n},...W0}),t}function Ie(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var W0={addComponents:Ie,addBase:Ie,addVariant:Ie,e:Ie,prefix:Ie,theme:Ie,variants:Ie,config:Ie,corePlugins:Ie,matchUtilities:Ie,postcss:null};function Mu(e,t){let n=(0,Nu.default)(q0(e)),r={},i=Fu(n.plugins),s={},o=Object.entries(i).map(([p,v])=>typeof v=="string"?(s[p]=v,[p,{kind:"null"}]):[p,m(v)]).filter(([,p])=>p.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 p=l[u];if(p)return p;let v=new rr(o);return l[u]=v,v}function d(...p){let v=f(),_={},b=[],y=[],[S,E]=Du(p),T=S.join(" "),D=v.getStyle(T);if(D)return{...D,...E||{}};for(let F of S){let C=v.getIr(F);if(!C&&F in s){let z=d(s[F]);v.setIr(F,m(z)),_={..._,...z};continue}switch(C=new dt(F,n,v,r,t).parse(),C.kind){case"complete":_={..._,...C.style},v.setIr(F,C);break;case"dependent":b.push(C);break;case"ordered":y.push(C);break;case"null":v.setIr(F,C);break}}if(y.length>0){y.sort((F,C)=>F.order-C.order);for(let F of y)switch(F.styleIr.kind){case"complete":_={..._,...F.styleIr.style};break;case"dependent":b.push(F.styleIr);break}}if(b.length>0){for(let F of b){let C=F.complete(_);C&&me(C)}Su(_)}return T!==""&&v.setStyle(T,_),E&&(_={..._,...E}),_}function g(p){let v=d(p.split(/\s+/g).map(_=>_.replace(/^(bg|text|border)-/,"")).map(_=>`bg-${_}`).join(" "));return typeof v.backgroundColor=="string"?v.backgroundColor:void 0}let h=(p,...v)=>{let _="";return p.forEach((b,y)=>{var S;_+=b+((S=v[y])!==null&&S!==void 0?S:"")}),d(_)};return h.style=d,h.color=g,h.prefixMatch=(...p)=>{let v=p.sort().join(":"),_=f(),b=_.getPrefixMatch(v);if(b!==void 0)return b;let E=new dt(`${v}:flex`,n,_,r,t).parse().kind!=="null";return _.setPrefixMatch(v,E),E},h.setWindowDimensions=p=>{r.windowDimensions=p,u=a()},h.setFontScale=p=>{r.fontScale=p,u=a()},h.setPixelDensity=p=>{r.pixelDensity=p,u=a()},h.setColorScheme=p=>{r.colorScheme=p,u=a()},h}function q0(e){return{...e,content:["_no_warnings_please"]}}var U0={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 z0(e){return Mu({...e,plugins:[...(e==null?void 0:e.plugins)??[],U0]},"web")}var Hr;function po({width:e,height:t,config:n}){return Hr||(Hr=z0(n)),Hr.setWindowDimensions({width:+e,height:+t}),Hr}var ho=new WeakMap;async function Wu(e,t){let n=await Re();if(!n||!n.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+n);t.fonts=t.fonts||[];let r;ho.has(t.fonts)?r=ho.get(t.fonts):ho.set(t.fonts,r=new kt(t.fonts));let i="width"in t?t.width:void 0,s="height"in t?t.height:void 0,o=n.Node.create();i&&o.setWidth(i),s&&o.setHeight(s),o.setFlexDirection(n.FLEX_DIRECTION_ROW),o.setFlexWrap(n.WRAP_WRAP),o.setAlignContent(n.ALIGN_AUTO),o.setAlignItems(n.ALIGN_FLEX_START),o.setJustifyContent(n.JUSTIFY_FLEX_START),o.setOverflow(n.OVERFLOW_HIDDEN);let a={...t.graphemeImages},u=new Set,l=St(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:1.2,color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:i,_viewportHeight:s},parent:o,font:r,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,getTwStyles:(p,v)=>{let b={...po({width:i,height:s,config:t.tailwindConfig})([p])};return typeof b.lineHeight=="number"&&(b.lineHeight=b.lineHeight/(+b.fontSize||v.fontSize||16)),b.shadowColor&&b.boxShadow&&(b.boxShadow=b.boxShadow.replace(/rgba?\([^)]+\)/,b.shadowColor)),b}}),f=(await l.next()).value;if(t.loadAdditionalAsset&&f.length){let p=G0(f),v=[],_={};await Promise.all(Object.entries(p).flatMap(([b,y])=>y.map(S=>{let E=`${b}_${S}`;return u.has(E)?null:(u.add(E),t.loadAdditionalAsset(b,S).then(T=>{typeof T=="string"?_[S]=T:T&&v.push(T)}))}))),r.addFonts(v),Object.assign(a,_)}await l.next(),o.calculateLayout(i,s,n.DIRECTION_LTR);let d=(await l.next([0,0])).value,g=o.getComputedWidth(),h=o.getComputedHeight();return o.freeRecursive(),Tn({width:g,height:h,content:d})}function G0(e){let t={},n={};for(let{word:r,locale:i}of e){let s=ts(r,i);n[s]=n[s]||"",n[s]+=r}return Object.keys(n).forEach(r=>{t[r]=t[r]||[],r==="emoji"?t[r].push(...$u(de(n[r],"grapheme"))):(t[r][0]=t[r][0]||"",t[r][0]+=$u(de(n[r],"grapheme",r==="unknown"?void 0:r)).join(""))}),t}function $u(e){return Array.from(new Set(e))}export{Wu as default,Ku as init};
|
|
10
8
|
//# sourceMappingURL=index.wasm.js.map
|