Comparing version 1.9.0 to 1.9.1
@@ -1,1 +0,1 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(e.polished={})}(this,function(e){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function t(e,t){if(!e)return t.toLowerCase();var n=e.split("-");if(n.length>1)return n.splice(1,0,t),n.reduce(function(e,t){return""+e+r(t)});var a=e.replace(/([a-z])([A-Z])/g,"$1"+t+"$2");return e===a?""+e+t:a}function n(e,r){for(var n={},a=0;a<r.length;a+=1)(r[a]||0===r[a])&&(n[t(e,H[a])]=r[a]);return n}function a(e){for(var r=arguments.length,t=Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];var o=t[0],i=t[1],u=void 0===i?o:i,l=t[2],s=void 0===l?o:l,f=t[3];return n(e,[o,u,s,void 0===f?u:f])}function o(e){var r=parseFloat(e);return isNaN(r)?e:r}function i(e,r){return r.map(function(r){return'url("'+e+"."+r+'")'}).join(", ")}function u(e){return e.map(function(e){return'local("'+e+'")'}).join(", ")}function l(e,r,t){var n=[];return r&&n.push(u(r)),e&&n.push(i(e,t)),n.join(", ")}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.3;return"\n @media only screen and (-webkit-min-device-pixel-ratio: "+e+"),\n only screen and (min--moz-device-pixel-ratio: "+e+"),\n only screen and (-o-min-device-pixel-ratio: "+e+"/1),\n only screen and (min-resolution: "+Math.round(96*e)+"dpi),\n only screen and (min-resolution: "+e+"dppx)\n "}function f(e,r){var t=G({},e);return Object.keys(r).forEach(function(e){t[e]?t[e]=G({},t[e],r[e]):t[e]=G({},r[e])}),t}function c(e){return e[0].split(" ")[0]}function d(e){for(var r="",t=0;t<e.length;t+=1)r+=e[t],3===t&&(arguments.length<=t+1?void 0:arguments[t+1])&&((arguments.length<=1?void 0:arguments[1])||(arguments.length<=2?void 0:arguments[2])||(arguments.length<=3?void 0:arguments[3]))?(r=r.slice(0,-1),r+=", "+(arguments.length<=t+1?void 0:arguments[t+1])):3!==t||arguments.length<=t+1||!arguments[t+1]||(arguments.length<=1?void 0:arguments[1])||(arguments.length<=2?void 0:arguments[2])||(arguments.length<=3?void 0:arguments[3])?(arguments.length<=t+1?void 0:arguments[t+1])&&(r+=(arguments.length<=t+1?void 0:arguments[t+1])+" "):r+=""+(arguments.length<=t+1?void 0:arguments[t+1]);return r.trim()}function p(e){return Math.round(255*e)}function h(e,r,t){return p(e)+","+p(r)+","+p(t)}function b(e,r,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h;if(0===r)return n(t,t,t);var a=e%360/60,o=(1-Math.abs(2*t-1))*r,i=o*(1-Math.abs(a%2-1)),u=0,l=0,s=0;a>=0&&a<1?(u=o,l=i):a>=1&&a<2?(u=i,l=o):a>=2&&a<3?(l=o,s=i):a>=3&&a<4?(l=i,s=o):a>=4&&a<5?(u=i,s=o):a>=5&&a<6&&(u=o,s=i);var f=t-o/2;return n(u+f,l+f,s+f)}function g(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return ee[r]?"#"+ee[r]:e}function m(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var r=g(e);if(r.match(re))return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16)};if(r.match(te))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};var t=ne.exec(r);if(t)return{red:parseInt(""+t[1],10),green:parseInt(""+t[2],10),blue:parseInt(""+t[3],10)};var n=ae.exec(r);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10),alpha:parseFloat(""+n[4])};var a=oe.exec(r);if(a){var o="rgb("+b(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",i=ne.exec(o);return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)}}var u=ie.exec(r);if(u){var l="rgb("+b(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",s=ne.exec(l);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10),alpha:parseFloat(""+u[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function y(e){var r=e.red/255,t=e.green/255,n=e.blue/255,a=Math.max(r,t,n),o=Math.min(r,t,n),i=(a+o)/2;if(a===o)return void 0!==e.alpha?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var u=void 0,l=a-o,s=i>.5?l/(2-a-o):l/(a+o);switch(a){case r:u=(t-n)/l+(t<n?6:0);break;case t:u=(n-r)/l+2;break;default:u=(r-t)/l+4}return u*=60,void 0!==e.alpha?{hue:u,saturation:s,lightness:i,alpha:e.alpha}:{hue:u,saturation:s,lightness:i}}function v(e){return y(m(e))}function w(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function x(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return ue("#"+w(e)+w(r)+w(t));if("object"===(void 0===e?"undefined":_(e))&&void 0===r&&void 0===t)return ue("#"+w(e.red)+w(e.green)+w(e.blue));throw new Error("Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).")}function k(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var a=m(e);return"rgba("+a.red+","+a.green+","+a.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?x(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"===(void 0===e?"undefined":_(e))&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?x(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Error("Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).")}function S(e){return w(Math.round(255*e))}function z(e,r,t){return ue("#"+S(e)+S(r)+S(t))}function I(e,r,t){return b(e,r,t,z)}function E(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return I(e,r,t);if("object"===(void 0===e?"undefined":_(e))&&void 0===r&&void 0===t)return I(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}function j(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?I(e,r,t):"rgba("+b(e,r,t)+","+n+")";if("object"===(void 0===e?"undefined":_(e))&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?I(e.hue,e.saturation,e.lightness):"rgba("+b(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}function A(e){if("object"!==(void 0===e?"undefined":_(e)))throw new Error(de);if(se(e))return k(e);if(le(e))return x(e);if(ce(e))return j(e);if(fe(e))return E(e);throw new Error(de)}function F(e,r,t){return function(){var n=t.concat(Array.prototype.slice.call(arguments));return n.length>=r?e.apply(this,n):F(e,r,n)}}function O(e){return F(e,e.length,[])}function C(e,r,t){return Math.max(e,Math.min(r,t))}function P(e){var r=m(e),t=Object.keys(r).map(function(e){var t=r[e]/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)});return.2126*t[0]+.7152*t[1]+.0722*t[2]}function T(e,r){return e(r?":"+r:"")}function R(e,r,t){if(!r)throw new Error("You must provide a template to this method.");if(0===e.length)return T(r,null);for(var n=[],a=0;a<e.length;a+=1){if(t&&t.indexOf(e[a])<0)throw new Error("You passed an unsupported selector state to this method.");n.push(T(r,e[a]))}return n=n.join(",")}function M(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}function q(e){return'input[type="color"]'+e+',\n input[type="date"]'+e+',\n input[type="datetime"]'+e+',\n input[type="datetime-local"]'+e+',\n input[type="email"]'+e+',\n input[type="month"]'+e+',\n input[type="number"]'+e+',\n input[type="password"]'+e+',\n input[type="search"]'+e+',\n input[type="tel"]'+e+',\n input[type="text"]'+e+',\n input[type="time"]'+e+',\n input[type="url"]'+e+',\n input[type="week"]'+e+",\n input:not([type])"+e+",\n textarea"+e}var W,B,Q,H=["Top","Right","Bottom","Left"],L=function(e,r){return e.substr(-r.length)===r},N=function(e){return function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"16px",n=r,a=t;if("string"==typeof r){if(!L(r,"px"))throw new Error('Expected a string ending in "px" or a number passed as the first argument to '+e+'(), got "'+r+'" instead.');n=o(r)}if("string"==typeof t){if(!L(t,"px"))throw new Error('Expected a string ending in "px" or a number passed as the second argument to '+e+'(), got "'+t+'" instead.');a=o(t)}if("string"==typeof n)throw new Error('Passed invalid pixel value ("'+r+'") to '+e+'(), please pass a value like "12px" or 12.');if("string"==typeof a)throw new Error('Passed invalid base value ("'+t+'") to '+e+'(), please pass a value like "12px" or 12.');return""+n/a+e}},$=N("em"),D={minorSecond:1.067,majorSecond:1.125,minorThird:1.2,majorThird:1.25,perfectFourth:1.333,augFourth:1.414,perfectFifth:1.5,minorSixth:1.6,goldenSection:1.618,majorSixth:1.667,minorSeventh:1.778,majorSeventh:1.875,octave:2,majorTenth:2.5,majorEleventh:2.667,majorTwelfth:3,doubleOctave:4},V=N("rem"),_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},J=(W={html:{fontFamily:"sans-serif"},body:{margin:"0"}},W["a:active,\n a:hover"]={outlineWidth:"0"},W["button,\n input,\n optgroup,\n select,\n textarea"]={fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15"},W),U=(Q={html:{lineHeight:"1.15",textSizeAdjust:"100%"}},Q["article,\n aside,\n footer,\n header,\n nav,\n section"]={display:"block"},Q.h1={fontSize:"2em",margin:"0.67em 0"},Q["figcaption,\n figure,\n main"]={display:"block"},Q.figure={margin:"1em 40px"},Q.hr={boxSizing:"content-box",height:"0",overflow:"visible"},Q.pre={fontFamily:"monospace, monospace",fontSize:"1em"},Q.a={"background-color":"transparent","-webkit-text-decoration-skip":"objects"},Q["abbr[title]"]=(B={borderBottom:"none",textDecoration:"underline"},B.textDecoration="underline dotted",B),Q["b,\n strong"]={fontWeight:"inherit"},Q["code,\n kbd,\n samp"]={fontFamily:"monospace, monospace",fontSize:"1em"},Q.dfn={fontStyle:"italic"},Q.mark={backgroundColor:"#ff0",color:"#000"},Q.small={fontSize:"80%"},Q["sub,\n sup"]={fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},Q.sub={bottom:"-0.25em"},Q.sup={top:"-0.5em"},Q["audio,\n video"]={display:"inline-block"},Q["audio:not([controls])"]={display:"none",height:"0"},Q.img={borderStyle:"none"},Q["svg:not(:root)"]={overflow:"hidden"},Q["button,\n input,\n optgroup,\n select,\n textarea"]={margin:"0"},Q["button,\n input"]={overflow:"visible"},Q["button,\n select"]={textTransform:"none"},Q['button,\n html [type="button"],\n [type="reset"],\n [type="submit"]']={"-webkit-appearance":"button"},Q['button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner']={borderStyle:"none",padding:"0"},Q['button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring']={outline:"1px dotted ButtonText"},Q.fieldset={border:"1px solid #c0c0c0",margin:"0 2px",padding:"0.35em 0.625em 0.75em"},Q.legend={boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},Q.progress={display:"inline-block",verticalAlign:"baseline"},Q.textarea={overflow:"auto"},Q['[type="checkbox"],\n [type="radio"]']={boxSizing:"border-box",padding:"0"},Q['[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button']={height:"auto"},Q['[type="search"]']={"-webkit-appearance":"textfield",outlineOffset:"-2px"},Q['[type="search"]::-webkit-search-cancel-button,\n [type="search"]::-webkit-search-decoration']={"-webkit-appearance":"none"},Q["::-webkit-file-upload-button"]={"-webkit-appearance":"button",font:"inherit"},Q["details,\n menu"]={display:"block"},Q.summary={display:"list-item"},Q.canvas={display:"inline-block"},Q.template={display:"none"},Q["[hidden]"]={display:"none"},Q),Y=function(e,r){return e.raw=r,e}(["radial-gradient(","","","",")"],["radial-gradient(","","","",")"]),Z={easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInExpo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"},K=function(e,r,t){switch(e){case"top":return"0 "+t/2+"px "+r+"px "+t/2+"px";case"left":return r/2+"px "+t+"px "+r/2+"px 0";case"bottom":return r+"px "+t/2+"px 0 "+t/2+"px";case"right":return r/2+"px 0 "+r/2+"px "+t+"px";default:throw new Error("Passed invalid argument to triangle, please pass correct poitingDirection e.g. 'right'.")}},X={left:"Right",right:"Left",top:"Bottom",bottom:"Top"},ee={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},re=/^#[a-fA-F0-9]{6}$/,te=/^#[a-fA-F0-9]{3}$/,ne=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,ae=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,oe=/^hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,ie=/^hsla\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,ue=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},le=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},se=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},fe=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},ce=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha},de="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.",pe=O(function(e,r){var t=v(r);return A(G({},t,{hue:(t.hue+e)%360}))}),he=O(function(e,r){var t=v(r);return A(G({},t,{lightness:C(0,1,t.lightness-e)}))}),be=O(function(e,r){var t=v(r);return A(G({},t,{saturation:C(0,1,t.saturation-e)}))}),ge=O(function(e,r){var t=v(r);return A(G({},t,{lightness:C(0,1,t.lightness+e)}))}),me=O(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,r=arguments[1],t=arguments[2],n=m(r),a=G({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),o=m(t),i=G({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),u=a.alpha-i.alpha,l=2*e-1,s=((l*u==-1?l:l+u)/(1+l*u)+1)/2,f=1-s;return k({red:Math.floor(a.red*s+i.red*f),green:Math.floor(a.green*s+i.green*f),blue:Math.floor(a.blue*s+i.blue*f),alpha:a.alpha+(i.alpha-a.alpha)*(e/1)})}),ye=O(function(e,r){var t=m(r),n="number"==typeof t.alpha?t.alpha:1;return k(G({},t,{alpha:C(0,1,(100*n+100*e)/100)}))}),ve=O(function(e){return P(e)>.179?"#000":"#fff"}),we=O(function(e,r){var t=v(r);return A(G({},t,{saturation:C(0,1,t.saturation+e)}))}),xe=O(function(e,r){return A(G({},v(r),{hue:e}))}),ke=O(function(e,r){return A(G({},v(r),{lightness:e}))}),Se=O(function(e,r){return A(G({},v(r),{saturation:e}))}),ze=O(function(e,r){if("number"!=typeof e||e>1||e<-1)throw new Error("Passed an incorrect argument to shade, please pass a percentage less than or equal to 1 and larger than or equal to -1.");if("string"!=typeof r)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");return me(e,r,"rgb(0, 0, 0)")}),Ie=O(function(e,r){if("number"!=typeof e||e>1||e<-1)throw new Error("Passed an incorrect argument to tint, please pass a percentage less than or equal to 1 and larger than or equal to -1.");if("string"!=typeof r)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");return me(e,r,"rgb(255, 255, 255)")}),Ee=O(function(e,r){var t=m(r),n="number"==typeof t.alpha?t.alpha:1;return k(G({},t,{alpha:C(0,1,(100*n-100*e)/100)}))}),je=[void 0,null,"active","focus","hover"],Ae=["absolute","fixed","relative","static","sticky"],Fe=[void 0,null,"active","focus","hover"];e.adjustHue=pe,e.animation=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Array.isArray(r[0]);if(!n&&r.length>8)throw new Error("The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation");return{animation:r.map(function(e){if(n&&!Array.isArray(e)||!n&&Array.isArray(e))throw new Error("To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')");if(Array.isArray(e)&&e.length>8)throw new Error("The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation");return Array.isArray(e)?e.join(" "):e}).join(", ")}},e.backgroundImages=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{backgroundImage:r.join(", ")}},e.backgrounds=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{background:r.join(", ")}},e.borderColor=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderColor"].concat(r))},e.borderRadius=function(e,t){var n=r(e);if(!t&&0!==t)throw new Error("borderRadius expects a radius value as a string or number as the second argument.");if("Top"===n||"Bottom"===n){var a;return a={},a["border"+n+"RightRadius"]=t,a["border"+n+"LeftRadius"]=t,a}if("Left"===n||"Right"===n){var o;return o={},o["borderTop"+n+"Radius"]=t,o["borderBottom"+n+"Radius"]=t,o}throw new Error('borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.')},e.borderStyle=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderStyle"].concat(r))},e.borderWidth=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderWidth"].concat(r))},e.buttons=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return R(r,M,je)},e.clearFix=function(){var e;return e={},e[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"&")+"::after"]={clear:"both",content:'""',display:"table"},e},e.complement=function(e){var r=v(e);return A(G({},r,{hue:(r.hue+180)%360}))},e.darken=he,e.desaturate=be,e.directionalProperty=a,e.ellipsis=function(){return{display:"inline-block",maxWidth:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"}},e.em=$,e.fontFace=function(e){var r=e.fontFamily,t=e.fontFilePath,n=e.fontStretch,a=e.fontStyle,o=e.fontVariant,i=e.fontWeight,u=e.fileFormats,s=void 0===u?["eot","woff2","woff","ttf","svg"]:u,f=e.localFonts,c=e.unicodeRange;if(!r)throw new Error("fontFace expects a name of a font-family.");if(!t&&!f)throw new Error("fontFace expects either the path to the font file(s) or a name of a local copy.");if(f&&!Array.isArray(f))throw new Error("fontFace expects localFonts to be an array.");if(!Array.isArray(s))throw new Error("fontFace expects fileFormats to be an array.");var d={"@font-face":{fontFamily:r,src:l(t,f,s),unicodeRange:c,fontStretch:n,fontStyle:a,fontVariant:o,fontWeight:i}};return JSON.parse(JSON.stringify(d))},e.getLuminance=P,e.grayscale=function(e){return A(G({},v(e),{saturation:0}))},e.invert=function(e){var r=m(e);return A(G({},r,{red:255-r.red,green:255-r.green,blue:255-r.blue}))},e.hideText=function(){return{textIndent:"101%",overflow:"hidden",whiteSpace:"nowrap"}},e.hideVisually=function(){return{border:"0",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},e.hiDPI=s,e.hsl=E,e.hsla=j,e.lighten=ge,e.margin=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["margin"].concat(r))},e.mix=me,e.modularScale=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1em",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"perfectFourth";if("number"!=typeof e)throw new Error("Please provide a number of steps to the modularScale helper.");if("string"==typeof t&&!D[t])throw new Error("Please pass a number or one of the predefined scales to the modularScale helper as the ratio.");var n="string"==typeof r?o(r):r,a="string"==typeof t?D[t]:t;if("string"==typeof n)throw new Error('Invalid value passed as base to modularScale, expected number or em string but got "'+r+'"');return n*Math.pow(a,e)+"em"},e.normalize=function(e){return e?U:f(U,J)},e.opacify=ye,e.padding=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["padding"].concat(r))},e.parseToHsl=v,e.parseToRgb=m,e.placeholder=function(e){var r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&";return r={},r[t+"::-webkit-input-placeholder"]=G({},e),r[t+":-moz-placeholder"]=G({},e),r[t+"::-moz-placeholder"]=G({},e),r[t+":-ms-input-placeholder"]=G({},e),r},e.position=function(e){for(var r=arguments.length,t=Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];if(Ae.indexOf(e)>=0)return G({position:e},a.apply(void 0,[""].concat(t)));var o=e;return a.apply(void 0,["",o].concat(t))},e.radialGradient=function(e){var r=e.colorStops,t=e.extent,n=e.fallback,a=e.position,o=e.shape;if(!r||r.length<2)throw new Error("radialGradient requries at least 2 color-stops to properly render.");return{backgroundColor:n||c(r),backgroundImage:d(Y,a,o,t,r.join(", "))}},e.readableColor=ve,e.rem=V,e.retinaImage=function(e,r){var t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"png",a=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"_2x";if(!e)throw new Error("Please supply a filename to retinaImage() as the first argument.");var i=n.replace(/^\./,""),u=a?a+"."+i:""+e+o+"."+i;return t={backgroundImage:"url("+e+"."+i+")"},t[s()]={backgroundImage:"url("+u+")",backgroundSize:r},t},e.rgb=x,e.rgba=k,e.saturate=we,e.selection=function(e){var r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return r={},r[t+"::-moz-selection"]=G({},e),r[t+"::selection"]=G({},e),r},e.setHue=xe,e.setLightness=ke,e.setSaturation=Se,e.shade=ze,e.size=function(e){return{height:e,width:arguments.length>1&&void 0!==arguments[1]?arguments[1]:e}},e.stripUnit=o,e.textInputs=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return R(r,q,Fe)},e.timingFunctions=function(e){return Z[e]},e.tint=Ie,e.toColorString=A,e.transitions=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{transition:r.join(", ")}},e.transparentize=Ee,e.triangle=function(e){var r,t=e.pointingDirection,n=e.height,a=e.width,o=e.foregroundColor,i=e.backgroundColor,u=void 0===i?"transparent":i,l=parseFloat(n),s=parseFloat(a);if(isNaN(l)||isNaN(s))throw new Error("Passed an invalid value to `height` or `width`. Please provide a pixel based unit");return r={borderColor:u,width:"0",height:"0",borderWidth:K(t,l,s),borderStyle:"solid"},r["border"+X[t]+"Color"]=o+" !important",r},e.wordWrap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"break-word";return{overflowWrap:e,wordWrap:e,wordBreak:"break-word"===e?"break-all":e}},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(e.polished={})}(this,function(e){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}module.exports=e.default;var t=["Top","Right","Bottom","Left"];function n(e,t){if(!e)return t.toLowerCase();var n=e.split("-");if(n.length>1)return n.splice(1,0,t),n.reduce(function(e,t){return""+e+r(t)});var o=e.replace(/([a-z])([A-Z])/g,"$1"+t+"$2");return e===o?""+e+t:o}function o(e){for(var r=arguments.length,o=Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];var i=o[0],u=o[1],l=void 0===u?i:u,s=o[2],f=void 0===s?i:s,p=o[3];return function(e,r){for(var o={},a=0;a<r.length;a+=1)(r[a]||0===r[a])&&(o[n(e,t[a])]=r[a]);return o}(e,[i,l,f,void 0===p?l:p])}function a(e,r){return e.substr(-r.length)===r}function i(e){var r=parseFloat(e);return isNaN(r)?e:r}module.exports=e.default,module.exports=e.default,module.exports=e.default;var u=function(e){return function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"16px",n=r,o=t;if("string"==typeof r){if(!a(r,"px"))throw new Error('Expected a string ending in "px" or a number passed as the first argument to '+e+'(), got "'+r+'" instead.');n=i(r)}if("string"==typeof t){if(!a(t,"px"))throw new Error('Expected a string ending in "px" or a number passed as the second argument to '+e+'(), got "'+t+'" instead.');o=i(t)}if("string"==typeof n)throw new Error('Passed invalid pixel value ("'+r+'") to '+e+'(), please pass a value like "12px" or 12.');if("string"==typeof o)throw new Error('Passed invalid base value ("'+t+'") to '+e+'(), please pass a value like "12px" or 12.');return""+n/o+e}};module.exports=e.default;var l=u("em");module.exports=e.default;var s={minorSecond:1.067,majorSecond:1.125,minorThird:1.2,majorThird:1.25,perfectFourth:1.333,augFourth:1.414,perfectFifth:1.5,minorSixth:1.6,goldenSection:1.618,majorSixth:1.667,minorSeventh:1.778,majorSeventh:1.875,octave:2,majorTenth:2.5,majorEleventh:2.667,majorTwelfth:3,doubleOctave:4};var f=u("rem");function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.3;return"\n @media only screen and (-webkit-min-device-pixel-ratio: "+e+"),\n only screen and (min--moz-device-pixel-ratio: "+e+"),\n only screen and (-o-min-device-pixel-ratio: "+e+"/1),\n only screen and (min-resolution: "+Math.round(96*e)+"dpi),\n only screen and (min-resolution: "+e+"dppx)\n "}module.exports=e.default,module.exports=e.default,module.exports=e.default,module.exports=e.default,module.exports=e.default,module.exports=e.default,module.exports=e.default;var d,c,b,h=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},m=((d={html:{fontFamily:"sans-serif"},body:{margin:"0"}})["a:active,\n a:hover"]={outlineWidth:"0"},d["button,\n input,\n optgroup,\n select,\n textarea"]={fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15"},d),g=((b={html:{lineHeight:"1.15",textSizeAdjust:"100%"}})["article,\n aside,\n footer,\n header,\n nav,\n section"]={display:"block"},b.h1={fontSize:"2em",margin:"0.67em 0"},b["figcaption,\n figure,\n main"]={display:"block"},b.figure={margin:"1em 40px"},b.hr={boxSizing:"content-box",height:"0",overflow:"visible"},b.pre={fontFamily:"monospace, monospace",fontSize:"1em"},b.a={"background-color":"transparent","-webkit-text-decoration-skip":"objects"},b["abbr[title]"]=((c={borderBottom:"none",textDecoration:"underline"}).textDecoration="underline dotted",c),b["b,\n strong"]={fontWeight:"inherit"},b["code,\n kbd,\n samp"]={fontFamily:"monospace, monospace",fontSize:"1em"},b.dfn={fontStyle:"italic"},b.mark={backgroundColor:"#ff0",color:"#000"},b.small={fontSize:"80%"},b["sub,\n sup"]={fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},b.sub={bottom:"-0.25em"},b.sup={top:"-0.5em"},b["audio,\n video"]={display:"inline-block"},b["audio:not([controls])"]={display:"none",height:"0"},b.img={borderStyle:"none"},b["svg:not(:root)"]={overflow:"hidden"},b["button,\n input,\n optgroup,\n select,\n textarea"]={margin:"0"},b["button,\n input"]={overflow:"visible"},b["button,\n select"]={textTransform:"none"},b['button,\n html [type="button"],\n [type="reset"],\n [type="submit"]']={"-webkit-appearance":"button"},b['button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner']={borderStyle:"none",padding:"0"},b['button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring']={outline:"1px dotted ButtonText"},b.fieldset={border:"1px solid #c0c0c0",margin:"0 2px",padding:"0.35em 0.625em 0.75em"},b.legend={boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},b.progress={display:"inline-block",verticalAlign:"baseline"},b.textarea={overflow:"auto"},b['[type="checkbox"],\n [type="radio"]']={boxSizing:"border-box",padding:"0"},b['[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button']={height:"auto"},b['[type="search"]']={"-webkit-appearance":"textfield",outlineOffset:"-2px"},b['[type="search"]::-webkit-search-cancel-button,\n [type="search"]::-webkit-search-decoration']={"-webkit-appearance":"none"},b["::-webkit-file-upload-button"]={"-webkit-appearance":"button",font:"inherit"},b["details,\n menu"]={display:"block"},b.summary={display:"list-item"},b.canvas={display:"inline-block"},b.template={display:"none"},b["[hidden]"]={display:"none"},b);module.exports=e.default;var y=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};module.exports=e.default;var v=function(e,r){return e.raw=r,e}(["radial-gradient(","","","",")"],["radial-gradient(","","","",")"]);module.exports=e.default,module.exports=e.default;var w=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};module.exports=e.default;var x={easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInExpo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"};module.exports=e.default;var k=function(e,r,t){switch(e){case"top":return"0 "+t/2+"px "+r+"px "+t/2+"px";case"left":return r/2+"px "+t+"px "+r/2+"px 0";case"bottom":return r+"px "+t/2+"px 0 "+t/2+"px";case"right":return r/2+"px 0 "+r/2+"px "+t+"px";default:throw new Error("Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.")}},O={left:"Right",right:"Left",top:"Bottom",bottom:"Top"};function S(e){return Math.round(255*e)}function j(e,r,t){return S(e)+","+S(r)+","+S(t)}function z(e,r,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j;if(0===r)return n(t,t,t);var o=e%360/60,a=(1-Math.abs(2*t-1))*r,i=a*(1-Math.abs(o%2-1)),u=0,l=0,s=0;o>=0&&o<1?(u=a,l=i):o>=1&&o<2?(u=i,l=a):o>=2&&o<3?(l=a,s=i):o>=3&&o<4?(l=i,s=a):o>=4&&o<5?(u=i,s=a):o>=5&&o<6&&(u=a,s=i);var f=t-a/2;return n(u+f,l+f,s+f)}module.exports=e.default,module.exports=e.default,module.exports=e.default;var I={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};module.exports=e.default;var P=/^#[a-fA-F0-9]{6}$/,E=/^#[a-fA-F0-9]{3}$/,A=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,F=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,C=/^hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,T=/^hsla\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;function R(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var r=function(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return I[r]?"#"+I[r]:e}(e);if(r.match(P))return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16)};if(r.match(E))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};var t=A.exec(r);if(t)return{red:parseInt(""+t[1],10),green:parseInt(""+t[2],10),blue:parseInt(""+t[3],10)};var n=F.exec(r);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10),alpha:parseFloat(""+n[4])};var o=C.exec(r);if(o){var a="rgb("+z(parseInt(""+o[1],10),parseInt(""+o[2],10)/100,parseInt(""+o[3],10)/100)+")",i=A.exec(a);return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)}}var u=T.exec(r);if(u){var l="rgb("+z(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",s=A.exec(l);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10),alpha:parseFloat(""+u[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function M(e){return function(e){var r=e.red/255,t=e.green/255,n=e.blue/255,o=Math.max(r,t,n),a=Math.min(r,t,n),i=(o+a)/2;if(o===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var u=void 0,l=o-a,s=i>.5?l/(2-o-a):l/(o+a);switch(o){case r:u=(t-n)/l+(t<n?6:0);break;case t:u=(n-r)/l+2;break;default:u=(r-t)/l+4}return u*=60,void 0!==e.alpha?{hue:u,saturation:s,lightness:i,alpha:e.alpha}:{hue:u,saturation:s,lightness:i}}(R(e))}module.exports=e.default,module.exports=e.default,module.exports=e.default;var q=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function W(e){var r=e.toString(16);return 1===r.length?"0"+r:r}module.exports=e.default,module.exports=e.default;var B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Q(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return q("#"+W(e)+W(r)+W(t));if("object"===(void 0===e?"undefined":B(e))&&void 0===r&&void 0===t)return q("#"+W(e.red)+W(e.green)+W(e.blue));throw new Error("Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).")}module.exports=e.default;var H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function L(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var o=R(e);return"rgba("+o.red+","+o.green+","+o.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?Q(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"===(void 0===e?"undefined":H(e))&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?Q(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Error("Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).")}function N(e){return W(Math.round(255*e))}function $(e,r,t){return q("#"+N(e)+N(r)+N(t))}function D(e,r,t){return z(e,r,t,$)}module.exports=e.default,module.exports=e.default;var V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function _(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return D(e,r,t);if("object"===(void 0===e?"undefined":V(e))&&void 0===r&&void 0===t)return D(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}module.exports=e.default;var G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function J(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?D(e,r,t):"rgba("+z(e,r,t)+","+n+")";if("object"===(void 0===e?"undefined":G(e))&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?D(e.hue,e.saturation,e.lightness):"rgba("+z(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}module.exports=e.default;var U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},Z=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},K=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},X=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha},ee="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.";function re(e){if("object"!==(void 0===e?"undefined":U(e)))throw new Error(ee);if(Z(e))return L(e);if(Y(e))return Q(e);if(X(e))return J(e);if(K(e))return _(e);throw new Error(ee)}function te(e){return function e(r,t,n){return function(){var o=n.concat(Array.prototype.slice.call(arguments));return o.length>=t?r.apply(this,o):e(r,t,o)}}(e,e.length,[])}module.exports=e.default,module.exports=e.default;var ne=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};var oe=te(function(e,r){var t=M(r);return re(ne({},t,{hue:(t.hue+e)%360}))});module.exports=e.default;var ae=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};function ie(e,r,t){return Math.max(e,Math.min(r,t))}module.exports=e.default,module.exports=e.default;var ue=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};var le=te(function(e,r){var t=M(r);return re(ue({},t,{lightness:ie(0,1,t.lightness-e)}))});module.exports=e.default;var se=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};var fe=te(function(e,r){var t=M(r);return re(se({},t,{saturation:ie(0,1,t.saturation-e)}))});function pe(e){var r=R(e),t=Object.keys(r).map(function(e){var t=r[e]/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)});return.2126*t[0]+.7152*t[1]+.0722*t[2]}module.exports=e.default,module.exports=e.default;var de=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};module.exports=e.default;var ce=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};module.exports=e.default;var be=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};var he=te(function(e,r){var t=M(r);return re(be({},t,{lightness:ie(0,1,t.lightness+e)}))});module.exports=e.default;var me=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};var ge=te(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,r=arguments[1],t=arguments[2],n=R(r),o=me({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),a=R(t),i=me({},a,{alpha:"number"==typeof a.alpha?a.alpha:1}),u=o.alpha-i.alpha,l=2*e-1,s=((l*u==-1?l:l+u)/(1+l*u)+1)/2,f=1-s;return L({red:Math.floor(o.red*s+i.red*f),green:Math.floor(o.green*s+i.green*f),blue:Math.floor(o.blue*s+i.blue*f),alpha:o.alpha+(i.alpha-o.alpha)*(e/1)})});module.exports=e.default;var ye=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};var ve=te(function(e,r){var t=R(r),n="number"==typeof t.alpha?t.alpha:1;return L(ye({},t,{alpha:ie(0,1,(100*n+100*e)/100)}))});module.exports=e.default;var we=te(function(e){return pe(e)>.179?"#000":"#fff"});module.exports=e.default;var xe=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};var ke=te(function(e,r){var t=M(r);return re(xe({},t,{saturation:ie(0,1,t.saturation+e)}))});module.exports=e.default;var Oe=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};var Se=te(function(e,r){return re(Oe({},M(r),{hue:e}))});module.exports=e.default;var je=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};var ze=te(function(e,r){return re(je({},M(r),{lightness:e}))});module.exports=e.default;var Ie=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};var Pe=te(function(e,r){return re(Ie({},M(r),{saturation:e}))});module.exports=e.default;var Ee=te(function(e,r){if("number"!=typeof e||e>1||e<-1)throw new Error("Passed an incorrect argument to shade, please pass a percentage less than or equal to 1 and larger than or equal to -1.");if("string"!=typeof r)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");return ge(e,r,"rgb(0, 0, 0)")});module.exports=e.default;var Ae=te(function(e,r){if("number"!=typeof e||e>1||e<-1)throw new Error("Passed an incorrect argument to tint, please pass a percentage less than or equal to 1 and larger than or equal to -1.");if("string"!=typeof r)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");return ge(e,r,"rgb(255, 255, 255)")});module.exports=e.default;var Fe=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};var Ce=te(function(e,r){var t=R(r),n="number"==typeof t.alpha?t.alpha:1;return L(Fe({},t,{alpha:ie(0,1,(100*n-100*e)/100)}))});function Te(e,r){return e(r?":"+r:"")}function Re(e,r,t){if(!r)throw new Error("You must provide a template to this method.");if(0===e.length)return Te(r,null);for(var n=[],o=0;o<e.length;o+=1){if(t&&t.indexOf(e[o])<0)throw new Error("You passed an unsupported selector state to this method.");n.push(Te(r,e[o]))}return n=n.join(",")}module.exports=e.default,module.exports=e.default,module.exports=e.default,module.exports=e.default,module.exports=e.default,module.exports=e.default,module.exports=e.default,module.exports=e.default,module.exports=e.default;var Me=[void 0,null,"active","focus","hover"];function qe(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}module.exports=e.default,module.exports=e.default,module.exports=e.default;var We=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Be=["absolute","fixed","relative","static","sticky"];module.exports=e.default,module.exports=e.default;var Qe=[void 0,null,"active","focus","hover"];function He(e){return'input[type="color"]'+e+',\n input[type="date"]'+e+',\n input[type="datetime"]'+e+',\n input[type="datetime-local"]'+e+',\n input[type="email"]'+e+',\n input[type="month"]'+e+',\n input[type="number"]'+e+',\n input[type="password"]'+e+',\n input[type="search"]'+e+',\n input[type="tel"]'+e+',\n input[type="text"]'+e+',\n input[type="time"]'+e+',\n input[type="url"]'+e+',\n input[type="week"]'+e+",\n input:not([type])"+e+",\n textarea"+e}module.exports=e.default,module.exports=e.default,e.adjustHue=oe,e.animation=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Array.isArray(r[0]);if(!n&&r.length>8)throw new Error("The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation");return{animation:r.map(function(e){if(n&&!Array.isArray(e)||!n&&Array.isArray(e))throw new Error("To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')");if(Array.isArray(e)&&e.length>8)throw new Error("The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation");return Array.isArray(e)?e.join(" "):e}).join(", ")}},e.backgroundImages=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{backgroundImage:r.join(", ")}},e.backgrounds=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{background:r.join(", ")}},e.borderColor=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return o.apply(void 0,["borderColor"].concat(r))},e.borderRadius=function(e,t){var n,o,a=r(e);if(!t&&0!==t)throw new Error("borderRadius expects a radius value as a string or number as the second argument.");if("Top"===a||"Bottom"===a)return(n={})["border"+a+"RightRadius"]=t,n["border"+a+"LeftRadius"]=t,n;if("Left"===a||"Right"===a)return(o={})["borderTop"+a+"Radius"]=t,o["borderBottom"+a+"Radius"]=t,o;throw new Error('borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.')},e.borderStyle=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return o.apply(void 0,["borderStyle"].concat(r))},e.borderWidth=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return o.apply(void 0,["borderWidth"].concat(r))},e.buttons=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return Re(r,qe,Me)},e.clearFix=function(){var e;return(e={})[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"&")+"::after"]={clear:"both",content:'""',display:"table"},e},e.complement=function(e){var r=M(e);return re(ae({},r,{hue:(r.hue+180)%360}))},e.darken=le,e.desaturate=fe,e.directionalProperty=o,e.ellipsis=function(){return{display:"inline-block",maxWidth:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"}},e.em=l,e.fontFace=function(e){var r=e.fontFamily,t=e.fontFilePath,n=e.fontStretch,o=e.fontStyle,a=e.fontVariant,i=e.fontWeight,u=e.fileFormats,l=void 0===u?["eot","woff2","woff","ttf","svg"]:u,s=e.localFonts,f=e.unicodeRange;if(!r)throw new Error("fontFace expects a name of a font-family.");if(!t&&!s)throw new Error("fontFace expects either the path to the font file(s) or a name of a local copy.");if(s&&!Array.isArray(s))throw new Error("fontFace expects localFonts to be an array.");if(!Array.isArray(l))throw new Error("fontFace expects fileFormats to be an array.");var p={"@font-face":{fontFamily:r,src:function(e,r,t){var n=[];return r&&n.push(function(e){return e.map(function(e){return'local("'+e+'")'}).join(", ")}(r)),e&&n.push(function(e,r){return r.map(function(r){return'url("'+e+"."+r+'")'}).join(", ")}(e,t)),n.join(", ")}(t,s,l),unicodeRange:f,fontStretch:n,fontStyle:o,fontVariant:a,fontWeight:i}};return JSON.parse(JSON.stringify(p))},e.getLuminance=pe,e.grayscale=function(e){return re(de({},M(e),{saturation:0}))},e.invert=function(e){var r=R(e);return re(ce({},r,{red:255-r.red,green:255-r.green,blue:255-r.blue}))},e.hideText=function(){return{textIndent:"101%",overflow:"hidden",whiteSpace:"nowrap"}},e.hideVisually=function(){return{border:"0",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},e.hiDPI=p,e.hsl=_,e.hsla=J,e.lighten=he,e.margin=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return o.apply(void 0,["margin"].concat(r))},e.mix=ge,e.modularScale=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1em",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"perfectFourth";if("number"!=typeof e)throw new Error("Please provide a number of steps to the modularScale helper.");if("string"==typeof t&&!s[t])throw new Error("Please pass a number or one of the predefined scales to the modularScale helper as the ratio.");var n="string"==typeof r?i(r):r,o="string"==typeof t?s[t]:t;if("string"==typeof n)throw new Error('Invalid value passed as base to modularScale, expected number or em string but got "'+r+'"');return n*Math.pow(o,e)+"em"},e.normalize=function(e){return e?g:(r=m,t=h({},g),Object.keys(r).forEach(function(e){t[e]?t[e]=h({},t[e],r[e]):t[e]=h({},r[e])}),t);var r,t},e.opacify=ve,e.padding=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return o.apply(void 0,["padding"].concat(r))},e.parseToHsl=M,e.parseToRgb=R,e.placeholder=function(e){var r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&";return(r={})[t+"::-webkit-input-placeholder"]=y({},e),r[t+":-moz-placeholder"]=y({},e),r[t+"::-moz-placeholder"]=y({},e),r[t+":-ms-input-placeholder"]=y({},e),r},e.position=function(e){for(var r=arguments.length,t=Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];if(Be.indexOf(e)>=0)return We({position:e},o.apply(void 0,[""].concat(t)));var a=e;return o.apply(void 0,["",a].concat(t))},e.radialGradient=function(e){var r=e.colorStops,t=e.extent,n=e.fallback,o=e.position,a=e.shape;if(!r||r.length<2)throw new Error("radialGradient requries at least 2 color-stops to properly render.");return{backgroundColor:n||function(e){return e[0].split(" ")[0]}(r),backgroundImage:function(e){for(var r="",t=0;t<e.length;t+=1)r+=e[t],3===t&&(arguments.length<=t+1?void 0:arguments[t+1])&&((arguments.length<=1?void 0:arguments[1])||(arguments.length<=2?void 0:arguments[2])||(arguments.length<=3?void 0:arguments[3]))?(r=r.slice(0,-1),r+=", "+(arguments.length<=t+1?void 0:arguments[t+1])):3!==t||arguments.length<=t+1||!arguments[t+1]||(arguments.length<=1?void 0:arguments[1])||(arguments.length<=2?void 0:arguments[2])||(arguments.length<=3?void 0:arguments[3])?(arguments.length<=t+1?void 0:arguments[t+1])&&(r+=(arguments.length<=t+1?void 0:arguments[t+1])+" "):r+=""+(arguments.length<=t+1?void 0:arguments[t+1]);return r.trim()}(v,o,a,t,r.join(", "))}},e.readableColor=we,e.rem=f,e.retinaImage=function(e,r){var t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"png",o=arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"_2x";if(!e)throw new Error("Please supply a filename to retinaImage() as the first argument.");var i=n.replace(/^\./,""),u=o?o+"."+i:""+e+a+"."+i;return(t={backgroundImage:"url("+e+"."+i+")"})[p()]={backgroundImage:"url("+u+")",backgroundSize:r},t},e.rgb=Q,e.rgba=L,e.saturate=ke,e.selection=function(e){var r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(r={})[t+"::-moz-selection"]=w({},e),r[t+"::selection"]=w({},e),r},e.setHue=Se,e.setLightness=ze,e.setSaturation=Pe,e.shade=Ee,e.size=function(e){return{height:e,width:arguments.length>1&&void 0!==arguments[1]?arguments[1]:e}},e.stripUnit=i,e.textInputs=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return Re(r,He,Qe)},e.timingFunctions=function(e){return x[e]},e.tint=Ae,e.toColorString=re,e.transitions=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{transition:r.join(", ")}},e.transparentize=Ce,e.triangle=function(e){var r,t=e.pointingDirection,n=e.height,o=e.width,a=e.foregroundColor,i=e.backgroundColor,u=void 0===i?"transparent":i,l=parseFloat(n),s=parseFloat(o);if(isNaN(l)||isNaN(s))throw new Error("Passed an invalid value to `height` or `width`. Please provide a pixel based unit");return(r={borderColor:u,width:"0",height:"0",borderWidth:k(t,l,s),borderStyle:"solid"})["border"+O[t]+"Color"]=a+" !important",r},e.wordWrap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"break-word";return{overflowWrap:e,wordWrap:e,wordBreak:"break-word"===e?"break-all":e}},Object.defineProperty(e,"__esModule",{value:!0})}); |
@@ -65,7 +65,6 @@ 'use strict'; | ||
alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1 | ||
}); | ||
// The formular is copied from the original Sass implementation: | ||
// http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method | ||
var alphaDelta = color1.alpha - color2.alpha; | ||
// The formular is copied from the original Sass implementation: | ||
// http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method | ||
});var alphaDelta = color1.alpha - color2.alpha; | ||
var x = weight * 2 - 1; | ||
@@ -72,0 +71,0 @@ var y = x * alphaDelta === -1 ? x : x + alphaDelta; |
@@ -30,7 +30,6 @@ 'use strict'; | ||
doubleOctave: 4 | ||
/** */ | ||
}; | ||
/** */ | ||
/** | ||
@@ -37,0 +36,0 @@ * Establish consistent measurements and spacial relationships throughout your projects by incrementing up or down a defined scale. We provide a list of commonly used scales as pre-defined variables, see below. |
@@ -153,9 +153,8 @@ 'use strict'; | ||
yellowgreen: '9acd32' | ||
}; | ||
/** | ||
* Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color. | ||
* @private | ||
*/ | ||
function nameToHex(color) { | ||
/** | ||
* Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color. | ||
* @private | ||
*/ | ||
};function nameToHex(color) { | ||
if (typeof color !== 'string') return color; | ||
@@ -162,0 +161,0 @@ var normalizedColorName = color.toLowerCase(); |
@@ -19,3 +19,8 @@ 'use strict'; | ||
if (color.alpha !== undefined) { | ||
return { hue: 0, saturation: 0, lightness: lightness, alpha: color.alpha }; | ||
return { | ||
hue: 0, | ||
saturation: 0, | ||
lightness: lightness, | ||
alpha: color.alpha | ||
}; | ||
} else { | ||
@@ -44,3 +49,8 @@ return { hue: 0, saturation: 0, lightness: lightness }; | ||
if (color.alpha !== undefined) { | ||
return { hue: hue, saturation: saturation, lightness: lightness, alpha: color.alpha }; | ||
return { | ||
hue: hue, | ||
saturation: saturation, | ||
lightness: lightness, | ||
alpha: color.alpha | ||
}; | ||
} | ||
@@ -47,0 +57,0 @@ return { hue: hue, saturation: saturation, lightness: lightness }; |
@@ -94,6 +94,5 @@ 'use strict'; | ||
} | ||
}; | ||
// Removes undefined fields for cleaner css object. | ||
return JSON.parse(JSON.stringify(fontFaceDeclaration)); | ||
// Removes undefined fields for cleaner css object. | ||
};return JSON.parse(JSON.stringify(fontFaceDeclaration)); | ||
} | ||
@@ -100,0 +99,0 @@ |
@@ -34,8 +34,7 @@ 'use strict'; | ||
easeInOutSine: 'cubic-bezier(0.445, 0.050, 0.550, 0.950)' | ||
/* eslint-enable key-spacing */ | ||
/** */ | ||
}; | ||
/* eslint-enable key-spacing */ | ||
/** */ | ||
/** | ||
@@ -42,0 +41,0 @@ * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie). |
@@ -19,3 +19,3 @@ 'use strict'; | ||
default: | ||
throw new Error("Passed invalid argument to triangle, please pass correct poitingDirection e.g. 'right'."); | ||
throw new Error("Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'."); | ||
} | ||
@@ -30,33 +30,32 @@ }; | ||
bottom: 'Top' | ||
}; | ||
/** | ||
* CSS to represent triangle with any pointing direction with an optional background color. Accepts number or px values for height and width. | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* | ||
* const styles = { | ||
* ...triangle({ pointingDirection: 'right', width: '100px', height: '100px', foregroundColor: 'red' }) | ||
* } | ||
* | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${triangle({ pointingDirection: 'right', width: '100px', height: '100px', foregroundColor: 'red' })} | ||
* | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div: { | ||
* 'borderColor': 'transparent', | ||
* 'borderLeftColor': 'red !important', | ||
* 'borderStyle': 'solid', | ||
* 'borderWidth': '50px 0 50px 100px', | ||
* 'height': '0', | ||
* 'width': '0', | ||
* } | ||
*/ | ||
/** | ||
* CSS to represent triangle with any pointing direction with an optional background color. Accepts number or px values for height and width. | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* | ||
* const styles = { | ||
* ...triangle({ pointingDirection: 'right', width: '100px', height: '100px', foregroundColor: 'red' }) | ||
* } | ||
* | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${triangle({ pointingDirection: 'right', width: '100px', height: '100px', foregroundColor: 'red' })} | ||
* | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div: { | ||
* 'borderColor': 'transparent', | ||
* 'borderLeftColor': 'red !important', | ||
* 'borderStyle': 'solid', | ||
* 'borderWidth': '50px 0 50px 100px', | ||
* 'height': '0', | ||
* 'width': '0', | ||
* } | ||
*/ | ||
function triangle(_ref) { | ||
};function triangle(_ref) { | ||
var _ref2; | ||
@@ -63,0 +62,0 @@ |
129
package.json
@@ -1,1 +0,128 @@ | ||
{"name":"polished","description":"A lightweight toolset for writing styles in Javascript.","main":"lib/index.js","jsnext:main":"dist/polished.es.js","module":"dist/polished.es.js","types":"lib/index.d.ts","scripts":{"build":"npm run build:lib && npm run build:dist && npm run build:flow && npm run build:docs && npm run build:typescript","prebuild:lib":"shx rm -rf lib/*","build:lib":"babel --out-dir lib src --ignore test.js","prebuild:umd":"shx rm -rf dist/*","prebuild:dist":"shx rm -rf dist/*","build:dist":"rollup -c && rollup -c --environment PRODUCTION","build:docs":"npm run build:docs:site","prebuild:docs:site":"shx rm -rf docs/*","build:docs:site":"documentation build src/** -t docs-theme --github -o docs -f html -c ./.documentation.json","postbuild:docs:site":"shx cp CNAME docs/CNAME && shx cp dist/polished.js docs/assets/","build:watch":"npm-watch","build:flow":"flow-copy-source -v -i '{**/test/*.js,**/*.test.js}' src lib","build:typescript":"tsgen \"lib/**/*.js.flow\" --ignore \"lib/**/_*.js.flow\"","test":"jest src","typescript":"tsc ./typescript-test.ts --noEmit --target es6 --module es2015 --moduleResolution node","precommit":"lint-staged --verbose","postcommit":"validate-commit-msg","lint":"eslint src","flow":"flow check && flow-coverage-report -i 'src/**/!(*.test).js'","docs":"pushstate-server docs","prepublish":"npm run build && npm run typescript"},"lint-staged":{"src/**/!(*.test).js":["prettier --no-semi --single-quote --trailing-comma all --write","eslint --fix","git add"],"src/**/*.test.js":["prettier --no-semi --single-quote --trailing-comma all --write","eslint --fix","git add"]},"watch":{"build:docs":"src/**/*.js","build:lib":"src/**/*.js"},"author":"Max Stoiber <contact@mxstbr.com> (http://mxstbr.com)","license":"MIT","repository":{"type":"git","url":"git+https://github.com/styled-components/polished.git"},"keywords":["styled-components","polished","css-in-js","inline-styles","react"],"bugs":{"url":"https://github.com/styled-components/polished/issues"},"homepage":"https://github.com/styled-components/polished#readme","devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.18.2","babel-eslint":"^7.1.0","babel-jest":"^16.0.0","babel-loader":"^6.2.7","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-annotate-pure-calls":"^0.2.1","babel-plugin-external-helpers":"^6.18.0","babel-plugin-syntax-trailing-function-commas":"^6.22.0","babel-plugin-transform-flow-strip-types":"^6.18.0","babel-plugin-transform-object-rest-spread":"^6.16.0","babel-polyfill":"^6.16.0","babel-preset-env":"^1.5.2","concat-stream":"^1.5.2","cz-conventional-changelog":"^1.2.0","documentation":"4.0.0-beta.18","eslint":"^3.9.1","eslint-config-airbnb-base":"^10.0.1","eslint-plugin-import":"^2.2.0","flow-bin":"^0.53.1","flow-copy-source":"^1.1.0","flow-coverage-report":"^0.3.0","github-slugger":"^1.1.1","highlight.js":"^9.9.0","husky":"^0.14.3","jest":"^16.0.2","lint-staged":"^4.0.2","lodash":"^4.17.2","npm-watch":"^0.1.6","prettier":"^1.5.3","pushstate-server":"^2.1.0","ramda":"^0.23.0","rollup":"^0.50.0","rollup-plugin-babel":"^3.0.2","rollup-plugin-commonjs":"^8.2.1","rollup-plugin-flow":"^1.1.1","rollup-plugin-inject":"^2.0.0","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^2.0.1","shx":"^0.2.2","tsgen":"^1.0.0","typescript":"^2.4.2","validate-commit-msg":"^2.8.2","vinyl":"^2.0.1","vinyl-fs":"^2.4.4"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"jest":{"coverageDirectory":"./coverage/","collectCoverage":true},"version":"1.9.0"} | ||
{ | ||
"name": "polished", | ||
"description": "A lightweight toolset for writing styles in Javascript.", | ||
"main": "lib/index.js", | ||
"jsnext:main": "dist/polished.es.js", | ||
"module": "dist/polished.es.js", | ||
"types": "lib/index.d.ts", | ||
"version": "1.9.1", | ||
"scripts": { | ||
"build": "npm run build:lib && npm run build:dist && npm run build:flow && npm run build:docs && npm run build:typescript", | ||
"prebuild:lib": "shx rm -rf lib/*", | ||
"build:lib": "babel --out-dir lib src --ignore test.js", | ||
"prebuild:umd": "shx rm -rf dist/*", | ||
"prebuild:dist": "shx rm -rf dist/*", | ||
"build:dist": "rollup -c && rollup -c --environment PRODUCTION", | ||
"build:docs": "npm run build:docs:site", | ||
"prebuild:docs:site": "shx rm -rf docs/*", | ||
"build:docs:site": "documentation build src/** -t docs-theme --github -o docs -f html -c ./.documentation.json", | ||
"postbuild:docs:site": "shx cp CNAME docs/CNAME && shx cp dist/polished.js docs/assets/", | ||
"build:watch": "npm-watch", | ||
"build:flow": "flow-copy-source -v -i '{**/test/*.js,**/*.test.js}' src lib", | ||
"build:typescript": "tsgen \"lib/**/*.js.flow\" --ignore \"lib/**/_*.js.flow\"", | ||
"test": "jest src", | ||
"typescript": "tsc ./typescript-test.ts --noEmit --target es6 --module es2015 --moduleResolution node --allowJs", | ||
"precommit": "lint-staged --debug", | ||
"postcommit": "validate-commit-msg", | ||
"lint": "eslint src", | ||
"flow": "flow check && flow-coverage-report -i 'src/**/!(*.test).js'", | ||
"docs": "pushstate-server docs", | ||
"prepublish": "npm run build && npm run typescript", | ||
"semantic-release": "semantic-release" | ||
}, | ||
"lint-staged": { | ||
"src/**/!(*.test).js": [ | ||
"prettier --no-semi --single-quote --trailing-comma all --write", | ||
"eslint --fix", | ||
"git add" | ||
], | ||
"src/**/*.test.js": [ | ||
"prettier --no-semi --single-quote --trailing-comma all --write", | ||
"eslint --fix", | ||
"git add" | ||
] | ||
}, | ||
"watch": { | ||
"build:docs": "src/**/*.js", | ||
"build:lib": "src/**/*.js" | ||
}, | ||
"author": "Brian Hough <brian@brianhought.net> (https://polished.js.org)", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/styled-components/polished.git" | ||
}, | ||
"keywords": [ | ||
"styled-components", | ||
"polished", | ||
"glamorous", | ||
"motion", | ||
"glamor", | ||
"css-in-js", | ||
"inline-styles", | ||
"react" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/styled-components/polished/issues" | ||
}, | ||
"homepage": "https://github.com/styled-components/polished#readme", | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-eslint": "^8.2.1", | ||
"babel-jest": "^22.1.0", | ||
"babel-loader": "^7.1.2", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-plugin-annotate-pure-calls": "^0.2.2", | ||
"babel-plugin-external-helpers": "^6.18.0", | ||
"babel-plugin-syntax-trailing-function-commas": "^6.22.0", | ||
"babel-plugin-transform-flow-strip-types": "^6.18.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | ||
"babel-polyfill": "^6.26.0", | ||
"babel-preset-env": "^1.6.1", | ||
"concat-stream": "^1.5.2", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"documentation": "4.0.0-beta.18", | ||
"eslint": "^4.17.0", | ||
"eslint-config-airbnb-base": "^12.1.0", | ||
"eslint-plugin-import": "^2.8.0", | ||
"flow-bin": "^0.64.0", | ||
"flow-copy-source": "^1.2.2", | ||
"flow-coverage-report": "^0.4.1", | ||
"github-slugger": "^1.2.0", | ||
"highlight.js": "^9.12.0", | ||
"husky": "^0.14.3", | ||
"jest": "^22.1.4", | ||
"lint-staged": "^6.1.0", | ||
"lodash": "^4.17.5", | ||
"npm-watch": "^0.3.0", | ||
"prettier": "^1.10.2", | ||
"pushstate-server": "^3.0.1", | ||
"ramda": "^0.25.0", | ||
"rollup": "^0.55.3", | ||
"rollup-plugin-babel": "^3.0.3", | ||
"rollup-plugin-commonjs": "8.2.1", | ||
"rollup-plugin-flow": "^1.1.1", | ||
"rollup-plugin-inject": "^2.0.0", | ||
"rollup-plugin-json": "^2.3.0", | ||
"rollup-plugin-node-resolve": "^3.0.2", | ||
"rollup-plugin-replace": "^2.0.0", | ||
"rollup-plugin-uglify": "^3.0.0", | ||
"semantic-release": "^12.4.1", | ||
"shx": "^0.2.2", | ||
"tsgen": "^1.0.0", | ||
"typescript": "^2.7.1", | ||
"validate-commit-msg": "^2.14.0", | ||
"vinyl": "^2.1.0", | ||
"vinyl-fs": "^3.0.2" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
}, | ||
"jest": { | ||
"coverageDirectory": "./coverage/", | ||
"collectCoverage": true | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
2394217
13720
48