@master/css
Advanced tools
Comparing version 1.14.3 to 1.14.4
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@master/styles"]=t():e["@master/styles"]=t()}(this,(function(){return(()=>{"use strict";var e={955:(e,t,s)=>{s.d(t,{breakpoints:()=>i});const i={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},563:(e,t,s)=>{s.d(t,{colors:()=>i});const i={fade:{10:"131518",20:"24262d",30:"363944",40:"4c515f",50:"63697c",60:"878d9f",70:"a6abb8",80:"c3c6cf",90:"f4f4f6"},gray:{10:"151515",20:"242424",30:"39393b",40:"515153",50:"6a6a6c",60:"8d8d8f",70:"aaaaac",80:"c6c6c8",90:"f4f4f6"},brown:{10:"1c130f",20:"31221b",30:"4b3429",40:"6a4a3a",50:"8a604c",60:"af836e",70:"c4a394",80:"d8c2b8",90:"f8f3f1"},orange:{10:"221205",20:"3a1f08",30:"582f0d",40:"7c4312",50:"a15717",60:"d5731e",70:"e79855",80:"efbd92",90:"fcf1e7"},gold:{10:"1e1400",20:"342300",30:"4e3400",40:"6e4900",50:"906000",60:"c08000",70:"e89a00",80:"ffba30",90:"fff3da"},yellow:{10:"1b1500",20:"2f2500",30:"473800",40:"634f00",50:"806700",60:"ac8a00",70:"d0a700",80:"f0c100",90:"fff5ca"},grass:{10:"101803",20:"1c2a05",30:"2a4008",40:"3c5a0b",50:"4e750e",60:"689c13",70:"7dbc17",80:"92da1a",90:"ebfad4"},green:{10:"011a0b",20:"022d13",30:"03441d",40:"055f28",50:"067b34",60:"08a345",70:"0ac553",80:"0be561",90:"d5fde5"},beryl:{10:"001912",20:"002b1f",30:"00432f",40:"005d41",50:"007954",60:"00a170",70:"00c387",80:"00e19c",90:"c9ffee"},teal:{10:"001918",20:"002b28",30:"00413d",40:"005b55",50:"00776f",60:"009f94",70:"00bfb2",80:"00ddce",90:"c5fffb"},cyan:{10:"00181f",20:"002a35",30:"003f51",40:"005973",50:"007391",60:"0099c1",70:"00b9e9",80:"3dd7ff",90:"dff8ff"},sky:{10:"021726",20:"032841",30:"043c61",40:"065489",50:"086eb3",60:"0b92ee",70:"4db3f7",80:"8ccefa",90:"eaf6fe"},blue:{10:"051338",20:"09205e",30:"0d318d",40:"1344c4",50:"175fe9",60:"538cee",70:"81acf3",80:"a5c7fd",90:"edf4fe"},indigo:{10:"161031",20:"24195e",30:"332592",40:"4835cc",50:"5a5bd5",60:"7d84e8",70:"a1a5ee",80:"bfc2f4",90:"f1f2ff"},violet:{10:"1f0839",20:"310e63",30:"491595",40:"641ed2",50:"7949e5",60:"9e77f5",70:"b89bf9",80:"d0bdfb",90:"f5f1ff"},purple:{10:"220736",20:"390c5b",30:"551287",40:"7719bd",50:"9832e4",60:"b56cec",70:"ca96f1",80:"dcbaf6",90:"f9f0ff"},fuchsia:{10:"2b0720",20:"470b3d",30:"68105f",40:"8e1691",50:"b61cbb",60:"e04ee5",70:"ea86ed",80:"f1b1f3",90:"feefff"},pink:{10:"2d0519",20:"4c082b",30:"720c40",40:"9d1059",50:"ca1473",60:"ee52a3",70:"f388c0",80:"f7b2d6",90:"fff0f8"},crimson:{10:"33020f",20:"500317",30:"780522",40:"a20d35",50:"ce1a4b",60:"ea5b82",70:"f58ba7",80:"ffb1c6",90:"fff1f4"},red:{10:"350001",20:"530001",30:"780506",40:"a60708",50:"d11a1e",60:"eb5f63",70:"fa8b8d",80:"fdb3b5",90:"fff1f1"},black:"000000",white:"ffffff"}},342:(e,t,s)=>{function i(e,t){let s=":root{";for(const i in t)s+="--"+e+(i?"-"+i:"")+":"+t[i]+";";return s+="}",s}s.d(t,{i:()=>i})}},t={};function s(i){var r=t[i];if(void 0!==r)return r.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,s),n.exports}s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{s.r(i),s.d(i,{Style:()=>Y,StyleSheet:()=>p,Styles:()=>Tn,breakpoints:()=>t.breakpoints,colors:()=>e.colors,init:()=>qn,sheets:()=>X});var e=s(563),t=s(955);function r(e,t){return e+":"+(t.unit?t.value+t.unit:t.value)+(t.important?"!important":"")}const n=/^([+-.]?\d+(\.?\d+)?)(.*)?/;function a(e,t,s){let i="",r="",a="";if("number"==typeof e)i=e,r=t||"";else{if(s){const[t,n]=e.split("/");for(const e in s)if(t.startsWith(e)){const s=t[e.length];if(!s||"-"===s)return i="rgb(var(--"+t+")"+(n?"/"+n:"")+")",{value:i,unit:r,unitToken:a}}}if(t){const s=e.match(n);if(s){if(e.includes("/")){const t=e.split("/");return{value:+t[0]/+t[1]*100+"%",unit:r,unitToken:a}}return i=+s[1],r=a=s[3]||"",r||("rem"!==t&&"em"!==t||(i/=16),r=t||""),{value:i,unit:r,unitToken:a}}}i=(-1===e.indexOf("calc(")?e:function(e){const t=e=>"+"===e||"-"===e||"*"===e||"/"===e;let s,i="",r="",n=!1;function a(){s=null,r=""}for(let c=0;c<e.length;c++){const l=e[c];if("("===l||")"===l)n=")"===l,i+=r+l,a();else if(","===l)i+=r+l+" ",a();else{switch(s){case 1:break;case 2:if(t(l)){i+=r+" "+l+" ",a();continue}break;default:n&&(r+=" "),isNaN(+l)?t(l)||(s=1):s=2}r+=l}}return r&&(i+=r),i}(e)).replace(/\$\(((\w|-)+)\)/g,"var(--$1)")}return{value:i,unit:r,unitToken:a}}const c=[":disabled",":active",":focus",":hover"],l=[",",".","#","[","!","*",">","+","~",":","@"],o="undefined"!=typeof document;let d;o&&(d=document.createElement("style"),d.id="master-styles");const h="max-width",u="min-width",f="undefined"!=typeof window,m=f?window.MutationObserver:Object;class p extends m{constructor(e){if(super((e=>{const t={},s=[],i=[],r=[],n=(e,t,s)=>{for(let i=0;i<e.length;i++){const r=e[i];if(r.classList&&!s.includes(r)){s.push(r),r.classList.forEach((e=>{t?c(e):a(e)}));const e=r.children;e.length&&n(e,t,s)}}},a=e=>{e in t?t[e]++:t[e]=1},c=e=>{e in t?t[e]--:t[e]=-1};for(let t=0;t<e.length;t++){const a=e[t],{addedNodes:c,removedNodes:l,type:o,target:d,oldValue:h}=a;if("attributes"===o){if(d.className===h||s.find((e=>e.target===d)))continue;s.push(a)}else c.length&&n(c,!1,i),l.length&&n(l,!0,r)}if(s.length||Object.keys(t).length){for(const{oldValue:e,target:t}of s){if(i.includes(t)||r.includes(t))continue;const s=e?e.split(" "):[],n=t.classList;n.length&&n.forEach((e=>{s.includes(e)||a(e)}));for(const e of s)n.contains(e)||c(e)}for(const e in t){const s=t[e],i=(this.countOfName[e]||0)+s;0===i?(delete this.countOfName[e],this.delete(e)):(e in this.countOfName||this.findAndInsert(e),this.countOfName[e]=i)}}})),this.container=e,this.styles=[],this.styleOfName={},this.countOfName={},o){if(e){const t=e.querySelector('[id="master-styles"]');if(t){this.element=t;const e=(t,s)=>{if(t.selectorText){const e=t.selectorText.split(", ")[0].split(" ");let i;for(let t=e.length-1;t>=0;t--){const s=e[t];if("."===s[0]){i=s.slice(1);break}}let r="";for(let e=0;e<i.length;e++){const t=i[e],s=i[e+1];if("\\"===t){if(e++,"\\"!==s){r+=s;continue}}else if(l.includes(t))break;r+=t}if(!(r in this.styleOfName)){const e=p.findAndNew(r);e&&(e.cssRule=null!=s?s:t,this.styles.push(e),this.styleOfName[e.name]=e)}}else if(t.cssRules)for(let i=0;i<t.cssRules.length;i++)e(t.cssRules[i],null!=s?s:t)};e(t.sheet,void 0)}else this.element=d.cloneNode(),null==e||e.prepend(this.element)}X.push(this)}}observe(e,t={subtree:!0,childList:!0}){return t.subtree&&e.querySelectorAll("[class]").forEach((e=>{e.classList.forEach((e=>{e in this.countOfName?this.countOfName[e]++:(this.countOfName[e]=1,this.findAndInsert(e))}))})),super.observe(e,Object.assign(Object.assign({},t),{attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})),this}disconnect(){super.disconnect(),this.styleOfName={},this.countOfName={},this.styles.length=0;const e=this.element.sheet;for(let t=e.cssRules.length-1;t>=0;t--)e.deleteRule(t)}static findAndNew(e){for(const t of this.Styles){const s=t.match(e);if(s)return new t(e,s)}}static find(e){for(const t of this.Styles){if(t.match(e))return t}}static refresh(){for(const e of X)e.refresh()}refresh(){if(!this.element)return;const e=d.cloneNode();this.element.replaceWith(e),this.element=e,this.styles.length=0,this.styleOfName={};for(const e in this.countOfName)this.findAndInsert(e)}destroy(){this.element.remove(),this.disconnect(),X.splice(X.indexOf(this),1)}insert(e){if(this.styleOfName[e.name])return;const t=e.text;let s;const i=this.styles.length-1,r=e.media,n=e.order,a=e.prioritySelectorIndex,c=e.hasWhere,l=(e,t,s,i)=>{let r,l,o=0;t&&(o=e.findIndex(t)),s&&(l=e.findIndex(s)),-1===o&&(o=e.length),void 0!==l&&-1!==l||(l=e.length),r=e.slice(o,l);for(let e=0;e<r.length;e++){const t=r[e];if(!(-1===t.prioritySelectorIndex||i&&i(t))&&(t.prioritySelectorIndex<a||t.prioritySelectorIndex===a&&(c&&!t.hasWhere||t.order>=n)))return o+e}return o+r.length};if(r){const e=this.styles.findIndex((e=>e.media));if(-1!==e){const t=r.features[h],o=r.features[u];if(t&&o){const r=t.value-o.value;for(let t=i;t>=e;t--){s=t;const i=this.styles[t],n=i.media,o=n.features[h],d=n.features[u];if(!o||!d){s++;break}const f=o.value-d.value;if(f===r){if(c!==i.hasWhere)continue;if(-1!==a){const i=[this.styles[t]];for(let s=t-1;s>=e;s--){const e=this.styles[s];if(e.hasWhere!==c)break;const t=e.media,r=t.features[h],n=t.features[u];if(!r||!n||r.value-n.value!==f)break;i.unshift(this.styles[s])}s=l(this.styles,(e=>e.media&&-1!==e.prioritySelectorIndex&&e.media.features[u]&&e.media.features[h]))}break}if(f>r)break}}else if(o)for(let t=e;t<=i;t++){s=t;const e=this.styles[t],r=e.media,d=r.features[h],f=r.features[u];if(d){if(f)break;continue}const m=null==f?void 0:f.value;if(m===o.value){if(!c&&e.hasWhere){s++;continue}if(-1!==a)s=l(this.styles,(e=>e.media),(e=>e.media&&-1!==e.prioritySelectorIndex&&e.media.features[u]&&e.media.features[h]),(e=>!e.media.features[u]&&!e.media.features[h]));else for(let e=t;e<=i;e++){const t=this.styles[e],i=t.media,r=i.features[u];if(!i.features[h]){if(t.hasWhere!==c||r.value!==m||t.order>=n)break;s=e+1}}break}if(m>o.value)break;s++}else if(t)for(let r=i;r>=e;r--){s=r;const i=this.styles[r],o=i.media,d=o.features[h];if(o.features[u])continue;const f=null==d?void 0:d.value;if(!f||f>t.value){s++;break}if(f===t.value){if(c&&!i.hasWhere)continue;if(-1!==a)s=l(this.styles,(e=>e.media),(e=>e.media&&-1!==e.prioritySelectorIndex&&e.media.features[u]&&e.media.features[h]),(e=>!e.media.features[u]&&!e.media.features[h]));else{const t=[this.styles[r]];for(let s=r-1;s>=e;s--){const e=this.styles[s],i=e.media,r=i.features[u],n=i.features[h];if(!(r||n&&n.value===f&&e.hasWhere===c))break;t.unshift(e)}for(let e=0;e<t.length;e++){const i=t[e];if(!i.media.features[u]){if(i.order>=n)break;s=r-t.length+2+e}}}break}}}if(void 0===s)if(-1===e)s=i+1;else if(-1!==a)s=e+l(this.styles.slice(e),void 0,(e=>e.media.features[h]||e.media.features[u]));else if(c){let t=e;for(;t<this.styles.length;t++){const e=this.styles[t];if(-1!==e.prioritySelectorIndex||!e.hasWhere||e.order>=n){s=t;break}}void 0===s&&(s=t)}else for(let t=e;t<=i;t++){s=t;const e=this.styles[t],i=e.media;if(-1!==e.prioritySelectorIndex||i.features[h]||i.features[u])break;if(e.hasWhere)s++;else if(e.order>=n)break}}else if(-1===a)if(c)s=this.styles.findIndex((e=>!e.hasWhere||e.media||-1!==e.prioritySelectorIndex||e.order>=n)),-1===s&&(s=i+1);else{let e=0;for(;e<this.styles.length;e++){const t=this.styles[e];if(t.media||!t.hasWhere&&(t.order>=n||-1!==t.prioritySelectorIndex)){s=e;break}}void 0===s&&(s=e)}else s=l(this.styles,void 0,(e=>e.media));try{if(this.element){const i=this.element.sheet;i.insertRule(t,s),e.cssRule=i.cssRules[s]}this.styles.splice(s,0,e),this.styleOfName[e.name]=e}catch(e){}}delete(e){const t=this.element.sheet,s=e=>{const s=this.styleOfName[e];if(null==s?void 0:s.cssRule)for(let e=0;e<t.cssRules.length;e++){t.cssRules[e]===s.cssRule&&(t.deleteRule(e),this.styles.splice(e,1),delete this.styleOfName[s.name])}};if(e in Y.classes)for(const t of Y.classes[e])t in this.countOfName||s(t);else s(e)}findAndInsert(e){const t=e=>{const t=p.findAndNew(e);t&&this.insert(t)};if(e in Y.classes)for(const s of Y.classes[e])t(s);else t(e)}}p.Styles=[],f&&(window.MasterStyleSheet=p);var x=s(342);function b(e){const t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function g(e,t,s){return((1<<24)+(e<<16)+(t<<8)+s).toString(16).slice(1)}const y="matches",k="semantics",v="symbol",w="max-width",O="min-width",j="motion",S="reduce",N="reduced-motion",R="::scrollbar",W="::slider-thumb",I="::slider-runnable-track",$="::search",z="::meter",E="::resizer",A="::progress",M="px",V=["!","*",">","+","~",":","[","@","_"],T=[...V,void 0,"."],C={"(":")","'":"'"},q=new RegExp(R,"g"),L=new RegExp($,"g"),P=new RegExp(z,"g"),_=new RegExp(I,"g"),Z=new RegExp(W,"g"),F=new RegExp(E,"g"),Q=new RegExp(A,"g"),X=[];class Y{constructor(e,t){this.name=e,this.matching=t,this.at={},this.prioritySelectorIndex=-1;const s=this.constructor;if(void 0===t&&!(t=s.match(e)))return;let i,n,{semantics:l,unit:o,colors:d,key:h,values:u,fixedSelector:f,colorful:m,breakpoints:p,mediaQueries:x}=s,b=e;if(m||(d=null),t.origin===k)i=t.value,n=b.slice(t.value.length),this.value=l[t.value];else{if(t.origin===y){const e=b.indexOf(":");this.prefix=b.slice(0,e+1),this.prefix.includes("(")?(this.prefix=void 0,i=b):i=b.slice(e+1)}else t.origin===v&&(this.symbol=b[0],i=b.slice(1));let e,s="",r=[],c=0;!function t(n,l,h=""){let u;for(n&&(")"===n&&"$"===s.slice(-1)&&(u=s.length-1),s+=i[c++]);c<i.length;c++){const f=i[c];if(f===n){s+=f,void 0!==u&&(s=s.slice(0,u)+s.slice(u).replace(/\$\((.*)\)/,"var(--$1)")),l||("'"===n?r.push(s):(e=a(s,o,d),r.push(e.value+e.unit)),h="",s="");break}if(f in C)t(C[f],void 0===l?0:l+1,h);else if(";"!==f||"'"===n&&"path"!==h){if(!n){if("."===f){if(isNaN(+i[c+1]))break;"-"===i[c-1]&&(s+="0")}else{if(","===f){e=a(s,o,d),r.push(e.value+e.unit,","),s="";continue}if("#"===f&&(s||r.length&&";"!==i[c-1])||V.includes(f))break}h+=f}s+=f}else n?s+=" ":(e=a(s,o,d),r.push(e.value+e.unit),s="")}}(),s&&(e=a(s,o,d),r.push(e.value+e.unit)),n=i.slice(c),1===r.length?e?(this.value=e.value,this.unit=e.unit):(this.value=r[0],this.unit=""):this.value=r.join(" ")}n.includes(R)&&(n=n.replace(q,"::-webkit-scrollbar")),n.includes($)&&(n=n.replace(L,"::-webkit-search")),n.includes(W)&&(n=n.replace(Z,"::-webkit-slider-thumb")),n.includes(I)&&(n=n.replace(_,"::-webkit-slider-runnable-track")),n.includes(z)&&(n=n.replace(P,"::-webkit-meter")),n.includes(E)&&(n=n.replace(F,"::-webkit-resizer")),n.includes(A)&&(n=n.replace(Q,"::-webkit-progress")),this.parseValue&&(this.value=this.parseValue),u&&this.value in u&&(this.value=u[this.value]),"!"===n[0]&&(this.important=!0,n=n.slice(1));const g=n.split("@");let T=g[0].replace(/\_/g," ");if(T){this.hasWhere=T.includes(":where(");for(let e=0;e<c.length;e++)if(T.includes(c[e])){this.prioritySelectorIndex=e;break}}this.selector=T;for(let e=1;e<g.length;e++){const t=g[e];if(t)if(t.startsWith("dark")||t.startsWith("light"))this.colorScheme=t;else if("rtl"===t||"ltr"===t)this.direction=t;else{let e,s;const i=t.indexOf("_");if(-1!==i)e=t.slice(0,i),s=t.slice(i);else{const i=t.indexOf("(");-1!==i&&(e=t.slice(0,i),s=t.slice(i))}if(!e){e="media";const i=[];this.media={token:t,features:{}};const r=t.split("&");for(const e of r)if("all"===e||"print"===e||"screen"===e||"speech"===e)this.media.type=e;else if("🖨"===e)this.media.type="print";else if("landscape"===e||"portrait"===e)i.push("(orientation:"+e+")");else if(e===j||e===N)i.push("(prefers-reduced-motion:"+(e===j?"no-preference":S)+")");else if(e in x)i.push(x[e]);else{const t={token:e};let s="",r="",n=0;switch(e.startsWith("<=")?(r="<=",s=w):e.startsWith(">=")||p[e]?(r=">=",s=O):e.startsWith(">")?(r=">",s=O,n=.02):e.startsWith("<")&&(r="<",s=w,n=-.02),s){case w:case O:const c=r?e.replace(r,""):e,l=p[c];l?Object.assign(t,a(l,M)):Object.assign(t,a(c,M)),t.unit===M&&(t.value+=n),this.media.features[s]=t,i.push("("+s+":"+(t.value+t.unit)+")")}}s="",this.media.type&&(s=this.media.type),i.length&&(s+=(s?" and ":"")+i.join(" and "))}s&&(this.at[e]=s.replace(/\_/g," "))}}let X="";this.colorScheme&&(X+="."+this.colorScheme+" "),this.direction&&(X+="[dir="+this.direction+"] ");const B=(T?T+" ":"")+(f||"");this.text=X+"."+CSS.escape(this.name)+B+(this.name in Y.relations?Y.relations[this.name].map((e=>", "+X+"."+e+B)).join(""):"")+"{"+("object"==typeof this.value?Object.keys(this.value).map((e=>r(e,Object.assign(Object.assign({},this),{unit:"",value:this.value[e]})))).join(";"):this.props?Object.keys(this.props).map((e=>r(e,this.props[e]))).join(";"):r(h,this))+"}";for(const e of Object.keys(this.at).sort(((e,t)=>"supports"===t?-1:1)))this.text="@"+e+" "+this.at[e]+"{"+this.text+"}";void 0===this.order&&(this.order=0)}static match(e){if(this.semantics)for(const t in this.semantics)if(e===t||e.startsWith(t)&&T.includes(e[t.length]))return{origin:k,value:t};return this.matches&&this.matches.test(e)||this.colorStarts&&(e.match("^"+this.colorStarts+"(#|(rgb|hsl)\\(.*\\))((?!;).)*$")||this.colorNames.length&&e.match("^"+this.colorStarts+"("+this.colorNames.join("|")+")")&&-1===e.indexOf(";"))?{origin:y}:this.symbol&&e.startsWith(this.symbol)?{origin:v}:this.key&&e.startsWith(this.key+":")?{origin:y}:void 0}static extend(e,t,s=!0){if(!t)return;const i=(e,s,i)=>{var r;for(const n in t){const a=t[n];null==a?n in e&&(null==i||i(n),delete e[n]):e[n]=null!==(r=null==s?void 0:s(n,a))&&void 0!==r?r:a}};switch(e){case"classes":i(this.classes,((e,t)=>{if(e in this.classes)for(const t in this.relations){const s=this.relations[t],i=s.indexOf(e);-1!==i&&(s.length>1?s.splice(i,1):delete this.relations[t])}const s=Array.isArray(t)?t:t.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(const t of s)t in this.relations?this.relations[t].push(e):this.relations[t]=[e];return s}),(e=>{for(const t of this.classes[e]){const s=this.relations[t];s.length>1?s.splice(s.indexOf(e),1):delete this.relations[t]}}));break;case"colors":i(this.colors,((e,t)=>{const s=this.colorNames.indexOf(e);-1!==s?null==U||U.deleteRule(s):this.colorNames.push(e);const i={};"string"==typeof t&&(t={"":t});const r=""in t;r&&(i[""]=b(t[""]).join(" "));let n=!1;for(const e in t)if(e&&+e>=100){n=!0;break}if(n)for(const e in t)i[e]=b(t[e]).join(" ");else if(!r||Object.keys(t).length>1){let e,s,r=0,n="0"in t?b(t[0]):[0,0,0];const a=[],c=()=>{const c=e-r,l=s.map(((e,t)=>(e-n[t])/c));for(const e of a){const s=e-r,a=n.map(((e,t)=>Math.round(e+l[t]*s)));i[e]=a.join(" "),t[e]=g.call(this,...a)}};for(let l=1;l<100;l++){const o=l%2==0;l in t?(a.length?(e=l,s=b(t[l]),c(),a.length=0,n=s):n=b(t[l]),r=l,o&&(i[l]=n.join(" "))):o&&a.push(l)}a.length&&(e=100,s="100"in t?b(t[100]):[255,255,255],c())}if(!r){const e=t[n?"500":"50"];t[""]=e,i[""]=b(e).join(" ")}return null==U||U.insertRule((0,x.i)(e,i),-1===s?Object.keys(this.colors).length:s),this.rgbColors[e]=i,t}),(e=>{const t=this.colorNames.indexOf(e);-1!==t&&this.colorNames.splice(t,1),null==U||U.deleteRule(t),delete this.rgbColors[e]}));break;default:let t=this[e];t||(t=this[e]={}),i(t)}s&&p.refresh()}}let B,U;if(Y.unit="rem",Y.rgbColors={},Y.mediaQueries={},Y.sheets=X,Y.colors={},Y.classes={},Y.colorNames=[],Y.relations={},"undefined"!=typeof window&&(window.MasterStyle=Y),"undefined"!=typeof document){const e=document.head.querySelector('[id="master-colors"]');if(e){const t=document.head.querySelector('[name="master:colors"]');if(t&&t.content){B=e;const s={},i=t.content.split(",");for(let e=0;e<B.sheet.cssRules.length;e++){const t=B.sheet.cssRules[e].cssText.slice(8,-1).split(";").slice(0,-1);if(t.length){const r=i[e],n=r.length+2,a={};for(const e of t){let[t,s]=e.split(":");t=t.trim().slice(n),t&&(t=t.slice(1)),a[t]=g.call(void 0,...s.split(" ").map((e=>+e)))}s[r]=a}}Y.extend("colors",s),U=B.sheet}}B||(B=document.createElement("style"),B.id="master-colors",document.head.prepend(B),U=B.sheet)}const D=(...e)=>e.join("-"),G="border",H="radius",J="margin",K="padding",ee="font",te=",",se="flow",ie="template",re="column",ne="columns",ae="gap",ce="row",le="rows",oe="shadow",de="user",he="content",ue="image",fe="stroke",me="filter",pe="blend",xe="background",be="repeat",ge="color",ye="scroll",ke="animation",ve="direction",we="mode",Oe="behavior",je=D("overscroll",Oe),Se="y",Ne="x",Re="height",We="width",Ie="max",$e="min",ze="block",Ee="inline",Ae="flex",Me="grid",Ve="transition",Te="origin",Ce="delay",qe="rotate",Le="deg",Pe="timing-function",_e="duration",Ze="display",Fe="hidden",Qe="box",Xe="fill",Ye="clip",Be="none",Ue="text",De="align",Ge="transform",He="vertical",Je="word",Ke="space",et="decoration",tt="break",st="size",it="auto",rt="line",nt="object",at="position",ct="rem",lt="style",ot="smoothing",dt="antialiased",ht="spacing",ut=D("letter",ht),ft=D(Ie,We),mt=D($e,We),pt=D(Ie,Re),xt=D($e,Re),bt="table",gt="list",yt="span",kt="justify",vt="items",wt="self",Ot="place",jt="type",St="offset",Nt="outline",Rt="snap",Wt="shape",It="view",$t="area",zt="start",Et="blur",At="drop",Mt={full:"100%",fit:D("fit",he),max:D(Ie,he),min:D($e,he)};class Vt extends Y{}Vt.matches=/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|extrabold|heavy)(?!;)/,Vt.key=D(ee,"weight"),Vt.unit="",Vt.values={thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900};const Tt="var(--font-";class Ct extends Y{}Ct.matches=/^f(ont)?:(mono|sans|serif)(?!;)/,Ct.key=D(ee,"family"),Ct.values={mono:Tt+"mono)",sans:Tt+"sans)",serif:Tt+"serif)"};class qt extends Y{}qt.matches=/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$/,qt.key=D(ee,st);const Lt="top",Pt="bottom",_t="left",Zt="right",Ft="l",Qt="r",Xt="t",Yt="b",Bt="x",Ut="y";class Dt extends Y{get props(){const e="m"===this.prefix[0]?J:K,t=D(e,_t),s=D(e,Zt),i=D(e,Lt),r=D(e,Pt);switch(this.prefix[1]){case Bt:return{[t]:this,[s]:this};case Ut:return{[i]:this,[r]:this};case Ft:return{[t]:this};case Qt:return{[s]:this};case Xt:return{[i]:this};case Yt:return{[r]:this};default:return{[e]:this}}}get order(){return"p:"===this.prefix||"m:"===this.prefix?-1:0}}Dt.id="spacing",Dt.matches=/^[pm][xytblr]?:./;class Gt extends Y{}Gt.matches=/^w:./,Gt.key=We,Gt.values=Mt;class Ht extends Y{}Ht.matches=/^h:./,Ht.key=Re,Ht.values=Mt;class Jt extends Y{}Jt.matches=/^min-w:./,Jt.key=mt,Jt.values=Mt;class Kt extends Y{}Kt.matches=/^min-h:./,Kt.key=xt,Kt.values=Mt;class es extends Y{}es.matches=/^ls:./,es.key=ut,es.unit="em";const ts=D("subpixel",dt),ss=D("-webkit-font",ot),is=D("-moz-osxfont",ot);class rs extends Y{get props(){const e={};switch(this.value){case ts:e[ss]=e[is]=Object.assign(Object.assign({},this),{value:it});break;case dt:e[ss]=Object.assign(Object.assign({},this),{value:dt}),e[is]=Object.assign(Object.assign({},this),{value:"grayscale"})}return e}}rs.id="fontSmoothing",rs.matches=/^f(ont)?:(antialiased|subpixel-antialiased)(?!;)/,rs.unit="";class ns extends Y{}ns.matches=/^f(ont)?:(normal|italic|oblique)(?!;)/,ns.key=D(ee,lt),ns.unit="deg";class as extends Y{}as.matches=/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!;)/,as.key=D(ee,"variant","numeric");class cs extends Y{}cs.matches=/^lh:./,cs.key=D(rt,Re),cs.unit="";class ls extends Y{}ls.matches=/^(object|obj):(contain|cover|fill|scale-down)/,ls.key=D(nt,"fit");class os extends Y{}os.matches=/^(object|obj):(top|bottom|right|left|center)/,os.key=D(nt,at);class ds extends Y{}ds.matches=/^t(ext)?:(justify|center|left|right|start|end)(?!;)/,ds.key=D(Ue,De);class hs extends Y{constructor(){super(...arguments),this.order=-1}}hs.matches=/^t(ext)?:(underline|line-through|overline)/,hs.key=D(Ue,et),hs.colorful=!0;class us extends Y{}us.matches=/^t(ext)?:(uppercase|lowercase|capitalize)(?!;)/,us.key=D(Ue,Ge);class fs extends Y{}fs.matches=/^v:./,fs.key=D(He,De);class ms extends Y{get props(){return{overflow:Object.assign(Object.assign({},this),{value:Fe}),display:Object.assign(Object.assign({},this),{value:"-webkit-box"}),"overflow-wrap":Object.assign(Object.assign({},this),{value:D(tt,Je)}),"text-overflow":Object.assign(Object.assign({},this),{value:"ellipsis"}),"-webkit-box-orient":Object.assign(Object.assign({},this),{value:He}),"-webkit-line-clamp":this}}}ms.id="lines",ms.matches=/^lines:./,ms.unit="";class ps extends Y{}ps.matches=/^transform:((top|bottom|right|left|center)|\d)/,ps.key=D(Ge,Te),ps.unit="px";class xs extends Y{}xs.matches=/^transform:(flat|preserve-3d)(?!;)/,xs.key=D(Ge,lt);class bs extends Y{}bs.matches=/^transform:(content|border|fill|stroke|view)(?!;)/,bs.key=D(Ge,Qe),bs.values={content:D(he,Qe),border:D(G,Qe),fill:D(Xe,Qe),stroke:D(fe,Qe),view:D(It,Qe)};class gs extends Y{get parseValue(){return this.value.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,((e,t,s,i)=>{let r,n;switch(t){case"translate":r=ct;break;case"skew":r=Le;break;case qe:"3d"===s&&(n=!0),r=Le;break;default:return e}const a=i.split(",");return e.replace(i,a.map(((e,t)=>{if(n&&a.length-1!==t)return e;return Number.isNaN(+e)?e:e/(r===ct?16:1)+r})).join(","))}))}}gs.matches=/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/,gs.key=Ge,gs.unit="";class ys extends Y{constructor(){super(...arguments),this.order=-1}}ys.symbol="~",ys.key=Ve;class ks extends Y{}ks.matches=/^~delay:./,ks.key=D(Ve,Ce),ks.unit="ms";class vs extends Y{}vs.matches=/^~duration:./,vs.key=D(Ve,_e),vs.unit="ms";class ws extends Y{}ws.matches=/^~property:./,ws.key=D(Ve,"property");class Os extends Y{}Os.matches=/^~easing:./,Os.key=D(Ve,Pe);class js extends Y{}js.matches=/^max-h:./,js.key=pt,js.values=Mt;class Ss extends Y{}Ss.matches=/^max-w:./,Ss.key=ft,Ss.values=Mt;class Ns extends Y{}Ns.matches=/^d:./,Ns.key=Ze,Ns.semantics={hidden:Be,hide:Be,block:ze,table:bt,flex:Ae,grid:Me,contents:"contents","inline-block":D(Ee,ze),"inline-flex":D(Ee,Ae),"inline-grid":D(Ee,Me),"inline-table":D(Ee,bt)};class Rs extends Y{}Rs.matches=/^box:(content|border)(?!;)/,Rs.key=D(Qe,"sizing"),Rs.values={content:D(he,Qe),border:D(G,Qe)};class Ws extends Y{}Ws.key="opacity",Ws.unit="";class Is extends Y{}Is.key="visibility",Is.semantics={visible:"visible",invisible:Fe};class $s extends Y{}$s.key="clear";class zs extends Y{}zs.key="float";class Es extends Y{}Es.key="isolation",Es.semantics={isolate:"isolate"};class As extends Y{get props(){switch(this.prefix.slice(-2,-1)){case Ne:return{"overflow-x":this};case Se:return{"overflow-y":this};default:return{overflow:this}}}get order(){switch(this.prefix.slice(-2,-1)){case Ne:case Se:return 0;default:return-1}}}As.id="overflow",As.matches=/^(overflow|ovf)(-x|-y)?:./;class Ms extends Y{get props(){switch(this.prefix.slice(-2,-1)){case Ne:return{[D(je,Ne)]:this};case Se:return{[D(je,Se)]:this};default:return{[je]:this}}}}Ms.id="overscrollBehavior",Ms.matches=/^overscroll-behavior(?:-[xy])?:/;class Vs extends Y{}Vs.matches=/^z:./,Vs.key="z-index",Vs.unit="";class Ts extends Y{}Ts.matches=/^\@delay:./,Ts.key=D(ke,Ce),Ts.unit="ms";class Cs extends Y{}Cs.matches=/^\@direction:./,Cs.key=D(ke,ve);class qs extends Y{}qs.matches=/^\@fill-mode:./,qs.key=D(ke,Xe,we);class Ls extends Y{}Ls.matches=/^\@iteration-count:./,Ls.key=D(ke,"iteration","count"),Ls.unit="";class Ps extends Y{}Ps.matches=/^\@name:./,Ps.key=D(ke,"name");class _s extends Y{}_s.matches=/^\@play-state:./,_s.key=D(ke,"play-state");class Zs extends Y{}Zs.matches=/^\@easing:./,Zs.key=D(ke,Pe);class Fs extends Y{constructor(){super(...arguments),this.order=-1}}Fs.symbol="@",Fs.key=ke,Fs.unit="";function Qs(e,t,s=""){s&&(s="-"+s);const i="border-left"+s,r="border-right"+s,n="border-top"+s,a="border-bottom"+s;switch(/^b(order)?-?(.)?/.exec(e)[2]){case Bt:return{[i]:t,[r]:t};case Ut:return{[n]:t,[a]:t};case Ft:return{[i]:t};case Qt:return{[r]:t};case Xt:return{[n]:t};case Yt:return{[a]:t};default:return{[G+s]:t}}}class Xs extends Y{get props(){return Qs(this.prefix,this,ge)}get order(){return this.prefix===D(G,ge)+":"||"b:"===this.prefix||"border:"===this.prefix?-1:0}}Xs.id="borderColor",Xs.matches=/^border(-(left|right|top|bottom))?-color:./,Xs.colorStarts="b([xytblr]|(order(-(left|right|top|bottom))?))?:",Xs.colorful=!0;const Ys=D(G,Lt,_t,H),Bs=D(G,Lt,Zt,H),Us=D(G,Pt,_t,H),Ds=D(G,Pt,Zt,H),Gs=D(G,H),Hs=[Ys,Bs,Us,Ds];class Js extends Y{get props(){var e;if(this.prefix){let e="";const t=this.prefix.split("-");if(t.length>1)for(let s=1;s<t.length-1;s++)e+=t[s][0];else e=this.prefix.slice(1,-1);switch(e){case Xt:return{[Ys]:this,[Bs]:this};case"tl":case"lt":return{[Ys]:this};case"rt":case"tr":return{[Bs]:this};case Yt:return{[Us]:this,[Ds]:this};case"bl":case"lb":return{[Us]:this};case"br":case"rb":return{[Ds]:this};case Ft:return{[Ys]:this,[Us]:this};case Qt:return{[Bs]:this,[Ds]:this};default:return{[Gs]:this}}}const t=null===(e=this.prefix)||void 0===e?void 0:e.slice(0,-1);return{[Hs.includes(t)?t:Gs]:this}}get order(){return this.prefix===D(G,H)+":"||"r:"===this.prefix?-1:0}}Js.id="borderRadius",Js.matches=/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/,Js.semantics={rounded:"1e9em",round:"50%"};class Ks extends Y{get props(){return Qs(this.prefix,this,lt)}get order(){return this.prefix===D(G,lt)+":"||"b:"===this.prefix||"border:"===this.prefix?-1:0}}Ks.id="borderStyle",Ks.matches=/^(border(-(left|right|top|bottom))?-style:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!;))/;class ei extends Y{get props(){return Qs(this.prefix,this,We)}get order(){return this.prefix===D(G,We)+":"||"b:"===this.prefix||"border:"===this.prefix?-1:0}}ei.id="borderWidth",ei.matches=/^(border(-(left|right|top|bottom))?-width:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(([0-9]|(max|min|calc|clamp)\(.*\))|(max|min|calc|clamp)\(.*\))((?!;).)*$)/;class ti extends Y{get props(){return Qs(this.prefix,this)}get order(){return"border:"===this.prefix||"b:"===this.prefix?-2:-1}}ti.id="border",ti.matches=/^b([xytblr]?|order(-(left|right|top|bottom))?):./,ti.colorful=!0;class si extends Y{}si.matches=/^(bg|background):(fixed|local|scroll)(?!;)/,si.key=D(xe,"attachment");class ii extends Y{}ii.key=D(xe,pe,we);class ri extends Y{get props(){return{"-webkit-background-clip":this,"background-clip":this}}}ri.matches=/^(bg|background):text(?!;)/,ri.key=D(xe,Ye);class ni extends Y{}ni.matches=/^(bg|background):transparent(?!;)/,ni.colorStarts="(bg|background):",ni.key=D(xe,ge),ni.unit="",ni.colorful=!0;class ai extends Y{}ai.matches=/^(bg|background):(content|border|padding)(?!;)/,ai.key=D(xe,Te),ai.values={content:D(he,Qe),border:D(G,Qe),padding:D(K,Qe)};class ci extends Y{}ci.matches=/^(bg|background):(top|bottom|right|left|center)(?!;)/,ci.key=D(xe,at),ci.unit="px";class li extends Y{}li.matches=/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/,li.key=D(xe,be);class oi extends Y{}oi.matches=/^(bg|background):((auto|cover|contain)(?!;)|\.?\d((?!;).)*$)/,oi.key=D(xe,st);class di extends Y{}di.matches=/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!;).)*$/,di.key=D(xe,ue);class hi extends Y{constructor(){super(...arguments),this.order=-1}}hi.matches=/^bg:./,hi.key=xe,hi.colorful=!0;class ui extends Y{}ui.matches=/^blend:./,ui.key=D("mix",pe,we);class fi extends Y{}fi.key=at,fi.values={abs:"absolute",rel:"relative"},fi.semantics={static:"static",fixed:"fixed",abs:"absolute",rel:"relative",sticky:"sticky"};class mi extends Y{get props(){const e=this.prefix.slice(0,-1);switch(e){case Lt:case _t:case Zt:case Pt:return{[e]:this};case"center":return{left:this,right:this,"margin-left":Object.assign(Object.assign({},this),{unit:""}),"margin-right":Object.assign(Object.assign({},this),{unit:""})};case"middle":return{top:this,bottom:this,"margin-top":Object.assign(Object.assign({},this),{unit:""}),"margin-bottom":Object.assign(Object.assign({},this),{unit:""})}}}}function pi(e,t){let s="",i=0;return function r(n,a){let c="";const l=a?t(a):"",o=()=>{c&&(s+=!l||Number.isNaN(+c)?c:+c/(l===ct?16:1)+l,c="")};for(;i<e.length;i++){const t=e[i];if(t===n&&("'"!==n||")"===e[i+1])){o(),s+=t;break}","===t||" "===t?(o(),s+=t):c||"'"!==t?c&&"("===t?(s+=c+t,i++,r(")",c),c=""):c+=t:(s+=t,i++,r(t),c="")}o()}(),s}mi.matches=/^(top|left|right|bottom|center|middle):./;class xi extends Y{get props(){return{"backdrop-filter":this,"-webkit-backdrop-filter":this}}get parseValue(){return pi(this.value,(e=>{switch(e){case Et:case D(At,oe):return ct;case D("hue",qe):return Le}return""}))}}xi.matches=/^bd:./,xi.key=D("backdrop",me);class bi extends Y{}bi.key=Xe,bi.colorStarts="fill:",bi.colorful=!0;class gi extends Y{}gi.key=fe,gi.colorful=!0;class yi extends Y{}yi.matches=/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$/,yi.key=D(fe,We);class ki extends Y{get parseValue(){return pi(this.value,(e=>{switch(e){case Et:case D(At,oe):return ct;case D("hue",qe):return Le}return""}))}}ki.matches=/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,ki.key=me;class vi extends Y{}vi.key="cursor";class wi extends Y{}wi.key=D("pointer","events");class Oi extends Y{}Oi.key="resize";class ji extends Y{}ji.key=D("touch","action");class Si extends Y{get props(){return{"user-drag":this,"-webkit-user-drag":this}}}Si.key=D(de,"drag");class Ni extends Y{get props(){return{"user-select":this,"-webkit-user-select":this}}}Ni.key=D(de,"select");class Ri extends Y{}Ri.matches=/^s(?:hadow)?:./,Ri.key=D(Qe,oe),Ri.colorful=!0;class Wi extends Y{}Wi.key=D(Ue,oe);class Ii extends Y{get props(){return{"font-size":this,"line-height":Object.assign(Object.assign({},this),{value:this.unit===ct?this.value+.375+this.unit:"calc("+this.value+this.unit+" + .375rem)",unit:""})}}}Ii.id="textSize",Ii.matches=/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$/;class $i extends Y{}$i.key=D(Je,tt),$i.unit="",$i.semantics={"break-word":{"overflow-wrap":D(tt,Je),overflow:Fe}};class zi extends Y{get props(){return{[Ze]:Object.assign(Object.assign({},this),{value:Me}),[D(Me,ie,ne)]:Object.assign(Object.assign({},this),{value:"repeat("+this.value+te+$e+"max(0"+",1fr))"})}}}zi.matches=/^grid-cols:./,zi.key=D(Me,ne),zi.unit="";class Ei extends Y{get props(){return{[Ze]:Object.assign(Object.assign({},this),{value:Me}),[D(Me,it,se)]:Object.assign(Object.assign({},this),{value:re}),[D(Me,ie,le)]:Object.assign(Object.assign({},this),{value:"repeat("+this.value+te+$e+"max(0"+",1fr))"})}}}Ei.key=D(Me,le),Ei.unit="";class Ai extends Y{constructor(){super(...arguments),this.order=-1}get props(){switch(this.prefix[4]){case Ne:return{[D(re,ae)]:this};case Se:return{[D(ce,ae)]:this};default:return{[ae]:this}}}}Ai.id="gap",Ai.matches=/^gap(-x|-y)?:./;class Mi extends Y{}Mi.key=D(Je,ht);class Vi extends Y{get props(){return{["--"+this.prefix.slice(1,-1)]:this}}}Vi.id="variable",Vi.matches=/^\$.+:./,Vi.unit="";class Ti extends Y{}Ti.matches=/^aspect:./,Ti.key=D("aspect","ratio"),Ti.unit="",Ti.semantics={square:"1/1",video:"16/9"};class Ci extends Y{get props(){return{"box-decoration-break":this,"-webkit-box-decoration-break":this}}}Ci.matches=/^box:(slice|clone)(?!;)/,Ci.key=D(Qe,et,tt);class qi extends Y{}qi.key=D(tt,"after");class Li extends Y{}Li.key=D(tt,"before");class Pi extends Y{}Pi.key=D(tt,"inside");class _i extends Y{}_i.key=D(Ae,"shrink"),_i.unit="";class Zi extends Y{}Zi.matches=/^flex:((row|col|column)(-reverse)?)(?!;)/,Zi.key=D(Ae,ve),Zi.values={col:re,"col-reverse":D(re,"reverse")};class Fi extends Y{}Fi.key=D(Ae,"grow"),Fi.unit="";class Qi extends Y{}Qi.matches=/^flex:(wrap(-reverse)?|nowrap)(?!;)/,Qi.key=D(Ae,"wrap");class Xi extends Y{}Xi.key=D(Ae,"basis"),Xi.values=Mt;class Yi extends Y{constructor(){super(...arguments),this.order=-1}}Yi.key=Ae,Yi.unit="";const Bi="999999";class Ui extends Y{}Ui.matches=/^o:./,Ui.key="order",Ui.values={first:"-999999",last:Bi},Ui.unit="";class Di extends Y{constructor(){super(...arguments),this.order=-1}get parseValue(){return"span"===this.prefix.slice(-5,-1)&&"auto"!==this.value?"span "+this.value+"/"+"span "+this.value:this.value}}Di.matches=/^grid-col(-span)?:./,Di.key=D(Me,re),Di.unit="";class Gi extends Y{}Gi.matches=/^col-span:./,Gi.key=D(re,yt);class Hi extends Y{constructor(){super(...arguments),this.order=-1}get parseValue(){return"span"===this.prefix.slice(-5,-1)&&"auto"!==this.value?"span "+this.value+"/"+"span "+this.value:this.value}}Hi.matches=/^grid-row-span:./,Hi.key=D(Me,ce),Hi.unit="";class Ji extends Y{}Ji.matches=/^font-color:./,Ji.colorStarts="f(ont)?:",Ji.colorful=!0,Ji.key=ge,Ji.unit="";class Ki extends Y{}Ki.matches=/^ac:./,Ki.key=D(De,he);class er extends Y{}er.matches=/^ai:./,er.key=D(De,vt);class tr extends Y{}tr.matches=/^as:./,tr.key=D(De,wt);class sr extends Y{}sr.matches=/^grid-auto-cols:./,sr.key=D(Me,it,ne),sr.values={min:D($e,he),max:D(Ie,he)};class ir extends Y{}ir.matches=/^grid-flow:./,ir.key=D(Me,it,se);class rr extends Y{}rr.key=D(Me,it,le),rr.values={min:D($e,he),max:D(Ie,he)};class nr extends Y{}nr.matches=/^jc:./,nr.key=D(kt,he);class ar extends Y{}ar.matches=/^ji:./,ar.key=D(kt,vt);class cr extends Y{}cr.matches=/^js:./,cr.key=D(kt,wt);class lr extends Y{constructor(){super(...arguments),this.order=-1}}lr.key=D(Ot,he);class or extends Y{constructor(){super(...arguments),this.order=-1}}or.key=D(Ot,vt);class dr extends Y{constructor(){super(...arguments),this.order=-1}}dr.key=D(Ot,wt);class hr extends Y{get props(){return{[this.prefix.slice(0,-1)]:this}}get order(){return"padding:"===this.prefix?-1:0}}hr.id="padding",hr.matches=/^padding(?:-(?:left|right|top|bottom))?:./;class ur extends Y{get props(){return{[this.prefix.slice(0,-1)]:this}}get order(){return"margin:"===this.prefix?-1:0}}ur.id="margin",ur.matches=/^margin(-(left|right|top|bottom))?:./;class fr extends Y{}fr.matches=/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!;))/,fr.key=D(Ue,"overflow");class mr extends Y{}mr.matches=/^list-style:(inside|outside)(?!;)/,mr.key=D(gt,lt,at);class pr extends Y{}pr.matches=/^list-style:(none|disc|decimal)(?!;)/,pr.key=D(gt,lt,jt);class xr extends Y{constructor(){super(...arguments),this.order=-1}}xr.key=D(gt,lt);class br extends Y{}br.key=D(Ue,et,ge),br.colorStarts="text-decoration:",br.colorful=!0;class gr extends Y{}gr.matches=/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!;)/,gr.key=D(Ue,et,lt);class yr extends Y{}yr.matches=/^text-decoration:(from-font(?!;)|([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$)/,yr.key=D(Ue,et,"thickness"),yr.unit="em";class kr extends Y{}kr.key=D(Ue,"indent");class vr extends Y{}vr.key=he;class wr extends Y{}wr.key=D(Nt,ge),wr.colorStarts="outline:",wr.colorful=!0;class Or extends Y{}Or.key=D(Nt,St);class jr extends Y{}jr.matches=/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!;)/,jr.key=D(Nt,lt);class Sr extends Y{}Sr.matches=/^outline:([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$/,Sr.key=D(Nt,We);class Nr extends Y{constructor(){super(...arguments),this.order=-1}}Nr.key=Nt;class Rr extends Y{}Rr.matches=/^b(order)?:(collapse|separate)(?!;)/,Rr.key=D(G,"collapse");class Wr extends Y{}Wr.key=D(G,ht);class Ir extends Y{}Ir.key=D(bt,"layout");class $r extends Y{}$r.key=D("accent",ge),$r.colorStarts="accent:",$r.colorful=!0;class zr extends Y{}zr.key="appearance";class Er extends Y{}Er.key=D("caret",ge),Er.matches=/^caret:transparent(?!;)/,Er.colorStarts="caret:",Er.colorful=!0;class Ar extends Y{}Ar.key=D(ye,Oe);class Mr extends Y{get props(){if("m"!==this.prefix.slice(-3,-2))return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:this};{const e=D(ye,J)+"-",t=e+_t,s=e+Zt,i=e+Lt,r=e+Pt;switch(this.prefix.slice(-2,-1)){case Bt:return{[t]:this,[s]:this};case Ut:return{[i]:this,[r]:this};case Ft:return{[t]:this};case Qt:return{[s]:this};case Xt:return{[i]:this};case Yt:return{[r]:this}}}}get order(){return this.prefix===D(ye,J)+":"||this.prefix===D(ye,"m:")?-1:0}}Mr.id="scrollMargin",Mr.matches=/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./;class Vr extends Y{get props(){if("p"!==this.prefix.slice(-3,-2))return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:this};{const e=D(ye,K)+"-",t=e+_t,s=e+Zt,i=e+Lt,r=e+Pt;switch(this.prefix.slice(-2,-1)){case Bt:return{[t]:this,[s]:this};case Ut:return{[i]:this,[r]:this};case Ft:return{[t]:this};case Qt:return{[s]:this};case Xt:return{[i]:this};case Yt:return{[r]:this}}}}get order(){return this.prefix===D(ye,K)+":"||this.prefix===D(ye,"p:")?-1:0}}Vr.id="scrollPadding",Vr.matches=/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./;class Tr extends Y{}Tr.matches=/^scroll-snap:(start|end|center)/,Tr.key=D(ye,Rt,De);class Cr extends Y{}Cr.matches=/^scroll-snap:(normal|always)(?!;)/,Cr.key=D(ye,Rt,"stop");class qr extends Y{}qr.matches=/^scroll-snap:(([xy]|block|inline|both)(;(proximity|mandatory))?)(?!;)/,qr.key=D(ye,Rt,jt);class Lr extends Y{}Lr.key="will-change";class Pr extends Y{}Pr.key=D(Ue,"underline",St);class _r extends Y{get props(){return{[this.prefix.slice(0,-1)]:this}}}_r.matches=/^(?:top|bottom|left|right):./,_r.key="inset",_r.semantics={center:{left:0,right:0,"margin-left":it,"margin-right":it},middle:{top:0,bottom:0,"margin-top":it,"margin-bottom":it}};class Zr extends Y{constructor(){super(...arguments),this.order=-1}}Zr.matches=/^(columns|cols):./,Zr.key=ne,Zr.unit="";class Fr extends Y{}Fr.key=D("white",Ke),Fr.unit="",Fr.semantics={"break-spaces":{"white-space":D(tt,Ke)+"s"}};class Qr extends Y{}Qr.matches=/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!;)/,Qr.key=D(Ue,"orientation");class Xr extends Y{}Xr.key=D("writing",we);class Yr extends Y{}Yr.key="contain";class Br extends Y{}Br.matches=/^\@duration:./,Br.key=D(ke,_e),Br.unit="ms";class Ur extends Y{}Ur.matches=/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!;)/,Ur.key=D(Ue,"rendering");class Dr extends Y{}Dr.key=ve;class Gr extends Y{}Gr.matches=/^t(ext)?:(none|underline|overline|line-through)(?!;)/,Gr.key=D(Ue,et,rt);class Hr extends Y{}Hr.matches=/^grid-col-start:./,Hr.key=D(Me,re,zt),Hr.unit="";class Jr extends Y{}Jr.matches=/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!;).)*$/,Jr.key=D(gt,lt,ue);class Kr extends Y{}Kr.matches=/^shape:((margin|content|border|padding)(?!;)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!;).)*$)/,Kr.key=D(Wt,"outside"),Kr.values={content:D(he,Qe),border:D(G,Qe),padding:D(K,Qe),margin:D(J,Qe)};class en extends Y{}en.matches=/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$/,en.key=D(Wt,J);class tn extends Y{}tn.key=D(Wt,ue,"threshold"),tn.unit="";class sn extends Y{}sn.matches=/^clip:./,sn.key=D(Ye,"path"),sn.values={content:D(he,Qe),border:D(G,Qe),padding:D(K,Qe),margin:D(J,Qe),fill:D(Xe,Qe),stroke:D(fe,Qe),view:D(It,Qe)};class rn extends Y{constructor(){super(...arguments),this.order=-1}}rn.key=Me;class nn extends Y{constructor(){super(...arguments),this.order=-1}}nn.matches=/^f:./,nn.key=ee,nn.unit="",nn.colorful=!0;class an extends Y{}an.key="quotes";class cn extends Y{constructor(){super(...arguments),this.order=-1}}cn.key=D(Me,ie);class ln extends Y{}ln.key=D(Me,ce,zt),ln.unit="";class on extends Y{}on.key=D(Me,ie,$t)+"s";class dn extends Y{}dn.matches=/^grid-template-cols:./,dn.key=D(Me,ie,ne),dn.values={min:D($e,he),max:D(Ie,he)};class hn extends Y{}hn.key=D(Me,ie,le),hn.values={min:D($e,he),max:D(Ie,he)};class un extends Y{constructor(){super(...arguments),this.order=-1}}un.key=D(Me,$t),un.unit="";class fn extends Y{}fn.matches=/^grid-col-end:./,fn.key=D(Me,re,"end"),fn.unit="";class mn extends Y{}mn.key=D(Me,ce,"end"),mn.unit="";class pn extends Y{get props(){return{"mask-image":this,"-webkit-mask-image":this}}}pn.key=D("mask",ue);class xn extends Y{get props(){return{"-webkit-text-fill-color":this}}}xn.id="textFillColor",xn.matches=/^text-fill-color:./,xn.colorStarts="text-fill:",xn.colorful=!0;class bn extends Y{get props(){return{"-webkit-text-stroke":this}}}bn.id="textStroke",bn.matches=/^text-stroke:./;class gn extends Y{get props(){return{"-webkit-text-stroke-width":this}}}gn.id="textStrokeWidth",gn.matches=/^text-stroke(:((thin|medium|thick)(?!;)|\.?\d((?!;).)*$)|-width:.)/;class yn extends Y{get props(){return{"-webkit-text-stroke-color":this}}}yn.id="textStrokeColor",yn.matches=/^text-stroke-color:./,yn.colorStarts="text-stroke:",yn.colorful=!0;class kn extends Y{}kn.key=D(fe,"dasharray");class vn extends Y{}vn.key=D(fe,"dash")+St;class wn extends Y{}wn.key="x",wn.unit="";class On extends Y{}On.key="y",On.unit="";class jn extends Y{}jn.key="cx",jn.unit="";class Sn extends Y{}Sn.key="cy",Sn.unit="";class Nn extends Y{}Nn.key="rx",Nn.unit="";class Rn extends Y{}Rn.key="ry",Rn.unit="";class Wn extends Y{}Wn.key=D(G,ue,"outset");class In extends Y{}In.matches=/^border-image:(?:stretch|repeat|round|space)(?:(?!;).)*$/,In.key=D(G,ue,be);class $n extends Y{}$n.key=D(G,ue,"slice"),$n.unit="";class zn extends Y{}zn.matches=/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!;).)*$/,zn.key=D(G,ue,"source");class En extends Y{}En.matches=/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!;).)*$/,En.key=D(G,ue,We);class An extends Y{}An.key=D(G,ue),An.unit="";class Mn extends Y{get props(){return{}}}Mn.id="group",Mn.matches=/^{/,Mn.unit="";const Vn="undefined"!=typeof window,Tn=[Mn,Vi,Vt,Ct,Ji,Dt,ur,hr,qt,Xi,Qi,Fi,_i,Zi,Yi,Ns,Gt,Ht,Jt,Kt,Yr,vr,es,rs,ns,as,nn,cs,ls,os,ds,br,gr,yr,Gr,hs,Pr,fr,Qr,us,Ur,kr,fs,Zr,Fr,_r,ms,js,Ss,Rs,Ws,Is,$s,zs,Es,As,Ms,Vs,fi,mi,vi,wi,Oi,ji,$i,Mi,Si,Ni,Wi,Ii,xn,gn,yn,bn,Ri,Ir,bs,xs,ps,gs,ws,Os,vs,ks,ys,Ts,Cs,Br,qs,Ls,Ps,_s,Zs,Fs,Xs,Js,Ks,ei,Rr,Wr,ti,Wn,In,$n,zn,En,An,si,ii,ri,ni,ai,ci,li,oi,di,hi,ui,xi,ki,bi,kn,vn,yi,gi,wn,On,jn,Sn,Nn,Rn,Hr,fn,Di,zi,ln,mn,Hi,Ei,sr,ir,rr,on,dn,hn,cn,un,rn,Ai,Ui,Pi,Li,qi,Ci,Ti,Gi,Ki,er,tr,nr,ar,cr,lr,or,dr,mr,pr,Jr,xr,wr,Or,jr,Sr,Nr,$r,zr,Er,Ar,Mr,Vr,Tr,Cr,qr,Lr,Xr,Dr,Kr,en,tn,sn,an,pn],Cn=Tn.get=e=>Tn.find((t=>{var s;return e===t.id||e===(null===(s=t.key)||void 0===s?void 0:s.replace(/-./g,(e=>e[1].toUpperCase())))||e===t.key}));function qn(){if(Vn){const e=new p(document.head);p.root=e,e.observe(document.documentElement)}}Tn.extend=(e,t,s=!0)=>{for(const s in t){const i=Cn(s);if(i){const r=t[s];i.extend(e,r)}}s&&p.refresh()},Y.extend("colors",e.colors,!1),Y.extend("breakpoints",t.breakpoints,!1),p.Styles.push(...Tn);Vn&&(window.initMasterStyles=qn,window.MasterStyles=Tn,window.MasterStylesManual||qn())})(),i})()})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@master/styles"]=t():e["@master/styles"]=t()}(this,(function(){return(()=>{"use strict";var e={955:(e,t,s)=>{s.d(t,{breakpoints:()=>i});const i={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},563:(e,t,s)=>{s.d(t,{colors:()=>i});const i={fade:{10:"131518",20:"24262d",30:"363944",40:"4c515f",50:"63697c",60:"878d9f",70:"a6abb8",80:"c3c6cf",90:"f4f4f6"},gray:{10:"151515",20:"242424",30:"39393b",40:"515153",50:"6a6a6c",60:"8d8d8f",70:"aaaaac",80:"c6c6c8",90:"f4f4f6"},brown:{10:"1c130f",20:"31221b",30:"4b3429",40:"6a4a3a",50:"8a604c",60:"af836e",70:"c4a394",80:"d8c2b8",90:"f8f3f1"},orange:{10:"221205",20:"3a1f08",30:"582f0d",40:"7c4312",50:"a15717",60:"d5731e",70:"e79855",80:"efbd92",90:"fcf1e7"},gold:{10:"1e1400",20:"342300",30:"4e3400",40:"6e4900",50:"906000",60:"c08000",70:"e89a00",80:"ffba30",90:"fff3da"},yellow:{10:"1b1500",20:"2f2500",30:"473800",40:"634f00",50:"806700",60:"ac8a00",70:"d0a700",80:"f0c100",90:"fff5ca"},grass:{10:"101803",20:"1c2a05",30:"2a4008",40:"3c5a0b",50:"4e750e",60:"689c13",70:"7dbc17",80:"92da1a",90:"ebfad4"},green:{10:"011a0b",20:"022d13",30:"03441d",40:"055f28",50:"067b34",60:"08a345",70:"0ac553",80:"0be561",90:"d5fde5"},beryl:{10:"001912",20:"002b1f",30:"00432f",40:"005d41",50:"007954",60:"00a170",70:"00c387",80:"00e19c",90:"c9ffee"},teal:{10:"001918",20:"002b28",30:"00413d",40:"005b55",50:"00776f",60:"009f94",70:"00bfb2",80:"00ddce",90:"c5fffb"},cyan:{10:"00181f",20:"002a35",30:"003f51",40:"005973",50:"007391",60:"0099c1",70:"00b9e9",80:"3dd7ff",90:"dff8ff"},sky:{10:"021726",20:"032841",30:"043c61",40:"065489",50:"086eb3",60:"0b92ee",70:"4db3f7",80:"8ccefa",90:"eaf6fe"},blue:{10:"051338",20:"09205e",30:"0d318d",40:"1344c4",50:"175fe9",60:"538cee",70:"81acf3",80:"a5c7fd",90:"edf4fe"},indigo:{10:"161031",20:"24195e",30:"332592",40:"4835cc",50:"5a5bd5",60:"7d84e8",70:"a1a5ee",80:"bfc2f4",90:"f1f2ff"},violet:{10:"1f0839",20:"310e63",30:"491595",40:"641ed2",50:"7949e5",60:"9e77f5",70:"b89bf9",80:"d0bdfb",90:"f5f1ff"},purple:{10:"220736",20:"390c5b",30:"551287",40:"7719bd",50:"9832e4",60:"b56cec",70:"ca96f1",80:"dcbaf6",90:"f9f0ff"},fuchsia:{10:"2b0720",20:"470b3d",30:"68105f",40:"8e1691",50:"b61cbb",60:"e04ee5",70:"ea86ed",80:"f1b1f3",90:"feefff"},pink:{10:"2d0519",20:"4c082b",30:"720c40",40:"9d1059",50:"ca1473",60:"ee52a3",70:"f388c0",80:"f7b2d6",90:"fff0f8"},crimson:{10:"33020f",20:"500317",30:"780522",40:"a20d35",50:"ce1a4b",60:"ea5b82",70:"f58ba7",80:"ffb1c6",90:"fff1f4"},red:{10:"350001",20:"530001",30:"780506",40:"a60708",50:"d11a1e",60:"eb5f63",70:"fa8b8d",80:"fdb3b5",90:"fff1f1"},black:"000000",white:"ffffff"}}},t={};function s(i){var r=t[i];if(void 0!==r)return r.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,s),n.exports}s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{s.r(i),s.d(i,{Style:()=>X,StyleSheet:()=>p,Styles:()=>Vn,breakpoints:()=>t.breakpoints,colors:()=>e.colors,init:()=>Cn,sheets:()=>Q});var e=s(563),t=s(955);function r(e,t){return e+":"+(t.unit?t.value+t.unit:t.value)+(t.important?"!important":"")}const n=/^([+-.]?\d+(\.?\d+)?)(.*)?/;function a(e,t,s){let i="",r="",a="";if("number"==typeof e)i=e,r=t||"";else{if(s){const[t,n]=e.split("/");for(const e in s)if(t.startsWith(e)){const s=t[e.length];if(!s||"-"===s)return i="rgb(var(--"+t+")"+(n?"/"+n:"")+")",{value:i,unit:r,unitToken:a}}}if(t){const s=e.match(n);if(s){if(e.includes("/")){const t=e.split("/");return{value:+t[0]/+t[1]*100+"%",unit:r,unitToken:a}}return i=+s[1],r=a=s[3]||"",r||("rem"!==t&&"em"!==t||(i/=16),r=t||""),{value:i,unit:r,unitToken:a}}}i=(-1===e.indexOf("calc(")?e:function(e){const t=e=>"+"===e||"-"===e||"*"===e||"/"===e;let s,i="",r="",n=!1;function a(){s=null,r=""}for(let c=0;c<e.length;c++){const l=e[c];if("("===l||")"===l)n=")"===l,i+=r+l,a();else if(","===l)i+=r+l+" ",a();else{switch(s){case 1:break;case 2:if(t(l)){i+=r+" "+l+" ",a();continue}break;default:n&&(r+=" "),isNaN(+l)?t(l)||(s=1):s=2}r+=l}}return r&&(i+=r),i}(e)).replace(/\$\(((\w|-)+)\)/g,"var(--$1)")}return{value:i,unit:r,unitToken:a}}const c=[":disabled",":active",":focus",":hover"],l=[",",".","#","[","!","*",">","+","~",":","@"],o="undefined"!=typeof document;let d;o&&(d=document.createElement("style"),d.id="master-styles");const h="max-width",u="min-width",f="undefined"!=typeof window,m=f?window.MutationObserver:Object;class p extends m{constructor(e){if(super((e=>{const t={},s=[],i=[],r=[],n=(e,t,s)=>{for(let i=0;i<e.length;i++){const r=e[i];if(r.classList&&!s.includes(r)){s.push(r),r.classList.forEach((e=>{t?c(e):a(e)}));const e=r.children;e.length&&n(e,t,s)}}},a=e=>{e in t?t[e]++:t[e]=1},c=e=>{e in t?t[e]--:t[e]=-1};for(let t=0;t<e.length;t++){const a=e[t],{addedNodes:c,removedNodes:l,type:o,target:d,oldValue:h}=a;if("attributes"===o){if(d.className===h||s.find((e=>e.target===d)))continue;s.push(a)}else c.length&&n(c,!1,i),l.length&&n(l,!0,r)}if(s.length||Object.keys(t).length){for(const{oldValue:e,target:t}of s){if(i.includes(t)||r.includes(t))continue;const s=e?e.split(" "):[],n=t.classList;n.length&&n.forEach((e=>{s.includes(e)||a(e)}));for(const e of s)n.contains(e)||c(e)}for(const e in t){const s=t[e],i=(this.countOfName[e]||0)+s;0===i?(delete this.countOfName[e],this.delete(e)):(e in this.countOfName||this.findAndInsert(e),this.countOfName[e]=i)}}})),this.container=e,this.styles=[],this.styleOfName={},this.countOfName={},o){if(e){const t=e.querySelector('[id="master-styles"]');if(t){this.element=t;const e=(t,s)=>{if(t.selectorText){const e=t.selectorText.split(", ")[0].split(" ");let i;for(let t=e.length-1;t>=0;t--){const s=e[t];if("."===s[0]){i=s.slice(1);break}}let r="";for(let e=0;e<i.length;e++){const t=i[e],s=i[e+1];if("\\"===t){if(e++,"\\"!==s){r+=s;continue}}else if(l.includes(t))break;r+=t}if(!(r in this.styleOfName)){const e=p.findAndNew(r);e&&(e.cssRule=null!=s?s:t,this.styles.push(e),this.styleOfName[e.name]=e)}}else if(t.cssRules)for(let i=0;i<t.cssRules.length;i++)e(t.cssRules[i],null!=s?s:t)};e(t.sheet,void 0)}else this.element=d.cloneNode(),null==e||e.prepend(this.element)}Q.push(this)}}observe(e,t={subtree:!0,childList:!0}){return t.subtree&&e.querySelectorAll("[class]").forEach((e=>{e.classList.forEach((e=>{e in this.countOfName?this.countOfName[e]++:(this.countOfName[e]=1,this.findAndInsert(e))}))})),super.observe(e,Object.assign(Object.assign({},t),{attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})),this}disconnect(){super.disconnect(),this.styleOfName={},this.countOfName={},this.styles.length=0;const e=this.element.sheet;for(let t=e.cssRules.length-1;t>=0;t--)e.deleteRule(t)}static findAndNew(e){for(const t of this.Styles){const s=t.match(e);if(s)return new t(e,s)}}static find(e){for(const t of this.Styles){if(t.match(e))return t}}static refresh(){for(const e of Q)e.refresh()}refresh(){if(!this.element)return;const e=d.cloneNode();this.element.replaceWith(e),this.element=e,this.styles.length=0,this.styleOfName={};for(const e in this.countOfName)this.findAndInsert(e)}destroy(){this.element.remove(),this.disconnect(),Q.splice(Q.indexOf(this),1)}insert(e){if(this.styleOfName[e.name])return;const t=e.text;let s;const i=this.styles.length-1,r=e.media,n=e.order,a=e.prioritySelectorIndex,c=e.hasWhere,l=(e,t,s,i)=>{let r,l,o=0;t&&(o=e.findIndex(t)),s&&(l=e.findIndex(s)),-1===o&&(o=e.length),void 0!==l&&-1!==l||(l=e.length),r=e.slice(o,l);for(let e=0;e<r.length;e++){const t=r[e];if(!(-1===t.prioritySelectorIndex||i&&i(t))&&(t.prioritySelectorIndex<a||t.prioritySelectorIndex===a&&(c&&!t.hasWhere||t.order>=n)))return o+e}return o+r.length};if(r){const e=this.styles.findIndex((e=>e.media));if(-1!==e){const t=r.features[h],o=r.features[u];if(t&&o){const r=t.value-o.value;for(let t=i;t>=e;t--){s=t;const i=this.styles[t],n=i.media,o=n.features[h],d=n.features[u];if(!o||!d){s++;break}const f=o.value-d.value;if(f===r){if(c!==i.hasWhere)continue;if(-1!==a){const i=[this.styles[t]];for(let s=t-1;s>=e;s--){const e=this.styles[s];if(e.hasWhere!==c)break;const t=e.media,r=t.features[h],n=t.features[u];if(!r||!n||r.value-n.value!==f)break;i.unshift(this.styles[s])}s=l(this.styles,(e=>e.media&&-1!==e.prioritySelectorIndex&&e.media.features[u]&&e.media.features[h]))}break}if(f>r)break}}else if(o)for(let t=e;t<=i;t++){s=t;const e=this.styles[t],r=e.media,d=r.features[h],f=r.features[u];if(d){if(f)break;continue}const m=null==f?void 0:f.value;if(m===o.value){if(!c&&e.hasWhere){s++;continue}if(-1!==a)s=l(this.styles,(e=>e.media),(e=>e.media&&-1!==e.prioritySelectorIndex&&e.media.features[u]&&e.media.features[h]),(e=>!e.media.features[u]&&!e.media.features[h]));else for(let e=t;e<=i;e++){const t=this.styles[e],i=t.media,r=i.features[u];if(!i.features[h]){if(t.hasWhere!==c||r.value!==m||t.order>=n)break;s=e+1}}break}if(m>o.value)break;s++}else if(t)for(let r=i;r>=e;r--){s=r;const i=this.styles[r],o=i.media,d=o.features[h];if(o.features[u])continue;const f=null==d?void 0:d.value;if(!f||f>t.value){s++;break}if(f===t.value){if(c&&!i.hasWhere)continue;if(-1!==a)s=l(this.styles,(e=>e.media),(e=>e.media&&-1!==e.prioritySelectorIndex&&e.media.features[u]&&e.media.features[h]),(e=>!e.media.features[u]&&!e.media.features[h]));else{const t=[this.styles[r]];for(let s=r-1;s>=e;s--){const e=this.styles[s],i=e.media,r=i.features[u],n=i.features[h];if(!(r||n&&n.value===f&&e.hasWhere===c))break;t.unshift(e)}for(let e=0;e<t.length;e++){const i=t[e];if(!i.media.features[u]){if(i.order>=n)break;s=r-t.length+2+e}}}break}}}if(void 0===s)if(-1===e)s=i+1;else if(-1!==a)s=e+l(this.styles.slice(e),void 0,(e=>e.media.features[h]||e.media.features[u]));else if(c){let t=e;for(;t<this.styles.length;t++){const e=this.styles[t];if(-1!==e.prioritySelectorIndex||!e.hasWhere||e.order>=n){s=t;break}}void 0===s&&(s=t)}else for(let t=e;t<=i;t++){s=t;const e=this.styles[t],i=e.media;if(-1!==e.prioritySelectorIndex||i.features[h]||i.features[u])break;if(e.hasWhere)s++;else if(e.order>=n)break}}else if(-1===a)if(c)s=this.styles.findIndex((e=>!e.hasWhere||e.media||-1!==e.prioritySelectorIndex||e.order>=n)),-1===s&&(s=i+1);else{let e=0;for(;e<this.styles.length;e++){const t=this.styles[e];if(t.media||!t.hasWhere&&(t.order>=n||-1!==t.prioritySelectorIndex)){s=e;break}}void 0===s&&(s=e)}else s=l(this.styles,void 0,(e=>e.media));try{if(this.element){const i=this.element.sheet;i.insertRule(t,s),e.cssRule=i.cssRules[s]}this.styles.splice(s,0,e),this.styleOfName[e.name]=e}catch(e){}}delete(e){const t=this.element.sheet,s=e=>{const s=this.styleOfName[e];if(null==s?void 0:s.cssRule)for(let e=0;e<t.cssRules.length;e++){t.cssRules[e]===s.cssRule&&(t.deleteRule(e),this.styles.splice(e,1),delete this.styleOfName[s.name])}};if(e in X.classes)for(const t of X.classes[e])t in this.countOfName||s(t);else s(e)}findAndInsert(e){const t=e=>{const t=p.findAndNew(e);t&&this.insert(t)};if(e in X.classes)for(const s of X.classes[e])t(s);else t(e)}}function x(e){const t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function b(e,t,s){return((1<<24)+(e<<16)+(t<<8)+s).toString(16).slice(1)}p.Styles=[],f&&(window.MasterStyleSheet=p);const g="matches",y="semantics",k="symbol",v="max-width",w="min-width",O="motion",j="reduce",S="reduced-motion",N="::scrollbar",R="::slider-thumb",W="::slider-runnable-track",I="::search",$="::meter",z="::resizer",E="::progress",A="px",M=["!","*",">","+","~",":","[","@","_"],V=[...M,void 0,"."],T={"(":")","'":"'"},C=new RegExp(N,"g"),q=new RegExp(I,"g"),L=new RegExp($,"g"),P=new RegExp(W,"g"),_=new RegExp(R,"g"),Z=new RegExp(z,"g"),F=new RegExp(E,"g"),Q=[];class X{constructor(e,t){this.name=e,this.matching=t,this.at={},this.prioritySelectorIndex=-1;const s=this.constructor;if(void 0===t&&!(t=s.match(e)))return;let i,n,{semantics:l,unit:o,colors:d,key:h,values:u,fixedSelector:f,colorful:m,breakpoints:p,mediaQueries:x}=s,b=e;if(m||(d=null),t.origin===y)i=t.value,n=b.slice(t.value.length),this.value=l[t.value];else{if(t.origin===g){const e=b.indexOf(":");this.prefix=b.slice(0,e+1),this.prefix.includes("(")?(this.prefix=void 0,i=b):i=b.slice(e+1)}else t.origin===k&&(this.symbol=b[0],i=b.slice(1));let e,s="",r=[],c=0;!function t(n,l,h=""){let u;for(n&&(")"===n&&"$"===s.slice(-1)&&(u=s.length-1),s+=i[c++]);c<i.length;c++){const f=i[c];if(f===n){s+=f,void 0!==u&&(s=s.slice(0,u)+s.slice(u).replace(/\$\((.*)\)/,"var(--$1)")),l||("'"===n?r.push(s):(e=a(s,o,d),r.push(e.value+e.unit)),h="",s="");break}if(f in T)t(T[f],void 0===l?0:l+1,h);else if(";"!==f||"'"===n&&"path"!==h){if(!n){if("."===f){if(isNaN(+i[c+1]))break;"-"===i[c-1]&&(s+="0")}else{if(","===f){e=a(s,o,d),r.push(e.value+e.unit,","),s="";continue}if("#"===f&&(s||r.length&&";"!==i[c-1])||M.includes(f))break}h+=f}s+=f}else n?s+=" ":(e=a(s,o,d),r.push(e.value+e.unit),s="")}}(),s&&(e=a(s,o,d),r.push(e.value+e.unit)),n=i.slice(c),1===r.length?e?(this.value=e.value,this.unit=e.unit):(this.value=r[0],this.unit=""):this.value=r.join(" ")}n.includes(N)&&(n=n.replace(C,"::-webkit-scrollbar")),n.includes(I)&&(n=n.replace(q,"::-webkit-search")),n.includes(R)&&(n=n.replace(_,"::-webkit-slider-thumb")),n.includes(W)&&(n=n.replace(P,"::-webkit-slider-runnable-track")),n.includes($)&&(n=n.replace(L,"::-webkit-meter")),n.includes(z)&&(n=n.replace(Z,"::-webkit-resizer")),n.includes(E)&&(n=n.replace(F,"::-webkit-progress")),this.parseValue&&(this.value=this.parseValue),u&&this.value in u&&(this.value=u[this.value]),"!"===n[0]&&(this.important=!0,n=n.slice(1));const V=n.split("@");let Q=V[0].replace(/\_/g," ");if(Q){this.hasWhere=Q.includes(":where(");for(let e=0;e<c.length;e++)if(Q.includes(c[e])){this.prioritySelectorIndex=e;break}}this.selector=Q;for(let e=1;e<V.length;e++){const t=V[e];if(t)if(t.startsWith("dark")||t.startsWith("light"))this.colorScheme=t;else if("rtl"===t||"ltr"===t)this.direction=t;else{let e,s;const i=t.indexOf("_");if(-1!==i)e=t.slice(0,i),s=t.slice(i);else{const i=t.indexOf("(");-1!==i&&(e=t.slice(0,i),s=t.slice(i))}if(!e){e="media";const i=[];this.media={token:t,features:{}};const r=t.split("&");for(const e of r)if("all"===e||"print"===e||"screen"===e||"speech"===e)this.media.type=e;else if("🖨"===e)this.media.type="print";else if("landscape"===e||"portrait"===e)i.push("(orientation:"+e+")");else if(e===O||e===S)i.push("(prefers-reduced-motion:"+(e===O?"no-preference":j)+")");else if(e in x)i.push(x[e]);else{const t={token:e};let s="",r="",n=0;switch(e.startsWith("<=")?(r="<=",s=v):e.startsWith(">=")||p[e]?(r=">=",s=w):e.startsWith(">")?(r=">",s=w,n=.02):e.startsWith("<")&&(r="<",s=v,n=-.02),s){case v:case w:const c=r?e.replace(r,""):e,l=p[c];l?Object.assign(t,a(l,A)):Object.assign(t,a(c,A)),t.unit===A&&(t.value+=n),this.media.features[s]=t,i.push("("+s+":"+(t.value+t.unit)+")")}}s="",this.media.type&&(s=this.media.type),i.length&&(s+=(s?" and ":"")+i.join(" and "))}s&&(this.at[e]=s.replace(/\_/g," "))}}let Y="";this.colorScheme&&(Y+="."+this.colorScheme+" "),this.direction&&(Y+="[dir="+this.direction+"] ");const B=(Q?Q+" ":"")+(f||"");this.text=Y+"."+CSS.escape(this.name)+B+(this.name in X.relations?X.relations[this.name].map((e=>", "+Y+"."+e+B)).join(""):"")+"{"+("object"==typeof this.value?Object.keys(this.value).map((e=>r(e,Object.assign(Object.assign({},this),{unit:"",value:this.value[e]})))).join(";"):this.props?Object.keys(this.props).map((e=>r(e,this.props[e]))).join(";"):r(h,this))+"}";for(const e of Object.keys(this.at).sort(((e,t)=>"supports"===t?-1:1)))this.text="@"+e+" "+this.at[e]+"{"+this.text+"}";void 0===this.order&&(this.order=0)}static match(e){if(this.semantics)for(const t in this.semantics)if(e===t||e.startsWith(t)&&V.includes(e[t.length]))return{origin:y,value:t};return this.matches&&this.matches.test(e)||this.colorStarts&&(e.match("^"+this.colorStarts+"(#|(rgb|hsl)\\(.*\\))((?!;).)*$")||this.colorNames.length&&e.match("^"+this.colorStarts+"("+this.colorNames.join("|")+")")&&-1===e.indexOf(";"))?{origin:g}:this.symbol&&e.startsWith(this.symbol)?{origin:k}:this.key&&e.startsWith(this.key+":")?{origin:g}:void 0}static extend(e,t,s=!0){if(!t)return;const i=(e,s,i)=>{var r;for(const n in t){const a=t[n];null==a?n in e&&(null==i||i(n),delete e[n]):e[n]=null!==(r=null==s?void 0:s(n,a))&&void 0!==r?r:a}};switch(e){case"classes":i(this.classes,((e,t)=>{if(e in this.classes)for(const t in this.relations){const s=this.relations[t],i=s.indexOf(e);-1!==i&&(s.length>1?s.splice(i,1):delete this.relations[t])}const s=Array.isArray(t)?t:t.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(const t of s)t in this.relations?this.relations[t].push(e):this.relations[t]=[e];return s}),(e=>{for(const t of this.classes[e]){const s=this.relations[t];s.length>1?s.splice(s.indexOf(e),1):delete this.relations[t]}}));break;case"colors":i(this.colors,((e,t)=>{const s=this.colorNames.indexOf(e);-1!==s?null==B||B.deleteRule(s):this.colorNames.push(e);const i={};"string"==typeof t&&(t={"":t});const r=""in t;r&&(i[""]=x(t[""]).join(" "));let n=!1;for(const e in t)if(e&&+e>=100){n=!0;break}if(n)for(const e in t)i[e]=x(t[e]).join(" ");else if(!r||Object.keys(t).length>1){let e,s,r=0,n="0"in t?x(t[0]):[0,0,0];const a=[],c=()=>{const c=e-r,l=s.map(((e,t)=>(e-n[t])/c));for(const e of a){const s=e-r,a=n.map(((e,t)=>Math.round(e+l[t]*s)));i[e]=a.join(" "),t[e]=b.call(this,...a)}};for(let l=1;l<100;l++){const o=l%2==0;l in t?(a.length?(e=l,s=x(t[l]),c(),a.length=0,n=s):n=x(t[l]),r=l,o&&(i[l]=n.join(" "))):o&&a.push(l)}a.length&&(e=100,s="100"in t?x(t[100]):[255,255,255],c())}if(!r){const e=t[n?"500":"50"];t[""]=e,i[""]=x(e).join(" ")}return null==B||B.insertRule(function(e,t){let s=":root{";for(const i in t)s+="--"+e+(i?"-"+i:"")+":"+t[i]+";";return s+="}",s}(e,i),-1===s?Object.keys(this.colors).length:s),this.rgbColors[e]=i,t}),(e=>{const t=this.colorNames.indexOf(e);-1!==t&&this.colorNames.splice(t,1),null==B||B.deleteRule(t),delete this.rgbColors[e]}));break;default:let t=this[e];t||(t=this[e]={}),i(t)}s&&p.refresh()}}let Y,B;if(X.unit="rem",X.rgbColors={},X.mediaQueries={},X.sheets=Q,X.colors={},X.classes={},X.colorNames=[],X.relations={},"undefined"!=typeof window&&(window.MasterStyle=X),"undefined"!=typeof document){const e=document.head.querySelector('[id="master-colors"]');if(e){const t=document.head.querySelector('[name="master:colors"]');if(t&&t.content){Y=e;const s={},i=t.content.split(",");for(let e=0;e<Y.sheet.cssRules.length;e++){const t=Y.sheet.cssRules[e].cssText.slice(8,-1).split(";").slice(0,-1);if(t.length){const r=i[e],n=r.length+2,a={};for(const e of t){let[t,s]=e.split(":");t=t.trim().slice(n),t&&(t=t.slice(1)),a[t]=b.call(void 0,...s.split(" ").map((e=>+e)))}s[r]=a}}X.extend("colors",s),B=Y.sheet}}Y||(Y=document.createElement("style"),Y.id="master-colors",document.head.prepend(Y),B=Y.sheet)}const U=(...e)=>e.join("-"),D="border",G="radius",H="margin",J="padding",K="font",ee=",",te="flow",se="template",ie="column",re="columns",ne="gap",ae="row",ce="rows",le="shadow",oe="user",de="content",he="image",ue="stroke",fe="filter",me="blend",pe="background",xe="repeat",be="color",ge="scroll",ye="animation",ke="direction",ve="mode",we="behavior",Oe=U("overscroll",we),je="y",Se="x",Ne="height",Re="width",We="max",Ie="min",$e="block",ze="inline",Ee="flex",Ae="grid",Me="transition",Ve="origin",Te="delay",Ce="rotate",qe="deg",Le="timing-function",Pe="duration",_e="display",Ze="hidden",Fe="box",Qe="fill",Xe="clip",Ye="none",Be="text",Ue="align",De="transform",Ge="vertical",He="word",Je="space",Ke="decoration",et="break",tt="size",st="auto",it="line",rt="object",nt="position",at="rem",ct="style",lt="smoothing",ot="antialiased",dt="spacing",ht=U("letter",dt),ut=U(We,Re),ft=U(Ie,Re),mt=U(We,Ne),pt=U(Ie,Ne),xt="table",bt="list",gt="span",yt="justify",kt="items",vt="self",wt="place",Ot="type",jt="offset",St="outline",Nt="snap",Rt="shape",Wt="view",It="area",$t="start",zt="blur",Et="drop",At={full:"100%",fit:U("fit",de),max:U(We,de),min:U(Ie,de)};class Mt extends X{}Mt.matches=/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|extrabold|heavy)(?!;)/,Mt.key=U(K,"weight"),Mt.unit="",Mt.values={thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900};const Vt="var(--font-";class Tt extends X{}Tt.matches=/^f(ont)?:(mono|sans|serif)(?!;)/,Tt.key=U(K,"family"),Tt.values={mono:Vt+"mono)",sans:Vt+"sans)",serif:Vt+"serif)"};class Ct extends X{}Ct.matches=/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$/,Ct.key=U(K,tt);const qt="top",Lt="bottom",Pt="left",_t="right",Zt="l",Ft="r",Qt="t",Xt="b",Yt="x",Bt="y";class Ut extends X{get props(){const e="m"===this.prefix[0]?H:J,t=U(e,Pt),s=U(e,_t),i=U(e,qt),r=U(e,Lt);switch(this.prefix[1]){case Yt:return{[t]:this,[s]:this};case Bt:return{[i]:this,[r]:this};case Zt:return{[t]:this};case Ft:return{[s]:this};case Qt:return{[i]:this};case Xt:return{[r]:this};default:return{[e]:this}}}get order(){return"p:"===this.prefix||"m:"===this.prefix?-1:0}}Ut.id="spacing",Ut.matches=/^[pm][xytblr]?:./;class Dt extends X{}Dt.matches=/^w:./,Dt.key=Re,Dt.values=At;class Gt extends X{}Gt.matches=/^h:./,Gt.key=Ne,Gt.values=At;class Ht extends X{}Ht.matches=/^min-w:./,Ht.key=ft,Ht.values=At;class Jt extends X{}Jt.matches=/^min-h:./,Jt.key=pt,Jt.values=At;class Kt extends X{}Kt.matches=/^ls:./,Kt.key=ht,Kt.unit="em";const es=U("subpixel",ot),ts=U("-webkit-font",lt),ss=U("-moz-osxfont",lt);class is extends X{get props(){const e={};switch(this.value){case es:e[ts]=e[ss]=Object.assign(Object.assign({},this),{value:st});break;case ot:e[ts]=Object.assign(Object.assign({},this),{value:ot}),e[ss]=Object.assign(Object.assign({},this),{value:"grayscale"})}return e}}is.id="fontSmoothing",is.matches=/^f(ont)?:(antialiased|subpixel-antialiased)(?!;)/,is.unit="";class rs extends X{}rs.matches=/^f(ont)?:(normal|italic|oblique)(?!;)/,rs.key=U(K,ct),rs.unit="deg";class ns extends X{}ns.matches=/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!;)/,ns.key=U(K,"variant","numeric");class as extends X{}as.matches=/^lh:./,as.key=U(it,Ne),as.unit="";class cs extends X{}cs.matches=/^(object|obj):(contain|cover|fill|scale-down)/,cs.key=U(rt,"fit");class ls extends X{}ls.matches=/^(object|obj):(top|bottom|right|left|center)/,ls.key=U(rt,nt);class os extends X{}os.matches=/^t(ext)?:(justify|center|left|right|start|end)(?!;)/,os.key=U(Be,Ue);class ds extends X{constructor(){super(...arguments),this.order=-1}}ds.matches=/^t(ext)?:(underline|line-through|overline)/,ds.key=U(Be,Ke),ds.colorful=!0;class hs extends X{}hs.matches=/^t(ext)?:(uppercase|lowercase|capitalize)(?!;)/,hs.key=U(Be,De);class us extends X{}us.matches=/^v:./,us.key=U(Ge,Ue);class fs extends X{get props(){return{overflow:Object.assign(Object.assign({},this),{value:Ze}),display:Object.assign(Object.assign({},this),{value:"-webkit-box"}),"overflow-wrap":Object.assign(Object.assign({},this),{value:U(et,He)}),"text-overflow":Object.assign(Object.assign({},this),{value:"ellipsis"}),"-webkit-box-orient":Object.assign(Object.assign({},this),{value:Ge}),"-webkit-line-clamp":this}}}fs.id="lines",fs.matches=/^lines:./,fs.unit="";class ms extends X{}ms.matches=/^transform:((top|bottom|right|left|center)|\d)/,ms.key=U(De,Ve),ms.unit="px";class ps extends X{}ps.matches=/^transform:(flat|preserve-3d)(?!;)/,ps.key=U(De,ct);class xs extends X{}xs.matches=/^transform:(content|border|fill|stroke|view)(?!;)/,xs.key=U(De,Fe),xs.values={content:U(de,Fe),border:U(D,Fe),fill:U(Qe,Fe),stroke:U(ue,Fe),view:U(Wt,Fe)};class bs extends X{get parseValue(){return this.value.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,((e,t,s,i)=>{let r,n;switch(t){case"translate":r=at;break;case"skew":r=qe;break;case Ce:"3d"===s&&(n=!0),r=qe;break;default:return e}const a=i.split(",");return e.replace(i,a.map(((e,t)=>{if(n&&a.length-1!==t)return e;return Number.isNaN(+e)?e:e/(r===at?16:1)+r})).join(","))}))}}bs.matches=/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/,bs.key=De,bs.unit="";class gs extends X{constructor(){super(...arguments),this.order=-1}}gs.symbol="~",gs.key=Me;class ys extends X{}ys.matches=/^~delay:./,ys.key=U(Me,Te),ys.unit="ms";class ks extends X{}ks.matches=/^~duration:./,ks.key=U(Me,Pe),ks.unit="ms";class vs extends X{}vs.matches=/^~property:./,vs.key=U(Me,"property");class ws extends X{}ws.matches=/^~easing:./,ws.key=U(Me,Le);class Os extends X{}Os.matches=/^max-h:./,Os.key=mt,Os.values=At;class js extends X{}js.matches=/^max-w:./,js.key=ut,js.values=At;class Ss extends X{}Ss.matches=/^d:./,Ss.key=_e,Ss.semantics={hidden:Ye,hide:Ye,block:$e,table:xt,flex:Ee,grid:Ae,contents:"contents","inline-block":U(ze,$e),"inline-flex":U(ze,Ee),"inline-grid":U(ze,Ae),"inline-table":U(ze,xt)};class Ns extends X{}Ns.matches=/^box:(content|border)(?!;)/,Ns.key=U(Fe,"sizing"),Ns.values={content:U(de,Fe),border:U(D,Fe)};class Rs extends X{}Rs.key="opacity",Rs.unit="";class Ws extends X{}Ws.key="visibility",Ws.semantics={visible:"visible",invisible:Ze};class Is extends X{}Is.key="clear";class $s extends X{}$s.key="float";class zs extends X{}zs.key="isolation",zs.semantics={isolate:"isolate"};class Es extends X{get props(){switch(this.prefix.slice(-2,-1)){case Se:return{"overflow-x":this};case je:return{"overflow-y":this};default:return{overflow:this}}}get order(){switch(this.prefix.slice(-2,-1)){case Se:case je:return 0;default:return-1}}}Es.id="overflow",Es.matches=/^(overflow|ovf)(-x|-y)?:./;class As extends X{get props(){switch(this.prefix.slice(-2,-1)){case Se:return{[U(Oe,Se)]:this};case je:return{[U(Oe,je)]:this};default:return{[Oe]:this}}}}As.id="overscrollBehavior",As.matches=/^overscroll-behavior(?:-[xy])?:/;class Ms extends X{}Ms.matches=/^z:./,Ms.key="z-index",Ms.unit="";class Vs extends X{}Vs.matches=/^\@delay:./,Vs.key=U(ye,Te),Vs.unit="ms";class Ts extends X{}Ts.matches=/^\@direction:./,Ts.key=U(ye,ke);class Cs extends X{}Cs.matches=/^\@fill-mode:./,Cs.key=U(ye,Qe,ve);class qs extends X{}qs.matches=/^\@iteration-count:./,qs.key=U(ye,"iteration","count"),qs.unit="";class Ls extends X{}Ls.matches=/^\@name:./,Ls.key=U(ye,"name");class Ps extends X{}Ps.matches=/^\@play-state:./,Ps.key=U(ye,"play-state");class _s extends X{}_s.matches=/^\@easing:./,_s.key=U(ye,Le);class Zs extends X{constructor(){super(...arguments),this.order=-1}}Zs.symbol="@",Zs.key=ye,Zs.unit="";function Fs(e,t,s=""){s&&(s="-"+s);const i="border-left"+s,r="border-right"+s,n="border-top"+s,a="border-bottom"+s;switch(/^b(order)?-?(.)?/.exec(e)[2]){case Yt:return{[i]:t,[r]:t};case Bt:return{[n]:t,[a]:t};case Zt:return{[i]:t};case Ft:return{[r]:t};case Qt:return{[n]:t};case Xt:return{[a]:t};default:return{[D+s]:t}}}class Qs extends X{get props(){return Fs(this.prefix,this,be)}get order(){return this.prefix===U(D,be)+":"||"b:"===this.prefix||"border:"===this.prefix?-1:0}}Qs.id="borderColor",Qs.matches=/^border(-(left|right|top|bottom))?-color:./,Qs.colorStarts="b([xytblr]|(order(-(left|right|top|bottom))?))?:",Qs.colorful=!0;const Xs=U(D,qt,Pt,G),Ys=U(D,qt,_t,G),Bs=U(D,Lt,Pt,G),Us=U(D,Lt,_t,G),Ds=U(D,G),Gs=[Xs,Ys,Bs,Us];class Hs extends X{get props(){var e;if(this.prefix){let e="";const t=this.prefix.split("-");if(t.length>1)for(let s=1;s<t.length-1;s++)e+=t[s][0];else e=this.prefix.slice(1,-1);switch(e){case Qt:return{[Xs]:this,[Ys]:this};case"tl":case"lt":return{[Xs]:this};case"rt":case"tr":return{[Ys]:this};case Xt:return{[Bs]:this,[Us]:this};case"bl":case"lb":return{[Bs]:this};case"br":case"rb":return{[Us]:this};case Zt:return{[Xs]:this,[Bs]:this};case Ft:return{[Ys]:this,[Us]:this};default:return{[Ds]:this}}}const t=null===(e=this.prefix)||void 0===e?void 0:e.slice(0,-1);return{[Gs.includes(t)?t:Ds]:this}}get order(){return this.prefix===U(D,G)+":"||"r:"===this.prefix?-1:0}}Hs.id="borderRadius",Hs.matches=/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/,Hs.semantics={rounded:"1e9em",round:"50%"};class Js extends X{get props(){return Fs(this.prefix,this,ct)}get order(){return this.prefix===U(D,ct)+":"||"b:"===this.prefix||"border:"===this.prefix?-1:0}}Js.id="borderStyle",Js.matches=/^(border(-(left|right|top|bottom))?-style:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!;))/;class Ks extends X{get props(){return Fs(this.prefix,this,Re)}get order(){return this.prefix===U(D,Re)+":"||"b:"===this.prefix||"border:"===this.prefix?-1:0}}Ks.id="borderWidth",Ks.matches=/^(border(-(left|right|top|bottom))?-width:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(([0-9]|(max|min|calc|clamp)\(.*\))|(max|min|calc|clamp)\(.*\))((?!;).)*$)/;class ei extends X{get props(){return Fs(this.prefix,this)}get order(){return"border:"===this.prefix||"b:"===this.prefix?-2:-1}}ei.id="border",ei.matches=/^b([xytblr]?|order(-(left|right|top|bottom))?):./,ei.colorful=!0;class ti extends X{}ti.matches=/^(bg|background):(fixed|local|scroll)(?!;)/,ti.key=U(pe,"attachment");class si extends X{}si.key=U(pe,me,ve);class ii extends X{get props(){return{"-webkit-background-clip":this,"background-clip":this}}}ii.matches=/^(bg|background):text(?!;)/,ii.key=U(pe,Xe);class ri extends X{}ri.matches=/^(bg|background):transparent(?!;)/,ri.colorStarts="(bg|background):",ri.key=U(pe,be),ri.unit="",ri.colorful=!0;class ni extends X{}ni.matches=/^(bg|background):(content|border|padding)(?!;)/,ni.key=U(pe,Ve),ni.values={content:U(de,Fe),border:U(D,Fe),padding:U(J,Fe)};class ai extends X{}ai.matches=/^(bg|background):(top|bottom|right|left|center)(?!;)/,ai.key=U(pe,nt),ai.unit="px";class ci extends X{}ci.matches=/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/,ci.key=U(pe,xe);class li extends X{}li.matches=/^(bg|background):((auto|cover|contain)(?!;)|\.?\d((?!;).)*$)/,li.key=U(pe,tt);class oi extends X{}oi.matches=/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!;).)*$/,oi.key=U(pe,he);class di extends X{constructor(){super(...arguments),this.order=-1}}di.matches=/^bg:./,di.key=pe,di.colorful=!0;class hi extends X{}hi.matches=/^blend:./,hi.key=U("mix",me,ve);class ui extends X{}ui.key=nt,ui.values={abs:"absolute",rel:"relative"},ui.semantics={static:"static",fixed:"fixed",abs:"absolute",rel:"relative",sticky:"sticky"};class fi extends X{get props(){const e=this.prefix.slice(0,-1);switch(e){case qt:case Pt:case _t:case Lt:return{[e]:this};case"center":return{left:this,right:this,"margin-left":Object.assign(Object.assign({},this),{unit:""}),"margin-right":Object.assign(Object.assign({},this),{unit:""})};case"middle":return{top:this,bottom:this,"margin-top":Object.assign(Object.assign({},this),{unit:""}),"margin-bottom":Object.assign(Object.assign({},this),{unit:""})}}}}function mi(e,t){let s="",i=0;return function r(n,a){let c="";const l=a?t(a):"",o=()=>{c&&(s+=!l||Number.isNaN(+c)?c:+c/(l===at?16:1)+l,c="")};for(;i<e.length;i++){const t=e[i];if(t===n&&("'"!==n||")"===e[i+1])){o(),s+=t;break}","===t||" "===t?(o(),s+=t):c||"'"!==t?c&&"("===t?(s+=c+t,i++,r(")",c),c=""):c+=t:(s+=t,i++,r(t),c="")}o()}(),s}fi.matches=/^(top|left|right|bottom|center|middle):./;class pi extends X{get props(){return{"backdrop-filter":this,"-webkit-backdrop-filter":this}}get parseValue(){return mi(this.value,(e=>{switch(e){case zt:case U(Et,le):return at;case U("hue",Ce):return qe}return""}))}}pi.matches=/^bd:./,pi.key=U("backdrop",fe);class xi extends X{}xi.key=Qe,xi.colorStarts="fill:",xi.colorful=!0;class bi extends X{}bi.key=ue,bi.colorful=!0;class gi extends X{}gi.matches=/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$/,gi.key=U(ue,Re);class yi extends X{get parseValue(){return mi(this.value,(e=>{switch(e){case zt:case U(Et,le):return at;case U("hue",Ce):return qe}return""}))}}yi.matches=/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,yi.key=fe;class ki extends X{}ki.key="cursor";class vi extends X{}vi.key=U("pointer","events");class wi extends X{}wi.key="resize";class Oi extends X{}Oi.key=U("touch","action");class ji extends X{get props(){return{"user-drag":this,"-webkit-user-drag":this}}}ji.key=U(oe,"drag");class Si extends X{get props(){return{"user-select":this,"-webkit-user-select":this}}}Si.key=U(oe,"select");class Ni extends X{}Ni.matches=/^s(?:hadow)?:./,Ni.key=U(Fe,le),Ni.colorful=!0;class Ri extends X{}Ri.key=U(Be,le);class Wi extends X{get props(){return{"font-size":this,"line-height":Object.assign(Object.assign({},this),{value:this.unit===at?this.value+.375+this.unit:"calc("+this.value+this.unit+" + .375rem)",unit:""})}}}Wi.id="textSize",Wi.matches=/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$/;class Ii extends X{}Ii.key=U(He,et),Ii.unit="",Ii.semantics={"break-word":{"overflow-wrap":U(et,He),overflow:Ze}};class $i extends X{get props(){return{[_e]:Object.assign(Object.assign({},this),{value:Ae}),[U(Ae,se,re)]:Object.assign(Object.assign({},this),{value:"repeat("+this.value+ee+Ie+"max(0"+",1fr))"})}}}$i.matches=/^grid-cols:./,$i.key=U(Ae,re),$i.unit="";class zi extends X{get props(){return{[_e]:Object.assign(Object.assign({},this),{value:Ae}),[U(Ae,st,te)]:Object.assign(Object.assign({},this),{value:ie}),[U(Ae,se,ce)]:Object.assign(Object.assign({},this),{value:"repeat("+this.value+ee+Ie+"max(0"+",1fr))"})}}}zi.key=U(Ae,ce),zi.unit="";class Ei extends X{constructor(){super(...arguments),this.order=-1}get props(){switch(this.prefix[4]){case Se:return{[U(ie,ne)]:this};case je:return{[U(ae,ne)]:this};default:return{[ne]:this}}}}Ei.id="gap",Ei.matches=/^gap(-x|-y)?:./;class Ai extends X{}Ai.key=U(He,dt);class Mi extends X{get props(){return{["--"+this.prefix.slice(1,-1)]:this}}}Mi.id="variable",Mi.matches=/^\$.+:./,Mi.unit="";class Vi extends X{}Vi.matches=/^aspect:./,Vi.key=U("aspect","ratio"),Vi.unit="",Vi.semantics={square:"1/1",video:"16/9"};class Ti extends X{get props(){return{"box-decoration-break":this,"-webkit-box-decoration-break":this}}}Ti.matches=/^box:(slice|clone)(?!;)/,Ti.key=U(Fe,Ke,et);class Ci extends X{}Ci.key=U(et,"after");class qi extends X{}qi.key=U(et,"before");class Li extends X{}Li.key=U(et,"inside");class Pi extends X{}Pi.key=U(Ee,"shrink"),Pi.unit="";class _i extends X{}_i.matches=/^flex:((row|col|column)(-reverse)?)(?!;)/,_i.key=U(Ee,ke),_i.values={col:ie,"col-reverse":U(ie,"reverse")};class Zi extends X{}Zi.key=U(Ee,"grow"),Zi.unit="";class Fi extends X{}Fi.matches=/^flex:(wrap(-reverse)?|nowrap)(?!;)/,Fi.key=U(Ee,"wrap");class Qi extends X{}Qi.key=U(Ee,"basis"),Qi.values=At;class Xi extends X{constructor(){super(...arguments),this.order=-1}}Xi.key=Ee,Xi.unit="";const Yi="999999";class Bi extends X{}Bi.matches=/^o:./,Bi.key="order",Bi.values={first:"-999999",last:Yi},Bi.unit="";class Ui extends X{constructor(){super(...arguments),this.order=-1}get parseValue(){return"span"===this.prefix.slice(-5,-1)&&"auto"!==this.value?"span "+this.value+"/"+"span "+this.value:this.value}}Ui.matches=/^grid-col(-span)?:./,Ui.key=U(Ae,ie),Ui.unit="";class Di extends X{}Di.matches=/^col-span:./,Di.key=U(ie,gt);class Gi extends X{constructor(){super(...arguments),this.order=-1}get parseValue(){return"span"===this.prefix.slice(-5,-1)&&"auto"!==this.value?"span "+this.value+"/"+"span "+this.value:this.value}}Gi.matches=/^grid-row-span:./,Gi.key=U(Ae,ae),Gi.unit="";class Hi extends X{}Hi.matches=/^font-color:./,Hi.colorStarts="f(ont)?:",Hi.colorful=!0,Hi.key=be,Hi.unit="";class Ji extends X{}Ji.matches=/^ac:./,Ji.key=U(Ue,de);class Ki extends X{}Ki.matches=/^ai:./,Ki.key=U(Ue,kt);class er extends X{}er.matches=/^as:./,er.key=U(Ue,vt);class tr extends X{}tr.matches=/^grid-auto-cols:./,tr.key=U(Ae,st,re),tr.values={min:U(Ie,de),max:U(We,de)};class sr extends X{}sr.matches=/^grid-flow:./,sr.key=U(Ae,st,te);class ir extends X{}ir.key=U(Ae,st,ce),ir.values={min:U(Ie,de),max:U(We,de)};class rr extends X{}rr.matches=/^jc:./,rr.key=U(yt,de);class nr extends X{}nr.matches=/^ji:./,nr.key=U(yt,kt);class ar extends X{}ar.matches=/^js:./,ar.key=U(yt,vt);class cr extends X{constructor(){super(...arguments),this.order=-1}}cr.key=U(wt,de);class lr extends X{constructor(){super(...arguments),this.order=-1}}lr.key=U(wt,kt);class or extends X{constructor(){super(...arguments),this.order=-1}}or.key=U(wt,vt);class dr extends X{get props(){return{[this.prefix.slice(0,-1)]:this}}get order(){return"padding:"===this.prefix?-1:0}}dr.id="padding",dr.matches=/^padding(?:-(?:left|right|top|bottom))?:./;class hr extends X{get props(){return{[this.prefix.slice(0,-1)]:this}}get order(){return"margin:"===this.prefix?-1:0}}hr.id="margin",hr.matches=/^margin(-(left|right|top|bottom))?:./;class ur extends X{}ur.matches=/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!;))/,ur.key=U(Be,"overflow");class fr extends X{}fr.matches=/^list-style:(inside|outside)(?!;)/,fr.key=U(bt,ct,nt);class mr extends X{}mr.matches=/^list-style:(none|disc|decimal)(?!;)/,mr.key=U(bt,ct,Ot);class pr extends X{constructor(){super(...arguments),this.order=-1}}pr.key=U(bt,ct);class xr extends X{}xr.key=U(Be,Ke,be),xr.colorStarts="text-decoration:",xr.colorful=!0;class br extends X{}br.matches=/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!;)/,br.key=U(Be,Ke,ct);class gr extends X{}gr.matches=/^text-decoration:(from-font(?!;)|([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$)/,gr.key=U(Be,Ke,"thickness"),gr.unit="em";class yr extends X{}yr.key=U(Be,"indent");class kr extends X{}kr.key=de;class vr extends X{}vr.key=U(St,be),vr.colorStarts="outline:",vr.colorful=!0;class wr extends X{}wr.key=U(St,jt);class Or extends X{}Or.matches=/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!;)/,Or.key=U(St,ct);class jr extends X{}jr.matches=/^outline:([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$/,jr.key=U(St,Re);class Sr extends X{constructor(){super(...arguments),this.order=-1}}Sr.key=St;class Nr extends X{}Nr.matches=/^b(order)?:(collapse|separate)(?!;)/,Nr.key=U(D,"collapse");class Rr extends X{}Rr.key=U(D,dt);class Wr extends X{}Wr.key=U(xt,"layout");class Ir extends X{}Ir.key=U("accent",be),Ir.colorStarts="accent:",Ir.colorful=!0;class $r extends X{}$r.key="appearance";class zr extends X{}zr.key=U("caret",be),zr.matches=/^caret:transparent(?!;)/,zr.colorStarts="caret:",zr.colorful=!0;class Er extends X{}Er.key=U(ge,we);class Ar extends X{get props(){if("m"!==this.prefix.slice(-3,-2))return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:this};{const e=U(ge,H)+"-",t=e+Pt,s=e+_t,i=e+qt,r=e+Lt;switch(this.prefix.slice(-2,-1)){case Yt:return{[t]:this,[s]:this};case Bt:return{[i]:this,[r]:this};case Zt:return{[t]:this};case Ft:return{[s]:this};case Qt:return{[i]:this};case Xt:return{[r]:this}}}}get order(){return this.prefix===U(ge,H)+":"||this.prefix===U(ge,"m:")?-1:0}}Ar.id="scrollMargin",Ar.matches=/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./;class Mr extends X{get props(){if("p"!==this.prefix.slice(-3,-2))return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:this};{const e=U(ge,J)+"-",t=e+Pt,s=e+_t,i=e+qt,r=e+Lt;switch(this.prefix.slice(-2,-1)){case Yt:return{[t]:this,[s]:this};case Bt:return{[i]:this,[r]:this};case Zt:return{[t]:this};case Ft:return{[s]:this};case Qt:return{[i]:this};case Xt:return{[r]:this}}}}get order(){return this.prefix===U(ge,J)+":"||this.prefix===U(ge,"p:")?-1:0}}Mr.id="scrollPadding",Mr.matches=/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./;class Vr extends X{}Vr.matches=/^scroll-snap:(start|end|center)/,Vr.key=U(ge,Nt,Ue);class Tr extends X{}Tr.matches=/^scroll-snap:(normal|always)(?!;)/,Tr.key=U(ge,Nt,"stop");class Cr extends X{}Cr.matches=/^scroll-snap:(([xy]|block|inline|both)(;(proximity|mandatory))?)(?!;)/,Cr.key=U(ge,Nt,Ot);class qr extends X{}qr.key="will-change";class Lr extends X{}Lr.key=U(Be,"underline",jt);class Pr extends X{get props(){return{[this.prefix.slice(0,-1)]:this}}}Pr.matches=/^(?:top|bottom|left|right):./,Pr.key="inset",Pr.semantics={center:{left:0,right:0,"margin-left":st,"margin-right":st},middle:{top:0,bottom:0,"margin-top":st,"margin-bottom":st}};class _r extends X{constructor(){super(...arguments),this.order=-1}}_r.matches=/^(columns|cols):./,_r.key=re,_r.unit="";class Zr extends X{}Zr.key=U("white",Je),Zr.unit="",Zr.semantics={"break-spaces":{"white-space":U(et,Je)+"s"}};class Fr extends X{}Fr.matches=/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!;)/,Fr.key=U(Be,"orientation");class Qr extends X{}Qr.key=U("writing",ve);class Xr extends X{}Xr.key="contain";class Yr extends X{}Yr.matches=/^\@duration:./,Yr.key=U(ye,Pe),Yr.unit="ms";class Br extends X{}Br.matches=/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!;)/,Br.key=U(Be,"rendering");class Ur extends X{}Ur.key=ke;class Dr extends X{}Dr.matches=/^t(ext)?:(none|underline|overline|line-through)(?!;)/,Dr.key=U(Be,Ke,it);class Gr extends X{}Gr.matches=/^grid-col-start:./,Gr.key=U(Ae,ie,$t),Gr.unit="";class Hr extends X{}Hr.matches=/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!;).)*$/,Hr.key=U(bt,ct,he);class Jr extends X{}Jr.matches=/^shape:((margin|content|border|padding)(?!;)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!;).)*$)/,Jr.key=U(Rt,"outside"),Jr.values={content:U(de,Fe),border:U(D,Fe),padding:U(J,Fe),margin:U(H,Fe)};class Kr extends X{}Kr.matches=/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$/,Kr.key=U(Rt,H);class en extends X{}en.key=U(Rt,he,"threshold"),en.unit="";class tn extends X{}tn.matches=/^clip:./,tn.key=U(Xe,"path"),tn.values={content:U(de,Fe),border:U(D,Fe),padding:U(J,Fe),margin:U(H,Fe),fill:U(Qe,Fe),stroke:U(ue,Fe),view:U(Wt,Fe)};class sn extends X{constructor(){super(...arguments),this.order=-1}}sn.key=Ae;class rn extends X{constructor(){super(...arguments),this.order=-1}}rn.matches=/^f:./,rn.key=K,rn.unit="",rn.colorful=!0;class nn extends X{}nn.key="quotes";class an extends X{constructor(){super(...arguments),this.order=-1}}an.key=U(Ae,se);class cn extends X{}cn.key=U(Ae,ae,$t),cn.unit="";class ln extends X{}ln.key=U(Ae,se,It)+"s";class on extends X{}on.matches=/^grid-template-cols:./,on.key=U(Ae,se,re),on.values={min:U(Ie,de),max:U(We,de)};class dn extends X{}dn.key=U(Ae,se,ce),dn.values={min:U(Ie,de),max:U(We,de)};class hn extends X{constructor(){super(...arguments),this.order=-1}}hn.key=U(Ae,It),hn.unit="";class un extends X{}un.matches=/^grid-col-end:./,un.key=U(Ae,ie,"end"),un.unit="";class fn extends X{}fn.key=U(Ae,ae,"end"),fn.unit="";class mn extends X{get props(){return{"mask-image":this,"-webkit-mask-image":this}}}mn.key=U("mask",he);class pn extends X{get props(){return{"-webkit-text-fill-color":this}}}pn.id="textFillColor",pn.matches=/^text-fill-color:./,pn.colorStarts="text-fill:",pn.colorful=!0;class xn extends X{get props(){return{"-webkit-text-stroke":this}}}xn.id="textStroke",xn.matches=/^text-stroke:./;class bn extends X{get props(){return{"-webkit-text-stroke-width":this}}}bn.id="textStrokeWidth",bn.matches=/^text-stroke(:((thin|medium|thick)(?!;)|\.?\d((?!;).)*$)|-width:.)/;class gn extends X{get props(){return{"-webkit-text-stroke-color":this}}}gn.id="textStrokeColor",gn.matches=/^text-stroke-color:./,gn.colorStarts="text-stroke:",gn.colorful=!0;class yn extends X{}yn.key=U(ue,"dasharray");class kn extends X{}kn.key=U(ue,"dash")+jt;class vn extends X{}vn.key="x",vn.unit="";class wn extends X{}wn.key="y",wn.unit="";class On extends X{}On.key="cx",On.unit="";class jn extends X{}jn.key="cy",jn.unit="";class Sn extends X{}Sn.key="rx",Sn.unit="";class Nn extends X{}Nn.key="ry",Nn.unit="";class Rn extends X{}Rn.key=U(D,he,"outset");class Wn extends X{}Wn.matches=/^border-image:(?:stretch|repeat|round|space)(?:(?!;).)*$/,Wn.key=U(D,he,xe);class In extends X{}In.key=U(D,he,"slice"),In.unit="";class $n extends X{}$n.matches=/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!;).)*$/,$n.key=U(D,he,"source");class zn extends X{}zn.matches=/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!;).)*$/,zn.key=U(D,he,Re);class En extends X{}En.key=U(D,he),En.unit="";class An extends X{get props(){return{}}}An.id="group",An.matches=/^{/,An.unit="";const Mn="undefined"!=typeof window,Vn=[An,Mi,Mt,Tt,Hi,Ut,hr,dr,Ct,Qi,Fi,Zi,Pi,_i,Xi,Ss,Dt,Gt,Ht,Jt,Xr,kr,Kt,is,rs,ns,rn,as,cs,ls,os,xr,br,gr,Dr,ds,Lr,ur,Fr,hs,Br,yr,us,_r,Zr,Pr,fs,Os,js,Ns,Rs,Ws,Is,$s,zs,Es,As,Ms,ui,fi,ki,vi,wi,Oi,Ii,Ai,ji,Si,Ri,Wi,pn,bn,gn,xn,Ni,Wr,xs,ps,ms,bs,vs,ws,ks,ys,gs,Vs,Ts,Yr,Cs,qs,Ls,Ps,_s,Zs,Qs,Hs,Js,Ks,Nr,Rr,ei,Rn,Wn,In,$n,zn,En,ti,si,ii,ri,ni,ai,ci,li,oi,di,hi,pi,yi,xi,yn,kn,gi,bi,vn,wn,On,jn,Sn,Nn,Gr,un,Ui,$i,cn,fn,Gi,zi,tr,sr,ir,ln,on,dn,an,hn,sn,Ei,Bi,Li,qi,Ci,Ti,Vi,Di,Ji,Ki,er,rr,nr,ar,cr,lr,or,fr,mr,Hr,pr,vr,wr,Or,jr,Sr,Ir,$r,zr,Er,Ar,Mr,Vr,Tr,Cr,qr,Qr,Ur,Jr,Kr,en,tn,nn,mn],Tn=Vn.get=e=>Vn.find((t=>{var s;return e===t.id||e===(null===(s=t.key)||void 0===s?void 0:s.replace(/-./g,(e=>e[1].toUpperCase())))||e===t.key}));function Cn(){if(Mn){const e=new p(document.head);p.root=e,e.observe(document.documentElement)}}Vn.extend=(e,t,s=!0)=>{for(const s in t){const i=Tn(s);if(i){const r=t[s];i.extend(e,r)}}s&&p.refresh()},X.extend("colors",e.colors,!1),X.extend("breakpoints",t.breakpoints,!1),p.Styles.push(...Vn);Mn&&(window.initMasterStyles=Cn,window.MasterStyles=Vn,window.MasterStylesManual||Cn())})(),i})()})); |
@@ -28,3 +28,3 @@ { | ||
}, | ||
"version": "1.14.3" | ||
"version": "1.14.4" | ||
} |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@master/styles"]=t():e["@master/styles"]=t()}(this,(function(){return(()=>{var e={131:function(e,t,s){var i;i=void 0!==s.g?s.g:this,e.exports=function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var t,s=String(e),i=s.length,r=-1,n="",a=s.charCodeAt(0);++r<i;)0!=(t=s.charCodeAt(r))?n+=t>=1&&t<=31||127==t||0==r&&t>=48&&t<=57||1==r&&t>=48&&t<=57&&45==a?"\\"+t.toString(16)+" ":0==r&&1==i&&45==t||!(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122)?"\\"+s.charAt(r):s.charAt(r):n+="�";return n};return e.CSS||(e.CSS={}),e.CSS.escape=t,t}(i)},955:(e,t,s)=>{"use strict";s.d(t,{breakpoints:()=>i});const i={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},563:(e,t,s)=>{"use strict";s.d(t,{colors:()=>i});const i={fade:{10:"131518",20:"24262d",30:"363944",40:"4c515f",50:"63697c",60:"878d9f",70:"a6abb8",80:"c3c6cf",90:"f4f4f6"},gray:{10:"151515",20:"242424",30:"39393b",40:"515153",50:"6a6a6c",60:"8d8d8f",70:"aaaaac",80:"c6c6c8",90:"f4f4f6"},brown:{10:"1c130f",20:"31221b",30:"4b3429",40:"6a4a3a",50:"8a604c",60:"af836e",70:"c4a394",80:"d8c2b8",90:"f8f3f1"},orange:{10:"221205",20:"3a1f08",30:"582f0d",40:"7c4312",50:"a15717",60:"d5731e",70:"e79855",80:"efbd92",90:"fcf1e7"},gold:{10:"1e1400",20:"342300",30:"4e3400",40:"6e4900",50:"906000",60:"c08000",70:"e89a00",80:"ffba30",90:"fff3da"},yellow:{10:"1b1500",20:"2f2500",30:"473800",40:"634f00",50:"806700",60:"ac8a00",70:"d0a700",80:"f0c100",90:"fff5ca"},grass:{10:"101803",20:"1c2a05",30:"2a4008",40:"3c5a0b",50:"4e750e",60:"689c13",70:"7dbc17",80:"92da1a",90:"ebfad4"},green:{10:"011a0b",20:"022d13",30:"03441d",40:"055f28",50:"067b34",60:"08a345",70:"0ac553",80:"0be561",90:"d5fde5"},beryl:{10:"001912",20:"002b1f",30:"00432f",40:"005d41",50:"007954",60:"00a170",70:"00c387",80:"00e19c",90:"c9ffee"},teal:{10:"001918",20:"002b28",30:"00413d",40:"005b55",50:"00776f",60:"009f94",70:"00bfb2",80:"00ddce",90:"c5fffb"},cyan:{10:"00181f",20:"002a35",30:"003f51",40:"005973",50:"007391",60:"0099c1",70:"00b9e9",80:"3dd7ff",90:"dff8ff"},sky:{10:"021726",20:"032841",30:"043c61",40:"065489",50:"086eb3",60:"0b92ee",70:"4db3f7",80:"8ccefa",90:"eaf6fe"},blue:{10:"051338",20:"09205e",30:"0d318d",40:"1344c4",50:"175fe9",60:"538cee",70:"81acf3",80:"a5c7fd",90:"edf4fe"},indigo:{10:"161031",20:"24195e",30:"332592",40:"4835cc",50:"5a5bd5",60:"7d84e8",70:"a1a5ee",80:"bfc2f4",90:"f1f2ff"},violet:{10:"1f0839",20:"310e63",30:"491595",40:"641ed2",50:"7949e5",60:"9e77f5",70:"b89bf9",80:"d0bdfb",90:"f5f1ff"},purple:{10:"220736",20:"390c5b",30:"551287",40:"7719bd",50:"9832e4",60:"b56cec",70:"ca96f1",80:"dcbaf6",90:"f9f0ff"},fuchsia:{10:"2b0720",20:"470b3d",30:"68105f",40:"8e1691",50:"b61cbb",60:"e04ee5",70:"ea86ed",80:"f1b1f3",90:"feefff"},pink:{10:"2d0519",20:"4c082b",30:"720c40",40:"9d1059",50:"ca1473",60:"ee52a3",70:"f388c0",80:"f7b2d6",90:"fff0f8"},crimson:{10:"33020f",20:"500317",30:"780522",40:"a20d35",50:"ce1a4b",60:"ea5b82",70:"f58ba7",80:"ffb1c6",90:"fff1f4"},red:{10:"350001",20:"530001",30:"780506",40:"a60708",50:"d11a1e",60:"eb5f63",70:"fa8b8d",80:"fdb3b5",90:"fff1f1"},black:"000000",white:"ffffff"}},703:(e,t,s)=>{"use strict";s.d(t,{Style:()=>B,StyleSheet:()=>x});var i=s(563),r=s(955);function n(e,t){return e+":"+(t.unit?t.value+t.unit:t.value)+(t.important?"!important":"")}const a=/^([+-.]?\d+(\.?\d+)?)(.*)?/;function c(e,t,s){let i="",r="",n="";if("number"==typeof e)i=e,r=t||"";else{if(s){const[t,a]=e.split("/");for(const e in s)if(t.startsWith(e)){const s=t[e.length];if(!s||"-"===s)return i="rgb(var(--"+t+")"+(a?"/"+a:"")+")",{value:i,unit:r,unitToken:n}}}if(t){const s=e.match(a);if(s){if(e.includes("/")){const t=e.split("/");return{value:+t[0]/+t[1]*100+"%",unit:r,unitToken:n}}return i=+s[1],r=n=s[3]||"",r||("rem"!==t&&"em"!==t||(i/=16),r=t||""),{value:i,unit:r,unitToken:n}}}i=(-1===e.indexOf("calc(")?e:function(e){const t=e=>"+"===e||"-"===e||"*"===e||"/"===e;let s,i="",r="",n=!1;function a(){s=null,r=""}for(let c=0;c<e.length;c++){const l=e[c];if("("===l||")"===l)n=")"===l,i+=r+l,a();else if(","===l)i+=r+l+" ",a();else{switch(s){case 1:break;case 2:if(t(l)){i+=r+" "+l+" ",a();continue}break;default:n&&(r+=" "),isNaN(+l)?t(l)||(s=1):s=2}r+=l}}return r&&(i+=r),i}(e)).replace(/\$\(((\w|-)+)\)/g,"var(--$1)")}return{value:i,unit:r,unitToken:n}}const l=[":disabled",":active",":focus",":hover"],o=[",",".","#","[","!","*",">","+","~",":","@"],d="undefined"!=typeof document;let h;d&&(h=document.createElement("style"),h.id="master-styles");const u="max-width",f="min-width",m="undefined"!=typeof window,p=m?window.MutationObserver:Object;class x extends p{constructor(e){if(super((e=>{const t={},s=[],i=[],r=[],n=(e,t,s)=>{for(let i=0;i<e.length;i++){const r=e[i];if(r.classList&&!s.includes(r)){s.push(r),r.classList.forEach((e=>{t?c(e):a(e)}));const e=r.children;e.length&&n(e,t,s)}}},a=e=>{e in t?t[e]++:t[e]=1},c=e=>{e in t?t[e]--:t[e]=-1};for(let t=0;t<e.length;t++){const a=e[t],{addedNodes:c,removedNodes:l,type:o,target:d,oldValue:h}=a;if("attributes"===o){if(d.className===h||s.find((e=>e.target===d)))continue;s.push(a)}else c.length&&n(c,!1,i),l.length&&n(l,!0,r)}if(s.length||Object.keys(t).length){for(const{oldValue:e,target:t}of s){if(i.includes(t)||r.includes(t))continue;const s=e?e.split(" "):[],n=t.classList;n.length&&n.forEach((e=>{s.includes(e)||a(e)}));for(const e of s)n.contains(e)||c(e)}for(const e in t){const s=t[e],i=(this.countOfName[e]||0)+s;0===i?(delete this.countOfName[e],this.delete(e)):(e in this.countOfName||this.findAndInsert(e),this.countOfName[e]=i)}}})),this.container=e,this.styles=[],this.styleOfName={},this.countOfName={},d){if(e){const t=e.querySelector('[id="master-styles"]');if(t){this.element=t;const e=(t,s)=>{if(t.selectorText){const e=t.selectorText.split(", ")[0].split(" ");let i;for(let t=e.length-1;t>=0;t--){const s=e[t];if("."===s[0]){i=s.slice(1);break}}let r="";for(let e=0;e<i.length;e++){const t=i[e],s=i[e+1];if("\\"===t){if(e++,"\\"!==s){r+=s;continue}}else if(o.includes(t))break;r+=t}if(!(r in this.styleOfName)){const e=x.findAndNew(r);e&&(e.cssRule=null!=s?s:t,this.styles.push(e),this.styleOfName[e.name]=e)}}else if(t.cssRules)for(let i=0;i<t.cssRules.length;i++)e(t.cssRules[i],null!=s?s:t)};e(t.sheet,void 0)}else this.element=h.cloneNode(),null==e||e.prepend(this.element)}Y.push(this)}}observe(e,t={subtree:!0,childList:!0}){return t.subtree&&e.querySelectorAll("[class]").forEach((e=>{e.classList.forEach((e=>{e in this.countOfName?this.countOfName[e]++:(this.countOfName[e]=1,this.findAndInsert(e))}))})),super.observe(e,Object.assign(Object.assign({},t),{attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})),this}disconnect(){super.disconnect(),this.styleOfName={},this.countOfName={},this.styles.length=0;const e=this.element.sheet;for(let t=e.cssRules.length-1;t>=0;t--)e.deleteRule(t)}static findAndNew(e){for(const t of this.Styles){const s=t.match(e);if(s)return new t(e,s)}}static find(e){for(const t of this.Styles){if(t.match(e))return t}}static refresh(){for(const e of Y)e.refresh()}refresh(){if(!this.element)return;const e=h.cloneNode();this.element.replaceWith(e),this.element=e,this.styles.length=0,this.styleOfName={};for(const e in this.countOfName)this.findAndInsert(e)}destroy(){this.element.remove(),this.disconnect(),Y.splice(Y.indexOf(this),1)}insert(e){if(this.styleOfName[e.name])return;const t=e.text;let s;const i=this.styles.length-1,r=e.media,n=e.order,a=e.prioritySelectorIndex,c=e.hasWhere,l=(e,t,s,i)=>{let r,l,o=0;t&&(o=e.findIndex(t)),s&&(l=e.findIndex(s)),-1===o&&(o=e.length),void 0!==l&&-1!==l||(l=e.length),r=e.slice(o,l);for(let e=0;e<r.length;e++){const t=r[e];if(!(-1===t.prioritySelectorIndex||i&&i(t))&&(t.prioritySelectorIndex<a||t.prioritySelectorIndex===a&&(c&&!t.hasWhere||t.order>=n)))return o+e}return o+r.length};if(r){const e=this.styles.findIndex((e=>e.media));if(-1!==e){const t=r.features[u],o=r.features[f];if(t&&o){const r=t.value-o.value;for(let t=i;t>=e;t--){s=t;const i=this.styles[t],n=i.media,o=n.features[u],d=n.features[f];if(!o||!d){s++;break}const h=o.value-d.value;if(h===r){if(c!==i.hasWhere)continue;if(-1!==a){const i=[this.styles[t]];for(let s=t-1;s>=e;s--){const e=this.styles[s];if(e.hasWhere!==c)break;const t=e.media,r=t.features[u],n=t.features[f];if(!r||!n||r.value-n.value!==h)break;i.unshift(this.styles[s])}s=l(this.styles,(e=>e.media&&-1!==e.prioritySelectorIndex&&e.media.features[f]&&e.media.features[u]))}break}if(h>r)break}}else if(o)for(let t=e;t<=i;t++){s=t;const e=this.styles[t],r=e.media,d=r.features[u],h=r.features[f];if(d){if(h)break;continue}const m=null==h?void 0:h.value;if(m===o.value){if(!c&&e.hasWhere){s++;continue}if(-1!==a)s=l(this.styles,(e=>e.media),(e=>e.media&&-1!==e.prioritySelectorIndex&&e.media.features[f]&&e.media.features[u]),(e=>!e.media.features[f]&&!e.media.features[u]));else for(let e=t;e<=i;e++){const t=this.styles[e],i=t.media,r=i.features[f];if(!i.features[u]){if(t.hasWhere!==c||r.value!==m||t.order>=n)break;s=e+1}}break}if(m>o.value)break;s++}else if(t)for(let r=i;r>=e;r--){s=r;const i=this.styles[r],o=i.media,d=o.features[u];if(o.features[f])continue;const h=null==d?void 0:d.value;if(!h||h>t.value){s++;break}if(h===t.value){if(c&&!i.hasWhere)continue;if(-1!==a)s=l(this.styles,(e=>e.media),(e=>e.media&&-1!==e.prioritySelectorIndex&&e.media.features[f]&&e.media.features[u]),(e=>!e.media.features[f]&&!e.media.features[u]));else{const t=[this.styles[r]];for(let s=r-1;s>=e;s--){const e=this.styles[s],i=e.media,r=i.features[f],n=i.features[u];if(!(r||n&&n.value===h&&e.hasWhere===c))break;t.unshift(e)}for(let e=0;e<t.length;e++){const i=t[e];if(!i.media.features[f]){if(i.order>=n)break;s=r-t.length+2+e}}}break}}}if(void 0===s)if(-1===e)s=i+1;else if(-1!==a)s=e+l(this.styles.slice(e),void 0,(e=>e.media.features[u]||e.media.features[f]));else if(c){let t=e;for(;t<this.styles.length;t++){const e=this.styles[t];if(-1!==e.prioritySelectorIndex||!e.hasWhere||e.order>=n){s=t;break}}void 0===s&&(s=t)}else for(let t=e;t<=i;t++){s=t;const e=this.styles[t],i=e.media;if(-1!==e.prioritySelectorIndex||i.features[u]||i.features[f])break;if(e.hasWhere)s++;else if(e.order>=n)break}}else if(-1===a)if(c)s=this.styles.findIndex((e=>!e.hasWhere||e.media||-1!==e.prioritySelectorIndex||e.order>=n)),-1===s&&(s=i+1);else{let e=0;for(;e<this.styles.length;e++){const t=this.styles[e];if(t.media||!t.hasWhere&&(t.order>=n||-1!==t.prioritySelectorIndex)){s=e;break}}void 0===s&&(s=e)}else s=l(this.styles,void 0,(e=>e.media));try{if(this.element){const i=this.element.sheet;i.insertRule(t,s),e.cssRule=i.cssRules[s]}this.styles.splice(s,0,e),this.styleOfName[e.name]=e}catch(e){}}delete(e){const t=this.element.sheet,s=e=>{const s=this.styleOfName[e];if(null==s?void 0:s.cssRule)for(let e=0;e<t.cssRules.length;e++){t.cssRules[e]===s.cssRule&&(t.deleteRule(e),this.styles.splice(e,1),delete this.styleOfName[s.name])}};if(e in B.classes)for(const t of B.classes[e])t in this.countOfName||s(t);else s(e)}findAndInsert(e){const t=e=>{const t=x.findAndNew(e);t&&this.insert(t)};if(e in B.classes)for(const s of B.classes[e])t(s);else t(e)}}x.Styles=[],m&&(window.MasterStyleSheet=x);var g=s(342);function b(e){const t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function y(e,t,s){return((1<<24)+(e<<16)+(t<<8)+s).toString(16).slice(1)}const k="matches",v="semantics",w="symbol",O="max-width",j="min-width",S="motion",N="reduce",R="reduced-motion",W="::scrollbar",$="::slider-thumb",I="::slider-runnable-track",C="::search",A="::meter",z="::resizer",E="::progress",M="px",T=["!","*",">","+","~",":","[","@","_"],V=[...T,void 0,"."],q={"(":")","'":"'"},_=new RegExp(W,"g"),L=new RegExp(C,"g"),P=new RegExp(A,"g"),F=new RegExp(I,"g"),Z=new RegExp($,"g"),Q=new RegExp(z,"g"),X=new RegExp(E,"g"),Y=[];class B{constructor(e,t){this.name=e,this.matching=t,this.at={},this.prioritySelectorIndex=-1;const s=this.constructor;if(void 0===t&&!(t=s.match(e)))return;let i,r,{semantics:a,unit:o,colors:d,key:h,values:u,fixedSelector:f,colorful:m,breakpoints:p,mediaQueries:x}=s,g=e;if(m||(d=null),t.origin===v)i=t.value,r=g.slice(t.value.length),this.value=a[t.value];else{if(t.origin===k){const e=g.indexOf(":");this.prefix=g.slice(0,e+1),this.prefix.includes("(")?(this.prefix=void 0,i=g):i=g.slice(e+1)}else t.origin===w&&(this.symbol=g[0],i=g.slice(1));let e,s="",n=[],a=0;!function t(r,l,h=""){let u;for(r&&(")"===r&&"$"===s.slice(-1)&&(u=s.length-1),s+=i[a++]);a<i.length;a++){const f=i[a];if(f===r){s+=f,void 0!==u&&(s=s.slice(0,u)+s.slice(u).replace(/\$\((.*)\)/,"var(--$1)")),l||("'"===r?n.push(s):(e=c(s,o,d),n.push(e.value+e.unit)),h="",s="");break}if(f in q)t(q[f],void 0===l?0:l+1,h);else if(";"!==f||"'"===r&&"path"!==h){if(!r){if("."===f){if(isNaN(+i[a+1]))break;"-"===i[a-1]&&(s+="0")}else{if(","===f){e=c(s,o,d),n.push(e.value+e.unit,","),s="";continue}if("#"===f&&(s||n.length&&";"!==i[a-1])||T.includes(f))break}h+=f}s+=f}else r?s+=" ":(e=c(s,o,d),n.push(e.value+e.unit),s="")}}(),s&&(e=c(s,o,d),n.push(e.value+e.unit)),r=i.slice(a),1===n.length?e?(this.value=e.value,this.unit=e.unit):(this.value=n[0],this.unit=""):this.value=n.join(" ")}r.includes(W)&&(r=r.replace(_,"::-webkit-scrollbar")),r.includes(C)&&(r=r.replace(L,"::-webkit-search")),r.includes($)&&(r=r.replace(Z,"::-webkit-slider-thumb")),r.includes(I)&&(r=r.replace(F,"::-webkit-slider-runnable-track")),r.includes(A)&&(r=r.replace(P,"::-webkit-meter")),r.includes(z)&&(r=r.replace(Q,"::-webkit-resizer")),r.includes(E)&&(r=r.replace(X,"::-webkit-progress")),this.parseValue&&(this.value=this.parseValue),u&&this.value in u&&(this.value=u[this.value]),"!"===r[0]&&(this.important=!0,r=r.slice(1));const b=r.split("@");let y=b[0].replace(/\_/g," ");if(y){this.hasWhere=y.includes(":where(");for(let e=0;e<l.length;e++)if(y.includes(l[e])){this.prioritySelectorIndex=e;break}}this.selector=y;for(let e=1;e<b.length;e++){const t=b[e];if(t)if(t.startsWith("dark")||t.startsWith("light"))this.colorScheme=t;else if("rtl"===t||"ltr"===t)this.direction=t;else{let e,s;const i=t.indexOf("_");if(-1!==i)e=t.slice(0,i),s=t.slice(i);else{const i=t.indexOf("(");-1!==i&&(e=t.slice(0,i),s=t.slice(i))}if(!e){e="media";const i=[];this.media={token:t,features:{}};const r=t.split("&");for(const e of r)if("all"===e||"print"===e||"screen"===e||"speech"===e)this.media.type=e;else if("🖨"===e)this.media.type="print";else if("landscape"===e||"portrait"===e)i.push("(orientation:"+e+")");else if(e===S||e===R)i.push("(prefers-reduced-motion:"+(e===S?"no-preference":N)+")");else if(e in x)i.push(x[e]);else{const t={token:e};let s="",r="",n=0;switch(e.startsWith("<=")?(r="<=",s=O):e.startsWith(">=")||p[e]?(r=">=",s=j):e.startsWith(">")?(r=">",s=j,n=.02):e.startsWith("<")&&(r="<",s=O,n=-.02),s){case O:case j:const a=r?e.replace(r,""):e,l=p[a];l?Object.assign(t,c(l,M)):Object.assign(t,c(a,M)),t.unit===M&&(t.value+=n),this.media.features[s]=t,i.push("("+s+":"+(t.value+t.unit)+")")}}s="",this.media.type&&(s=this.media.type),i.length&&(s+=(s?" and ":"")+i.join(" and "))}s&&(this.at[e]=s.replace(/\_/g," "))}}let V="";this.colorScheme&&(V+="."+this.colorScheme+" "),this.direction&&(V+="[dir="+this.direction+"] ");const Y=(y?y+" ":"")+(f||"");this.text=V+"."+CSS.escape(this.name)+Y+(this.name in B.relations?B.relations[this.name].map((e=>", "+V+"."+e+Y)).join(""):"")+"{"+("object"==typeof this.value?Object.keys(this.value).map((e=>n(e,Object.assign(Object.assign({},this),{unit:"",value:this.value[e]})))).join(";"):this.props?Object.keys(this.props).map((e=>n(e,this.props[e]))).join(";"):n(h,this))+"}";for(const e of Object.keys(this.at).sort(((e,t)=>"supports"===t?-1:1)))this.text="@"+e+" "+this.at[e]+"{"+this.text+"}";void 0===this.order&&(this.order=0)}static match(e){if(this.semantics)for(const t in this.semantics)if(e===t||e.startsWith(t)&&V.includes(e[t.length]))return{origin:v,value:t};return this.matches&&this.matches.test(e)||this.colorStarts&&(e.match("^"+this.colorStarts+"(#|(rgb|hsl)\\(.*\\))((?!;).)*$")||this.colorNames.length&&e.match("^"+this.colorStarts+"("+this.colorNames.join("|")+")")&&-1===e.indexOf(";"))?{origin:k}:this.symbol&&e.startsWith(this.symbol)?{origin:w}:this.key&&e.startsWith(this.key+":")?{origin:k}:void 0}static extend(e,t,s=!0){if(!t)return;const i=(e,s,i)=>{var r;for(const n in t){const a=t[n];null==a?n in e&&(null==i||i(n),delete e[n]):e[n]=null!==(r=null==s?void 0:s(n,a))&&void 0!==r?r:a}};switch(e){case"classes":i(this.classes,((e,t)=>{if(e in this.classes)for(const t in this.relations){const s=this.relations[t],i=s.indexOf(e);-1!==i&&(s.length>1?s.splice(i,1):delete this.relations[t])}const s=Array.isArray(t)?t:t.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(const t of s)t in this.relations?this.relations[t].push(e):this.relations[t]=[e];return s}),(e=>{for(const t of this.classes[e]){const s=this.relations[t];s.length>1?s.splice(s.indexOf(e),1):delete this.relations[t]}}));break;case"colors":i(this.colors,((e,t)=>{const s=this.colorNames.indexOf(e);-1!==s?null==D||D.deleteRule(s):this.colorNames.push(e);const i={};"string"==typeof t&&(t={"":t});const r=""in t;r&&(i[""]=b(t[""]).join(" "));let n=!1;for(const e in t)if(e&&+e>=100){n=!0;break}if(n)for(const e in t)i[e]=b(t[e]).join(" ");else if(!r||Object.keys(t).length>1){let e,s,r=0,n="0"in t?b(t[0]):[0,0,0];const a=[],c=()=>{const c=e-r,l=s.map(((e,t)=>(e-n[t])/c));for(const e of a){const s=e-r,a=n.map(((e,t)=>Math.round(e+l[t]*s)));i[e]=a.join(" "),t[e]=y.call(this,...a)}};for(let l=1;l<100;l++){const o=l%2==0;l in t?(a.length?(e=l,s=b(t[l]),c(),a.length=0,n=s):n=b(t[l]),r=l,o&&(i[l]=n.join(" "))):o&&a.push(l)}a.length&&(e=100,s="100"in t?b(t[100]):[255,255,255],c())}if(!r){const e=t[n?"500":"50"];t[""]=e,i[""]=b(e).join(" ")}return null==D||D.insertRule((0,g.i)(e,i),-1===s?Object.keys(this.colors).length:s),this.rgbColors[e]=i,t}),(e=>{const t=this.colorNames.indexOf(e);-1!==t&&this.colorNames.splice(t,1),null==D||D.deleteRule(t),delete this.rgbColors[e]}));break;default:let t=this[e];t||(t=this[e]={}),i(t)}s&&x.refresh()}}let U,D;if(B.unit="rem",B.rgbColors={},B.mediaQueries={},B.sheets=Y,B.colors={},B.classes={},B.colorNames=[],B.relations={},"undefined"!=typeof window&&(window.MasterStyle=B),"undefined"!=typeof document){const e=document.head.querySelector('[id="master-colors"]');if(e){const t=document.head.querySelector('[name="master:colors"]');if(t&&t.content){U=e;const s={},i=t.content.split(",");for(let e=0;e<U.sheet.cssRules.length;e++){const t=U.sheet.cssRules[e].cssText.slice(8,-1).split(";").slice(0,-1);if(t.length){const r=i[e],n=r.length+2,a={};for(const e of t){let[t,s]=e.split(":");t=t.trim().slice(n),t&&(t=t.slice(1)),a[t]=y.call(void 0,...s.split(" ").map((e=>+e)))}s[r]=a}}B.extend("colors",s),D=U.sheet}}U||(U=document.createElement("style"),U.id="master-colors",document.head.prepend(U),D=U.sheet)}const G=(...e)=>e.join("-"),H="border",J="radius",K="margin",ee="padding",te="font",se=",",ie="flow",re="template",ne="column",ae="columns",ce="gap",le="row",oe="rows",de="shadow",he="user",ue="content",fe="image",me="stroke",pe="filter",xe="blend",ge="background",be="repeat",ye="color",ke="scroll",ve="animation",we="direction",Oe="mode",je="behavior",Se=G("overscroll",je),Ne="y",Re="x",We="height",$e="width",Ie="max",Ce="min",Ae="block",ze="inline",Ee="flex",Me="grid",Te="transition",Ve="origin",qe="delay",_e="rotate",Le="deg",Pe="timing-function",Fe="duration",Ze="display",Qe="hidden",Xe="box",Ye="fill",Be="clip",Ue="none",De="text",Ge="align",He="transform",Je="vertical",Ke="word",et="space",tt="decoration",st="break",it="size",rt="auto",nt="line",at="object",ct="position",lt="rem",ot="style",dt="smoothing",ht="antialiased",ut="spacing",ft=G("letter",ut),mt=G(Ie,$e),pt=G(Ce,$e),xt=G(Ie,We),gt=G(Ce,We),bt="table",yt="list",kt="span",vt="justify",wt="items",Ot="self",jt="place",St="type",Nt="offset",Rt="outline",Wt="snap",$t="shape",It="view",Ct="area",At="start",zt="blur",Et="drop",Mt={full:"100%",fit:G("fit",ue),max:G(Ie,ue),min:G(Ce,ue)};class Tt extends B{}Tt.matches=/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|extrabold|heavy)(?!;)/,Tt.key=G(te,"weight"),Tt.unit="",Tt.values={thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900};const Vt="var(--font-";class qt extends B{}qt.matches=/^f(ont)?:(mono|sans|serif)(?!;)/,qt.key=G(te,"family"),qt.values={mono:Vt+"mono)",sans:Vt+"sans)",serif:Vt+"serif)"};class _t extends B{}_t.matches=/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$/,_t.key=G(te,it);const Lt="top",Pt="bottom",Ft="left",Zt="right",Qt="l",Xt="r",Yt="t",Bt="b",Ut="x",Dt="y";class Gt extends B{get props(){const e="m"===this.prefix[0]?K:ee,t=G(e,Ft),s=G(e,Zt),i=G(e,Lt),r=G(e,Pt);switch(this.prefix[1]){case Ut:return{[t]:this,[s]:this};case Dt:return{[i]:this,[r]:this};case Qt:return{[t]:this};case Xt:return{[s]:this};case Yt:return{[i]:this};case Bt:return{[r]:this};default:return{[e]:this}}}get order(){return"p:"===this.prefix||"m:"===this.prefix?-1:0}}Gt.id="spacing",Gt.matches=/^[pm][xytblr]?:./;class Ht extends B{}Ht.matches=/^w:./,Ht.key=$e,Ht.values=Mt;class Jt extends B{}Jt.matches=/^h:./,Jt.key=We,Jt.values=Mt;class Kt extends B{}Kt.matches=/^min-w:./,Kt.key=pt,Kt.values=Mt;class es extends B{}es.matches=/^min-h:./,es.key=gt,es.values=Mt;class ts extends B{}ts.matches=/^ls:./,ts.key=ft,ts.unit="em";const ss=G("subpixel",ht),is=G("-webkit-font",dt),rs=G("-moz-osxfont",dt);class ns extends B{get props(){const e={};switch(this.value){case ss:e[is]=e[rs]=Object.assign(Object.assign({},this),{value:rt});break;case ht:e[is]=Object.assign(Object.assign({},this),{value:ht}),e[rs]=Object.assign(Object.assign({},this),{value:"grayscale"})}return e}}ns.id="fontSmoothing",ns.matches=/^f(ont)?:(antialiased|subpixel-antialiased)(?!;)/,ns.unit="";class as extends B{}as.matches=/^f(ont)?:(normal|italic|oblique)(?!;)/,as.key=G(te,ot),as.unit="deg";class cs extends B{}cs.matches=/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!;)/,cs.key=G(te,"variant","numeric");class ls extends B{}ls.matches=/^lh:./,ls.key=G(nt,We),ls.unit="";class os extends B{}os.matches=/^(object|obj):(contain|cover|fill|scale-down)/,os.key=G(at,"fit");class ds extends B{}ds.matches=/^(object|obj):(top|bottom|right|left|center)/,ds.key=G(at,ct);class hs extends B{}hs.matches=/^t(ext)?:(justify|center|left|right|start|end)(?!;)/,hs.key=G(De,Ge);class us extends B{constructor(){super(...arguments),this.order=-1}}us.matches=/^t(ext)?:(underline|line-through|overline)/,us.key=G(De,tt),us.colorful=!0;class fs extends B{}fs.matches=/^t(ext)?:(uppercase|lowercase|capitalize)(?!;)/,fs.key=G(De,He);class ms extends B{}ms.matches=/^v:./,ms.key=G(Je,Ge);class ps extends B{get props(){return{overflow:Object.assign(Object.assign({},this),{value:Qe}),display:Object.assign(Object.assign({},this),{value:"-webkit-box"}),"overflow-wrap":Object.assign(Object.assign({},this),{value:G(st,Ke)}),"text-overflow":Object.assign(Object.assign({},this),{value:"ellipsis"}),"-webkit-box-orient":Object.assign(Object.assign({},this),{value:Je}),"-webkit-line-clamp":this}}}ps.id="lines",ps.matches=/^lines:./,ps.unit="";class xs extends B{}xs.matches=/^transform:((top|bottom|right|left|center)|\d)/,xs.key=G(He,Ve),xs.unit="px";class gs extends B{}gs.matches=/^transform:(flat|preserve-3d)(?!;)/,gs.key=G(He,ot);class bs extends B{}bs.matches=/^transform:(content|border|fill|stroke|view)(?!;)/,bs.key=G(He,Xe),bs.values={content:G(ue,Xe),border:G(H,Xe),fill:G(Ye,Xe),stroke:G(me,Xe),view:G(It,Xe)};class ys extends B{get parseValue(){return this.value.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,((e,t,s,i)=>{let r,n;switch(t){case"translate":r=lt;break;case"skew":r=Le;break;case _e:"3d"===s&&(n=!0),r=Le;break;default:return e}const a=i.split(",");return e.replace(i,a.map(((e,t)=>{if(n&&a.length-1!==t)return e;return Number.isNaN(+e)?e:e/(r===lt?16:1)+r})).join(","))}))}}ys.matches=/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/,ys.key=He,ys.unit="";class ks extends B{constructor(){super(...arguments),this.order=-1}}ks.symbol="~",ks.key=Te;class vs extends B{}vs.matches=/^~delay:./,vs.key=G(Te,qe),vs.unit="ms";class ws extends B{}ws.matches=/^~duration:./,ws.key=G(Te,Fe),ws.unit="ms";class Os extends B{}Os.matches=/^~property:./,Os.key=G(Te,"property");class js extends B{}js.matches=/^~easing:./,js.key=G(Te,Pe);class Ss extends B{}Ss.matches=/^max-h:./,Ss.key=xt,Ss.values=Mt;class Ns extends B{}Ns.matches=/^max-w:./,Ns.key=mt,Ns.values=Mt;class Rs extends B{}Rs.matches=/^d:./,Rs.key=Ze,Rs.semantics={hidden:Ue,hide:Ue,block:Ae,table:bt,flex:Ee,grid:Me,contents:"contents","inline-block":G(ze,Ae),"inline-flex":G(ze,Ee),"inline-grid":G(ze,Me),"inline-table":G(ze,bt)};class Ws extends B{}Ws.matches=/^box:(content|border)(?!;)/,Ws.key=G(Xe,"sizing"),Ws.values={content:G(ue,Xe),border:G(H,Xe)};class $s extends B{}$s.key="opacity",$s.unit="";class Is extends B{}Is.key="visibility",Is.semantics={visible:"visible",invisible:Qe};class Cs extends B{}Cs.key="clear";class As extends B{}As.key="float";class zs extends B{}zs.key="isolation",zs.semantics={isolate:"isolate"};class Es extends B{get props(){switch(this.prefix.slice(-2,-1)){case Re:return{"overflow-x":this};case Ne:return{"overflow-y":this};default:return{overflow:this}}}get order(){switch(this.prefix.slice(-2,-1)){case Re:case Ne:return 0;default:return-1}}}Es.id="overflow",Es.matches=/^(overflow|ovf)(-x|-y)?:./;class Ms extends B{get props(){switch(this.prefix.slice(-2,-1)){case Re:return{[G(Se,Re)]:this};case Ne:return{[G(Se,Ne)]:this};default:return{[Se]:this}}}}Ms.id="overscrollBehavior",Ms.matches=/^overscroll-behavior(?:-[xy])?:/;class Ts extends B{}Ts.matches=/^z:./,Ts.key="z-index",Ts.unit="";class Vs extends B{}Vs.matches=/^\@delay:./,Vs.key=G(ve,qe),Vs.unit="ms";class qs extends B{}qs.matches=/^\@direction:./,qs.key=G(ve,we);class _s extends B{}_s.matches=/^\@fill-mode:./,_s.key=G(ve,Ye,Oe);class Ls extends B{}Ls.matches=/^\@iteration-count:./,Ls.key=G(ve,"iteration","count"),Ls.unit="";class Ps extends B{}Ps.matches=/^\@name:./,Ps.key=G(ve,"name");class Fs extends B{}Fs.matches=/^\@play-state:./,Fs.key=G(ve,"play-state");class Zs extends B{}Zs.matches=/^\@easing:./,Zs.key=G(ve,Pe);class Qs extends B{constructor(){super(...arguments),this.order=-1}}Qs.symbol="@",Qs.key=ve,Qs.unit="";function Xs(e,t,s=""){s&&(s="-"+s);const i="border-left"+s,r="border-right"+s,n="border-top"+s,a="border-bottom"+s;switch(/^b(order)?-?(.)?/.exec(e)[2]){case Ut:return{[i]:t,[r]:t};case Dt:return{[n]:t,[a]:t};case Qt:return{[i]:t};case Xt:return{[r]:t};case Yt:return{[n]:t};case Bt:return{[a]:t};default:return{[H+s]:t}}}class Ys extends B{get props(){return Xs(this.prefix,this,ye)}get order(){return this.prefix===G(H,ye)+":"||"b:"===this.prefix||"border:"===this.prefix?-1:0}}Ys.id="borderColor",Ys.matches=/^border(-(left|right|top|bottom))?-color:./,Ys.colorStarts="b([xytblr]|(order(-(left|right|top|bottom))?))?:",Ys.colorful=!0;const Bs=G(H,Lt,Ft,J),Us=G(H,Lt,Zt,J),Ds=G(H,Pt,Ft,J),Gs=G(H,Pt,Zt,J),Hs=G(H,J),Js=[Bs,Us,Ds,Gs];class Ks extends B{get props(){var e;if(this.prefix){let e="";const t=this.prefix.split("-");if(t.length>1)for(let s=1;s<t.length-1;s++)e+=t[s][0];else e=this.prefix.slice(1,-1);switch(e){case Yt:return{[Bs]:this,[Us]:this};case"tl":case"lt":return{[Bs]:this};case"rt":case"tr":return{[Us]:this};case Bt:return{[Ds]:this,[Gs]:this};case"bl":case"lb":return{[Ds]:this};case"br":case"rb":return{[Gs]:this};case Qt:return{[Bs]:this,[Ds]:this};case Xt:return{[Us]:this,[Gs]:this};default:return{[Hs]:this}}}const t=null===(e=this.prefix)||void 0===e?void 0:e.slice(0,-1);return{[Js.includes(t)?t:Hs]:this}}get order(){return this.prefix===G(H,J)+":"||"r:"===this.prefix?-1:0}}Ks.id="borderRadius",Ks.matches=/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/,Ks.semantics={rounded:"1e9em",round:"50%"};class ei extends B{get props(){return Xs(this.prefix,this,ot)}get order(){return this.prefix===G(H,ot)+":"||"b:"===this.prefix||"border:"===this.prefix?-1:0}}ei.id="borderStyle",ei.matches=/^(border(-(left|right|top|bottom))?-style:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!;))/;class ti extends B{get props(){return Xs(this.prefix,this,$e)}get order(){return this.prefix===G(H,$e)+":"||"b:"===this.prefix||"border:"===this.prefix?-1:0}}ti.id="borderWidth",ti.matches=/^(border(-(left|right|top|bottom))?-width:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(([0-9]|(max|min|calc|clamp)\(.*\))|(max|min|calc|clamp)\(.*\))((?!;).)*$)/;class si extends B{get props(){return Xs(this.prefix,this)}get order(){return"border:"===this.prefix||"b:"===this.prefix?-2:-1}}si.id="border",si.matches=/^b([xytblr]?|order(-(left|right|top|bottom))?):./,si.colorful=!0;class ii extends B{}ii.matches=/^(bg|background):(fixed|local|scroll)(?!;)/,ii.key=G(ge,"attachment");class ri extends B{}ri.key=G(ge,xe,Oe);class ni extends B{get props(){return{"-webkit-background-clip":this,"background-clip":this}}}ni.matches=/^(bg|background):text(?!;)/,ni.key=G(ge,Be);class ai extends B{}ai.matches=/^(bg|background):transparent(?!;)/,ai.colorStarts="(bg|background):",ai.key=G(ge,ye),ai.unit="",ai.colorful=!0;class ci extends B{}ci.matches=/^(bg|background):(content|border|padding)(?!;)/,ci.key=G(ge,Ve),ci.values={content:G(ue,Xe),border:G(H,Xe),padding:G(ee,Xe)};class li extends B{}li.matches=/^(bg|background):(top|bottom|right|left|center)(?!;)/,li.key=G(ge,ct),li.unit="px";class oi extends B{}oi.matches=/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/,oi.key=G(ge,be);class di extends B{}di.matches=/^(bg|background):((auto|cover|contain)(?!;)|\.?\d((?!;).)*$)/,di.key=G(ge,it);class hi extends B{}hi.matches=/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!;).)*$/,hi.key=G(ge,fe);class ui extends B{constructor(){super(...arguments),this.order=-1}}ui.matches=/^bg:./,ui.key=ge,ui.colorful=!0;class fi extends B{}fi.matches=/^blend:./,fi.key=G("mix",xe,Oe);class mi extends B{}mi.key=ct,mi.values={abs:"absolute",rel:"relative"},mi.semantics={static:"static",fixed:"fixed",abs:"absolute",rel:"relative",sticky:"sticky"};class pi extends B{get props(){const e=this.prefix.slice(0,-1);switch(e){case Lt:case Ft:case Zt:case Pt:return{[e]:this};case"center":return{left:this,right:this,"margin-left":Object.assign(Object.assign({},this),{unit:""}),"margin-right":Object.assign(Object.assign({},this),{unit:""})};case"middle":return{top:this,bottom:this,"margin-top":Object.assign(Object.assign({},this),{unit:""}),"margin-bottom":Object.assign(Object.assign({},this),{unit:""})}}}}function xi(e,t){let s="",i=0;return function r(n,a){let c="";const l=a?t(a):"",o=()=>{c&&(s+=!l||Number.isNaN(+c)?c:+c/(l===lt?16:1)+l,c="")};for(;i<e.length;i++){const t=e[i];if(t===n&&("'"!==n||")"===e[i+1])){o(),s+=t;break}","===t||" "===t?(o(),s+=t):c||"'"!==t?c&&"("===t?(s+=c+t,i++,r(")",c),c=""):c+=t:(s+=t,i++,r(t),c="")}o()}(),s}pi.matches=/^(top|left|right|bottom|center|middle):./;class gi extends B{get props(){return{"backdrop-filter":this,"-webkit-backdrop-filter":this}}get parseValue(){return xi(this.value,(e=>{switch(e){case zt:case G(Et,de):return lt;case G("hue",_e):return Le}return""}))}}gi.matches=/^bd:./,gi.key=G("backdrop",pe);class bi extends B{}bi.key=Ye,bi.colorStarts="fill:",bi.colorful=!0;class yi extends B{}yi.key=me,yi.colorful=!0;class ki extends B{}ki.matches=/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$/,ki.key=G(me,$e);class vi extends B{get parseValue(){return xi(this.value,(e=>{switch(e){case zt:case G(Et,de):return lt;case G("hue",_e):return Le}return""}))}}vi.matches=/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,vi.key=pe;class wi extends B{}wi.key="cursor";class Oi extends B{}Oi.key=G("pointer","events");class ji extends B{}ji.key="resize";class Si extends B{}Si.key=G("touch","action");class Ni extends B{get props(){return{"user-drag":this,"-webkit-user-drag":this}}}Ni.key=G(he,"drag");class Ri extends B{get props(){return{"user-select":this,"-webkit-user-select":this}}}Ri.key=G(he,"select");class Wi extends B{}Wi.matches=/^s(?:hadow)?:./,Wi.key=G(Xe,de),Wi.colorful=!0;class $i extends B{}$i.key=G(De,de);class Ii extends B{get props(){return{"font-size":this,"line-height":Object.assign(Object.assign({},this),{value:this.unit===lt?this.value+.375+this.unit:"calc("+this.value+this.unit+" + .375rem)",unit:""})}}}Ii.id="textSize",Ii.matches=/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$/;class Ci extends B{}Ci.key=G(Ke,st),Ci.unit="",Ci.semantics={"break-word":{"overflow-wrap":G(st,Ke),overflow:Qe}};class Ai extends B{get props(){return{[Ze]:Object.assign(Object.assign({},this),{value:Me}),[G(Me,re,ae)]:Object.assign(Object.assign({},this),{value:"repeat("+this.value+se+Ce+"max(0"+",1fr))"})}}}Ai.matches=/^grid-cols:./,Ai.key=G(Me,ae),Ai.unit="";class zi extends B{get props(){return{[Ze]:Object.assign(Object.assign({},this),{value:Me}),[G(Me,rt,ie)]:Object.assign(Object.assign({},this),{value:ne}),[G(Me,re,oe)]:Object.assign(Object.assign({},this),{value:"repeat("+this.value+se+Ce+"max(0"+",1fr))"})}}}zi.key=G(Me,oe),zi.unit="";class Ei extends B{constructor(){super(...arguments),this.order=-1}get props(){switch(this.prefix[4]){case Re:return{[G(ne,ce)]:this};case Ne:return{[G(le,ce)]:this};default:return{[ce]:this}}}}Ei.id="gap",Ei.matches=/^gap(-x|-y)?:./;class Mi extends B{}Mi.key=G(Ke,ut);class Ti extends B{get props(){return{["--"+this.prefix.slice(1,-1)]:this}}}Ti.id="variable",Ti.matches=/^\$.+:./,Ti.unit="";class Vi extends B{}Vi.matches=/^aspect:./,Vi.key=G("aspect","ratio"),Vi.unit="",Vi.semantics={square:"1/1",video:"16/9"};class qi extends B{get props(){return{"box-decoration-break":this,"-webkit-box-decoration-break":this}}}qi.matches=/^box:(slice|clone)(?!;)/,qi.key=G(Xe,tt,st);class _i extends B{}_i.key=G(st,"after");class Li extends B{}Li.key=G(st,"before");class Pi extends B{}Pi.key=G(st,"inside");class Fi extends B{}Fi.key=G(Ee,"shrink"),Fi.unit="";class Zi extends B{}Zi.matches=/^flex:((row|col|column)(-reverse)?)(?!;)/,Zi.key=G(Ee,we),Zi.values={col:ne,"col-reverse":G(ne,"reverse")};class Qi extends B{}Qi.key=G(Ee,"grow"),Qi.unit="";class Xi extends B{}Xi.matches=/^flex:(wrap(-reverse)?|nowrap)(?!;)/,Xi.key=G(Ee,"wrap");class Yi extends B{}Yi.key=G(Ee,"basis"),Yi.values=Mt;class Bi extends B{constructor(){super(...arguments),this.order=-1}}Bi.key=Ee,Bi.unit="";const Ui="999999";class Di extends B{}Di.matches=/^o:./,Di.key="order",Di.values={first:"-999999",last:Ui},Di.unit="";class Gi extends B{constructor(){super(...arguments),this.order=-1}get parseValue(){return"span"===this.prefix.slice(-5,-1)&&"auto"!==this.value?"span "+this.value+"/"+"span "+this.value:this.value}}Gi.matches=/^grid-col(-span)?:./,Gi.key=G(Me,ne),Gi.unit="";class Hi extends B{}Hi.matches=/^col-span:./,Hi.key=G(ne,kt);class Ji extends B{constructor(){super(...arguments),this.order=-1}get parseValue(){return"span"===this.prefix.slice(-5,-1)&&"auto"!==this.value?"span "+this.value+"/"+"span "+this.value:this.value}}Ji.matches=/^grid-row-span:./,Ji.key=G(Me,le),Ji.unit="";class Ki extends B{}Ki.matches=/^font-color:./,Ki.colorStarts="f(ont)?:",Ki.colorful=!0,Ki.key=ye,Ki.unit="";class er extends B{}er.matches=/^ac:./,er.key=G(Ge,ue);class tr extends B{}tr.matches=/^ai:./,tr.key=G(Ge,wt);class sr extends B{}sr.matches=/^as:./,sr.key=G(Ge,Ot);class ir extends B{}ir.matches=/^grid-auto-cols:./,ir.key=G(Me,rt,ae),ir.values={min:G(Ce,ue),max:G(Ie,ue)};class rr extends B{}rr.matches=/^grid-flow:./,rr.key=G(Me,rt,ie);class nr extends B{}nr.key=G(Me,rt,oe),nr.values={min:G(Ce,ue),max:G(Ie,ue)};class ar extends B{}ar.matches=/^jc:./,ar.key=G(vt,ue);class cr extends B{}cr.matches=/^ji:./,cr.key=G(vt,wt);class lr extends B{}lr.matches=/^js:./,lr.key=G(vt,Ot);class or extends B{constructor(){super(...arguments),this.order=-1}}or.key=G(jt,ue);class dr extends B{constructor(){super(...arguments),this.order=-1}}dr.key=G(jt,wt);class hr extends B{constructor(){super(...arguments),this.order=-1}}hr.key=G(jt,Ot);class ur extends B{get props(){return{[this.prefix.slice(0,-1)]:this}}get order(){return"padding:"===this.prefix?-1:0}}ur.id="padding",ur.matches=/^padding(?:-(?:left|right|top|bottom))?:./;class fr extends B{get props(){return{[this.prefix.slice(0,-1)]:this}}get order(){return"margin:"===this.prefix?-1:0}}fr.id="margin",fr.matches=/^margin(-(left|right|top|bottom))?:./;class mr extends B{}mr.matches=/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!;))/,mr.key=G(De,"overflow");class pr extends B{}pr.matches=/^list-style:(inside|outside)(?!;)/,pr.key=G(yt,ot,ct);class xr extends B{}xr.matches=/^list-style:(none|disc|decimal)(?!;)/,xr.key=G(yt,ot,St);class gr extends B{constructor(){super(...arguments),this.order=-1}}gr.key=G(yt,ot);class br extends B{}br.key=G(De,tt,ye),br.colorStarts="text-decoration:",br.colorful=!0;class yr extends B{}yr.matches=/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!;)/,yr.key=G(De,tt,ot);class kr extends B{}kr.matches=/^text-decoration:(from-font(?!;)|([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$)/,kr.key=G(De,tt,"thickness"),kr.unit="em";class vr extends B{}vr.key=G(De,"indent");class wr extends B{}wr.key=ue;class Or extends B{}Or.key=G(Rt,ye),Or.colorStarts="outline:",Or.colorful=!0;class jr extends B{}jr.key=G(Rt,Nt);class Sr extends B{}Sr.matches=/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!;)/,Sr.key=G(Rt,ot);class Nr extends B{}Nr.matches=/^outline:([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$/,Nr.key=G(Rt,$e);class Rr extends B{constructor(){super(...arguments),this.order=-1}}Rr.key=Rt;class Wr extends B{}Wr.matches=/^b(order)?:(collapse|separate)(?!;)/,Wr.key=G(H,"collapse");class $r extends B{}$r.key=G(H,ut);class Ir extends B{}Ir.key=G(bt,"layout");class Cr extends B{}Cr.key=G("accent",ye),Cr.colorStarts="accent:",Cr.colorful=!0;class Ar extends B{}Ar.key="appearance";class zr extends B{}zr.key=G("caret",ye),zr.matches=/^caret:transparent(?!;)/,zr.colorStarts="caret:",zr.colorful=!0;class Er extends B{}Er.key=G(ke,je);class Mr extends B{get props(){if("m"!==this.prefix.slice(-3,-2))return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:this};{const e=G(ke,K)+"-",t=e+Ft,s=e+Zt,i=e+Lt,r=e+Pt;switch(this.prefix.slice(-2,-1)){case Ut:return{[t]:this,[s]:this};case Dt:return{[i]:this,[r]:this};case Qt:return{[t]:this};case Xt:return{[s]:this};case Yt:return{[i]:this};case Bt:return{[r]:this}}}}get order(){return this.prefix===G(ke,K)+":"||this.prefix===G(ke,"m:")?-1:0}}Mr.id="scrollMargin",Mr.matches=/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./;class Tr extends B{get props(){if("p"!==this.prefix.slice(-3,-2))return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:this};{const e=G(ke,ee)+"-",t=e+Ft,s=e+Zt,i=e+Lt,r=e+Pt;switch(this.prefix.slice(-2,-1)){case Ut:return{[t]:this,[s]:this};case Dt:return{[i]:this,[r]:this};case Qt:return{[t]:this};case Xt:return{[s]:this};case Yt:return{[i]:this};case Bt:return{[r]:this}}}}get order(){return this.prefix===G(ke,ee)+":"||this.prefix===G(ke,"p:")?-1:0}}Tr.id="scrollPadding",Tr.matches=/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./;class Vr extends B{}Vr.matches=/^scroll-snap:(start|end|center)/,Vr.key=G(ke,Wt,Ge);class qr extends B{}qr.matches=/^scroll-snap:(normal|always)(?!;)/,qr.key=G(ke,Wt,"stop");class _r extends B{}_r.matches=/^scroll-snap:(([xy]|block|inline|both)(;(proximity|mandatory))?)(?!;)/,_r.key=G(ke,Wt,St);class Lr extends B{}Lr.key="will-change";class Pr extends B{}Pr.key=G(De,"underline",Nt);class Fr extends B{get props(){return{[this.prefix.slice(0,-1)]:this}}}Fr.matches=/^(?:top|bottom|left|right):./,Fr.key="inset",Fr.semantics={center:{left:0,right:0,"margin-left":rt,"margin-right":rt},middle:{top:0,bottom:0,"margin-top":rt,"margin-bottom":rt}};class Zr extends B{constructor(){super(...arguments),this.order=-1}}Zr.matches=/^(columns|cols):./,Zr.key=ae,Zr.unit="";class Qr extends B{}Qr.key=G("white",et),Qr.unit="",Qr.semantics={"break-spaces":{"white-space":G(st,et)+"s"}};class Xr extends B{}Xr.matches=/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!;)/,Xr.key=G(De,"orientation");class Yr extends B{}Yr.key=G("writing",Oe);class Br extends B{}Br.key="contain";class Ur extends B{}Ur.matches=/^\@duration:./,Ur.key=G(ve,Fe),Ur.unit="ms";class Dr extends B{}Dr.matches=/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!;)/,Dr.key=G(De,"rendering");class Gr extends B{}Gr.key=we;class Hr extends B{}Hr.matches=/^t(ext)?:(none|underline|overline|line-through)(?!;)/,Hr.key=G(De,tt,nt);class Jr extends B{}Jr.matches=/^grid-col-start:./,Jr.key=G(Me,ne,At),Jr.unit="";class Kr extends B{}Kr.matches=/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!;).)*$/,Kr.key=G(yt,ot,fe);class en extends B{}en.matches=/^shape:((margin|content|border|padding)(?!;)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!;).)*$)/,en.key=G($t,"outside"),en.values={content:G(ue,Xe),border:G(H,Xe),padding:G(ee,Xe),margin:G(K,Xe)};class tn extends B{}tn.matches=/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!;).)*$/,tn.key=G($t,K);class sn extends B{}sn.key=G($t,fe,"threshold"),sn.unit="";class rn extends B{}rn.matches=/^clip:./,rn.key=G(Be,"path"),rn.values={content:G(ue,Xe),border:G(H,Xe),padding:G(ee,Xe),margin:G(K,Xe),fill:G(Ye,Xe),stroke:G(me,Xe),view:G(It,Xe)};class nn extends B{constructor(){super(...arguments),this.order=-1}}nn.key=Me;class an extends B{constructor(){super(...arguments),this.order=-1}}an.matches=/^f:./,an.key=te,an.unit="",an.colorful=!0;class cn extends B{}cn.key="quotes";class ln extends B{constructor(){super(...arguments),this.order=-1}}ln.key=G(Me,re);class on extends B{}on.key=G(Me,le,At),on.unit="";class dn extends B{}dn.key=G(Me,re,Ct)+"s";class hn extends B{}hn.matches=/^grid-template-cols:./,hn.key=G(Me,re,ae),hn.values={min:G(Ce,ue),max:G(Ie,ue)};class un extends B{}un.key=G(Me,re,oe),un.values={min:G(Ce,ue),max:G(Ie,ue)};class fn extends B{constructor(){super(...arguments),this.order=-1}}fn.key=G(Me,Ct),fn.unit="";class mn extends B{}mn.matches=/^grid-col-end:./,mn.key=G(Me,ne,"end"),mn.unit="";class pn extends B{}pn.key=G(Me,le,"end"),pn.unit="";class xn extends B{get props(){return{"mask-image":this,"-webkit-mask-image":this}}}xn.key=G("mask",fe);class gn extends B{get props(){return{"-webkit-text-fill-color":this}}}gn.id="textFillColor",gn.matches=/^text-fill-color:./,gn.colorStarts="text-fill:",gn.colorful=!0;class bn extends B{get props(){return{"-webkit-text-stroke":this}}}bn.id="textStroke",bn.matches=/^text-stroke:./;class yn extends B{get props(){return{"-webkit-text-stroke-width":this}}}yn.id="textStrokeWidth",yn.matches=/^text-stroke(:((thin|medium|thick)(?!;)|\.?\d((?!;).)*$)|-width:.)/;class kn extends B{get props(){return{"-webkit-text-stroke-color":this}}}kn.id="textStrokeColor",kn.matches=/^text-stroke-color:./,kn.colorStarts="text-stroke:",kn.colorful=!0;class vn extends B{}vn.key=G(me,"dasharray");class wn extends B{}wn.key=G(me,"dash")+Nt;class On extends B{}On.key="x",On.unit="";class jn extends B{}jn.key="y",jn.unit="";class Sn extends B{}Sn.key="cx",Sn.unit="";class Nn extends B{}Nn.key="cy",Nn.unit="";class Rn extends B{}Rn.key="rx",Rn.unit="";class Wn extends B{}Wn.key="ry",Wn.unit="";class $n extends B{}$n.key=G(H,fe,"outset");class In extends B{}In.matches=/^border-image:(?:stretch|repeat|round|space)(?:(?!;).)*$/,In.key=G(H,fe,be);class Cn extends B{}Cn.key=G(H,fe,"slice"),Cn.unit="";class An extends B{}An.matches=/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!;).)*$/,An.key=G(H,fe,"source");class zn extends B{}zn.matches=/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!;).)*$/,zn.key=G(H,fe,$e);class En extends B{}En.key=G(H,fe),En.unit="";class Mn extends B{get props(){return{}}}Mn.id="group",Mn.matches=/^{/,Mn.unit="";const Tn="undefined"!=typeof window,Vn=[Mn,Ti,Tt,qt,Ki,Gt,fr,ur,_t,Yi,Xi,Qi,Fi,Zi,Bi,Rs,Ht,Jt,Kt,es,Br,wr,ts,ns,as,cs,an,ls,os,ds,hs,br,yr,kr,Hr,us,Pr,mr,Xr,fs,Dr,vr,ms,Zr,Qr,Fr,ps,Ss,Ns,Ws,$s,Is,Cs,As,zs,Es,Ms,Ts,mi,pi,wi,Oi,ji,Si,Ci,Mi,Ni,Ri,$i,Ii,gn,yn,kn,bn,Wi,Ir,bs,gs,xs,ys,Os,js,ws,vs,ks,Vs,qs,Ur,_s,Ls,Ps,Fs,Zs,Qs,Ys,Ks,ei,ti,Wr,$r,si,$n,In,Cn,An,zn,En,ii,ri,ni,ai,ci,li,oi,di,hi,ui,fi,gi,vi,bi,vn,wn,ki,yi,On,jn,Sn,Nn,Rn,Wn,Jr,mn,Gi,Ai,on,pn,Ji,zi,ir,rr,nr,dn,hn,un,ln,fn,nn,Ei,Di,Pi,Li,_i,qi,Vi,Hi,er,tr,sr,ar,cr,lr,or,dr,hr,pr,xr,Kr,gr,Or,jr,Sr,Nr,Rr,Cr,Ar,zr,Er,Mr,Tr,Vr,qr,_r,Lr,Yr,Gr,en,tn,sn,rn,cn,xn],qn=Vn.get=e=>Vn.find((t=>{var s;return e===t.id||e===(null===(s=t.key)||void 0===s?void 0:s.replace(/-./g,(e=>e[1].toUpperCase())))||e===t.key}));function _n(){if(Tn){const e=new x(document.head);x.root=e,e.observe(document.documentElement)}}Vn.extend=(e,t,s=!0)=>{for(const s in t){const i=qn(s);if(i){const r=t[s];i.extend(e,r)}}s&&x.refresh()},B.extend("colors",i.colors,!1),B.extend("breakpoints",r.breakpoints,!1),x.Styles.push(...Vn);Tn&&(window.initMasterStyles=_n,window.MasterStyles=Vn,window.MasterStylesManual||_n())},342:(e,t,s)=>{"use strict";function i(e,t){let s=":root{";for(const i in t)s+="--"+e+(i?"-"+i:"")+":"+t[i]+";";return s+="}",s}s.d(t,{i:()=>i})}},t={};function s(i){var r=t[i];if(void 0!==r)return r.exports;var n=t[i]={exports:{}};return e[i].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";s.r(i),s.d(i,{render:()=>r});var e=s(703),t=(s(131),s(342));function r(s){if(!s)return{stylesCss:"",colorsCss:"",colorsMetaContent:"",html:s};const i=new e.StyleSheet,r=/\sclass="([^"]*)"/gm;let n;for(;n=r.exec(s);){const e=n[1].replace(/\n/g,"").split(" ").filter((e=>e));for(const t of e)t in i.countOfName||(i.findAndInsert(t),i.countOfName[t]=1)}const a=i.styles.map((e=>e.text)).join(""),c=e.Style.colorNames.map((s=>(0,t.i)(s,e.Style.rgbColors[s]))).join(""),l=e.Style.colorNames.join(",");return{stylesCss:a,colorsCss:c,colorsMetaContent:l,html:s.includes("<head>")?s.replace(/(<head>)/,`$1\n <style id="master-colors">${c}</style>\n <style id="master-styles">${a}</style>\n <meta name="master:colors" content="${l}"></meta>`):s}}})(),i})()})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@master/styles"]=t():e["@master/styles"]=t()}(this,(function(){return(()=>{var e={131:function(e,t,r){var o;o=void 0!==r.g?r.g:this,e.exports=function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var t,r=String(e),o=r.length,n=-1,s="",c=r.charCodeAt(0);++n<o;)0!=(t=r.charCodeAt(n))?s+=t>=1&&t<=31||127==t||0==n&&t>=48&&t<=57||1==n&&t>=48&&t<=57&&45==c?"\\"+t.toString(16)+" ":0==n&&1==o&&45==t||!(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122)?"\\"+r.charAt(n):r.charAt(n):s+="�";return s};return e.CSS||(e.CSS={}),e.CSS.escape=t,t}(o)}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var s=t[o]={exports:{}};return e[o].call(s.exports,s,s.exports,r),s.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.r(o),r.d(o,{render:()=>e});r(131);function e(e,t){if(!e)return{stylesCss:"",colorsCss:"",colorsMetaContent:"",html:e};const{Style:r,StyleSheet:o}=t,n=new o,s=/\sclass="([^"]*)"/gm;let c;for(;c=s.exec(e);){const e=c[1].replace(/\n/g,"").split(" ").filter((e=>e));for(const t of e)t in n.countOfName||(n.findAndInsert(t),n.countOfName[t]=1)}const i=n.styles.map((e=>e.text)).join(""),a=r.colorNames.map((e=>function(e,t){let r=":root{";for(const o in t)r+="--"+e+(o?"-"+o:"")+":"+t[o]+";";return r+="}",r}(e,r.rgbColors[e]))).join(""),l=r.colorNames.join(",");return{stylesCss:i,colorsCss:a,colorsMetaContent:l,html:e.includes("<head>")?e.replace(/(<head>)/,`$1\n <style id="master-colors">${a}</style>\n <style id="master-styles">${i}</style>\n <meta name="master:colors" content="${l}"></meta>`):e}}})(),o})()})); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106942
219
1918