From 6ae484b20ef02a0a164b5b04085ef55521a0df5b Mon Sep 17 00:00:00 2001 From: Filipe Lukebana <31851972+LUK3D@users.noreply.github.com> Date: Mon, 13 Jun 2022 13:48:12 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80Updated=20Minified=20Version=20on?= =?UTF-8?q?=20Dist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- dist/flutjs.min.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ec44a4..75fe357 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# v0.2.2-alpha-1 (2022-06-13) +# v0.2.3-alpha-1 (2022-06-13) This version comes with Some Features, Updates and Enhancements ## Feature * Added `Radius` Class. diff --git a/dist/flutjs.min.js b/dist/flutjs.min.js index 67b520a..198c458 100644 --- a/dist/flutjs.min.js +++ b/dist/flutjs.min.js @@ -1 +1 @@ -(()=>{"use strict";var t,e,h,o,i,n,s,r,x,a=function(t){this.a=t.a,this.r=t.r,this.g=t.g,this.b=t.b,this.value=t.value,this.withAlpha=t.withAlpha,this.withOpacity=t.withOpacity,this.withRed=t.withRed,this.withGreen=t.withGreen,this.withBlue=t.withBlue};new(function(){function t(t){var e=t.a,h=void 0===e?1:e,o=t.r,i=void 0===o?255:o,n=t.g,s=void 0===n?255:n,r=t.b,x=void 0===r?255:r;this.White=this.hexToRgb({hex:"FFFFFF"}),this.Black=this.hexToRgb({hex:"000000"}),this.Rose={50:this.hexToRgb({hex:"fff1f2"}),100:this.hexToRgb({hex:"ffe4e6"}),200:this.hexToRgb({hex:"fecdd3"}),300:this.hexToRgb({hex:"fda4af"}),400:this.hexToRgb({hex:"fb7185"}),500:this.hexToRgb({hex:"f43f5e"}),600:this.hexToRgb({hex:"e11d48"}),700:this.hexToRgb({hex:"be123c"}),800:this.hexToRgb({hex:"9f1239"}),900:this.hexToRgb({hex:"881337"})},this.Pink={50:this.hexToRgb({hex:"fdf2f8"}),100:this.hexToRgb({hex:"fce7f3"}),200:this.hexToRgb({hex:"fbcfe8"}),300:this.hexToRgb({hex:"f9a8d4"}),400:this.hexToRgb({hex:"f472b6"}),500:this.hexToRgb({hex:"f472b6"}),600:this.hexToRgb({hex:"db2777"}),700:this.hexToRgb({hex:"be185d"}),800:this.hexToRgb({hex:"9d174d"}),900:this.hexToRgb({hex:"831843"})},this.Fuchsia={50:this.hexToRgb({hex:"fdf4ff"}),100:this.hexToRgb({hex:"f472b6"}),200:this.hexToRgb({hex:"f5d0fe"}),300:this.hexToRgb({hex:"f0abfc"}),400:this.hexToRgb({hex:"e879f9"}),500:this.hexToRgb({hex:"d946ef"}),600:this.hexToRgb({hex:"c026d3"}),700:this.hexToRgb({hex:"a21caf"}),800:this.hexToRgb({hex:"a21caf"}),900:this.hexToRgb({hex:"701a75"})},this.Purple={50:this.hexToRgb({hex:"faf5ff"}),100:this.hexToRgb({hex:"f3e8ff"}),200:this.hexToRgb({hex:"e9d5ff"}),300:this.hexToRgb({hex:"d8b4fe"}),400:this.hexToRgb({hex:"c084fc"}),500:this.hexToRgb({hex:"a855f7"}),600:this.hexToRgb({hex:"9333ea"}),700:this.hexToRgb({hex:"7e22ce"}),800:this.hexToRgb({hex:"6b21a8"}),900:this.hexToRgb({hex:"581c87"})},this.Violet={50:this.hexToRgb({hex:"f5f3ff"}),100:this.hexToRgb({hex:"ede9fe"}),200:this.hexToRgb({hex:"ddd6fe"}),300:this.hexToRgb({hex:"c4b5fd"}),400:this.hexToRgb({hex:"a78bfa"}),500:this.hexToRgb({hex:"8b5cf6"}),600:this.hexToRgb({hex:"7c3aed"}),700:this.hexToRgb({hex:"6d28d9"}),800:this.hexToRgb({hex:"5b21b6"}),900:this.hexToRgb({hex:"4c1d95"})},this.Indigo={50:this.hexToRgb({hex:"eef2ff"}),100:this.hexToRgb({hex:"e0e7ff"}),200:this.hexToRgb({hex:"c7d2fe"}),300:this.hexToRgb({hex:"a5b4fc"}),400:this.hexToRgb({hex:"818cf8"}),500:this.hexToRgb({hex:"6366f1"}),600:this.hexToRgb({hex:"4f46e5"}),700:this.hexToRgb({hex:"4338ca"}),800:this.hexToRgb({hex:"3730a3"}),900:this.hexToRgb({hex:"312e81"})},this.Blue={50:this.hexToRgb({hex:"eff6ff"}),100:this.hexToRgb({hex:"dbeafe"}),200:this.hexToRgb({hex:"bfdbfe"}),300:this.hexToRgb({hex:"93c5fd"}),400:this.hexToRgb({hex:"60a5fa"}),500:this.hexToRgb({hex:"3b82f6"}),600:this.hexToRgb({hex:"2563eb"}),700:this.hexToRgb({hex:"1d4ed8"}),800:this.hexToRgb({hex:"1d4ed8"}),900:this.hexToRgb({hex:"1e3a8a"})},this.Sky={50:this.hexToRgb({hex:"f0f9ff"}),100:this.hexToRgb({hex:"e0f2fe"}),200:this.hexToRgb({hex:"bae6fd"}),300:this.hexToRgb({hex:"7dd3fc"}),400:this.hexToRgb({hex:"38bdf8"}),500:this.hexToRgb({hex:"0ea5e9"}),600:this.hexToRgb({hex:"0284c7"}),700:this.hexToRgb({hex:"0369a1"}),800:this.hexToRgb({hex:"075985"}),900:this.hexToRgb({hex:"0c4a6e"})},this.Cyan={50:this.hexToRgb({hex:"ecfeff"}),100:this.hexToRgb({hex:"cffafe"}),200:this.hexToRgb({hex:"a5f3fc"}),300:this.hexToRgb({hex:"67e8f9"}),400:this.hexToRgb({hex:"22d3ee"}),500:this.hexToRgb({hex:"06b6d4"}),600:this.hexToRgb({hex:"0891b2"}),700:this.hexToRgb({hex:"0e7490"}),800:this.hexToRgb({hex:"155e75"}),900:this.hexToRgb({hex:"164e63"})},this.Teal={50:this.hexToRgb({hex:"f0fdfa"}),100:this.hexToRgb({hex:"ccfbf1"}),200:this.hexToRgb({hex:"99f6e4"}),300:this.hexToRgb({hex:"5eead4"}),400:this.hexToRgb({hex:"2dd4bf"}),500:this.hexToRgb({hex:"14b8a6"}),600:this.hexToRgb({hex:"0d9488"}),700:this.hexToRgb({hex:"0f766e"}),800:this.hexToRgb({hex:"115e59"}),900:this.hexToRgb({hex:"134e4a"})},this.Emerald={50:this.hexToRgb({hex:"ecfdf5"}),100:this.hexToRgb({hex:"d1fae5"}),200:this.hexToRgb({hex:"a7f3d0"}),300:this.hexToRgb({hex:"6ee7b7"}),400:this.hexToRgb({hex:"34d399"}),500:this.hexToRgb({hex:"10b981"}),600:this.hexToRgb({hex:"059669"}),700:this.hexToRgb({hex:"047857"}),800:this.hexToRgb({hex:"065f46"}),900:this.hexToRgb({hex:"064e3b"})},this.Green={50:this.hexToRgb({hex:"f0fdf4"}),100:this.hexToRgb({hex:"dcfce7"}),200:this.hexToRgb({hex:"bbf7d0"}),300:this.hexToRgb({hex:"86efac"}),400:this.hexToRgb({hex:"4ade80"}),500:this.hexToRgb({hex:"22c55e"}),600:this.hexToRgb({hex:"16a34a"}),700:this.hexToRgb({hex:"15803d"}),800:this.hexToRgb({hex:"166534"}),900:this.hexToRgb({hex:"14532d"})},this.Lime={50:this.hexToRgb({hex:"f7fee7"}),100:this.hexToRgb({hex:"ecfccb"}),200:this.hexToRgb({hex:"d9f99d"}),300:this.hexToRgb({hex:"bef264"}),400:this.hexToRgb({hex:"a3e635"}),500:this.hexToRgb({hex:"84cc16"}),600:this.hexToRgb({hex:"65a30d"}),700:this.hexToRgb({hex:"4d7c0f"}),800:this.hexToRgb({hex:"3f6212"}),900:this.hexToRgb({hex:"365314"})},this.Yellow={50:this.hexToRgb({hex:"fefce8"}),100:this.hexToRgb({hex:"fef9c3"}),200:this.hexToRgb({hex:"fef08a"}),300:this.hexToRgb({hex:"fde047"}),400:this.hexToRgb({hex:"facc15"}),500:this.hexToRgb({hex:"eab308"}),600:this.hexToRgb({hex:"ca8a04"}),700:this.hexToRgb({hex:"a16207"}),800:this.hexToRgb({hex:"854d0e"}),900:this.hexToRgb({hex:"713f12"})},this.Amber={50:this.hexToRgb({hex:"fffbeb"}),100:this.hexToRgb({hex:"fef3c7"}),200:this.hexToRgb({hex:"fde68a"}),300:this.hexToRgb({hex:"fcd34d"}),400:this.hexToRgb({hex:"fbbf24"}),500:this.hexToRgb({hex:"f59e0b"}),600:this.hexToRgb({hex:"d97706"}),700:this.hexToRgb({hex:"b45309"}),800:this.hexToRgb({hex:"92400e"}),900:this.hexToRgb({hex:"78350f"})},this.Orange={50:this.hexToRgb({hex:"fff7ed"}),100:this.hexToRgb({hex:"ffedd5"}),200:this.hexToRgb({hex:"fed7aa"}),300:this.hexToRgb({hex:"fdba74"}),400:this.hexToRgb({hex:"fb923c"}),500:this.hexToRgb({hex:"f97316"}),600:this.hexToRgb({hex:"ea580c"}),700:this.hexToRgb({hex:"c2410c"}),800:this.hexToRgb({hex:"9a3412"}),900:this.hexToRgb({hex:"7c2d12"})},this.Red={50:this.hexToRgb({hex:"fef2f2"}),100:this.hexToRgb({hex:"fee2e2"}),200:this.hexToRgb({hex:"fecaca"}),300:this.hexToRgb({hex:"fca5a5"}),400:this.hexToRgb({hex:"f87171"}),500:this.hexToRgb({hex:"ef4444"}),600:this.hexToRgb({hex:"dc2626"}),700:this.hexToRgb({hex:"b91c1c"}),800:this.hexToRgb({hex:"991b1b"}),900:this.hexToRgb({hex:"7f1d1d"})},this.Stone={50:this.hexToRgb({hex:"fafaf9"}),100:this.hexToRgb({hex:"f5f5f4"}),200:this.hexToRgb({hex:"e7e5e4"}),300:this.hexToRgb({hex:"d6d3d1"}),400:this.hexToRgb({hex:"a8a29e"}),500:this.hexToRgb({hex:"78716c"}),600:this.hexToRgb({hex:"57534e"}),700:this.hexToRgb({hex:"44403c"}),800:this.hexToRgb({hex:"292524"}),900:this.hexToRgb({hex:"1c1917"})},this.Neutral={50:this.hexToRgb({hex:"fafafa"}),100:this.hexToRgb({hex:"f5f5f5"}),200:this.hexToRgb({hex:"e5e5e5"}),300:this.hexToRgb({hex:"d4d4d4"}),400:this.hexToRgb({hex:"a3a3a3"}),500:this.hexToRgb({hex:"737373"}),600:this.hexToRgb({hex:"525252"}),700:this.hexToRgb({hex:"404040"}),800:this.hexToRgb({hex:"262626"}),900:this.hexToRgb({hex:"171717"})},this.Zinc={50:this.hexToRgb({hex:"fafafa"}),100:this.hexToRgb({hex:"f4f4f5"}),200:this.hexToRgb({hex:"e4e4e7"}),300:this.hexToRgb({hex:"d4d4d8"}),400:this.hexToRgb({hex:"a1a1aa"}),500:this.hexToRgb({hex:"71717a"}),600:this.hexToRgb({hex:"52525b"}),700:this.hexToRgb({hex:"3f3f46"}),800:this.hexToRgb({hex:"3f3f46"}),900:this.hexToRgb({hex:"18181b"})},this.Gray={50:this.hexToRgb({hex:"f9fafb"}),100:this.hexToRgb({hex:"f3f4f6"}),200:this.hexToRgb({hex:"f3f4f6"}),300:this.hexToRgb({hex:"d1d5db"}),400:this.hexToRgb({hex:"9ca3af"}),500:this.hexToRgb({hex:"6b7280"}),600:this.hexToRgb({hex:"4b5563"}),700:this.hexToRgb({hex:"374151"}),800:this.hexToRgb({hex:"1f2937"}),900:this.hexToRgb({hex:"111827"})},this.Slate={50:this.hexToRgb({hex:"f8fafc"}),100:this.hexToRgb({hex:"f1f5f9"}),200:this.hexToRgb({hex:"e2e8f0"}),300:this.hexToRgb({hex:"cbd5e1"}),400:this.hexToRgb({hex:"94a3b8"}),500:this.hexToRgb({hex:"64748b"}),600:this.hexToRgb({hex:"475569"}),700:this.hexToRgb({hex:"334155"}),800:this.hexToRgb({hex:"1e293b"}),900:this.hexToRgb({hex:"0f172a"})},this.color=new a({r:0,g:0,b:0,a:1}),this.color=this.fromARGB({a:h,r:i,g:s,b:x}),this.color.withAlpha=this.withAlpha,this.color.withOpacity=this.withOpacity,this.color.withRed=this.withRed,this.color.withGreen=this.withGreen,this.color.withBlue=this.withBlue}return t.prototype.fromARGB=function(t){var e=t.a,h=void 0===e?1:e,o=t.r,i=t.g,n=t.b;return 255==o&&255==i&&255==n?(console.log({r:o,g:i,b:n,a:h}),this.color=new a({a:h,r:o,g:i,b:n}),this.color.value="rgba(".concat(o,", ").concat(i,", ").concat(n,", ").concat(h,")"),this.color):(this.color=new a({a:h,r:o,g:i,b:n}),this.color.value="rgba(".concat(o,", ").concat(i,", ").concat(n,", ").concat(h,")"),this.color)},t.prototype.hexToRgb=function(t){var e=t.hex,h=t.alpha,o=void 0===h?1:h;e=e.replace("#","");var i=parseInt(3==e.length?e.slice(0,1).repeat(2):e.slice(0,2),16),n=parseInt(3==e.length?e.slice(1,2).repeat(2):e.slice(2,4),16),s=parseInt(3==e.length?e.slice(2,3).repeat(2):e.slice(4,6),16);return console.log({color:e,code:{r:i,g:n,b:s,a:o}}),o?this.fromARGB({r:i,g:n,b:s,a:o}):this.fromARGB({r:i,g:n,b:s})},t.prototype.withAlpha=function(t){return this.fromARGB({r:this.color.r,g:this.color.g,b:this.color.b,a:t}).value},t.prototype.withOpacity=function(t){return this.fromARGB({r:this.color.r,g:this.color.g,b:this.color.b,a:Math.round(255*t)}).value},t.prototype.withRed=function(t){return this.fromARGB({a:this.color.a,r:t,g:this.color.g,b:this.color.b}).value},t.prototype.withGreen=function(t){return this.fromARGB({a:this.color.a,r:this.color.r,g:t,b:this.color.b}).value},t.prototype.withBlue=function(t){return this.fromARGB({a:this.color.a,r:this.color.r,g:this.color.g,b:t}).value},t.prototype.fromUtil=function(t){return this.color.value=t,this.color.value},t}())({}),function(t){t[t.fixed=0]="fixed",t[t.local=1]="local",t[t.scroll=2]="scroll"}(t||(t={})),function(t){t[t.borderBox=0]="borderBox",t[t.paddingBox=1]="paddingBox",t[t.contentBox=2]="contentBox",t[t.text=3]="text"}(e||(e={})),function(t){t[t.borderBox=0]="borderBox",t[t.paddingBox=1]="paddingBox",t[t.contentBox=2]="contentBox"}(h||(h={})),function(t){t[t.bottom=0]="bottom",t[t.center=1]="center",t[t.left=2]="left",t[t.leftBottom=3]="leftBottom",t[t.leftTop=4]="leftTop",t[t.right=5]="right",t[t.rightBottom=6]="rightBottom",t[t.rightTop=7]="rightTop",t[t.top=8]="top"}(o||(o={})),function(t){t[t.repeat=0]="repeat",t[t.noRepeat=1]="noRepeat",t[t.repeatX=2]="repeatX",t[t.repeatY=3]="repeatY",t[t.round=4]="round",t[t.space=5]="space"}(i||(i={})),function(t){t[t.auto=0]="auto",t[t.cover=1]="cover",t[t.contain=2]="contain"}(n||(n={})),function(t){t[t.normal=0]="normal",t[t.italic=1]="italic"}(s||(s={})),function(t){t[t.w100=0]="w100",t[t.w200=1]="w200",t[t.w300=2]="w300",t[t.w400=3]="w400",t[t.w500=4]="w500",t[t.w600=5]="w600",t[t.w700=6]="w700",t[t.w800=7]="w800",t[t.w900=8]="w900",t[t.normal=9]="normal",t[t.bold=10]="bold"}(r||(r={})),function(t){t[t.Horizontal=0]="Horizontal",t[t.Vertical=1]="Vertical"}(x||(x={}));var c=["px","vh","vw","%","pt"],l=["left","top","right","bottom"],f=function(){function t(t){this.message=t.message,this.type=t.type}return t.prototype.thtrow=function(){throw this},t}(),g=function(){function t(){}return t.prototype.isNumber=function(t){return!!t&&/^-?\d+\.?\d*$/.test(null==t?void 0:t.toString())},t}();function u(t){return(new g).isNumber(t)}var b,p,d,T,R,y=function(){function t(){}return t.prototype.toNumber=function(t){var e=this;if(!t)return 0;if(this.val=t,!u(this.val)){var h=this.val;c.forEach((function(t){var o;u(h)?e.val=e.val.toString().split(t).join(""):(o={message:"Invalid Number: "+h.toString()},new f({type:"Conversion Exception",message:o.message}))}))}return Number.parseFloat(this.val.toString())},t}(),v=(b=function(t,e){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&(t[h]=e[h])},b(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function h(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(h.prototype=e.prototype,new h)}),m=function(){function t(t){this.bottom=0,this.end=0,this.left=0,this.right=0,this.start=0,this.top=0,this.horizontal=0,this.vertical=0,this.value="",this.bottom=t.bottom,this.end=t.end,this.left=t.left,this.right=t.right,this.top=t.top;var e=new y;return this.horizontal=e.toNumber(this.left)+e.toNumber(this.right)+e.toNumber(this.start)+e.toNumber(this.end),this.vertical=e.toNumber(this.top)+e.toNumber(this.bottom),console.log("1.1->",this.arrayed_value("padding-")),this}return t.prototype.val=function(t){var e;return this.value=["".concat(t,"left:").concat(this.left,"px"),"".concat(t,"right:").concat(this.right,"px"),"".concat(t,"top:").concat(this.top,"px"),"".concat(t,"bottom:").concat(null!==(e=this.bottom)&&void 0!==e?e:this.end,"px")].join(";"),this},t.prototype.arrayed_value=function(t){var e;return["".concat(this.left,"px"),"".concat(this.top,"px"),"".concat(this.right,"px"),"".concat(null!==(e=this.bottom)&&void 0!==e?e:this.end,"px")]},t.prototype.reset=function(){this.left=0,this.right=0,this.top=0,this.bottom=0,this.start=0,this.end=0},t.prototype.along=function(t){switch(t.axis){case x.Horizontal:return this.reset(),this.left=this.horizontal,this.right=this.horizontal,this.start=this.horizontal,this.end=this.horizontal,this;case x.Vertical:return this.reset(),this.top=this.vertical,this.start=this.vertical,this.end=this.vertical,this.bottom=this.vertical,this}},t.prototype.infinity=function(){return this.bottom="100%",this.end="100%",this.left="100%",this.right="100%",this.top="100%",this},t}();new(function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.only=function(t){return new m({left:t.left,top:t.top,right:t.right,bottom:t.bottom})},e.prototype.all=function(t){return this.symmetric({vertical:t,horizontal:t})},e.prototype.symmetric=function(t){return this.reset(),this.only({left:t.horizontal,right:t.horizontal,top:t.vertical,bottom:t.vertical})},e}(m))({propertie:"padding"}),function(t){t.start="justify-start",t.end="justify-end",t.center="justify-center",t.spaceBetween="justify-between",t.spaceAround="justify-around",t.spaceEvenly="justify-evenly"}(p||(p={})),function(t){t.start="items-start",t.end="items-end",t.center="items-center",t.spaceBetween="items-",t.spaceAround="base-line",t.spaceEvenly="items-stretch"}(d||(d={})),function(t){t.centimeters="cm",t.millimeters="mm",t.inches="in",t.pixels="px",t.points="pt",t.picas="pc"}(T||(T={})),function(t){t.em="em",t.ex="ex",t.ch="ch",t.rem="rem",t.vw="vw",t.vmin="vmin",t.vmax="vmax",t["%"]="%"}(R||(R={}));var w=function(){function t(){}return t.prototype.extractCss=function(t){var e=t.tag.getAttribute("style");return'[key="'.concat(t.tag.getAttribute("key"),'"]{\n\t').concat(null==e?void 0:e.split("; ").join(";\n\t"),"\n}\n")},t}(),_=function(){function t(){}return t.prototype.fromValue=function(t){return t},t.prototype.uuidv4=function(){var t=(new Date).getTime(),e="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(h){var o=16*Math.random();return t>0?(o=(t+o)%16|0,t=Math.floor(t/16)):(o=(e+o)%16|0,e=Math.floor(e/16)),("x"===h?o:3&o|8).toString(16)}))},t.prototype.uid=function(){return Math.round(Math.random()*Math.pow(36,6)).toString(36)},t}(),S=function(){function t(t){var e,h;return this.width="auto",this.height="auto",this.width_size_measurement_unit=R["%"],this.height_size_measurement_unit=R["%"],this.key=t.key,this.child=t.child,this.children=t.children,this.parent=t.parent,this.render({tagName:t.tagName,text:t.text,classes:t.classes}),this.width=t.width||this.width,this.height=t.height||this.height,this.width_size_measurement_unit=null!==(e=t.width_size_measurement_unit)&&void 0!==e?e:this.width_size_measurement_unit,this.height_size_measurement_unit=null!==(h=t.height_size_measurement_unit)&&void 0!==h?h:this.height_size_measurement_unit,this.key=(new _).uid(),this.setKey(t.key),this.classes=t.classes,u(t.width)&&(this.tag.style.width=t.width.toString()+this.width_size_measurement_unit),u(t.height)&&(this.tag.style.height=t.height.toString()+this.height_size_measurement_unit),this}return t.prototype.setKey=function(t){var e,h;t?null===(e=this.tag)||void 0===e||e.setAttribute("key",t.toString()):null===(h=this.tag)||void 0===h||h.setAttribute("key","".concat(this.tag.tagName.toLowerCase(),"_").concat(this.key.toString()))},t.prototype.render=function(t){var e,h=this;if(this.tag=document.createElement(t.tagName),document.body.appendChild(this.tag),t.classes&&(e=this.tag.classList).add.apply(e,t.classes),this.addTextContent({text:t.text}),this.child&&(this.appendChild(this.child.tag),this.extactStyle(this.child)),this.children){var o=this;this.children.map((function(t){t.parent=o.tag,h.extactStyle(t),h.appendChild(t.tag)}))}},t.prototype.extactStyle=function(t){this.style||(this.style=this.tag.getAttribute("style")||""),console.log("WIDGET STYLE: ",t.style+this.style),this.style=function(t){return(new w).extractCss(t)}(t),console.log("STYLE2: ",this.style)},t.prototype.addTextContent=function(t){t.text&&t.text.length>0&&(this.tag.textContent=t.text)},t.prototype.appendChild=function(t){var e;null===(e=this.tag)||void 0===e||e.appendChild(t)},t}();const O=S;var A=function(){var t=function(e,h){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&(t[h]=e[h])},t(e,h)};return function(e,h){if("function"!=typeof h&&null!==h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function o(){this.constructor=e}t(e,h),e.prototype=null===h?Object.create(h):(o.prototype=h.prototype,new o)}}();!function(t){function e(e){var h,o=this;return(o=t.call(this,{tagName:"div",children:[e.home]})||this).title=e.title,o.theme=e.theme,o.home=e.home,o.tag.style.width="100vw",o.tag.style.height="100vh",o.classes,document.title=null!==(h=e.title)&&void 0!==h?h:document.title,o}A(e,t),e.prototype.build=function(){return document.body.outerHTML}}(S);var j,B=function(){var t=function(e,h){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&(t[h]=e[h])},t(e,h)};return function(e,h){if("function"!=typeof h&&null!==h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function o(){this.constructor=e}t(e,h),e.prototype=null===h?Object.create(h):(o.prototype=h.prototype,new o)}}();B((function(t){var e,h;return j.call(this,{tagName:"div",children:t.children,classes:["flex","flex-col","w-full","h-full",null!==(e=t.mainAxisAlignment)&&void 0!==e?e:p.start,null!==(h=t.crossAxisAlignment)&&void 0!==h?h:d.start]})||this}),j=O);var z=function(){var t=function(e,h){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&(t[h]=e[h])},t(e,h)};return function(e,h){if("function"!=typeof h&&null!==h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function o(){this.constructor=e}t(e,h),e.prototype=null===h?Object.create(h):(o.prototype=h.prototype,new o)}}(),C=function(){return C=Object.assign||function(t){for(var e,h=1,o=arguments.length;h{"use strict";var t,e,o,i,h,n,r,s,a,c=function(t){this.a=t.a,this.r=t.r,this.g=t.g,this.b=t.b,this.value=t.value,this.withAlpha=t.withAlpha,this.withOpacity=t.withOpacity,this.withRed=t.withRed,this.withGreen=t.withGreen,this.withBlue=t.withBlue},l=new(function(){function t(t){var e=t.a,o=void 0===e?1:e,i=t.r,h=void 0===i?255:i,n=t.g,r=void 0===n?255:n,s=t.b,a=void 0===s?255:s;this.White=this.hexToRgb({hex:"FFFFFF"}),this.Black=this.hexToRgb({hex:"000000"}),this.Rose={50:this.hexToRgb({hex:"fff1f2"}),100:this.hexToRgb({hex:"ffe4e6"}),200:this.hexToRgb({hex:"fecdd3"}),300:this.hexToRgb({hex:"fda4af"}),400:this.hexToRgb({hex:"fb7185"}),500:this.hexToRgb({hex:"f43f5e"}),600:this.hexToRgb({hex:"e11d48"}),700:this.hexToRgb({hex:"be123c"}),800:this.hexToRgb({hex:"9f1239"}),900:this.hexToRgb({hex:"881337"})},this.Pink={50:this.hexToRgb({hex:"fdf2f8"}),100:this.hexToRgb({hex:"fce7f3"}),200:this.hexToRgb({hex:"fbcfe8"}),300:this.hexToRgb({hex:"f9a8d4"}),400:this.hexToRgb({hex:"f472b6"}),500:this.hexToRgb({hex:"f472b6"}),600:this.hexToRgb({hex:"db2777"}),700:this.hexToRgb({hex:"be185d"}),800:this.hexToRgb({hex:"9d174d"}),900:this.hexToRgb({hex:"831843"})},this.Fuchsia={50:this.hexToRgb({hex:"fdf4ff"}),100:this.hexToRgb({hex:"f472b6"}),200:this.hexToRgb({hex:"f5d0fe"}),300:this.hexToRgb({hex:"f0abfc"}),400:this.hexToRgb({hex:"e879f9"}),500:this.hexToRgb({hex:"d946ef"}),600:this.hexToRgb({hex:"c026d3"}),700:this.hexToRgb({hex:"a21caf"}),800:this.hexToRgb({hex:"a21caf"}),900:this.hexToRgb({hex:"701a75"})},this.Purple={50:this.hexToRgb({hex:"faf5ff"}),100:this.hexToRgb({hex:"f3e8ff"}),200:this.hexToRgb({hex:"e9d5ff"}),300:this.hexToRgb({hex:"d8b4fe"}),400:this.hexToRgb({hex:"c084fc"}),500:this.hexToRgb({hex:"a855f7"}),600:this.hexToRgb({hex:"9333ea"}),700:this.hexToRgb({hex:"7e22ce"}),800:this.hexToRgb({hex:"6b21a8"}),900:this.hexToRgb({hex:"581c87"})},this.Violet={50:this.hexToRgb({hex:"f5f3ff"}),100:this.hexToRgb({hex:"ede9fe"}),200:this.hexToRgb({hex:"ddd6fe"}),300:this.hexToRgb({hex:"c4b5fd"}),400:this.hexToRgb({hex:"a78bfa"}),500:this.hexToRgb({hex:"8b5cf6"}),600:this.hexToRgb({hex:"7c3aed"}),700:this.hexToRgb({hex:"6d28d9"}),800:this.hexToRgb({hex:"5b21b6"}),900:this.hexToRgb({hex:"4c1d95"})},this.Indigo={50:this.hexToRgb({hex:"eef2ff"}),100:this.hexToRgb({hex:"e0e7ff"}),200:this.hexToRgb({hex:"c7d2fe"}),300:this.hexToRgb({hex:"a5b4fc"}),400:this.hexToRgb({hex:"818cf8"}),500:this.hexToRgb({hex:"6366f1"}),600:this.hexToRgb({hex:"4f46e5"}),700:this.hexToRgb({hex:"4338ca"}),800:this.hexToRgb({hex:"3730a3"}),900:this.hexToRgb({hex:"312e81"})},this.Blue={50:this.hexToRgb({hex:"eff6ff"}),100:this.hexToRgb({hex:"dbeafe"}),200:this.hexToRgb({hex:"bfdbfe"}),300:this.hexToRgb({hex:"93c5fd"}),400:this.hexToRgb({hex:"60a5fa"}),500:this.hexToRgb({hex:"3b82f6"}),600:this.hexToRgb({hex:"2563eb"}),700:this.hexToRgb({hex:"1d4ed8"}),800:this.hexToRgb({hex:"1d4ed8"}),900:this.hexToRgb({hex:"1e3a8a"})},this.Sky={50:this.hexToRgb({hex:"f0f9ff"}),100:this.hexToRgb({hex:"e0f2fe"}),200:this.hexToRgb({hex:"bae6fd"}),300:this.hexToRgb({hex:"7dd3fc"}),400:this.hexToRgb({hex:"38bdf8"}),500:this.hexToRgb({hex:"0ea5e9"}),600:this.hexToRgb({hex:"0284c7"}),700:this.hexToRgb({hex:"0369a1"}),800:this.hexToRgb({hex:"075985"}),900:this.hexToRgb({hex:"0c4a6e"})},this.Cyan={50:this.hexToRgb({hex:"ecfeff"}),100:this.hexToRgb({hex:"cffafe"}),200:this.hexToRgb({hex:"a5f3fc"}),300:this.hexToRgb({hex:"67e8f9"}),400:this.hexToRgb({hex:"22d3ee"}),500:this.hexToRgb({hex:"06b6d4"}),600:this.hexToRgb({hex:"0891b2"}),700:this.hexToRgb({hex:"0e7490"}),800:this.hexToRgb({hex:"155e75"}),900:this.hexToRgb({hex:"164e63"})},this.Teal={50:this.hexToRgb({hex:"f0fdfa"}),100:this.hexToRgb({hex:"ccfbf1"}),200:this.hexToRgb({hex:"99f6e4"}),300:this.hexToRgb({hex:"5eead4"}),400:this.hexToRgb({hex:"2dd4bf"}),500:this.hexToRgb({hex:"14b8a6"}),600:this.hexToRgb({hex:"0d9488"}),700:this.hexToRgb({hex:"0f766e"}),800:this.hexToRgb({hex:"115e59"}),900:this.hexToRgb({hex:"134e4a"})},this.Emerald={50:this.hexToRgb({hex:"ecfdf5"}),100:this.hexToRgb({hex:"d1fae5"}),200:this.hexToRgb({hex:"a7f3d0"}),300:this.hexToRgb({hex:"6ee7b7"}),400:this.hexToRgb({hex:"34d399"}),500:this.hexToRgb({hex:"10b981"}),600:this.hexToRgb({hex:"059669"}),700:this.hexToRgb({hex:"047857"}),800:this.hexToRgb({hex:"065f46"}),900:this.hexToRgb({hex:"064e3b"})},this.Green={50:this.hexToRgb({hex:"f0fdf4"}),100:this.hexToRgb({hex:"dcfce7"}),200:this.hexToRgb({hex:"bbf7d0"}),300:this.hexToRgb({hex:"86efac"}),400:this.hexToRgb({hex:"4ade80"}),500:this.hexToRgb({hex:"22c55e"}),600:this.hexToRgb({hex:"16a34a"}),700:this.hexToRgb({hex:"15803d"}),800:this.hexToRgb({hex:"166534"}),900:this.hexToRgb({hex:"14532d"})},this.Lime={50:this.hexToRgb({hex:"f7fee7"}),100:this.hexToRgb({hex:"ecfccb"}),200:this.hexToRgb({hex:"d9f99d"}),300:this.hexToRgb({hex:"bef264"}),400:this.hexToRgb({hex:"a3e635"}),500:this.hexToRgb({hex:"84cc16"}),600:this.hexToRgb({hex:"65a30d"}),700:this.hexToRgb({hex:"4d7c0f"}),800:this.hexToRgb({hex:"3f6212"}),900:this.hexToRgb({hex:"365314"})},this.Yellow={50:this.hexToRgb({hex:"fefce8"}),100:this.hexToRgb({hex:"fef9c3"}),200:this.hexToRgb({hex:"fef08a"}),300:this.hexToRgb({hex:"fde047"}),400:this.hexToRgb({hex:"facc15"}),500:this.hexToRgb({hex:"eab308"}),600:this.hexToRgb({hex:"ca8a04"}),700:this.hexToRgb({hex:"a16207"}),800:this.hexToRgb({hex:"854d0e"}),900:this.hexToRgb({hex:"713f12"})},this.Amber={50:this.hexToRgb({hex:"fffbeb"}),100:this.hexToRgb({hex:"fef3c7"}),200:this.hexToRgb({hex:"fde68a"}),300:this.hexToRgb({hex:"fcd34d"}),400:this.hexToRgb({hex:"fbbf24"}),500:this.hexToRgb({hex:"f59e0b"}),600:this.hexToRgb({hex:"d97706"}),700:this.hexToRgb({hex:"b45309"}),800:this.hexToRgb({hex:"92400e"}),900:this.hexToRgb({hex:"78350f"})},this.Orange={50:this.hexToRgb({hex:"fff7ed"}),100:this.hexToRgb({hex:"ffedd5"}),200:this.hexToRgb({hex:"fed7aa"}),300:this.hexToRgb({hex:"fdba74"}),400:this.hexToRgb({hex:"fb923c"}),500:this.hexToRgb({hex:"f97316"}),600:this.hexToRgb({hex:"ea580c"}),700:this.hexToRgb({hex:"c2410c"}),800:this.hexToRgb({hex:"9a3412"}),900:this.hexToRgb({hex:"7c2d12"})},this.Red={50:this.hexToRgb({hex:"fef2f2"}),100:this.hexToRgb({hex:"fee2e2"}),200:this.hexToRgb({hex:"fecaca"}),300:this.hexToRgb({hex:"fca5a5"}),400:this.hexToRgb({hex:"f87171"}),500:this.hexToRgb({hex:"ef4444"}),600:this.hexToRgb({hex:"dc2626"}),700:this.hexToRgb({hex:"b91c1c"}),800:this.hexToRgb({hex:"991b1b"}),900:this.hexToRgb({hex:"7f1d1d"})},this.Stone={50:this.hexToRgb({hex:"fafaf9"}),100:this.hexToRgb({hex:"f5f5f4"}),200:this.hexToRgb({hex:"e7e5e4"}),300:this.hexToRgb({hex:"d6d3d1"}),400:this.hexToRgb({hex:"a8a29e"}),500:this.hexToRgb({hex:"78716c"}),600:this.hexToRgb({hex:"57534e"}),700:this.hexToRgb({hex:"44403c"}),800:this.hexToRgb({hex:"292524"}),900:this.hexToRgb({hex:"1c1917"})},this.Neutral={50:this.hexToRgb({hex:"fafafa"}),100:this.hexToRgb({hex:"f5f5f5"}),200:this.hexToRgb({hex:"e5e5e5"}),300:this.hexToRgb({hex:"d4d4d4"}),400:this.hexToRgb({hex:"a3a3a3"}),500:this.hexToRgb({hex:"737373"}),600:this.hexToRgb({hex:"525252"}),700:this.hexToRgb({hex:"404040"}),800:this.hexToRgb({hex:"262626"}),900:this.hexToRgb({hex:"171717"})},this.Zinc={50:this.hexToRgb({hex:"fafafa"}),100:this.hexToRgb({hex:"f4f4f5"}),200:this.hexToRgb({hex:"e4e4e7"}),300:this.hexToRgb({hex:"d4d4d8"}),400:this.hexToRgb({hex:"a1a1aa"}),500:this.hexToRgb({hex:"71717a"}),600:this.hexToRgb({hex:"52525b"}),700:this.hexToRgb({hex:"3f3f46"}),800:this.hexToRgb({hex:"3f3f46"}),900:this.hexToRgb({hex:"18181b"})},this.Gray={50:this.hexToRgb({hex:"f9fafb"}),100:this.hexToRgb({hex:"f3f4f6"}),200:this.hexToRgb({hex:"f3f4f6"}),300:this.hexToRgb({hex:"d1d5db"}),400:this.hexToRgb({hex:"9ca3af"}),500:this.hexToRgb({hex:"6b7280"}),600:this.hexToRgb({hex:"4b5563"}),700:this.hexToRgb({hex:"374151"}),800:this.hexToRgb({hex:"1f2937"}),900:this.hexToRgb({hex:"111827"})},this.Slate={50:this.hexToRgb({hex:"f8fafc"}),100:this.hexToRgb({hex:"f1f5f9"}),200:this.hexToRgb({hex:"e2e8f0"}),300:this.hexToRgb({hex:"cbd5e1"}),400:this.hexToRgb({hex:"94a3b8"}),500:this.hexToRgb({hex:"64748b"}),600:this.hexToRgb({hex:"475569"}),700:this.hexToRgb({hex:"334155"}),800:this.hexToRgb({hex:"1e293b"}),900:this.hexToRgb({hex:"0f172a"})},this.color=new c({r:0,g:0,b:0,a:1}),this.color=this.fromARGB({a:o,r:h,g:r,b:a}),this.color.withAlpha=this.withAlpha,this.color.withOpacity=this.withOpacity,this.color.withRed=this.withRed,this.color.withGreen=this.withGreen,this.color.withBlue=this.withBlue}return t.prototype.fromARGB=function(t){var e=t.a,o=void 0===e?1:e,i=t.r,h=t.g,n=t.b;return this.color=new c({a:o,r:i,g:h,b:n}),this.color.value="rgba(".concat(i,", ").concat(h,", ").concat(n,", ").concat(o,")"),this.color},t.prototype.hexToRgb=function(t){var e=t.hex,o=t.alpha,i=void 0===o?1:o;e=e.replace("#","");var h=parseInt(3==e.length?e.slice(0,1).repeat(2):e.slice(0,2),16),n=parseInt(3==e.length?e.slice(1,2).repeat(2):e.slice(2,4),16),r=parseInt(3==e.length?e.slice(2,3).repeat(2):e.slice(4,6),16);return i?this.fromARGB({r:h,g:n,b:r,a:i}):this.fromARGB({r:h,g:n,b:r})},t.prototype.withAlpha=function(t){return this.fromARGB({r:this.color.r,g:this.color.g,b:this.color.b,a:t}).value},t.prototype.withOpacity=function(t){return this.fromARGB({r:this.color.r,g:this.color.g,b:this.color.b,a:Math.round(255*t)}).value},t.prototype.withRed=function(t){return this.fromARGB({a:this.color.a,r:t,g:this.color.g,b:this.color.b}).value},t.prototype.withGreen=function(t){return this.fromARGB({a:this.color.a,r:this.color.r,g:t,b:this.color.b}).value},t.prototype.withBlue=function(t){return this.fromARGB({a:this.color.a,r:this.color.r,g:this.color.g,b:t}).value},t.prototype.fromUtil=function(t){return this.color.value=t,this.color.value},t}())({});!function(t){t[t.fixed=0]="fixed",t[t.local=1]="local",t[t.scroll=2]="scroll"}(t||(t={})),function(t){t[t.borderBox=0]="borderBox",t[t.paddingBox=1]="paddingBox",t[t.contentBox=2]="contentBox",t[t.text=3]="text"}(e||(e={})),function(t){t[t.borderBox=0]="borderBox",t[t.paddingBox=1]="paddingBox",t[t.contentBox=2]="contentBox"}(o||(o={})),function(t){t[t.bottom=0]="bottom",t[t.center=1]="center",t[t.left=2]="left",t[t.leftBottom=3]="leftBottom",t[t.leftTop=4]="leftTop",t[t.right=5]="right",t[t.rightBottom=6]="rightBottom",t[t.rightTop=7]="rightTop",t[t.top=8]="top"}(i||(i={})),function(t){t[t.repeat=0]="repeat",t[t.noRepeat=1]="noRepeat",t[t.repeatX=2]="repeatX",t[t.repeatY=3]="repeatY",t[t.round=4]="round",t[t.space=5]="space"}(h||(h={})),function(t){t[t.auto=0]="auto",t[t.cover=1]="cover",t[t.contain=2]="contain"}(n||(n={})),function(t){t[t.normal=0]="normal",t[t.italic=1]="italic"}(r||(r={})),function(t){t[t.w100=0]="w100",t[t.w200=1]="w200",t[t.w300=2]="w300",t[t.w400=3]="w400",t[t.w500=4]="w500",t[t.w600=5]="w600",t[t.w700=6]="w700",t[t.w800=7]="w800",t[t.w900=8]="w900",t[t.normal=9]="normal",t[t.bold=10]="bold"}(s||(s={})),function(t){t[t.Horizontal=0]="Horizontal",t[t.Vertical=1]="Vertical"}(a||(a={}));var x=["px","vh","vw","%","pt"],f=function(){function t(t){this.message=t.message,this.type=t.type}return t.prototype.thtrow=function(){throw this},t}(),u=function(){function t(){}return t.prototype.isNumber=function(t){return!!t&&/^-?\d+\.?\d*$/.test(null==t?void 0:t.toString())},t}();function g(t){return(new u).isNumber(t)}var p,b,d,y=function(){function t(){}return t.prototype.toNumber=function(t){var e=this;if(!t)return 0;if(this.val=t,!g(this.val)){var o=this.val;x.forEach((function(t){var i;g(o)?e.val=e.val.toString().split(t).join(""):(i={message:"Invalid Number: "+o.toString()},new f({type:"Conversion Exception",message:i.message}))}))}return Number.parseFloat(this.val.toString())},t.prototype.invertFlex=function(t){return t.includes("items")?t.split("items").join("justify").replace("stretch","evenly").replace("line","around"):t.split("justify").join("items").replace("evenly","stretch").replace("around","line")},t}(),R=(p=function(t,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},p(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),T=function(){function t(t){this.bottom=0,this.end=0,this.left=0,this.right=0,this.start=0,this.top=0,this.horizontal=0,this.vertical=0,this.value="",this.bottom=t.bottom,this.end=t.end,this.left=t.left,this.right=t.right,this.top=t.top;var e=new y;return this.horizontal=e.toNumber(this.left)+e.toNumber(this.right)+e.toNumber(this.start)+e.toNumber(this.end),this.vertical=e.toNumber(this.top)+e.toNumber(this.bottom),console.log("1.1->",this.arrayed_value("padding-")),this}return t.prototype.val=function(t){var e;return this.value=["".concat(t,"left:").concat(this.left),"".concat(t,"right:").concat(this.right),"".concat(t,"top:").concat(this.top),"".concat(t,"bottom:").concat(null!==(e=this.bottom)&&void 0!==e?e:this.end)].join(";"),this},t.prototype.arrayed_value=function(t){var e;return["".concat(this.left,"px"),"".concat(this.top,"px"),"".concat(this.right,"px"),"".concat(null!==(e=this.bottom)&&void 0!==e?e:this.end,"px")]},t.prototype.reset=function(){this.left=0,this.right=0,this.top=0,this.bottom=0,this.start=0,this.end=0},t.prototype.along=function(t){switch(t.axis){case a.Horizontal:return this.reset(),this.left=this.horizontal,this.right=this.horizontal,this.start=this.horizontal,this.end=this.horizontal,this;case a.Vertical:return this.reset(),this.top=this.vertical,this.start=this.vertical,this.end=this.vertical,this.bottom=this.vertical,this}},t.prototype.infinity=function(){return this.bottom="100%",this.end="100%",this.left="100%",this.right="100%",this.top="100%",this},t}(),v=(new(function(t){function e(e){return t.call(this,e)||this}return R(e,t),e.prototype.only=function(t){return new T({left:t.left,top:t.top,right:t.right,bottom:t.bottom})},e.prototype.all=function(t){return this.symmetric({vertical:t,horizontal:t})},e.prototype.symmetric=function(t){return this.reset(),this.only({left:t.horizontal,right:t.horizontal,top:t.vertical,bottom:t.vertical})},e}(T))({propertie:"padding"}),new(function(){function t(){this.zero=this.circular(0)}return t.prototype.circular=function(t){return this.value="".concat(t,"px"),this},t.prototype.elliptical=function(t){return this.value="".concat(t,"%"),this},t}())),m=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.only=function(t){var e,o,i,h,n,r,s,a;return this.topLeft=t.topLeft,this.topRight=t.topRight,this.bottomLeft=t.bottomLeft,this.bottomRight=t.bottomRight,this.value=[null!==(o=null===(e=this.topLeft)||void 0===e?void 0:e.value)&&void 0!==o?o:"0px",null!==(h=null===(i=this.topRight)||void 0===i?void 0:i.value)&&void 0!==h?h:"0px",null!==(r=null===(n=this.bottomLeft)||void 0===n?void 0:n.value)&&void 0!==r?r:"0px",null!==(a=null===(s=this.bottomRight)||void 0===s?void 0:s.value)&&void 0!==a?a:"0px"],console.warn(this.value),this},e.prototype.all=function(t){return this.only({topLeft:t,topRight:t,bottomLeft:t,bottomRight:t})},e.prototype.circular=function(t){return this.all(v.circular(t))},e.prototype.vertical=function(t){var e,o,i,h;return console.warn("vertical",t.top,t.bottom),this.only({topLeft:null!==(e=t.top)&&void 0!==e?e:v.zero,topRight:null!==(o=t.top)&&void 0!==o?o:v.zero,bottomLeft:null!==(i=t.bottom)&&void 0!==i?i:v.zero,bottomRight:null!==(h=t.bottom)&&void 0!==h?h:v.zero})},e.prototype.horizontal=function(t){var e,o,i,h;return this.only({topLeft:null!==(e=t.left)&&void 0!==e?e:v.zero,topRight:null!==(o=t.right)&&void 0!==o?o:v.zero,bottomLeft:null!==(i=t.left)&&void 0!==i?i:v.zero,bottomRight:null!==(h=t.right)&&void 0!==h?h:v.zero})},e}((function(){}))),function(t){t.start="flex-start",t.end="flex-end",t.center="center",t.spaceBetween="space-between",t.spaceAround="space-around",t.spaceEvenly="space-evenly"}(b||(b={})),function(t){t.start="start",t.end="end",t.center="center",t.spaceAround="stretch",t.spaceEvenly="items-stretch"}(d||(d={}));var w,_,S,O=function(){function t(t){this._props=t}return t.prototype.apply=function(t){for(var e in this._props){var o=e;t.tag.style[e]=this._props[o],console.log("FROM CSS",e,":",t.tag.style[e])}return t},t}();!function(t){t.centimeters="cm",t.millimeters="mm",t.inches="in",t.pixels="px",t.points="pt",t.picas="pc"}(w||(w={})),(S=_||(_={})).em="em",S.ex="ex",S.ch="ch",S.rem="rem",S.vw="vw",S.vmin="vmin",S.vmax="vmax",S["%"]="%";var j=function(){function t(){}return t.prototype.extractCss=function(t){var e=t.tag.getAttribute("style");return'[key="'.concat(t.tag.getAttribute("key"),'"]{\n\t').concat(null==e?void 0:e.split("; ").join(";\n\t"),"\n}\n")},t}(),z=function(){function t(){}return t.prototype.fromValue=function(t){return t},t.prototype.uuidv4=function(){var t=(new Date).getTime(),e="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(o){var i=16*Math.random();return t>0?(i=(t+i)%16|0,t=Math.floor(t/16)):(i=(e+i)%16|0,e=Math.floor(e/16)),("x"===o?i:3&i|8).toString(16)}))},t.prototype.uid=function(){return Math.round(Math.random()*Math.pow(36,6)).toString(36)},t}(),A=function(){return A=Object.assign||function(t){for(var e,o=1,i=arguments.length;o0&&(this.tag.textContent=t.text)},t.prototype.appendChild=function(t){var e;null===(e=this.tag)||void 0===e||e.appendChild(t)},t}();const C=B;var k=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();!function(t){function e(e){var o,i=this;return(i=t.call(this,{tagName:"div",children:[e.home],css:new O({background:l.Gray[100].value})})||this).title=e.title,i.theme=e.theme,i.home=e.home,i.tag.style.width="100vw",i.tag.style.height="100vh",i.classes=e.classes,document.title=null!==(o=e.title)&&void 0!==o?o:document.title,i}k(e,t),e.prototype.build=function(){return document.body.outerHTML}}(B);var N,P=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();P((function(t){var e,o;return N.call(this,{tagName:"div",children:t.children,css:new O({display:"flex",flexDirection:"column",justifyContent:null!==(e=t.mainAxisAlignment)&&void 0!==e?e:(new y).invertFlex(b.start),alignItems:null!==(o=t.crossAxisAlignment)&&void 0!==o?o:(new y).invertFlex(d.start)})})||this}),N=C);var L=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),F=function(){return F=Object.assign||function(t){for(var e,o=1,i=arguments.length;o