Comparing version 3.0.1 to 3.0.2
@@ -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 w=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/error/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|(?<![a-zA-Z])s|ged|darg?|nrut)/g;function x(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 p=(o=f.exec(e))||[")",void 0],s=p[0],c=p[1],d=a.symbols[s],b=d&&!d.prefix&&!d.func,h=!d||!d.postfix&&!d.infix;if(c||(l?h:b))throw new w(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(x(i,u));l="postfix"===g.notation,")"!==g.symbol&&(i.push(g),l&&x(i,u))}else if(d){if(i.push(d.prefix||d.func),d.func&&(!(o=f.exec(e))||"("!==o[0]))throw new w(38,o?o.index:e.length,e)}else u.push(+s),l=!0}while(o&&i.length);if(i.length)throw new w(39,o?o.index:e.length,e);if(o)throw new w(40,o?o.index:e.length,e);return u.pop()}function l(e){return e.split("").reverse().join("")}function p(e){return e.charAt(0).toUpperCase()+e.slice(1)}var s=["Top","Right","Bottom","Left"];function c(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+p(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[c(e,s[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 w(69,o,e);t=m(e)}if("string"==typeof r){if(!b(r,"px"))throw new w(70,o,r);n=m(r)}if("string"==typeof t)throw new w(71,e,o);if("string"==typeof n)throw new w(72,r,o);return""+t/n+o}},g=h("em"),S=/^([+-]?(?:\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 I(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],p=m(t,!0),s=p[0],c=p[1],d=m(n,!0),b=d[0],h=d[1];if("number"!=typeof s||"number"!=typeof b||!c||!h||c!==h)throw new w(47);if("number"!=typeof a||"number"!=typeof f||!i||!l||i!==l)throw new w(48);var g=(a-f)/(s-b);return"calc("+(f-g*b).toFixed(2)+i+" + "+(100*g).toFixed(2)+"vw)"}function A(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 F(e,r){return r||(r=e.slice(0)),e.raw=r,e}function j(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 O(){var e=F(["linear-gradient(","",")"]);return O=function(){return e},e}function C(){var e=F(["radial-gradient(","","","",")"]);return C=function(){return e},e}var T={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 M(){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))}var L=["bottom","left","top","right"],R=/(\d*\.?\d*)/;function W(e){return Math.round(255*e)}function q(e,r,t){return W(e)+","+W(r)+","+W(t)}function _(e,r,t,n){if(void 0===n&&(n=q),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,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 p=t-a/2;return n(u+p,f+p,l+p)}var $={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 P=/^#[a-fA-F0-9]{6}$/,B=/^#[a-fA-F0-9]{8}$/,D=/^#[a-fA-F0-9]{3}$/,Q=/^#[a-fA-F0-9]{4}$/,E=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,N=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,V=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,H=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;function U(e){if("string"!=typeof e)throw new w(3);var r=function(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return $[r]?"#"+$[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(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(D))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(Q)){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=E.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=E.exec(u);if(!f)throw new w(4,r,u);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10)}}var l=H.exec(r);if(l){var p="rgb("+_(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",s=E.exec(p);if(!s)throw new w(4,r,p);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10),alpha:parseFloat(""+l[4])}}throw new w(5)}function Z(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}}(U(e))}var G=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 J(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function K(e){return J(Math.round(255*e))}function X(e,r,t){return G("#"+K(e)+K(r)+K(t))}function Y(e,r,t){return _(e,r,t,X)}function ee(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return Y(e,r,t);if("object"==typeof e&&void 0===r&&void 0===t)return Y(e.hue,e.saturation,e.lightness);throw new w(1)}function re(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?Y(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?Y(e.hue,e.saturation,e.lightness):"rgba("+_(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new w(2)}function te(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return G("#"+J(e)+J(r)+J(t));if("object"==typeof e&&void 0===r&&void 0===t)return G("#"+J(e.red)+J(e.green)+J(e.blue));throw new w(6)}function ne(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var o=U(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?te(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?te(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new w(7)}var oe=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},ae=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},ie=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},ue=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function fe(e){if("object"!=typeof e)throw new w(8);if(ae(e))return ne(e);if(oe(e))return te(e);if(ue(e))return re(e);if(ie(e))return ee(e);throw new w(8)}function le(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 pe(e,r){if("transparent"===r)return r;var t=Z(r);return fe(y({},t,{hue:(t.hue+parseFloat(e))%360}))}var se=le(pe);function ce(e,r,t){return Math.max(e,Math.min(r,t))}function de(e,r){if("transparent"===r)return r;var t=Z(r);return fe(y({},t,{lightness:ce(0,1,t.lightness-parseFloat(e))}))}var be=le(de);function he(e,r){if("transparent"===r)return r;var t=Z(r);return fe(y({},t,{saturation:ce(0,1,t.saturation-parseFloat(e))}))}var ge=le(he);function me(e){if("transparent"===e)return 0;var t=U(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 ye(e,r){if("transparent"===r)return r;var t=Z(r);return fe(y({},t,{lightness:ce(0,1,t.lightness+parseFloat(e))}))}var ve=le(ye);function we(e,r,t){if("transparent"===r)return t;if("transparent"===t)return r;var n=U(r),o=y({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),a=U(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,p=1-l;return ne({red:Math.floor(o.red*l+i.red*p),green:Math.floor(o.green*l+i.green*p),blue:Math.floor(o.blue*l+i.blue*p),alpha:o.alpha+(i.alpha-o.alpha)*(parseFloat(e)/1)})}var xe=le(we);function Se(e,r){if("transparent"===r)return r;var t=U(r);return ne(y({},t,{alpha:ce(0,1,(100*("number"==typeof t.alpha?t.alpha:1)+100*parseFloat(e))/100)}))}var ke=le(Se);function ze(e,r){if("transparent"===r)return r;var t=Z(r);return fe(y({},t,{saturation:ce(0,1,t.saturation+parseFloat(e))}))}var Ie=le(ze);function Ae(e,r){return"transparent"===r?r:fe(y({},Z(r),{hue:parseFloat(e)}))}var Fe=le(Ae);function je(e,r){return"transparent"===r?r:fe(y({},Z(r),{lightness:parseFloat(e)}))}var Oe=le(je);function Ce(e,r){return"transparent"===r?r:fe(y({},Z(r),{saturation:parseFloat(e)}))}var Te=le(Ce);function Me(e,r){return"transparent"===r?r:xe(parseFloat(e),"rgb(0, 0, 0)",r)}var Le=le(Me);function Re(e,r){return"transparent"===r?r:xe(parseFloat(e),"rgb(255, 255, 255)",r)}var We=le(Re);function qe(e,r){if("transparent"===r)return r;var t=U(r);return ne(y({},t,{alpha:ce(0,1,(100*("number"==typeof t.alpha?t.alpha:1)-100*parseFloat(e))/100)}))}var _e=le(qe);var $e=["top","right","bottom","left"];function Pe(e,r){return e(r?":"+r:"")}function Be(e,r,t){if(!r)throw new w(67);if(0===e.length)return Pe(r,null);for(var n=[],o=0;o<e.length;o+=1){if(t&&t.indexOf(e[o])<0)throw new w(68);n.push(Pe(r,e[o]))}return n=n.join(",")}var De=[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}var Ee=["absolute","fixed","relative","static","sticky"];var Ne=[void 0,null,"active","focus","hover"];function Ve(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=se,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 w(64);return{animation:r.map(function(e){if(n&&!Array.isArray(e)||!n&&Array.isArray(e))throw new w(65);if(Array.isArray(e)&&8<e.length)throw new w(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=I,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<=$e.indexOf(e)?((o={})["border"+p(e)+"Width"]=t[0],o["border"+p(e)+"Style"]=t[1],o["border"+p(e)+"Color"]=t[2],o):(t.unshift(e),{borderWidth:t[0],borderStyle:t[1],borderColor:t[2]})},e.borderColor=M,e.borderRadius=function(e,r){var t,n,o=p(e);if(!r&&0!==r)throw new w(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 w(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 Be(r,Qe,De)},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=Z(e);return fe(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=be,e.desaturate=ge,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 w(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,p;if(i){if(u>=a.length)break;p=a[u++]}else{if((u=a.next()).done)break;p=u.value}var s=p;if(!s.prop||!s.fromSize||!s.toSize)throw new w(50);o[s.prop]=s.fromSize,n["@media (min-width: "+r+")"]=y({},n["@media (min-width: "+r+")"],((f={})[s.prop]=I(s.fromSize,s.toSize,r,t),f)),n["@media (min-width: "+t+")"]=y({},n["@media (min-width: "+t+")"],((l={})[s.prop]=s.toSize,l))}return y({},o,n)}var c,d,b;if(!e.prop||!e.fromSize||!e.toSize)throw new w(51);return(b={})[e.prop]=e.fromSize,b["@media (min-width: "+r+")"]=((c={})[e.prop]=I(e.fromSize,e.toSize,r,t),c),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.localFonts,p=e.unicodeRange,s=e.fontDisplay,c=e.fontVariationSettings,d=e.fontFeatureSettings;if(!r)throw new w(55);if(!t&&!l)throw new w(52);if(l&&!Array.isArray(l))throw new w(53);if(!Array.isArray(f))throw new w(54);var b,h,g,m,y,v={"@font-face":{fontFamily:r,src:(b=t,h=l,g=f,y=[],h&&y.push(h.map(function(e){return'local("'+e+'")'}).join(", ")),b&&y.push((m=b,g.map(function(e){return'url("'+m+"."+e+'")'}).join(", "))),y.join(", ")),unicodeRange:p,fontStretch:n,fontStyle:o,fontVariant:a,fontWeight:i,fontDisplay:s,fontVariationSettings:c,fontFeatureSettings:d}};return JSON.parse(JSON.stringify(v))},e.getLuminance=me,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(S);return r?[parseFloat(e),r[2]]:[e,void 0]},e.grayscale=function(e){return"transparent"===e?e:fe(y({},Z(e),{saturation:0}))},e.invert=function(e){if("transparent"===e)return e;var r=U(e);return fe(y({},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=A,e.hsl=ee,e.hsla=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?re({hue:e.hue,saturation:e.saturation,lightness:e.lightness,alpha:e.alpha}):ee({hue:e.hue,saturation:e.saturation,lightness:e.lightness});throw new w(45)},e.lighten=ve,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 w(56);return{backgroundColor:t||r[0].split(" ")[0],backgroundImage:j(O(),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 w(41);return""+f(l(t.replace(u,"")),r)+(n?l(n[0]):"")},e.mix=xe,e.modularScale=function(e,r,t){if(void 0===r&&(r="1em"),void 0===t&&(t="perfectFourth"),"number"!=typeof e)throw new w(42);if("string"==typeof t&&!k[t])throw new w(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||"em"!==a&&"rem"!==a)throw new w(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=ke,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=Z,e.parseToRgb=U,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<=Ee.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 w(57);return{backgroundColor:o||r[0].split(" ")[0],backgroundImage:j(C(),i,f,n,r.join(", "))}},e.readableColor=function(e,r,t){return void 0===r&&(r="#000"),void 0===t&&(t="#fff"),.179<me(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 w(58);var i=t.replace(/^\./,""),u=n?n+"."+i:""+e+o+"."+i;return(a={backgroundImage:"url("+e+"."+i+")"})[A()]=y({backgroundImage:"url("+u+")"},r?{backgroundSize:r}:{}),a},e.rgb=te,e.rgba=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?ne({red:e.red,green:e.green,blue:e.blue,alpha:e.alpha}):te({red:e.red,green:e.green,blue:e.blue});throw new w(46)},e.saturate=Ie,e.setHue=Fe,e.setLightness=Oe,e.setSaturation=Te,e.shade=Le,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 Be(r,Ve,Ne)},e.timingFunctions=function(e){return T[e]},e.tint=We,e.toColorString=fe,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 w(61);return{transition:r[0].map(function(e){return e+" "+n}).join(", ")}}return{transition:r.join(", ")}},e.transparentize=_e,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=[parseFloat(n),String(n).replace(R,"")||"px"],f=[parseFloat(t),String(t).replace(R,"")||"px"];if(isNaN(f[0])||isNaN(u[0]))throw new w(60);var l=L.indexOf(r);return y({width:"0",height:"0",borderWidth:function(e,r,t){switch(e){case"top":return"0 "+t[0]/2+t[1]+" "+r[0]+r[1]+" "+t[0]/2+t[1];case"left":return""+r[0]/2+r[1]+" "+t[0]+t[1]+" "+r[0]/2+r[1]+" 0";case"bottom":return""+r[0]+r[1]+" "+t[0]/2+t[1]+" 0 "+t[0]/2+t[1];case"right":return""+r[0]/2+r[1]+" 0 "+r[0]/2+r[1]+" "+t[0]+t[1];default:throw new w(59)}}(r,f,u),borderStyle:"solid"},M.apply(void 0,Array.from({length:4}).map(function(e,r){return r===l?o:i})))},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 w=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/error/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 x(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 p=(o=f.exec(e))||[")",void 0],s=p[0],c=p[1],d=a.symbols[s],b=d&&!d.prefix&&!d.func,h=!d||!d.postfix&&!d.infix;if(c||(l?h:b))throw new w(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(x(i,u));l="postfix"===g.notation,")"!==g.symbol&&(i.push(g),l&&x(i,u))}else if(d){if(i.push(d.prefix||d.func),d.func&&(!(o=f.exec(e))||"("!==o[0]))throw new w(38,o?o.index:e.length,e)}else u.push(+s),l=!0}while(o&&i.length);if(i.length)throw new w(39,o?o.index:e.length,e);if(o)throw new w(40,o?o.index:e.length,e);return u.pop()}function l(e){return e.split("").reverse().join("")}function p(e){return e.charAt(0).toUpperCase()+e.slice(1)}var s=["Top","Right","Bottom","Left"];function c(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+p(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[c(e,s[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 w(69,o,e);t=m(e)}if("string"==typeof r){if(!b(r,"px"))throw new w(70,o,r);n=m(r)}if("string"==typeof t)throw new w(71,e,o);if("string"==typeof n)throw new w(72,r,o);return""+t/n+o}},g=h("em"),S=/^([+-]?(?:\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 I(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],p=m(t,!0),s=p[0],c=p[1],d=m(n,!0),b=d[0],h=d[1];if("number"!=typeof s||"number"!=typeof b||!c||!h||c!==h)throw new w(47);if("number"!=typeof a||"number"!=typeof f||!i||!l||i!==l)throw new w(48);var g=(a-f)/(s-b);return"calc("+(f-g*b).toFixed(2)+i+" + "+(100*g).toFixed(2)+"vw)"}function A(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 F(e,r){return r||(r=e.slice(0)),e.raw=r,e}function j(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 O(){var e=F(["linear-gradient(","",")"]);return O=function(){return e},e}function C(){var e=F(["radial-gradient(","","","",")"]);return C=function(){return e},e}var T={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 M(){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))}var L=["bottom","left","top","right"],R=/(\d*\.?\d*)/;function W(e){return Math.round(255*e)}function q(e,r,t){return W(e)+","+W(r)+","+W(t)}function _(e,r,t,n){if(void 0===n&&(n=q),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,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 p=t-a/2;return n(u+p,f+p,l+p)}var $={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 P=/^#[a-fA-F0-9]{6}$/,D=/^#[a-fA-F0-9]{8}$/,B=/^#[a-fA-F0-9]{3}$/,Q=/^#[a-fA-F0-9]{4}$/,E=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,N=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,V=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,H=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;function U(e){if("string"!=typeof e)throw new w(3);var r=function(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return $[r]?"#"+$[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(D)){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(B))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(Q)){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=E.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=E.exec(u);if(!f)throw new w(4,r,u);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10)}}var l=H.exec(r);if(l){var p="rgb("+_(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",s=E.exec(p);if(!s)throw new w(4,r,p);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10),alpha:parseFloat(""+l[4])}}throw new w(5)}function G(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}}(U(e))}var J=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 Z(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function K(e){return Z(Math.round(255*e))}function X(e,r,t){return J("#"+K(e)+K(r)+K(t))}function Y(e,r,t){return _(e,r,t,X)}function ee(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return Y(e,r,t);if("object"==typeof e&&void 0===r&&void 0===t)return Y(e.hue,e.saturation,e.lightness);throw new w(1)}function re(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?Y(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?Y(e.hue,e.saturation,e.lightness):"rgba("+_(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new w(2)}function te(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return J("#"+Z(e)+Z(r)+Z(t));if("object"==typeof e&&void 0===r&&void 0===t)return J("#"+Z(e.red)+Z(e.green)+Z(e.blue));throw new w(6)}function ne(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var o=U(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?te(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?te(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new w(7)}var oe=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},ae=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},ie=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},ue=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function fe(e){if("object"!=typeof e)throw new w(8);if(ae(e))return ne(e);if(oe(e))return te(e);if(ue(e))return re(e);if(ie(e))return ee(e);throw new w(8)}function le(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 pe(e,r){if("transparent"===r)return r;var t=G(r);return fe(y({},t,{hue:(t.hue+parseFloat(e))%360}))}var se=le(pe);function ce(e,r,t){return Math.max(e,Math.min(r,t))}function de(e,r){if("transparent"===r)return r;var t=G(r);return fe(y({},t,{lightness:ce(0,1,t.lightness-parseFloat(e))}))}var be=le(de);function he(e,r){if("transparent"===r)return r;var t=G(r);return fe(y({},t,{saturation:ce(0,1,t.saturation-parseFloat(e))}))}var ge=le(he);function me(e){if("transparent"===e)return 0;var t=U(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 ye(e,r){if("transparent"===r)return r;var t=G(r);return fe(y({},t,{lightness:ce(0,1,t.lightness+parseFloat(e))}))}var ve=le(ye);function we(e,r,t){if("transparent"===r)return t;if("transparent"===t)return r;var n=U(r),o=y({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),a=U(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,p=1-l;return ne({red:Math.floor(o.red*l+i.red*p),green:Math.floor(o.green*l+i.green*p),blue:Math.floor(o.blue*l+i.blue*p),alpha:o.alpha+(i.alpha-o.alpha)*(parseFloat(e)/1)})}var xe=le(we);function Se(e,r){if("transparent"===r)return r;var t=U(r);return ne(y({},t,{alpha:ce(0,1,(100*("number"==typeof t.alpha?t.alpha:1)+100*parseFloat(e))/100)}))}var ke=le(Se);function ze(e,r){if("transparent"===r)return r;var t=G(r);return fe(y({},t,{saturation:ce(0,1,t.saturation+parseFloat(e))}))}var Ie=le(ze);function Ae(e,r){return"transparent"===r?r:fe(y({},G(r),{hue:parseFloat(e)}))}var Fe=le(Ae);function je(e,r){return"transparent"===r?r:fe(y({},G(r),{lightness:parseFloat(e)}))}var Oe=le(je);function Ce(e,r){return"transparent"===r?r:fe(y({},G(r),{saturation:parseFloat(e)}))}var Te=le(Ce);function Me(e,r){return"transparent"===r?r:xe(parseFloat(e),"rgb(0, 0, 0)",r)}var Le=le(Me);function Re(e,r){return"transparent"===r?r:xe(parseFloat(e),"rgb(255, 255, 255)",r)}var We=le(Re);function qe(e,r){if("transparent"===r)return r;var t=U(r);return ne(y({},t,{alpha:ce(0,1,(100*("number"==typeof t.alpha?t.alpha:1)-100*parseFloat(e))/100)}))}var _e=le(qe);var $e=["top","right","bottom","left"];function Pe(e,r){return e(r?":"+r:"")}function De(e,r,t){if(!r)throw new w(67);if(0===e.length)return Pe(r,null);for(var n=[],o=0;o<e.length;o+=1){if(t&&t.indexOf(e[o])<0)throw new w(68);n.push(Pe(r,e[o]))}return n=n.join(",")}var Be=[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}var Ee=["absolute","fixed","relative","static","sticky"];var Ne=[void 0,null,"active","focus","hover"];function Ve(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=se,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 w(64);return{animation:r.map(function(e){if(n&&!Array.isArray(e)||!n&&Array.isArray(e))throw new w(65);if(Array.isArray(e)&&8<e.length)throw new w(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=I,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<=$e.indexOf(e)?((o={})["border"+p(e)+"Width"]=t[0],o["border"+p(e)+"Style"]=t[1],o["border"+p(e)+"Color"]=t[2],o):(t.unshift(e),{borderWidth:t[0],borderStyle:t[1],borderColor:t[2]})},e.borderColor=M,e.borderRadius=function(e,r){var t,n,o=p(e);if(!r&&0!==r)throw new w(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 w(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 De(r,Qe,Be)},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=G(e);return fe(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=be,e.desaturate=ge,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 w(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,p;if(i){if(u>=a.length)break;p=a[u++]}else{if((u=a.next()).done)break;p=u.value}var s=p;if(!s.prop||!s.fromSize||!s.toSize)throw new w(50);o[s.prop]=s.fromSize,n["@media (min-width: "+r+")"]=y({},n["@media (min-width: "+r+")"],((f={})[s.prop]=I(s.fromSize,s.toSize,r,t),f)),n["@media (min-width: "+t+")"]=y({},n["@media (min-width: "+t+")"],((l={})[s.prop]=s.toSize,l))}return y({},o,n)}var c,d,b;if(!e.prop||!e.fromSize||!e.toSize)throw new w(51);return(b={})[e.prop]=e.fromSize,b["@media (min-width: "+r+")"]=((c={})[e.prop]=I(e.fromSize,e.toSize,r,t),c),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.localFonts,p=e.unicodeRange,s=e.fontDisplay,c=e.fontVariationSettings,d=e.fontFeatureSettings;if(!r)throw new w(55);if(!t&&!l)throw new w(52);if(l&&!Array.isArray(l))throw new w(53);if(!Array.isArray(f))throw new w(54);var b,h,g,m,y,v={"@font-face":{fontFamily:r,src:(b=t,h=l,g=f,y=[],h&&y.push(h.map(function(e){return'local("'+e+'")'}).join(", ")),b&&y.push((m=b,g.map(function(e){return'url("'+m+"."+e+'")'}).join(", "))),y.join(", ")),unicodeRange:p,fontStretch:n,fontStyle:o,fontVariant:a,fontWeight:i,fontDisplay:s,fontVariationSettings:c,fontFeatureSettings:d}};return JSON.parse(JSON.stringify(v))},e.getLuminance=me,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(S);return r?[parseFloat(e),r[2]]:[e,void 0]},e.grayscale=function(e){return"transparent"===e?e:fe(y({},G(e),{saturation:0}))},e.invert=function(e){if("transparent"===e)return e;var r=U(e);return fe(y({},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=A,e.hsl=ee,e.hsla=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?re({hue:e.hue,saturation:e.saturation,lightness:e.lightness,alpha:e.alpha}):ee({hue:e.hue,saturation:e.saturation,lightness:e.lightness});throw new w(45)},e.lighten=ve,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 w(56);return{backgroundColor:t||r[0].split(" ")[0],backgroundImage:j(O(),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 w(41);return""+f(l(t.replace(u,"")),r)+(n?l(n[0]):"")},e.mix=xe,e.modularScale=function(e,r,t){if(void 0===r&&(r="1em"),void 0===t&&(t="perfectFourth"),"number"!=typeof e)throw new w(42);if("string"==typeof t&&!k[t])throw new w(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||"em"!==a&&"rem"!==a)throw new w(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=ke,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=G,e.parseToRgb=U,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<=Ee.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 w(57);return{backgroundColor:o||r[0].split(" ")[0],backgroundImage:j(C(),i,f,n,r.join(", "))}},e.readableColor=function(e,r,t){return void 0===r&&(r="#000"),void 0===t&&(t="#fff"),.179<me(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 w(58);var i=t.replace(/^\./,""),u=n?n+"."+i:""+e+o+"."+i;return(a={backgroundImage:"url("+e+"."+i+")"})[A()]=y({backgroundImage:"url("+u+")"},r?{backgroundSize:r}:{}),a},e.rgb=te,e.rgba=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?ne({red:e.red,green:e.green,blue:e.blue,alpha:e.alpha}):te({red:e.red,green:e.green,blue:e.blue});throw new w(46)},e.saturate=Ie,e.setHue=Fe,e.setLightness=Oe,e.setSaturation=Te,e.shade=Le,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 De(r,Ve,Ne)},e.timingFunctions=function(e){return T[e]},e.tint=We,e.toColorString=fe,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 w(61);return{transition:r[0].map(function(e){return e+" "+n}).join(", ")}}return{transition:r.join(", ")}},e.transparentize=_e,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=[parseFloat(n),String(n).replace(R,"")||"px"],f=[parseFloat(t),String(t).replace(R,"")||"px"];if(isNaN(f[0])||isNaN(u[0]))throw new w(60);var l=L.indexOf(r);return y({width:"0",height:"0",borderWidth:function(e,r,t){switch(e){case"top":return"0 "+t[0]/2+t[1]+" "+r[0]+r[1]+" "+t[0]/2+t[1];case"left":return""+r[0]/2+r[1]+" "+t[0]+t[1]+" "+r[0]/2+r[1]+" 0";case"bottom":return""+r[0]+r[1]+" "+t[0]/2+t[1]+" 0 "+t[0]/2+t[1];case"right":return""+r[0]/2+r[1]+" 0 "+r[0]/2+r[1]+" "+t[0]+t[1];default:throw new w(59)}}(r,f,u),borderStyle:"solid"},M.apply(void 0,Array.from({length:4}).map(function(e,r){return r===l?o:i})))},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})}); |
@@ -22,3 +22,3 @@ "use strict"; | ||
var unitRegExp = /((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|(?<![a-zA-Z])s|ged|darg?|nrut)/g; // Merges additional math functionality into the defaults. | ||
var unitRegExp = /((?!\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; // Merges additional math functionality into the defaults. | ||
@@ -25,0 +25,0 @@ function mergeSymbolMaps(additionalSymbols) { |
@@ -7,3 +7,3 @@ { | ||
"types": "lib/index.d.ts", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"scripts": { | ||
@@ -10,0 +10,0 @@ "build": "yarn build:lib && yarn build:dist && yarn build:flow && yarn build:docs && yarn build:typescript", |
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
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
2598200