text: /*!
   * flashCSS 1.0.6
   * 2022-03-02
   * https://github.com/kymmax/flashCSS
   * 
   * @license Copyright 2022, flashCSS. All rights reserved.
   * @author: Jason Kuo, kymmax0420@gmail.com
   * 
   * Licensed MIT
   */
  export function flashCSS(a){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),String.prototype.includes||(String.prototype.includes=function(){'use strict';return-1!==String.prototype.indexOf.apply(this,arguments)}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),a?a:a={};var b=this,c={xs:"0px",sm:(a.media&&a.media.sm?a.media.sm:576)+"px",md:(a.media&&a.media.md?a.media.md:768)+"px",lg:(a.media&&a.media.lg?a.media.lg:992)+"px",xl:(a.media&&a.media.xl?a.media.xl:1280)+"px"},d={d:["display"],flexDir:["flex-direction"],justifyContent:["justify-content"],alignItems:["align-items"],alignSelf:["align-self"],justifyAlign:["justify-content","align-items"],flexWrap:["flex-wrap"],order:["order"],flex:["flex"],ps:["position"],w:["width"],h:["height"],wh:["width","height"],maxw:["max-width"],minw:["min-width"],maxh:["max-height"],minh:["min-height"],colCount:["column-count"],colGap:["column-gap"],colSpan:["column-span"],p:["padding"],pr:["padding-right"],pl:["padding-left"],pt:["padding-top"],pb:["padding-bottom"],px:["padding-left","padding-right"],py:["padding-top","padding-bottom"],m:["margin"],mr:["margin-right"],ml:["margin-left"],mt:["margin-top"],mb:["margin-bottom"],mx:["margin-left","margin-right"],my:["margin-top","margin-bottom"],at:["top"],ab:["bottom"],al:["left"],ar:["right"],fz:["font-size"],fl:["letter-spacing"],fh:["line-height"],fa:["text-align"],fw:["font-weight"],br:["border"],bw:["border-width"],bc:["border-color"],bs:["border-style"],round:["border-radius"],sdb:["box-shadow"],sdt:["text-shadow"],color:["color"],bg:["background"],bgc:["background-color"],trans:["transition"],o:["opacity"],ov:["overflow"],ws:["white-space"],pointer:["pointer-events"],z:["z-index"],objFit:["object-fit"],objPos:["object-position"],ani:["animation"]},e={dot:".",neg:"-",per:"%",hash:"#",_:" ",plus:",",rgba:"rgba(",br:")",imp:"!important"};this.init=function(){var f="",g=[],h={xs:"",sm:"",md:"",lg:"",xl:""};document.querySelectorAll("[class]").forEach(function(i){var j=i.getAttribute("class").split(" ");j.forEach(function(j){Object.keys(d).forEach(function(i){-1==j.indexOf(i)||Object.keys(c).forEach(function(c){"xs"==c?c="":c;var k=""==c?c:c+"-",l=i+"-"+k,m=j.split(l)[1],n=j.split(l)[1],o=d[i],p=l+m,q=!1;if(g.forEach(function(a){if(l+m==a&&!q)return void(q=!0)}),0==j.indexOf(l)&&!m.includes("-")&&!q){var r=n.split(/(?=[A-Z])/);r.forEach(function(a,b){0<b?n+="-"+a.toLowerCase():n=a}),Object.keys(e).forEach(function(a){m.includes(a)&&n.split(a).forEach(function(c,d){if(0<d){if("rgba"==a){var f="";if(c.includes("hash")&&(f="hash"),c.includes("#")&&(f="#"),0!=f.length){var g=c.substring(f.length,f.length+6),h=b.hexToRgb("#"+g);c=c.replace("#"+g,h.r+","+h.g+","+h.b)}}n+=e[a]+c}else n=c})});var s="";return o.forEach(function(b){var c=b+": "+n+(a.important?" !important":"")+";";s+=c}),""==c?f+="."+p+"{"+s+"} ":h[c]+="."+p+"{"+s+"}",void g.push(p)}})})})}),Object.keys(h).forEach(function(a){f+="@media (min-width:"+c[a]+") {"+h[a]+"} "});var i=document.querySelectorAll("style[data-css=\"js\"]")[0];i!=null&&i.remove();var j=document.getElementsByTagName(a&&a.style?a.style:"head")[0],k=document.createElement("style");k.type="text/css",k.setAttribute("data-css","js"),j.appendChild(k),k.appendChild(document.createTextNode(f)),a&&a.onCompleted&&a.onCompleted()},this.observer=function(){var a=document.querySelectorAll("[class]"),c=new MutationObserver(function(a){a.forEach(function(a){"class"===a.attributeName&&(console.log("Class attribute changed"),b.init())})});a.forEach(function(a){c.observe(a,{attributes:!0})})},a&&a.observe&&this.observer(),this.hexToRgb=function(a){var b=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return b?{r:parseInt(b[1],16),g:parseInt(b[2],16),b:parseInt(b[3],16)}:null},this.init()}