Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

polished

Package Overview
Dependencies
Maintainers
3
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polished - npm Package Compare versions

Comparing version 3.4.0 to 3.4.1

2

dist/polished.min.js

@@ -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=e||self).polished={})}(this,function(e){"use strict";function y(){return(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}).apply(this,arguments)}function r(){var e;return(e=arguments.length-1)<0||arguments.length<=e?void 0:arguments[e]}var v={symbols:{"!":{postfix:{symbol:"!",f:function e(r){return r%1||!(0<=+r)?NaN:170<r?1/0:0===r?1:r*e(r-1)},notation:"postfix",precedence:6,rightToLeft:0,argCount:1},symbol:"!",regSymbol:"!"},"^":{infix:{symbol:"^",f:function(e,r){return Math.pow(e,r)},notation:"infix",precedence:5,rightToLeft:1,argCount:2},symbol:"^",regSymbol:"\\^"},"*":{infix:{symbol:"*",f:function(e,r){return e*r},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"*",regSymbol:"\\*"},"/":{infix:{symbol:"/",f:function(e,r){return e/r},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"/",regSymbol:"/"},"+":{infix:{symbol:"+",f:function(e,r){return e+r},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"+",f:r,notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"+",regSymbol:"\\+"},"-":{infix:{symbol:"-",f:function(e,r){return e-r},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"-",f:function(e){return-e},notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"-",regSymbol:"-"},",":{infix:{symbol:",",f:function(){return Array.of.apply(Array,arguments)},notation:"infix",precedence:1,rightToLeft:0,argCount:2},symbol:",",regSymbol:","},"(":{prefix:{symbol:"(",f:r,notation:"prefix",precedence:0,rightToLeft:0,argCount:1},symbol:"(",regSymbol:"\\("},")":{postfix:{symbol:")",f:void 0,notation:"postfix",precedence:0,rightToLeft:0,argCount:1},symbol:")",regSymbol:"\\)"},min:{func:{symbol:"min",f:function(){return Math.min.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"min",regSymbol:"min\\b"},max:{func:{symbol:"max",f:function(){return Math.max.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"max",regSymbol:"max\\b"},sqrt:{func:{symbol:"sqrt",f:function(e){return Math.sqrt(e)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"sqrt",regSymbol:"sqrt\\b"}}};function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,r){return(a=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function i(e,r,t){return(i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,r,t){var n=[null];n.push.apply(n,r);var o=new(Function.bind.apply(e,n));return t&&a(o,t.prototype),o}).apply(null,arguments)}function t(e){var n="function"==typeof Map?new Map:void 0;return(t=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return i(e,arguments,o(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),a(t,e)})(e)}var S=function(r){var e,t;function n(e){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#"+e+" for more information.")||this)}return t=r,(e=n).prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t,n}(t(Error)),u=/((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g;function w(e,r){var t,n=e.pop();return r.push(n.f.apply(n,(t=[]).concat.apply(t,r.splice(-n.argCount)))),n.precedence}function f(e,r){var t,n,o,a=((n={}).symbols=(t=r)?y({},v.symbols,t.symbols):y({},v.symbols),n),i=[a.symbols["("].prefix],u=[],f=new RegExp("\\d+(?:\\.\\d+)?|"+Object.keys(a.symbols).map(function(e){return a.symbols[e]}).sort(function(e,r){return r.symbol.length-e.symbol.length}).map(function(e){return e.regSymbol}).join("|")+"|(\\S)","g");f.lastIndex=0;var l=!1;do{var s=(o=f.exec(e))||[")",void 0],c=s[0],p=s[1],d=a.symbols[c],b=d&&!d.prefix&&!d.func,h=!d||!d.postfix&&!d.infix;if(p||(l?h:b))throw new S(37,o?o.index:e.length,e);if(l){var g=d.postfix||d.infix;do{var m=i[i.length-1];if(0<(g.precedence-m.precedence||m.rightToLeft))break}while(w(i,u));l="postfix"===g.notation,")"!==g.symbol&&(i.push(g),l&&w(i,u))}else if(d){if(i.push(d.prefix||d.func),d.func&&(!(o=f.exec(e))||"("!==o[0]))throw new S(38,o?o.index:e.length,e)}else u.push(+c),l=!0}while(o&&i.length);if(i.length)throw new S(39,o?o.index:e.length,e);if(o)throw new S(40,o?o.index:e.length,e);return u.pop()}function l(e){return e.split("").reverse().join("")}function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}var c=["Top","Right","Bottom","Left"];function p(e,r){if(!e)return r.toLowerCase();var t=e.split("-");if(1<t.length)return t.splice(1,0,r),t.reduce(function(e,r){return""+e+s(r)});var n=e.replace(/([a-z])([A-Z])/g,"$1"+r+"$2");return e===n?""+e+r:n}function d(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var o=t[0],a=t[1],i=void 0===a?o:a,u=t[2],f=void 0===u?o:u,l=t[3];return function(e,r){for(var t={},n=0;n<r.length;n+=1)(r[n]||0===r[n])&&(t[p(e,c[n])]=r[n]);return t}(e,[o,i,f,void 0===l?i:l])}function b(e,r){return e.substr(-r.length)===r}var n=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function m(e,r){if("string"!=typeof e)return r?[e,void 0]:e;var t=e.match(n);return r?t?[parseFloat(e),t[2]]:[e,void 0]:t?parseFloat(e):e}var h=function(o){return function(e,r){void 0===r&&(r="16px");var t=e,n=r;if("string"==typeof e){if(!b(e,"px"))throw new S(69,o,e);t=m(e)}if("string"==typeof r){if(!b(r,"px"))throw new S(70,o,r);n=m(r)}if("string"==typeof t)throw new S(71,e,o);if("string"==typeof n)throw new S(72,r,o);return""+t/n+o}},g=h("em"),x=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;var k={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 z=h("rem");function A(e,r,t,n){void 0===t&&(t="320px"),void 0===n&&(n="1200px");var o=m(e,!0),a=o[0],i=o[1],u=m(r,!0),f=u[0],l=u[1],s=m(t,!0),c=s[0],p=s[1],d=m(n,!0),b=d[0],h=d[1];if("number"!=typeof c||"number"!=typeof b||!p||!h||p!==h)throw new S(47);if("number"!=typeof a||"number"!=typeof f||!i||!l||i!==l)throw new S(48);var g=(a-f)/(c-b);return"calc("+(f-g*b).toFixed(2)+i+" + "+(100*g).toFixed(2)+"vw)"}var I=/^\s*data:([a-z]+\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i,F={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg",svgz:"svg"};function j(e,r){return r?' format("'+F[e]+'")':""}function O(r,e,t){return r.match(I)?'url("'+r+'")'+j(e[0],t):e.map(function(e){return'url("'+r+"."+e+'")'+j(e,t)}).join(", ")}function C(e){return void 0===e&&(e=1.3),"\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 T(e,r){return r||(r=e.slice(0)),e.raw=r,e}function L(e){for(var r="",t=arguments.length,n=new Array(1<t?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(var a=0;a<e.length;a+=1)if(r+=e[a],a===n.length-1&&n[a]){var i=n.filter(function(e){return!!e});1<i.length?(r=r.slice(0,-1),r+=", "+n[a]):1===i.length&&(r+=""+n[a])}else n[a]&&(r+=n[a]+" ");return r.trim()}function M(){var e=T(["linear-gradient(","",")"]);return M=function(){return e},e}function R(){var e=T(["radial-gradient(","","","",")"]);return R=function(){return e},e}var W={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)"};function _(e){return Math.round(255*e)}function q(e,r,t){return _(e)+","+_(r)+","+_(t)}function $(e,r,t,n){if(void 0===n&&(n=q),0===r)return n(t,t,t);var o=(e%360+360)%360/60,a=(1-Math.abs(2*t-1))*r,i=a*(1-Math.abs(o%2-1)),u=0,f=0,l=0;0<=o&&o<1?(u=a,f=i):1<=o&&o<2?(u=i,f=a):2<=o&&o<3?(f=a,l=i):3<=o&&o<4?(f=i,l=a):4<=o&&o<5?(u=i,l=a):5<=o&&o<6&&(u=a,l=i);var s=t-a/2;return n(u+s,f+s,l+s)}var P={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"};var D=/^#[a-fA-F0-9]{6}$/,B=/^#[a-fA-F0-9]{8}$/,Q=/^#[a-fA-F0-9]{3}$/,E=/^#[a-fA-F0-9]{4}$/,H=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,N=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,V=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/i,U=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function G(e){if("string"!=typeof e)throw new S(3);var r=function(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return P[r]?"#"+P[r]:e}(e);if(r.match(D))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(B)){var t=parseFloat((parseInt(""+r[7]+r[8],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16),alpha:t}}if(r.match(Q))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};if(r.match(E)){var n=parseFloat((parseInt(""+r[4]+r[4],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16),alpha:n}}var o=H.exec(r);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=N.exec(r);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])};var i=V.exec(r);if(i){var u="rgb("+$(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",f=H.exec(u);if(!f)throw new S(4,r,u);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10)}}var l=U.exec(r);if(l){var s="rgb("+$(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",c=H.exec(s);if(!c)throw new S(4,r,s);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10),alpha:parseFloat(""+l[4])}}throw new S(5)}function J(e){return function(e){var r,t=e.red/255,n=e.green/255,o=e.blue/255,a=Math.max(t,n,o),i=Math.min(t,n,o),u=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:u,alpha:e.alpha}:{hue:0,saturation:0,lightness:u};var f=a-i,l=.5<u?f/(2-a-i):f/(a+i);switch(a){case t:r=(n-o)/f+(n<o?6:0);break;case n:r=(o-t)/f+2;break;default:r=(t-n)/f+4}return r*=60,void 0!==e.alpha?{hue:r,saturation:l,lightness:u,alpha:e.alpha}:{hue:r,saturation:l,lightness:u}}(G(e))}var Z=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 K(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function X(e){return K(Math.round(255*e))}function Y(e,r,t){return Z("#"+X(e)+X(r)+X(t))}function ee(e,r,t){return $(e,r,t,Y)}function re(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return ee(e,r,t);if("object"==typeof e&&void 0===r&&void 0===t)return ee(e.hue,e.saturation,e.lightness);throw new S(1)}function te(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?ee(e,r,t):"rgba("+$(e,r,t)+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return 1<=e.alpha?ee(e.hue,e.saturation,e.lightness):"rgba("+$(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new S(2)}function ne(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return Z("#"+K(e)+K(r)+K(t));if("object"==typeof e&&void 0===r&&void 0===t)return Z("#"+K(e.red)+K(e.green)+K(e.blue));throw new S(6)}function oe(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var o=G(e);return"rgba("+o.red+","+o.green+","+o.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?ne(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return 1<=e.alpha?ne(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new S(7)}var ae=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},ie=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},ue=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},fe=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function le(e){if("object"!=typeof e)throw new S(8);if(ie(e))return oe(e);if(ae(e))return ne(e);if(fe(e))return te(e);if(ue(e))return re(e);throw new S(8)}function se(e){return function r(t,n,o){return function(){var e=o.concat(Array.prototype.slice.call(arguments));return e.length>=n?t.apply(this,e):r(t,n,e)}}(e,e.length,[])}function ce(e,r){if("transparent"===r)return r;var t=J(r);return le(y({},t,{hue:t.hue+parseFloat(e)}))}var pe=se(ce);function de(e,r,t){return Math.max(e,Math.min(r,t))}function be(e,r){if("transparent"===r)return r;var t=J(r);return le(y({},t,{lightness:de(0,1,t.lightness-parseFloat(e))}))}var he=se(be);function ge(e,r){if("transparent"===r)return r;var t=J(r);return le(y({},t,{saturation:de(0,1,t.saturation-parseFloat(e))}))}var me=se(ge);function ye(e){if("transparent"===e)return 0;var t=G(e),r=Object.keys(t).map(function(e){var r=t[e]/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),n=r[0],o=r[1],a=r[2];return parseFloat((.2126*n+.7152*o+.0722*a).toFixed(3))}function ve(e,r){var t=ye(e),n=ye(r);return parseFloat((n<t?(t+.05)/(n+.05):(n+.05)/(t+.05)).toFixed(2))}function we(e,r){if("transparent"===r)return r;var t=J(r);return le(y({},t,{lightness:de(0,1,t.lightness+parseFloat(e))}))}var xe=se(we);function Se(e,r,t){if("transparent"===r)return t;if("transparent"===t)return r;var n=G(r),o=y({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),a=G(t),i=y({},a,{alpha:"number"==typeof a.alpha?a.alpha:1}),u=o.alpha-i.alpha,f=2*parseFloat(e)-1,l=((f*u==-1?f:f+u)/(1+f*u)+1)/2,s=1-l;return oe({red:Math.floor(o.red*l+i.red*s),green:Math.floor(o.green*l+i.green*s),blue:Math.floor(o.blue*l+i.blue*s),alpha:o.alpha+(i.alpha-o.alpha)*(parseFloat(e)/1)})}var ke=se(Se);function ze(e,r){if("transparent"===r)return r;var t=G(r);return oe(y({},t,{alpha:de(0,1,(100*("number"==typeof t.alpha?t.alpha:1)+100*parseFloat(e))/100)}))}var Ae=se(ze);function Ie(e,r){if("transparent"===r)return r;var t=J(r);return le(y({},t,{saturation:de(0,1,t.saturation+parseFloat(e))}))}var Fe=se(Ie);function je(e,r){return"transparent"===r?r:le(y({},J(r),{hue:parseFloat(e)}))}var Oe=se(je);function Ce(e,r){return"transparent"===r?r:le(y({},J(r),{lightness:parseFloat(e)}))}var Te=se(Ce);function Le(e,r){return"transparent"===r?r:le(y({},J(r),{saturation:parseFloat(e)}))}var Me=se(Le);function Re(e,r){return"transparent"===r?r:ke(parseFloat(e),"rgb(0, 0, 0)",r)}var We=se(Re);function _e(e,r){return"transparent"===r?r:ke(parseFloat(e),"rgb(255, 255, 255)",r)}var qe=se(_e);function $e(e,r){if("transparent"===r)return r;var t=G(r);return oe(y({},t,{alpha:de(0,1,(100*("number"==typeof t.alpha?t.alpha:1)-100*parseFloat(e))/100)}))}var Pe=se($e);var De=["top","right","bottom","left"];function Be(e,r){return e(r?":"+r:"")}function Qe(e,r,t){if(!r)throw new S(67);if(0===e.length)return Be(r,null);for(var n=[],o=0;o<e.length;o+=1){if(t&&t.indexOf(e[o])<0)throw new S(68);n.push(Be(r,e[o]))}return n=n.join(",")}var Ee=[void 0,null,"active","focus","hover"];function He(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}var Ne=["absolute","fixed","relative","static","sticky"];var Ve=[void 0,null,"active","focus","hover"];function Ue(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}e.adjustHue=pe,e.animation=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Array.isArray(r[0]);if(!n&&8<r.length)throw new S(64);return{animation:r.map(function(e){if(n&&!Array.isArray(e)||!n&&Array.isArray(e))throw new S(65);if(Array.isArray(e)&&8<e.length)throw new S(66);return Array.isArray(e)?e.join(" "):e}).join(", ")}},e.backgroundImages=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return{backgroundImage:r.join(", ")}},e.backgrounds=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return{background:r.join(", ")}},e.between=A,e.border=function(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var o;return"string"==typeof e&&0<=De.indexOf(e)?((o={})["border"+s(e)+"Width"]=t[0],o["border"+s(e)+"Style"]=t[1],o["border"+s(e)+"Color"]=t[2],o):(t.unshift(e),{borderWidth:t[0],borderStyle:t[1],borderColor:t[2]})},e.borderColor=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["borderColor"].concat(r))},e.borderRadius=function(e,r){var t,n,o=s(e);if(!r&&0!==r)throw new S(62);if("Top"===o||"Bottom"===o)return(t={})["border"+o+"RightRadius"]=r,t["border"+o+"LeftRadius"]=r,t;if("Left"!==o&&"Right"!==o)throw new S(63);return(n={})["borderTop"+o+"Radius"]=r,n["borderBottom"+o+"Radius"]=r,n},e.borderStyle=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["borderStyle"].concat(r))},e.borderWidth=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["borderWidth"].concat(r))},e.buttons=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return Qe(r,He,Ee)},e.clearFix=function(e){var r;return void 0===e&&(e="&"),(r={})[e+"::after"]={clear:"both",content:'""',display:"table"},r},e.complement=function(e){if("transparent"===e)return e;var r=J(e);return le(y({},r,{hue:(r.hue+180)%360}))},e.cover=function(e){return void 0===e&&(e=0),{position:"absolute",top:e,right:e,bottom:e,left:e}},e.darken=he,e.desaturate=me,e.directionalProperty=d,e.ellipsis=function(e){return void 0===e&&(e="100%"),{display:"inline-block",maxWidth:e,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"}},e.em=g,e.fluidRange=function(e,r,t){if(void 0===r&&(r="320px"),void 0===t&&(t="1200px"),!Array.isArray(e)&&"object"!=typeof e||null===e)throw new S(49);if(Array.isArray(e)){var n={},o={},a=e,i=Array.isArray(a),u=0;for(a=i?a:a[Symbol.iterator]();;){var f,l,s;if(i){if(u>=a.length)break;s=a[u++]}else{if((u=a.next()).done)break;s=u.value}var c=s;if(!c.prop||!c.fromSize||!c.toSize)throw new S(50);o[c.prop]=c.fromSize,n["@media (min-width: "+r+")"]=y({},n["@media (min-width: "+r+")"],((f={})[c.prop]=A(c.fromSize,c.toSize,r,t),f)),n["@media (min-width: "+t+")"]=y({},n["@media (min-width: "+t+")"],((l={})[c.prop]=c.toSize,l))}return y({},o,n)}var p,d,b;if(!e.prop||!e.fromSize||!e.toSize)throw new S(51);return(b={})[e.prop]=e.fromSize,b["@media (min-width: "+r+")"]=((p={})[e.prop]=A(e.fromSize,e.toSize,r,t),p),b["@media (min-width: "+t+")"]=((d={})[e.prop]=e.toSize,d),b},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,f=void 0===u?["eot","woff2","woff","ttf","svg"]:u,l=e.formatHint,s=void 0!==l&&l,c=e.localFonts,p=e.unicodeRange,d=e.fontDisplay,b=e.fontVariationSettings,h=e.fontFeatureSettings;if(!r)throw new S(55);if(!t&&!c)throw new S(52);if(c&&!Array.isArray(c))throw new S(53);if(!Array.isArray(f))throw new S(54);var g,m,y,v,w,x={"@font-face":{fontFamily:r,src:(g=t,m=c,y=f,v=s,w=[],m&&w.push(m.map(function(e){return'local("'+e+'")'}).join(", ")),g&&w.push(O(g,y,v)),w.join(", ")),unicodeRange:p,fontStretch:n,fontStyle:o,fontVariant:a,fontWeight:i,fontDisplay:d,fontVariationSettings:b,fontFeatureSettings:h}};return JSON.parse(JSON.stringify(x))},e.getContrast=ve,e.getLuminance=ye,e.getValueAndUnit=function(e){if(console.warn("getValueAndUnit has been marked for deprecation in polished 3.0 and will be fully deprecated in 4.0. It's functionality has been been moved to stripUnit as an optional return."),"string"!=typeof e)return[e,""];var r=e.match(x);return r?[parseFloat(e),r[2]]:[e,void 0]},e.grayscale=function(e){return"transparent"===e?e:le(y({},J(e),{saturation:0}))},e.hiDPI=C,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.hsl=re,e.hslToColorString=function(e){if("object"==typeof e&&"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness)return e.alpha&&"number"==typeof e.alpha?te({hue:e.hue,saturation:e.saturation,lightness:e.lightness,alpha:e.alpha}):re({hue:e.hue,saturation:e.saturation,lightness:e.lightness});throw new S(45)},e.hsla=te,e.invert=function(e){if("transparent"===e)return e;var r=G(e);return le(y({},r,{red:255-r.red,green:255-r.green,blue:255-r.blue}))},e.lighten=xe,e.linearGradient=function(e){var r=e.colorStops,t=e.fallback,n=e.toDirection,o=void 0===n?"":n;if(!r||r.length<2)throw new S(56);return{backgroundColor:t||r[0].split(" ")[0],backgroundImage:L(M(),o,r.join(", "))}},e.margin=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["margin"].concat(r))},e.math=function(e,r){var t=l(e),n=t.match(u);if(n&&!n.every(function(e){return e===n[0]}))throw new S(41);return""+f(l(t.replace(u,"")),r)+(n?l(n[0]):"")},e.meetsContrastGuidelines=function(e,r){var t=ve(e,r);return{AA:4.5<=t,AALarge:3<=t,AAA:7<=t,AAALarge:4.5<=t}},e.mix=ke,e.modularScale=function(e,r,t){if(void 0===r&&(r="1em"),void 0===t&&(t=1.333),"number"!=typeof e)throw new S(42);if("string"==typeof t&&!k[t])throw new S(43);var n="string"==typeof r?m(r,!0):[r,""],o=n[0],a=n[1],i="string"==typeof t?k[t]:t;if("string"==typeof o)throw new S(44,r);return""+o*Math.pow(i,e)+a},e.normalize=function(){var e;return[(e={html:{lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:"0"},h1:{fontSize:"2em",margin:"0.67em 0"},hr:{boxSizing:"content-box",height:"0",overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{backgroundColor:"transparent"},"abbr[title]":{borderBottom:"none",textDecoration:"underline"}},e["b,\n strong"]={fontWeight:"bolder"},e["code,\n kbd,\n samp"]={fontFamily:"monospace, monospace",fontSize:"1em"},e.small={fontSize:"80%"},e["sub,\n sup"]={fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},e.sub={bottom:"-0.25em"},e.sup={top:"-0.5em"},e.img={borderStyle:"none"},e["button,\n input,\n optgroup,\n select,\n textarea"]={fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15",margin:"0"},e["button,\n input"]={overflow:"visible"},e["button,\n select"]={textTransform:"none"},e['button,\n html [type="button"],\n [type="reset"],\n [type="submit"]']={WebkitAppearance:"button"},e['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"},e['button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring']={outline:"1px dotted ButtonText"},e.fieldset={padding:"0.35em 0.625em 0.75em"},e.legend={boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},e.progress={verticalAlign:"baseline"},e.textarea={overflow:"auto"},e['[type="checkbox"],\n [type="radio"]']={boxSizing:"border-box",padding:"0"},e['[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button']={height:"auto"},e['[type="search"]']={WebkitAppearance:"textfield",outlineOffset:"-2px"},e['[type="search"]::-webkit-search-decoration']={WebkitAppearance:"none"},e["::-webkit-file-upload-button"]={WebkitAppearance:"button",font:"inherit"},e.details={display:"block"},e.summary={display:"list-item"},e.template={display:"none"},e["[hidden]"]={display:"none"},e),{"abbr[title]":{textDecoration:"underline dotted"}}]},e.opacify=Ae,e.padding=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["padding"].concat(r))},e.parseToHsl=J,e.parseToRgb=G,e.position=function(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return 0<=Ne.indexOf(e)?y({position:e},d.apply(void 0,[""].concat(t))):d.apply(void 0,["",e].concat(t))},e.radialGradient=function(e){var r=e.colorStops,t=e.extent,n=void 0===t?"":t,o=e.fallback,a=e.position,i=void 0===a?"":a,u=e.shape,f=void 0===u?"":u;if(!r||r.length<2)throw new S(57);return{backgroundColor:o||r[0].split(" ")[0],backgroundImage:L(R(),i,f,n,r.join(", "))}},e.readableColor=function(e,r,t){return void 0===r&&(r="#000"),void 0===t&&(t="#fff"),.179<ye(e)?r:t},e.rem=z,e.retinaImage=function(e,r,t,n,o){var a;if(void 0===t&&(t="png"),void 0===o&&(o="_2x"),!e)throw new S(58);var i=t.replace(/^\./,""),u=n?n+"."+i:""+e+o+"."+i;return(a={backgroundImage:"url("+e+"."+i+")"})[C()]=y({backgroundImage:"url("+u+")"},r?{backgroundSize:r}:{}),a},e.rgb=ne,e.rgbToColorString=function(e){if("object"==typeof e&&"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue)return e.alpha&&"number"==typeof e.alpha?oe({red:e.red,green:e.green,blue:e.blue,alpha:e.alpha}):ne({red:e.red,green:e.green,blue:e.blue});throw new S(46)},e.rgba=oe,e.saturate=Fe,e.setHue=Oe,e.setLightness=Te,e.setSaturation=Me,e.shade=We,e.size=function(e,r){return void 0===r&&(r=e),{height:e,width:r}},e.stripUnit=m,e.textInputs=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return Qe(r,Ue,Ve)},e.timingFunctions=function(e){return W[e]},e.tint=qe,e.toColorString=le,e.transitions=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(Array.isArray(r[0])&&2===r.length){var n=r[1];if("string"!=typeof n)throw new S(61);return{transition:r[0].map(function(e){return e+" "+n}).join(", ")}}return{transition:r.join(", ")}},e.transparentize=Pe,e.triangle=function(e){var r=e.pointingDirection,t=e.height,n=e.width,o=e.foregroundColor,a=e.backgroundColor,i=void 0===a?"transparent":a,u=m(n,!0),f=m(t,!0);if(isNaN(f[0])||isNaN(u[0]))throw new S(60);return{width:"0",height:"0",borderColor:function(e,r,t){switch(e){case"top":case"bottomRight":return t+" "+t+" "+r+" "+t;case"right":case"bottomLeft":return t+" "+t+" "+t+" "+r;case"bottom":case"topLeft":return r+" "+t+" "+t+" "+t;case"left":case"topRight":return t+" "+r+" "+t+" "+t;default:throw new S(59)}}(r,o,i),borderStyle:"solid",borderWidth:function(e,r,t){var n=""+t[0]+(t[1]||""),o=""+t[0]/2+(t[1]||""),a=""+r[0]+(r[1]||""),i=""+r[0]/2+(r[1]||"");switch(e){case"top":return"0 "+o+" "+a+" "+o;case"topLeft":return n+" "+a+" 0 0";case"left":return i+" "+n+" "+i+" 0";case"bottomLeft":return n+" 0 0 "+a;case"bottom":return a+" "+o+" 0 "+o;case"bottomRight":return"0 0 "+n+" "+a;case"right":return i+" 0 "+i+" "+n;case"topRight":default:return"0 "+n+" "+a+" 0"}}(r,f,u)}},e.wordWrap=function(e){return void 0===e&&(e="break-word"),{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=e||self).polished={})}(this,function(e){"use strict";function y(){return(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}).apply(this,arguments)}function r(){var e;return(e=arguments.length-1)<0||arguments.length<=e?void 0:arguments[e]}var v={symbols:{"!":{postfix:{symbol:"!",f:function e(r){return r%1||!(0<=+r)?NaN:170<r?1/0:0===r?1:r*e(r-1)},notation:"postfix",precedence:6,rightToLeft:0,argCount:1},symbol:"!",regSymbol:"!"},"^":{infix:{symbol:"^",f:function(e,r){return Math.pow(e,r)},notation:"infix",precedence:5,rightToLeft:1,argCount:2},symbol:"^",regSymbol:"\\^"},"*":{infix:{symbol:"*",f:function(e,r){return e*r},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"*",regSymbol:"\\*"},"/":{infix:{symbol:"/",f:function(e,r){return e/r},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"/",regSymbol:"/"},"+":{infix:{symbol:"+",f:function(e,r){return e+r},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"+",f:r,notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"+",regSymbol:"\\+"},"-":{infix:{symbol:"-",f:function(e,r){return e-r},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"-",f:function(e){return-e},notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"-",regSymbol:"-"},",":{infix:{symbol:",",f:function(){return Array.of.apply(Array,arguments)},notation:"infix",precedence:1,rightToLeft:0,argCount:2},symbol:",",regSymbol:","},"(":{prefix:{symbol:"(",f:r,notation:"prefix",precedence:0,rightToLeft:0,argCount:1},symbol:"(",regSymbol:"\\("},")":{postfix:{symbol:")",f:void 0,notation:"postfix",precedence:0,rightToLeft:0,argCount:1},symbol:")",regSymbol:"\\)"},min:{func:{symbol:"min",f:function(){return Math.min.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"min",regSymbol:"min\\b"},max:{func:{symbol:"max",f:function(){return Math.max.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"max",regSymbol:"max\\b"},sqrt:{func:{symbol:"sqrt",f:function(e){return Math.sqrt(e)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"sqrt",regSymbol:"sqrt\\b"}}};function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,r){return(a=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function i(e,r,t){return(i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,r,t){var n=[null];n.push.apply(n,r);var o=new(Function.bind.apply(e,n));return t&&a(o,t.prototype),o}).apply(null,arguments)}function t(e){var n="function"==typeof Map?new Map:void 0;return(t=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return i(e,arguments,o(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),a(t,e)})(e)}var S=function(r){var e,t;function n(e){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#"+e+" for more information.")||this)}return t=r,(e=n).prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t,n}(t(Error)),u=/((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g;function w(e,r){var t,n=e.pop();return r.push(n.f.apply(n,(t=[]).concat.apply(t,r.splice(-n.argCount)))),n.precedence}function f(e,r){var t,n,o,a=((n={}).symbols=(t=r)?y({},v.symbols,t.symbols):y({},v.symbols),n),i=[a.symbols["("].prefix],u=[],f=new RegExp("\\d+(?:\\.\\d+)?|"+Object.keys(a.symbols).map(function(e){return a.symbols[e]}).sort(function(e,r){return r.symbol.length-e.symbol.length}).map(function(e){return e.regSymbol}).join("|")+"|(\\S)","g");f.lastIndex=0;var l=!1;do{var s=(o=f.exec(e))||[")",void 0],c=s[0],p=s[1],d=a.symbols[c],b=d&&!d.prefix&&!d.func,h=!d||!d.postfix&&!d.infix;if(p||(l?h:b))throw new S(37,o?o.index:e.length,e);if(l){var g=d.postfix||d.infix;do{var m=i[i.length-1];if(0<(g.precedence-m.precedence||m.rightToLeft))break}while(w(i,u));l="postfix"===g.notation,")"!==g.symbol&&(i.push(g),l&&w(i,u))}else if(d){if(i.push(d.prefix||d.func),d.func&&(!(o=f.exec(e))||"("!==o[0]))throw new S(38,o?o.index:e.length,e)}else u.push(+c),l=!0}while(o&&i.length);if(i.length)throw new S(39,o?o.index:e.length,e);if(o)throw new S(40,o?o.index:e.length,e);return u.pop()}function l(e){return e.split("").reverse().join("")}function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}var c=["Top","Right","Bottom","Left"];function p(e,r){if(!e)return r.toLowerCase();var t=e.split("-");if(1<t.length)return t.splice(1,0,r),t.reduce(function(e,r){return""+e+s(r)});var n=e.replace(/([a-z])([A-Z])/g,"$1"+r+"$2");return e===n?""+e+r:n}function d(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var o=t[0],a=t[1],i=void 0===a?o:a,u=t[2],f=void 0===u?o:u,l=t[3];return function(e,r){for(var t={},n=0;n<r.length;n+=1)(r[n]||0===r[n])&&(t[p(e,c[n])]=r[n]);return t}(e,[o,i,f,void 0===l?i:l])}function b(e,r){return e.substr(-r.length)===r}var n=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function m(e,r){if("string"!=typeof e)return r?[e,void 0]:e;var t=e.match(n);return r?t?[parseFloat(e),t[2]]:[e,void 0]:t?parseFloat(e):e}var h=function(o){return function(e,r){void 0===r&&(r="16px");var t=e,n=r;if("string"==typeof e){if(!b(e,"px"))throw new S(69,o,e);t=m(e)}if("string"==typeof r){if(!b(r,"px"))throw new S(70,o,r);n=m(r)}if("string"==typeof t)throw new S(71,e,o);if("string"==typeof n)throw new S(72,r,o);return""+t/n+o}},g=h("em"),x=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;var k={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 z=h("rem");function A(e,r,t,n){void 0===t&&(t="320px"),void 0===n&&(n="1200px");var o=m(e,!0),a=o[0],i=o[1],u=m(r,!0),f=u[0],l=u[1],s=m(t,!0),c=s[0],p=s[1],d=m(n,!0),b=d[0],h=d[1];if("number"!=typeof c||"number"!=typeof b||!p||!h||p!==h)throw new S(47);if("number"!=typeof a||"number"!=typeof f||i!==l)throw new S(48);var g=(a-f)/(c-b);return"calc("+(f-g*b).toFixed(2)+(i||"")+" + "+(100*g).toFixed(2)+"vw)"}var I=/^\s*data:([a-z]+\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i,F={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg",svgz:"svg"};function j(e,r){return r?' format("'+F[e]+'")':""}function O(r,e,t){return r.match(I)?'url("'+r+'")'+j(e[0],t):e.map(function(e){return'url("'+r+"."+e+'")'+j(e,t)}).join(", ")}function C(e){return void 0===e&&(e=1.3),"\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 T(e,r){return r||(r=e.slice(0)),e.raw=r,e}function L(e){for(var r="",t=arguments.length,n=new Array(1<t?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(var a=0;a<e.length;a+=1)if(r+=e[a],a===n.length-1&&n[a]){var i=n.filter(function(e){return!!e});1<i.length?(r=r.slice(0,-1),r+=", "+n[a]):1===i.length&&(r+=""+n[a])}else n[a]&&(r+=n[a]+" ");return r.trim()}function M(){var e=T(["linear-gradient(","",")"]);return M=function(){return e},e}function R(){var e=T(["radial-gradient(","","","",")"]);return R=function(){return e},e}var W={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)"};function _(e){return Math.round(255*e)}function q(e,r,t){return _(e)+","+_(r)+","+_(t)}function $(e,r,t,n){if(void 0===n&&(n=q),0===r)return n(t,t,t);var o=(e%360+360)%360/60,a=(1-Math.abs(2*t-1))*r,i=a*(1-Math.abs(o%2-1)),u=0,f=0,l=0;0<=o&&o<1?(u=a,f=i):1<=o&&o<2?(u=i,f=a):2<=o&&o<3?(f=a,l=i):3<=o&&o<4?(f=i,l=a):4<=o&&o<5?(u=i,l=a):5<=o&&o<6&&(u=a,l=i);var s=t-a/2;return n(u+s,f+s,l+s)}var P={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"};var D=/^#[a-fA-F0-9]{6}$/,B=/^#[a-fA-F0-9]{8}$/,Q=/^#[a-fA-F0-9]{3}$/,E=/^#[a-fA-F0-9]{4}$/,H=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,N=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,V=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/i,U=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function G(e){if("string"!=typeof e)throw new S(3);var r=function(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return P[r]?"#"+P[r]:e}(e);if(r.match(D))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(B)){var t=parseFloat((parseInt(""+r[7]+r[8],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16),alpha:t}}if(r.match(Q))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};if(r.match(E)){var n=parseFloat((parseInt(""+r[4]+r[4],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16),alpha:n}}var o=H.exec(r);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=N.exec(r);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])};var i=V.exec(r);if(i){var u="rgb("+$(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",f=H.exec(u);if(!f)throw new S(4,r,u);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10)}}var l=U.exec(r);if(l){var s="rgb("+$(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",c=H.exec(s);if(!c)throw new S(4,r,s);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10),alpha:parseFloat(""+l[4])}}throw new S(5)}function J(e){return function(e){var r,t=e.red/255,n=e.green/255,o=e.blue/255,a=Math.max(t,n,o),i=Math.min(t,n,o),u=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:u,alpha:e.alpha}:{hue:0,saturation:0,lightness:u};var f=a-i,l=.5<u?f/(2-a-i):f/(a+i);switch(a){case t:r=(n-o)/f+(n<o?6:0);break;case n:r=(o-t)/f+2;break;default:r=(t-n)/f+4}return r*=60,void 0!==e.alpha?{hue:r,saturation:l,lightness:u,alpha:e.alpha}:{hue:r,saturation:l,lightness:u}}(G(e))}var Z=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 K(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function X(e){return K(Math.round(255*e))}function Y(e,r,t){return Z("#"+X(e)+X(r)+X(t))}function ee(e,r,t){return $(e,r,t,Y)}function re(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return ee(e,r,t);if("object"==typeof e&&void 0===r&&void 0===t)return ee(e.hue,e.saturation,e.lightness);throw new S(1)}function te(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?ee(e,r,t):"rgba("+$(e,r,t)+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return 1<=e.alpha?ee(e.hue,e.saturation,e.lightness):"rgba("+$(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new S(2)}function ne(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return Z("#"+K(e)+K(r)+K(t));if("object"==typeof e&&void 0===r&&void 0===t)return Z("#"+K(e.red)+K(e.green)+K(e.blue));throw new S(6)}function oe(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var o=G(e);return"rgba("+o.red+","+o.green+","+o.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?ne(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return 1<=e.alpha?ne(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new S(7)}var ae=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},ie=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},ue=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},fe=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function le(e){if("object"!=typeof e)throw new S(8);if(ie(e))return oe(e);if(ae(e))return ne(e);if(fe(e))return te(e);if(ue(e))return re(e);throw new S(8)}function se(e){return function r(t,n,o){return function(){var e=o.concat(Array.prototype.slice.call(arguments));return e.length>=n?t.apply(this,e):r(t,n,e)}}(e,e.length,[])}function ce(e,r){if("transparent"===r)return r;var t=J(r);return le(y({},t,{hue:t.hue+parseFloat(e)}))}var pe=se(ce);function de(e,r,t){return Math.max(e,Math.min(r,t))}function be(e,r){if("transparent"===r)return r;var t=J(r);return le(y({},t,{lightness:de(0,1,t.lightness-parseFloat(e))}))}var he=se(be);function ge(e,r){if("transparent"===r)return r;var t=J(r);return le(y({},t,{saturation:de(0,1,t.saturation-parseFloat(e))}))}var me=se(ge);function ye(e){if("transparent"===e)return 0;var t=G(e),r=Object.keys(t).map(function(e){var r=t[e]/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),n=r[0],o=r[1],a=r[2];return parseFloat((.2126*n+.7152*o+.0722*a).toFixed(3))}function ve(e,r){var t=ye(e),n=ye(r);return parseFloat((n<t?(t+.05)/(n+.05):(n+.05)/(t+.05)).toFixed(2))}function we(e,r){if("transparent"===r)return r;var t=J(r);return le(y({},t,{lightness:de(0,1,t.lightness+parseFloat(e))}))}var xe=se(we);function Se(e,r,t){if("transparent"===r)return t;if("transparent"===t)return r;var n=G(r),o=y({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),a=G(t),i=y({},a,{alpha:"number"==typeof a.alpha?a.alpha:1}),u=o.alpha-i.alpha,f=2*parseFloat(e)-1,l=((f*u==-1?f:f+u)/(1+f*u)+1)/2,s=1-l;return oe({red:Math.floor(o.red*l+i.red*s),green:Math.floor(o.green*l+i.green*s),blue:Math.floor(o.blue*l+i.blue*s),alpha:o.alpha+(i.alpha-o.alpha)*(parseFloat(e)/1)})}var ke=se(Se);function ze(e,r){if("transparent"===r)return r;var t=G(r);return oe(y({},t,{alpha:de(0,1,(100*("number"==typeof t.alpha?t.alpha:1)+100*parseFloat(e))/100)}))}var Ae=se(ze);function Ie(e,r){if("transparent"===r)return r;var t=J(r);return le(y({},t,{saturation:de(0,1,t.saturation+parseFloat(e))}))}var Fe=se(Ie);function je(e,r){return"transparent"===r?r:le(y({},J(r),{hue:parseFloat(e)}))}var Oe=se(je);function Ce(e,r){return"transparent"===r?r:le(y({},J(r),{lightness:parseFloat(e)}))}var Te=se(Ce);function Le(e,r){return"transparent"===r?r:le(y({},J(r),{saturation:parseFloat(e)}))}var Me=se(Le);function Re(e,r){return"transparent"===r?r:ke(parseFloat(e),"rgb(0, 0, 0)",r)}var We=se(Re);function _e(e,r){return"transparent"===r?r:ke(parseFloat(e),"rgb(255, 255, 255)",r)}var qe=se(_e);function $e(e,r){if("transparent"===r)return r;var t=G(r);return oe(y({},t,{alpha:de(0,1,(100*("number"==typeof t.alpha?t.alpha:1)-100*parseFloat(e))/100)}))}var Pe=se($e);var De=["top","right","bottom","left"];function Be(e,r){return e(r?":"+r:"")}function Qe(e,r,t){if(!r)throw new S(67);if(0===e.length)return Be(r,null);for(var n=[],o=0;o<e.length;o+=1){if(t&&t.indexOf(e[o])<0)throw new S(68);n.push(Be(r,e[o]))}return n=n.join(",")}var Ee=[void 0,null,"active","focus","hover"];function He(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}var Ne=["absolute","fixed","relative","static","sticky"];var Ve=[void 0,null,"active","focus","hover"];function Ue(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}e.adjustHue=pe,e.animation=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Array.isArray(r[0]);if(!n&&8<r.length)throw new S(64);return{animation:r.map(function(e){if(n&&!Array.isArray(e)||!n&&Array.isArray(e))throw new S(65);if(Array.isArray(e)&&8<e.length)throw new S(66);return Array.isArray(e)?e.join(" "):e}).join(", ")}},e.backgroundImages=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return{backgroundImage:r.join(", ")}},e.backgrounds=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return{background:r.join(", ")}},e.between=A,e.border=function(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var o;return"string"==typeof e&&0<=De.indexOf(e)?((o={})["border"+s(e)+"Width"]=t[0],o["border"+s(e)+"Style"]=t[1],o["border"+s(e)+"Color"]=t[2],o):(t.unshift(e),{borderWidth:t[0],borderStyle:t[1],borderColor:t[2]})},e.borderColor=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["borderColor"].concat(r))},e.borderRadius=function(e,r){var t,n,o=s(e);if(!r&&0!==r)throw new S(62);if("Top"===o||"Bottom"===o)return(t={})["border"+o+"RightRadius"]=r,t["border"+o+"LeftRadius"]=r,t;if("Left"!==o&&"Right"!==o)throw new S(63);return(n={})["borderTop"+o+"Radius"]=r,n["borderBottom"+o+"Radius"]=r,n},e.borderStyle=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["borderStyle"].concat(r))},e.borderWidth=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["borderWidth"].concat(r))},e.buttons=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return Qe(r,He,Ee)},e.clearFix=function(e){var r;return void 0===e&&(e="&"),(r={})[e+"::after"]={clear:"both",content:'""',display:"table"},r},e.complement=function(e){if("transparent"===e)return e;var r=J(e);return le(y({},r,{hue:(r.hue+180)%360}))},e.cover=function(e){return void 0===e&&(e=0),{position:"absolute",top:e,right:e,bottom:e,left:e}},e.darken=he,e.desaturate=me,e.directionalProperty=d,e.ellipsis=function(e){return void 0===e&&(e="100%"),{display:"inline-block",maxWidth:e,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"}},e.em=g,e.fluidRange=function(e,r,t){if(void 0===r&&(r="320px"),void 0===t&&(t="1200px"),!Array.isArray(e)&&"object"!=typeof e||null===e)throw new S(49);if(Array.isArray(e)){var n={},o={},a=e,i=Array.isArray(a),u=0;for(a=i?a:a[Symbol.iterator]();;){var f,l,s;if(i){if(u>=a.length)break;s=a[u++]}else{if((u=a.next()).done)break;s=u.value}var c=s;if(!c.prop||!c.fromSize||!c.toSize)throw new S(50);o[c.prop]=c.fromSize,n["@media (min-width: "+r+")"]=y({},n["@media (min-width: "+r+")"],((f={})[c.prop]=A(c.fromSize,c.toSize,r,t),f)),n["@media (min-width: "+t+")"]=y({},n["@media (min-width: "+t+")"],((l={})[c.prop]=c.toSize,l))}return y({},o,n)}var p,d,b;if(!e.prop||!e.fromSize||!e.toSize)throw new S(51);return(b={})[e.prop]=e.fromSize,b["@media (min-width: "+r+")"]=((p={})[e.prop]=A(e.fromSize,e.toSize,r,t),p),b["@media (min-width: "+t+")"]=((d={})[e.prop]=e.toSize,d),b},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,f=void 0===u?["eot","woff2","woff","ttf","svg"]:u,l=e.formatHint,s=void 0!==l&&l,c=e.localFonts,p=e.unicodeRange,d=e.fontDisplay,b=e.fontVariationSettings,h=e.fontFeatureSettings;if(!r)throw new S(55);if(!t&&!c)throw new S(52);if(c&&!Array.isArray(c))throw new S(53);if(!Array.isArray(f))throw new S(54);var g,m,y,v,w,x={"@font-face":{fontFamily:r,src:(g=t,m=c,y=f,v=s,w=[],m&&w.push(m.map(function(e){return'local("'+e+'")'}).join(", ")),g&&w.push(O(g,y,v)),w.join(", ")),unicodeRange:p,fontStretch:n,fontStyle:o,fontVariant:a,fontWeight:i,fontDisplay:d,fontVariationSettings:b,fontFeatureSettings:h}};return JSON.parse(JSON.stringify(x))},e.getContrast=ve,e.getLuminance=ye,e.getValueAndUnit=function(e){if(console.warn("getValueAndUnit has been marked for deprecation in polished 3.0 and will be fully deprecated in 4.0. It's functionality has been been moved to stripUnit as an optional return."),"string"!=typeof e)return[e,""];var r=e.match(x);return r?[parseFloat(e),r[2]]:[e,void 0]},e.grayscale=function(e){return"transparent"===e?e:le(y({},J(e),{saturation:0}))},e.hiDPI=C,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.hsl=re,e.hslToColorString=function(e){if("object"==typeof e&&"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness)return e.alpha&&"number"==typeof e.alpha?te({hue:e.hue,saturation:e.saturation,lightness:e.lightness,alpha:e.alpha}):re({hue:e.hue,saturation:e.saturation,lightness:e.lightness});throw new S(45)},e.hsla=te,e.invert=function(e){if("transparent"===e)return e;var r=G(e);return le(y({},r,{red:255-r.red,green:255-r.green,blue:255-r.blue}))},e.lighten=xe,e.linearGradient=function(e){var r=e.colorStops,t=e.fallback,n=e.toDirection,o=void 0===n?"":n;if(!r||r.length<2)throw new S(56);return{backgroundColor:t||r[0].split(" ")[0],backgroundImage:L(M(),o,r.join(", "))}},e.margin=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["margin"].concat(r))},e.math=function(e,r){var t=l(e),n=t.match(u);if(n&&!n.every(function(e){return e===n[0]}))throw new S(41);return""+f(l(t.replace(u,"")),r)+(n?l(n[0]):"")},e.meetsContrastGuidelines=function(e,r){var t=ve(e,r);return{AA:4.5<=t,AALarge:3<=t,AAA:7<=t,AAALarge:4.5<=t}},e.mix=ke,e.modularScale=function(e,r,t){if(void 0===r&&(r="1em"),void 0===t&&(t=1.333),"number"!=typeof e)throw new S(42);if("string"==typeof t&&!k[t])throw new S(43);var n="string"==typeof r?m(r,!0):[r,""],o=n[0],a=n[1],i="string"==typeof t?k[t]:t;if("string"==typeof o)throw new S(44,r);return""+o*Math.pow(i,e)+a},e.normalize=function(){var e;return[(e={html:{lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:"0"},h1:{fontSize:"2em",margin:"0.67em 0"},hr:{boxSizing:"content-box",height:"0",overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{backgroundColor:"transparent"},"abbr[title]":{borderBottom:"none",textDecoration:"underline"}},e["b,\n strong"]={fontWeight:"bolder"},e["code,\n kbd,\n samp"]={fontFamily:"monospace, monospace",fontSize:"1em"},e.small={fontSize:"80%"},e["sub,\n sup"]={fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},e.sub={bottom:"-0.25em"},e.sup={top:"-0.5em"},e.img={borderStyle:"none"},e["button,\n input,\n optgroup,\n select,\n textarea"]={fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15",margin:"0"},e["button,\n input"]={overflow:"visible"},e["button,\n select"]={textTransform:"none"},e['button,\n html [type="button"],\n [type="reset"],\n [type="submit"]']={WebkitAppearance:"button"},e['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"},e['button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring']={outline:"1px dotted ButtonText"},e.fieldset={padding:"0.35em 0.625em 0.75em"},e.legend={boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},e.progress={verticalAlign:"baseline"},e.textarea={overflow:"auto"},e['[type="checkbox"],\n [type="radio"]']={boxSizing:"border-box",padding:"0"},e['[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button']={height:"auto"},e['[type="search"]']={WebkitAppearance:"textfield",outlineOffset:"-2px"},e['[type="search"]::-webkit-search-decoration']={WebkitAppearance:"none"},e["::-webkit-file-upload-button"]={WebkitAppearance:"button",font:"inherit"},e.details={display:"block"},e.summary={display:"list-item"},e.template={display:"none"},e["[hidden]"]={display:"none"},e),{"abbr[title]":{textDecoration:"underline dotted"}}]},e.opacify=Ae,e.padding=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["padding"].concat(r))},e.parseToHsl=J,e.parseToRgb=G,e.position=function(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return 0<=Ne.indexOf(e)?y({position:e},d.apply(void 0,[""].concat(t))):d.apply(void 0,["",e].concat(t))},e.radialGradient=function(e){var r=e.colorStops,t=e.extent,n=void 0===t?"":t,o=e.fallback,a=e.position,i=void 0===a?"":a,u=e.shape,f=void 0===u?"":u;if(!r||r.length<2)throw new S(57);return{backgroundColor:o||r[0].split(" ")[0],backgroundImage:L(R(),i,f,n,r.join(", "))}},e.readableColor=function(e,r,t){return void 0===r&&(r="#000"),void 0===t&&(t="#fff"),.179<ye(e)?r:t},e.rem=z,e.retinaImage=function(e,r,t,n,o){var a;if(void 0===t&&(t="png"),void 0===o&&(o="_2x"),!e)throw new S(58);var i=t.replace(/^\./,""),u=n?n+"."+i:""+e+o+"."+i;return(a={backgroundImage:"url("+e+"."+i+")"})[C()]=y({backgroundImage:"url("+u+")"},r?{backgroundSize:r}:{}),a},e.rgb=ne,e.rgbToColorString=function(e){if("object"==typeof e&&"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue)return e.alpha&&"number"==typeof e.alpha?oe({red:e.red,green:e.green,blue:e.blue,alpha:e.alpha}):ne({red:e.red,green:e.green,blue:e.blue});throw new S(46)},e.rgba=oe,e.saturate=Fe,e.setHue=Oe,e.setLightness=Te,e.setSaturation=Me,e.shade=We,e.size=function(e,r){return void 0===r&&(r=e),{height:e,width:r}},e.stripUnit=m,e.textInputs=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return Qe(r,Ue,Ve)},e.timingFunctions=function(e){return W[e]},e.tint=qe,e.toColorString=le,e.transitions=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(Array.isArray(r[0])&&2===r.length){var n=r[1];if("string"!=typeof n)throw new S(61);return{transition:r[0].map(function(e){return e+" "+n}).join(", ")}}return{transition:r.join(", ")}},e.transparentize=Pe,e.triangle=function(e){var r=e.pointingDirection,t=e.height,n=e.width,o=e.foregroundColor,a=e.backgroundColor,i=void 0===a?"transparent":a,u=m(n,!0),f=m(t,!0);if(isNaN(f[0])||isNaN(u[0]))throw new S(60);return{width:"0",height:"0",borderColor:function(e,r,t){switch(e){case"top":case"bottomRight":return t+" "+t+" "+r+" "+t;case"right":case"bottomLeft":return t+" "+t+" "+t+" "+r;case"bottom":case"topLeft":return r+" "+t+" "+t+" "+t;case"left":case"topRight":return t+" "+r+" "+t+" "+t;default:throw new S(59)}}(r,o,i),borderStyle:"solid",borderWidth:function(e,r,t){var n=""+t[0]+(t[1]||""),o=""+t[0]/2+(t[1]||""),a=""+r[0]+(r[1]||""),i=""+r[0]/2+(r[1]||"");switch(e){case"top":return"0 "+o+" "+a+" "+o;case"topLeft":return n+" "+a+" 0 0";case"left":return i+" "+n+" "+i+" 0";case"bottomLeft":return n+" 0 0 "+a;case"bottom":return a+" "+o+" 0 "+o;case"bottomRight":return"0 0 "+n+" "+a;case"right":return i+" 0 "+i+" "+n;case"topRight":default:return"0 "+n+" "+a+" 0"}}(r,f,u)}},e.wordWrap=function(e){return void 0===e&&(e="break-word"),{overflowWrap:e,wordWrap:e,wordBreak:"break-word"===e?"break-all":e}},Object.defineProperty(e,"__esModule",{value:!0})});

@@ -6,2 +6,6 @@ "use strict";

/**
* Check if a string ends with something
* @private
*/
function _default(string, suffix) {

@@ -8,0 +12,0 @@ return string.substr(-suffix.length) === suffix;

declare function between(
fromSize: string,
toSize: string,
fromSize: string | number,
toSize: string | number,
minScreen?: string,

@@ -5,0 +5,0 @@ maxScreen?: string,

@@ -72,3 +72,3 @@ "use strict";

if (typeof unitlessFromSize !== 'number' || typeof unitlessToSize !== 'number' || !fromSizeUnit || !toSizeUnit || fromSizeUnit !== toSizeUnit) {
if (typeof unitlessFromSize !== 'number' || typeof unitlessToSize !== 'number' || fromSizeUnit !== toSizeUnit) {
throw new _errors["default"](48);

@@ -79,5 +79,5 @@ }

var base = unitlessToSize - slope * unitlessMaxScreen;
return "calc(" + base.toFixed(2) + fromSizeUnit + " + " + (100 * slope).toFixed(2) + "vw)";
return "calc(" + base.toFixed(2) + (fromSizeUnit || '') + " + " + (100 * slope).toFixed(2) + "vw)";
}
module.exports = exports.default;
declare interface FluidRangeConfiguration {
prop: string;
fromSize: string;
toSize: string;
fromSize: string | number;
toSize: string | number;
}
export { FluidRangeConfiguration };
{
"name": "polished",
"version": "3.4.0",
"version": "3.4.1",
"description": "A lightweight toolset for writing styles in Javascript.",

@@ -67,14 +67,14 @@ "license": "MIT",

"dependencies": {
"@babel/runtime": "^7.4.4"
"@babel/runtime": "^7.4.5"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/plugin-transform-runtime": "^7.4.4",
"@babel/polyfill": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@babel/preset-flow": "^7.0.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.7.1",
"babel-loader": "^8.0.5",
"babel-jest": "^24.8.0",
"babel-loader": "^8.0.6",
"babel-plugin-add-module-exports": "^1.0.2",

@@ -89,23 +89,23 @@ "babel-plugin-annotate-pure-calls": "^0.4.0",

"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.17.2",
"flow-bin": "^0.98.0",
"flow-copy-source": "^2.0.4",
"eslint-plugin-import": "^2.17.3",
"flow-bin": "^0.101.0",
"flow-copy-source": "^2.0.6",
"flow-coverage-report": "^0.6.1",
"husky": "^2.2.0",
"jest": "^24.7.1",
"lint-staged": "^8.1.6",
"husky": "^2.4.1",
"jest": "^24.8.0",
"lint-staged": "^8.2.1",
"lodash": "^4.17.11",
"npm-watch": "^0.6.0",
"prettier": "^1.17.0",
"prettier": "^1.18.2",
"pushstate-server": "3.1.0",
"ramda": "^0.26.1",
"rollup": "^1.11.2",
"rollup": "^1.15.5",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-node-resolve": "^4.2.3",
"rollup-plugin-node-resolve": "^5.0.2",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-uglify": "^6.0.2",
"semantic-release": "^15.13.3",
"semantic-release": "^15.13.16",
"shx": "^0.3.2",
"tsgen": "1.3.0",
"typescript": "3.4.5",
"typescript": "3.5.2",
"validate-commit-msg": "^2.14.0",

@@ -112,0 +112,0 @@ "vinyl": "^2.2.0",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc