| 58 | */function y(_,X){const[ee,te,re]=_,[se,ne,ie]=X,oe=ee-se,ae=te-ne,le=re-ie;return Math.sqrt(oe**2+ae**2+le**2)}function g(_,X,ee){return function(_,X,ee){let te=0,re=_[1];const se=_;for(;re-te>1e-4;){const _=x(X(se));y(h(se),h(ee(_)))-.02<1e-4?te=se[1]:re=se[1],se[1]=(re+te)/2}return x(X([...se]))}(_,X,ee)}function x(_){return _.map((_=>_<0?0:_>1?1:_))}function F(_){const[X,ee,te]=_;return X>=-1e-4&&X<=1.0001&&ee>=-1e-4&&ee<=1.0001&&te>=-1e-4&&te<=1.0001}function M(_){const[X,ee,te]=_;let re=[Math.max(X,0),ee,te],se=m(re);return se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),re=v(re),re=d(re),re=f(re),F(re)?[x(re),!0]:[g(se,(_=>f(_=d(_=v(_=h(_))))),(_=>m(_=b(_=p(_=c(_)))))),!1]}function k(_){const[X,ee,te]=_,re=[Math.max(X,0),ee,te%360];let se=re;return se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),se=h(se),se=v(se),se=d(se),se=f(se),F(se)?[x(se),!0]:[g(re,(_=>f(_=d(_=v(_=h(_))))),(_=>m(_=b(_=p(_=c(_)))))),!1]}function P(_){const[X,ee,te]=_;let re=[Math.max(X,0),ee,te],se=m(re);return se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),re=v(re),re=s(re),re=i(re),F(re)?x(re).map((_=>Math.round(255*_))):g(se,(_=>i(_=s(_=v(_=h(_))))),(_=>m(_=b(_=l(_=o(_)))))).map((_=>Math.round(255*_)))}function w(_){const[X,ee,te]=_,re=[Math.max(X,0),ee,te%360];let se=re;return se[0]<1e-6&&(se=[0,0,0]),se[0]>.999999&&(se=[1,0,0]),se=h(se),se=v(se),se=s(se),se=i(se),F(se)?x(se).map((_=>Math.round(255*_))):g(re,(_=>i(_=s(_=v(_=h(_))))),(_=>m(_=b(_=l(_=o(_)))))).map((_=>Math.round(255*_)))}function I(_){const X=_.value,ee=_.nodes.slice().filter((_=>"comment"!==_.type&&"space"!==_.type));let te=null;if("oklab"===X?te=B(ee):"oklch"===X&&(te=q(ee)),!te)return;_.value="rgb",function(_,X,ee){if(!X||!ee)return;if(_.value="rgba",X.value=",",X.before="",!function(_){if(!_||"word"!==_.type)return!1;if(!D(_))return!1;const X=ne.default.unit(_.value);if(!X)return!1;return!!X.number}(ee))return;const te=ne.default.unit(ee.value);if(!te)return;"%"===te.unit&&(te.number=String(parseFloat(te.number)/100),ee.value=String(te.number))}(_,te.slash,te.alpha);const[re,se,ie]=j(te),[oe,ae,le]=C(te),ue=("oklab"===X?P:w)([oe.number,ae.number,le.number].map((_=>parseFloat(_))));_.nodes.splice(_.nodes.indexOf(re)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),_.nodes.splice(_.nodes.indexOf(se)+1,0,{sourceIndex:0,sourceEndIndex:1,value:",",type:"div",before:"",after:""}),$(_.nodes,re,{...re,value:String(ue[0])}),$(_.nodes,se,{...se,value:String(ue[1])}),$(_.nodes,ie,{...ie,value:String(ue[2])})}function N(_){if(!_||"word"!==_.type)return!1;if(!D(_))return!1;const X=ne.default.unit(_.value);return!!X&&("%"===X.unit||""===X.unit)}function S(_){return _&&"function"===_.type&&"calc"===_.value}function O(_){return _&&"function"===_.type&&"var"===_.value}function A(_){return _&&"div"===_.type&&"/"===_.value}function q(_){if(!N(_[0]))return null;if(!N(_[1]))return null;if(!function(_){if(!_||"word"!==_.type)return!1;if(!D(_))return!1;const X=ne.default.unit(_.value);return!(!X||!X.number||"deg"!==X.unit&&"grad"!==X.unit&&"rad"!==X.unit&&"turn"!==X.unit&&""!==X.unit)}(_[2]))return null;const X={l:ne.default.unit(_[0].value),lNode:_[0],c:ne.default.unit(_[1].value),cNode:_[1],h:ne.default.unit(_[2].value),hNode:_[2]};return function(_){switch(_.unit){case"deg":return void(_.unit="");case"rad":return _.unit="",void(_.number=(180*parseFloat(_.number)/Math.PI).toString());case"grad":return _.unit="",void(_.number=(.9*parseFloat(_.number)).toString());case"turn":_.unit="",_.number=(360*parseFloat(_.number)).toString()}}(X.h),""!==X.h.unit?null:(A(_[3])&&(X.slash=_[3]),(N(_[4])||S(_[4])||O(_[4]))&&(X.alpha=_[4]),!(_.length>3)||X.slash&&X.alpha?("%"===X.l.unit&&(X.l.unit="",X.l.number=(parseFloat(X.l.number)/100).toFixed(10)),"%"===X.c.unit&&(X.c.unit="",X.c.number=(parseFloat(X.c.number)/100*.4).toFixed(10)),X):null)}function B(_){if(!N(_[0]))return null;if(!N(_[1]))return null;if(!N(_[2]))return null;const X={l:ne.default.unit(_[0].value),lNode:_[0],a:ne.default.unit(_[1].value),aNode:_[1],b:ne.default.unit(_[2].value),bNode:_[2]};return A(_[3])&&(X.slash=_[3]),(N(_[4])||S(_[4])||O(_[4]))&&(X.alpha=_[4]),!(_.length>3)||X.slash&&X.alpha?("%"===X.l.unit&&(X.l.unit="",X.l.number=(parseFloat(X.l.number)/100).toFixed(10)),"%"===X.a.unit&&(X.a.unit="",X.a.number=(parseFloat(X.a.number)/100*.4).toFixed(10)),"%"===X.b.unit&&(X.b.unit="",X.b.number=(parseFloat(X.b.number)/100*.4).toFixed(10)),X):null}function E(_){return void 0!==_.a}function j(_){return E(_)?[_.lNode,_.aNode,_.bNode]:[_.lNode,_.cNode,_.hNode]}function C(_){return E(_)?[_.l,_.a,_.b]:[_.l,_.c,_.h]}function $(_,X,ee){const te=_.indexOf(X);_[te]=ee}function D(_){if(!_||!_.value)return!1;try{return!1!==ne.default.unit(_.value)}catch(_){return!1}}function G(_,X,ee,te){let re;try{re=ne.default(_)}catch(te){X.warn(ee,`Failed to parse value '${_}' as an oklab or oklch function. Leaving the original value intact.`)}if(void 0===re)return;re.walk((_=>{_.type&&"function"===_.type&&("oklab"!==_.value&&"oklch"!==_.value||I(_))}));const se=String(re);if(se===_)return;const ie=ne.default(_);ie.walk((_=>{_.type&&"function"===_.type&&("oklab"!==_.value&&"oklch"!==_.value||function(_,X,ee,te){const re=ne.default.stringify(_),se=_.value,ie=_.nodes.slice().filter((_=>"comment"!==_.type&&"space"!==_.type));let oe=null;if("oklab"===se?oe=B(ie):"oklch"===se&&(oe=q(ie)),!oe)return;if(ie.length>3&&(!oe.slash||!oe.alpha))return;_.value="color";const[ae,le,ue]=j(oe),[ce,pe,fe]=C(oe),de="oklab"===se?M:k,he=[ce.number,pe.number,fe.number].map((_=>parseFloat(_))),[me,ge]=de(he);!ge&&te&&X.warn(ee,`"${re}" is out of gamut for "display-p3". Given "preserve: true" is set, this will lead to unexpected results in some browsers.`),_.nodes.splice(0,0,{sourceIndex:0,sourceEndIndex:10,value:"display-p3",type:"word"}),_.nodes.splice(1,0,{sourceIndex:0,sourceEndIndex:1,value:" ",type:"space"}),$(_.nodes,ae,{...ae,value:me[0].toFixed(5)}),$(_.nodes,le,{...le,value:me[1].toFixed(5)}),$(_.nodes,ue,{...ue,value:me[2].toFixed(5)})}(_,X,ee,te))}));return{rgb:se,displayP3:String(ie)}}const L=_=>({postcssPlugin:"postcss-oklab-function",Declaration:(X,{result:ee})=>{if(function(_){const X=_.parent;if(!X)return!1;const ee=X.index(_);for(let te=0;te<ee;te++){const ee=X.nodes[te];if("decl"===ee.type&&ee.prop===_.prop)return!0}return!1}(X))return;if(function(_){let X=_.parent;for(;X;)if("atrule"===X.type){if("supports"===X.name){if(-1!==X.params.indexOf("oklab("))return!0;if(-1!==X.params.indexOf("oklch("))return!0}X=X.parent}else X=X.parent;return!1}(X))return;const te=X.value;if(!/(^|[^\w-])(oklab|oklch)\(/i.test(te))return;const re=G(te,X,ee,_.preserve);void 0!==re&&(_.preserve?(X.cloneBefore({value:re.rgb}),_.subFeatures.displayP3&&X.cloneBefore({value:re.displayP3})):(X.cloneBefore({value:re.rgb}),_.subFeatures.displayP3&&X.cloneBefore({value:re.displayP3}),X.remove()))}});L.postcss=!0;const z=_=>{const X=Object.assign({enableProgressiveCustomProperties:!0,preserve:!1,subFeatures:{displayP3:!0}},_);return X.subFeatures=Object.assign({displayP3:!0},X.subFeatures),X.enableProgressiveCustomProperties&&(X.preserve||X.subFeatures.displayP3)?{postcssPlugin:"postcss-oklab-function",plugins:[se.default(),L(X)]}:L(X)};z.postcss=!0,_.exports=z},5449:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(2045));const re=[{supports:"color(srgb 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"srgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"srgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(srgb-linear 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"srgb-linear"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"srgb-linear"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(a98-rgb 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"a98-rgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"a98-rgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(prophoto-rgb 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"prophoto-rgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"prophoto-rgb"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(display-p3 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"display-p3"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"display-p3"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(rec2020 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"rec2020"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"rec2020"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(xyz-d50 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"xyz-d50"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"xyz-d50"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(xyz-d65 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"xyz-d65"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"xyz-d65"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color(xyz 0 0 0)",property:"color",sniff:"color",matchers:[{type:"function",value:"color",nodes:[{type:"word",value:"xyz"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color",nodes:[{type:"word",value:"xyz"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"hsl(0, 0%, 0%)",property:"color",sniff:"hsl",matchers:[{type:"function",value:"hsl",nodes:[{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]}]},{supports:"hsl(0 0% 0% / 0)",property:"color",sniff:"hsl",matchers:[{type:"function",value:"hsl",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"hsl",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"hsla(0 0% 0% / 0)",property:"color",sniff:"hsla",matchers:[{type:"function",value:"hsla",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"hwb(0 0% 0%)",property:"color",sniff:"hwb",matchers:[{type:"function",value:"hwb",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"hwb",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"lab(0% 0 0)",property:"color",sniff:"lab",matchers:[{type:"function",value:"lab",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"lab",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"lch(0% 0 0)",property:"color",sniff:"lch",matchers:[{type:"function",value:"lch",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"lch",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"oklab(0% 0 0)",property:"color",sniff:"oklab",matchers:[{type:"function",value:"oklab",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"oklab",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"oklch(0% 0 0)",property:"color",sniff:"oklch",matchers:[{type:"function",value:"oklch",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"oklch",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"rgb(0, 0, 0, 0)",property:"color",sniff:"rgb",matchers:[{type:"function",value:"rgb",nodes:[{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]}]},{supports:"rgb(0 0 0 / 0)",property:"color",sniff:"rgb",matchers:[{type:"function",value:"rgb",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"rgb",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"rgba(0 0 0 / 0)",property:"color",sniff:"rgba",matchers:[{type:"function",value:"rgba",nodes:[{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:"/"},{type:"word",isVariable:!0}]}]},{supports:"color-mix(in oklch, #000, #fff)",property:"color",sniff:"color-mix",matchers:[{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]},{type:"function",value:"color-mix",nodes:[{type:"word",value:"in"},{type:"space"},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0},{type:"div",value:","},{type:"word",isVariable:!0},{type:"space"},{type:"word",isVariable:!0}]}]},{supports:"1ic",property:"font-size",sniff:"ic",matchers:[{type:"word",value:"1ic",dimension:{unit:"ic"}}]}];function p(_,X){if(_.isVariable&&X)return!0;if(_.type!==X.type)return!1;if(function(_,X){if("space"===_.type&&"space"===X.type&&_.value.trim()===X.value.trim())return!1;if(_.dimension&&X.dimension)return _.dimension.unit!==X.dimension.unit;if(_.value!==X.value)return!0;return!1}(_,X))return!1;if(_.nodes&&X.nodes){for(let ee=0;ee<_.nodes.length;ee++){let te=ee,re=ee;for(;_.nodes[te]&&"space"===_.nodes[te].type;)te++;for(;X.nodes[re]&&"space"===X.nodes[re].type;)re++;if(!!_.nodes[te]!=!!X.nodes[re])return!1;if(!p(_.nodes[te],X.nodes[re]))return!1}return!0}return!0}const se=["at","bottom","center","circle","closest-corner","closest-side","ellipse","farthest-corner","farthest-side","from","in","left","right","to","top"];function i(_){const X=[],ee=[];re.forEach((X=>{_.indexOf(X.sniff)>-1&&ee.push(X)}));try{te.default(_).walk((_=>{try{_.dimension=te.default.unit(_.value)}finally{!1===_.dimension&&delete _.dimension}for(let te=0;te<ee.length;te++){const re=ee[te];for(let ee=0;ee<re.matchers.length;ee++){if(p(re.matchers[ee],_))return void X.push(`(${re.property}: ${re.supports})`)}}X.push(...function(_){const X=[];if("function"===_.type&&("conic-gradient"===_.value||"linear-gradient"===_.value||"radial-gradient"===_.value||"repeating-conic-gradient"===_.value||"repeating-linear-gradient"===_.value||"repeating-radial-gradient"===_.value)){let ee=0,te=!1,re=!1;e:for(let ne=0;ne<_.nodes.length;ne++){const ie=_.nodes[ne];if("word"===ie.type&&se.includes(ie.value)&&(te=!0),"div"!==ie.type||","!==ie.value.trim())if("word"!==ie.type||"in"!==ie.value){if("word"!==ie.type&&"function"!==ie.type||ee++,re)switch(_.value){case"conic-gradient":X.push("(background: conic-gradient(in oklch, red 0deg, red 0deg 1deg, red 2deg))");break e;case"linear-gradient":X.push("(background: linear-gradient(in oklch, red 0%, red 0% 1%, red 2%))");break e;case"radial-gradient":X.push("(background: radial-gradient(in oklch, red, red 1px 2px, red 3px))");break e;case"repeating-conic-gradient":X.push("(background: repeating-conic-gradient(in oklch from 0deg, red 0deg, red 0deg 1deg, red 2deg))");break e;case"repeating-linear-gradient":X.push("(background: repeating-linear-gradient(in oklch, red 0%, red 0% 1%, red 2%))");break e;case"repeating-radial-gradient":X.push("(background: repeating-radial-gradient(in oklch, red, red 1px 2px, red 3px))");break e}if(!te&&3===ee)switch(_.value){case"conic-gradient":X.push("(background: conic-gradient(red 0deg, red 0deg 1deg, red 2deg))");break e;case"linear-gradient":X.push("(background: linear-gradient(red 0%, red 0% 1%, red 2%))");break e;case"radial-gradient":X.push("(background: radial-gradient(red, red 1px 2px, red 3px))");break e;case"repeating-conic-gradient":X.push("(background: repeating-conic-gradient(from 0deg, red 0deg, red 0deg 1deg, red 2deg))");break e;case"repeating-linear-gradient":X.push("(background: repeating-linear-gradient(red 0%, red 0% 1%, red 2%))");break e;case"repeating-radial-gradient":X.push("(background: repeating-radial-gradient(red, red 1px 2px, red 3px))");break e}}else re=!0;else ee=0,te=!1}}return X}(_))}))}catch(_){}return Array.from(new Set(X))}const o=()=>({postcssPlugin:"postcss-progressive-custom-properties",RuleExit:(_,{postcss:X})=>{const ee=[],te=new Set;_.each((re=>{if("decl"!==re.type)return;if(!re.variable)return;if("initial"===re.value.trim())return;if(""===re.value.trim())return;if(!te.has(re.prop.toString()))return void te.add(re.prop.toString());const se=i(re.value);if(!se.length)return;const ne=X.atRule({name:"supports",params:se.join(" and "),source:_.source,raws:{before:"\n\n",after:"\n"}}),ie=_.clone();ie.removeAll(),ie.raws.before="\n",ie.append(re.clone()),re.remove(),ne.append(ie),ee.push(ne)})),0!==ee.length&&ee.reverse().forEach((X=>{_.after(X)}))}});o.postcss=!0,_.exports=o},3570:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));const r=_=>{const X=String(Object(_).replaceWith||"[blank]"),ee=te.default().astSync(X),re=Boolean(!("preserve"in Object(_))||_.preserve);return{postcssPlugin:"css-blank-pseudo",Rule:(_,{result:X})=>{if(-1===_.selector.indexOf(":blank"))return;let se;try{const X=te.default((_=>{_.walkPseudos((_=>{":blank"===_.value&&(_.nodes&&_.nodes.length||_.replaceWith(ee.clone()))}))})).processSync(_.selector);se=String(X)}catch(ee){return void _.warn(X,`Failed to parse selector : ${_.selector}`)}if(void 0===se)return;if(se===_.selector)return;const ne=_.clone({selector:se});re?_.before(ne):_.replaceWith(ne)}}};r.postcss=!0,_.exports=r},3318:(_,X,ee)=>{"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var te=e(ee(6206));const s=_=>{_="object"==typeof _&&_||re;const X=Boolean(!("preserve"in _)||_.preserve);return{postcssPlugin:"css-has-pseudo",Rule:(_,{result:ee})=>{if(!_.selector.includes(":has("))return;let re;try{const X=te.default((_=>{_.walkPseudos((_=>{if(":has"===_.value&&_.nodes){const X=r(_);_.value=X?":not-has":":has";const ee=te.default.attribute({attribute:o(String(_))});X?_.parent.parent.replaceWith(ee):_.replaceWith(ee)}}))})).processSync(_.selector);re=String(X)}catch(X){return void _.warn(ee,`Failed to parse selector : ${_.selector}`)}void 0!==re&&re!==_.selector&&(X?_.cloneBefore({selector:re}):_.selector=re)}}};s.postcss=!0;const re={preserve:!0},o=_=>{let X="",ee="";const n=()=>{if(ee){const _=encodeURIComponent(ee);let te="",re="";const r=()=>{te&&(re+=te,te="")};let se=!1;for(let X=0;X<_.length;X++){const ee=_[X];if(se)te+=ee,se=!1;else switch(ee){case"%":r(),re+="\\"+ee;continue;case"\\":te+=ee,se=!0;continue;default:te+=ee;continue}}r(),X+=re,ee=""}};let te=!1;for(let re=0;re<_.length;re++){const se=_[re];if(te)ee+=se,te=!1;else switch(se){case":":case"[":case"]":case",":case"(":case")":n(),X+="\\"+se;continue;case"\\":ee+=se,te=!0;continue;default:ee+=se;continue}}return n(),X},r=_=>{var X,ee;return"pseudo"===(null==(X=_.parent)||null==(ee=X.parent)?void 0:ee.type)&&":not"===_.parent.parent.value};_.exports=s},8780:_=>{"use strict";const X=/^media$/i,ee=/\(\s*prefers-color-scheme\s*:\s*(dark|light|no-preference)\s*\)/i,te={dark:48,light:70,"no-preference":22},s=(_,X)=>`(color-index: ${te[X.toLowerCase()]})`,re={dark:48842621,light:70318723,"no-preference":22511989},t=(_,X)=>`(color: ${re[X.toLowerCase()]})`,l=_=>{const te=!("preserve"in Object(_))||_.preserve,re={};return!("mediaQuery"in Object(_))||"color-index"!==_.mediaQuery&&"color"!==_.mediaQuery?(re["color-index"]=!0,re.color=!0):re[_.mediaQuery]=!0,{postcssPlugin:"postcss-prefers-color-scheme",AtRule:_=>{if(!X.test(_.name))return;const{params:se}=_,ne=se.replace(ee,s),ie=se.replace(ee,t);let oe=!1;se!==ne&&re["color-index"]&&(_.cloneBefore({params:ne}),oe=!0),se!==ie&&re.color&&(_.cloneBefore({params:ie}),oe=!0),!te&&oe&&_.remove()}}};l.postcss=!0,_.exports=l},725:function(_,X){ |