Socket
Socket
Sign inDemoInstall

styled-components

Package Overview
Dependencies
Maintainers
3
Versions
358
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styled-components - npm Package Compare versions

Comparing version 2.0.0-13 to 2.0.0-14

2

dist/styled-components.min.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(e.styled=e.styled||{},e.React)}(this,function(e,t){"use strict";function n(e){return e.replace(d,"-$1").toLowerCase()}function r(e){return g(e).replace(m,"-ms-")}function o(e){return P(e)===!0&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return t={exports:{}},e(t,t.exports),t.exports}function a(e){return e[e.length-1]}function s(e){for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function u(){var e=document.createElement("style");return e.type="text/css",e.appendChild(document.createTextNode("")),(document.head||document.getElementsByTagName("head")[0]).appendChild(e),e}function l(e){return"string"==typeof e}function c(e){return"function"==typeof e&&"string"==typeof e.styledComponentId}function p(e){var t=ee.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}var h="default"in t?t.default:t,d=/([A-Z])/g,f=n,g=f,m=/^ms-/,y=r,v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),k=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},S=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},w=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},T=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},O=function(e){return null!=e&&"object"===(void 0===e?"undefined":v(e))&&!Array.isArray(e)},P=O,j=function(e){var t,n;return o(e)!==!1&&("function"==typeof(t=e.constructor)&&(n=t.prototype,o(n)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1))},E=function e(t,n){var r=Object.keys(t).map(function(n){return j(t[n])?e(t[n],n):y(n)+": "+t[n]+";"}).join(" ");return n?n+" {\n "+r+"\n}":r},R=function e(t,n){return t.reduce(function(t,r){return void 0===r||null===r||r===!1||""===r?t:Array.isArray(r)?[].concat(T(t),T(e(r,n))):r.hasOwnProperty("styledComponentId")?[].concat(T(t),["."+r.styledComponentId]):"function"==typeof r?n?t.concat.apply(t,T(e([r(n)],n))):t.concat(r):t.concat(j(r)?E(r):r.toString())},[])},M="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},D=i(function(e,t){!function(n){"object"===(void 0===t?"undefined":v(t))&&void 0!==e?e.exports=n(M):window.stylis=n(window)}(function(e){function t(e,p,h,d,f){e+="";var g,m,y,C,b="",k="",x=e.charCodeAt(0);91===x?(y=e.substring(1,e.length-1).split("="),g=(k=y[1]).charCodeAt(0),34!==g&&39!==g||(k=k.substring(1,k.length-1)),b="["+y[0]+'="'+k+'"]'):k=35===x||46===x||62===x?(b=e).substring(1):b=e,x=0,void 0==h||h===!0?(h=!0,C=k):(C="",h=!1);var A,S=null!=f,w=r.length;S===!0&&(A=(void 0===f?"undefined":v(f)).charCodeAt(0),111===A?n(f):102===A?r[w++]=f:S=!1),0!==w&&(f=1===w?r[0]:function(e,t,n,o,i,a){for(var s=t,u=0,l=r.length;u<l;u++)s=r[u](e,s,n,o,i,a)||s;if(s!==t)return s},S=!0);var T,O,P,j,E,R,M,D,F,_,I,L,N,U,W,z,B,H,q="",V="",$="",K=0,X=0,G=0,Y=0,Z=0,J=0,Q=0,ee=0,te=0,ne=0,re=0,oe=0,ie=0,ae=0;S===!0&&(R=f(0,p,ce,le,b,0),null!=R&&(p=R),z="");for(var se=0,ue=0,le=0,ce=1,pe=p.length,he="";se<pe;){if(K=p.charCodeAt(se),0===Q&&0===J&&0===oe&&(123===K||125===K||59===K||se===pe-1&&0!==q.length)){if(q+=p.charAt(se),S===!0&&125!==K&&null!=(R=123===K?f(1,q.substring(0,q.length-1).trim(),ce,le,b,he.length):f(2,q,ce,le,b,he.length))&&(q=123===K?R+" {":R),F=q.charCodeAt(0),32===F&&(F=(q=q.trim()).charCodeAt(0)),_=q.charCodeAt(1),I=q.charCodeAt(2),64===F){if(1===ne&&0!==$.length&&(ne=0,$=b+" {"+$+"}",S===!0&&null!=(R=f(4,$,ce,le,b,he.length))&&($=R),he+=$,$=""),59!==K)if(107===_)N=q.substring(1,11)+C+q.substring(11),q="@"+c+N,x=1;else if(109===_&&101===I||103===_)if(0!==ue){for(se++,le++,void 0===E&&(E=""),R="",O="",P=M.split(i),Y=1;se<pe&&(g=p.charCodeAt(se),123===g?Y++:125===g&&Y--,0!==Y);)O+=p.charAt(se++),le=13===g||10===g?(ce++,0):le+1;w=P.length;for(var de=0;de<w;de++)e=P[de],R+=t((de===w-1?e.substring(0,e.length-1):e).trim(),O,h,d,f);E+=q+R+"}",q="",1,x=4}else x=2,W=q,q="";else x=6;4!==x&&59!==K&&105!==_&&(107!==_&&109!==_&&103!==_&&(x=5),G=-1,X++)}else{if(123===K)if(ue++,1===ne&&0!==$.length&&(ne=0,$=b+" {"+$+"}",S===!0&&null!=(R=f(4,$,ce,le,b,he.length))&&($=R),he+=$,$=""),2===ue){se++,le++,O="";var fe=q.substring(0,q.length-1).split(i),ge=M.substring(0,M.length-1).split(i);for(Y=1;se<pe&&(g=p.charCodeAt(se),123===g?Y++:125===g&&Y--,0!==Y);)O+=p.charAt(se++),le=13===g||10===g?(ce++,0):le+1;w=ge.length;for(var me=0;me<w;me++){R=ge[me],D=R.indexOf(b),ge[me]="";for(var ye=0,ve=fe.length;ye<ve;ye++)e=D>0?":global(%)"+R.trim():R.replace(b,"&").trim(),L=fe[ye].trim(),e=L.indexOf(" &")>0?L.replace("&","").trim()+" "+e:null!==a.exec(L)?L:e+" "+L,ge[me]+=e.replace(/ +&/,"").trim()+(ye===ve-1?"":",")}void 0===U&&(U=""),U+="\n"+ge.join(",").replace(s," $1")+" {"+O+"}",Z=1,q="",ue--}else if(0===X||2===x){P=q.split(i),j="",M="",w=P.length;for(var me=0;me<w;me++)g=(e=P[me]).charCodeAt(0),32===g&&(g=(e=e.trim()).charCodeAt(0)),38===g?e=b+e.substring(1).replace(o,b):(e.indexOf("::place")!==-1&&(te=1),(D=e.indexOf(" &"))>0?e=e.replace(o,b).trim():58===g?(H=e.charCodeAt(1),d===!0&&104===H&&116===e.charCodeAt(4)?(H=e.charCodeAt(5),e=40===H?b+e.replace(/:host\((.*)\)/g,"$1").replace(o,b):45===H?e.replace(/:host-context\((.*)\)/g,"$1 "+b).replace(o,b):b+e.substring(5)):103!==H||d!==!0&&37!==(H=e.charCodeAt(8))?e=b+e:(ee=1,e=e.replace(a,"$1").replace(o,b).trim())):0===ee&&(e=b+" "+e)),S===!0&&null!=(R=f(1.5,me===w-1?e.substring(0,e.length-1).trim():e,ce,le,b,he.length))&&(e=me===w-1?R+" {":R),M+=(0!==me?",\f":"")+(1!==ee?e:":global(%)"+e),j+=0!==me?","+e:e,ee=0;q=j}else M=q;else if((125===K&&1===q.length)==!1){if(59!==K&&(q=(125===K?q.substring(0,q.length-1):q.trim())+";"),97===F&&110===_&&105===I){if(q=q.substring(0,q.length-1),T=q.indexOf(":")+1,j=q.substring(0,T),h===!0&&45!==q.charCodeAt(9)){var Ce=q.substring(T).trim().split(",");w=Ce.length;for(var me=0;me<w;me++){for(var be=Ce[me],ke=be.split(" "),ye=0,ve=ke.length;ye<ve;ye++){var xe=ke[ye].trim(),Ae=xe.charCodeAt(0),Se=xe.charCodeAt(2),we=xe.length,Te=xe.charCodeAt(we-1);!(Ae>64&&Ae<90||Ae>96&&Ae<122||45===Ae||95===Ae&&95!==xe.charCodeAt(1))||41===Te||0===we||105===Ae&&(102===Se&&101===Te&&8===we||105===Se&&108===Te&&7===we||104===Se&&116===Te&&7===we)||117===Ae&&115===Se&&116===Te&&5===we||108===Ae&&110===Se&&114===Te&&6===we||97===Ae&&116===Se&&101===Te&&(9===we||17===we)||110===Ae&&114===Se&&108===Te&&6===we||98===Ae&&99===Se&&115===Te&&9===we||102===Ae&&114===Se&&115===Te&&8===we||98===Ae&&116===Se&&104===Te&&4===we||110===Ae&&110===Se&&101===Te&&4===we||114===Ae&&110===Se&&103===Te&&7===we||112===Ae&&117===Se&&100===Te&&6===we||114===Ae&&118===Se&&100===Te&&8===we||115===Ae&&101===Se&&(116===Te&&10===we||100===Te&&8===we)||101===Ae&&115===Se&&(101===Te&&4===we||(11===we||7===we||8===we)&&45===xe.charCodeAt(4))||!isNaN(parseFloat(xe))||xe.indexOf("(")!==-1||(ke[ye]=C+xe)}j+=(0===me?"":",")+ke.join(" ").trim()}}else j+=(110!==q.charCodeAt(10)?"":C)+q.substring(T).trim().trim();q=c+j+";"+j+(125===K?";}":";")}else if(97===F&&112===_&&112===I)q=c+q+u+q+q;else if(100===F&&105===_&&115===I)(D=q.indexOf("flex"))!==-1&&(R=101===q.charCodeAt(D-2)?"inline-":"",q=q.indexOf(" !important")!==-1?" !important":"",q="display: "+c+R+"box"+q+";display: "+c+R+"flex"+q+";display: "+l+"flexbox"+q+";display: "+R+"flex"+q+";");else if(116===F&&114===_&&97===I)q=c+q+(102===q.charCodeAt(5)?l+q:"")+q;else if(104===F&&121===_&&112===I||117===F&&115===_&&101===I)q=c+q+u+q+l+q+q;else if(102===F&&108===_&&101===I)q=c+q+l+q+q;else if(111===F&&114===_&&100===I)q=c+q+l+"flex-"+q+q;else if(97===F&&108===_&&105===I&&45===q.charCodeAt(5))switch(q.charCodeAt(6)){case 105:R=q.replace("-items",""),q=c+q+c+"box-"+R+l+"flex-"+R+q;break;case 115:q=l+"flex-item-"+q.replace("-self","")+q;break;default:q=l+"flex-line-pack"+q.replace("align-content","")+q}else 106===F&&117===_&&115===I?(T=q.indexOf(":"),R=q.substring(T).replace("flex-",""),q=c+"box-pack"+R+c+q+l+"flex-pack"+R+q):99===F&&117===_&&114===I&&null!==/zoo|gra/.exec(q)?q=q.replace(/: +/g,": "+c)+q.replace(/: +/g,": "+u)+q:119===F&&105===_&&100===I&&(D=q.indexOf("-content"))!==-1&&(R=q.substring(D-3),q="width: "+c+R+"width: "+u+R+"width: "+R);59!==K&&(q=q.substring(0,q.length-1),125===K&&(q+="}"))}125===K&&(0!==ue&&ue--,0===ue&&1===Z&&(p=p.substring(0,se+1)+U+p.substring(se+1),pe+=U.length,U="",Z=0,G++),125!==F&&32===q.charCodeAt(q.length-2)&&(q=q.substring(0,q.length-1).trim()+"}")),0!==X?(125===K?G++:123===K&&0!==G&&G--,1!==re||123!==K&&0!==G||0===$.length||(re=0,q=b+" {"+$+"}"+q,$=""),0===G?(1===x&&(q="}@"+N+"}",N=""),x=0,G--,X--):1===x?N+=q:2===x&&0===ue&&(125!==K&&(0===re&&($=""),$+=q,q=""),re=1)):0===ue&&125!==K&&(ne=1,$=void 0===$?q:$+q,q="")}V+=q,125!==K||0!==x&&2!==x&&4!==x||(g=V.charCodeAt(V.length-2),4===x&&(x=0),void 0!==E&&0!==E.length&&(V=123===g?E:V+E,E="",g=V.charCodeAt(V.length-2)),123!==g&&(S===!0&&null!=(R=f(3,V,ce,le,b,he.length))&&(V=R),1===te&&(B=/::place/g,te=0,R="input-place",V=V.replace(B,"::"+c+R)+V.replace(B,"::"+u+"place")+V.replace(B,":"+l+R)+V),void 0!==W?(W+=V,125===W.charCodeAt(W.length-2)&&(he+=W,W=void 0)):he+=V),V=""),q=""}else if(13===K||10===K)1===ae?(oe=ae=0,q=q.substring(0,q.indexOf("//")).trim()):S===!0&&0===oe&&0!==(w=(z=z.trim()).length)&&47!==z.charCodeAt(0)&&(0!==q.length&&null!=(R=f(7,z,ce,le,b,he.length))&&(q=q.replace(new RegExp(z+"$"),R).trim()),z=""),le=0,ce++;else{if(9!==K)switch(m=p.charAt(se),S===!0&&0===oe&&(z+=m),q+=m,K){case 44:0===Q&&0===oe&&0===J&&(q+="\f");break;case 34:0===oe&&(Q=34===Q?0:39===Q?39:34);break;case 39:0===oe&&(Q=39===Q?0:34===Q?34:39);break;case 40:0===Q&&0===oe&&(J=1);break;case 41:0===Q&&0===oe&&(J=0);break;case 47:0===Q&&0===J&&(g=p.charCodeAt(se-1),0===ie&&47===g?oe=ae=1:42===g&&(oe=ie=0,q=q.substring(0,q.indexOf("/*")).trim()));break;case 42:0===Q&&0===J&&0===ae&&0===ie&&47===p.charCodeAt(se-1)&&(oe=ie=1)}le++}se++}return void 0!==$&&0!==$.length&&($=b+" {"+$+"}",S===!0&&null!=(R=f(4,$,ce,le,b,he.length))&&($=R),he+=$),S===!0&&null!=(R=f(6,he,ce,le,b,he.length))&&(he=R),he}function n(e){var n=r.length;if(null!=e)if(e.constructor===Array)for(var o=0,i=e.length;o<i;o++)r[n++]=e[o];else r[n]=e;return t}var r=[],o=/&/g,i=/,\f/g,a=/:global\(%?((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,s=/(?:&| ):global\(%?((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,u="-moz-",l="-ms-",c="-webkit-";return t.use=n,t.p=r,t.r={a:o,s:i,g:a,n:s},t})}),F=function(e,t,n){var r=e.join("").replace(/^\s*\/\/.*$/gm,""),o=t&&n?n+" "+t+" { "+r+" }":r;return D(n||!t?"":t,o,!1,!1)},_="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),I=_.length,L=function(e){var t="",n=void 0;for(n=e;n>I;n=Math.floor(n/_.length))t=_[n%I]+t;return _[n%I]+t},N=function(e,t){return t.reduce(function(t,n,r){return t.concat(n,e[r+1])},[e[0]])},U=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return R(N(e,n))},W="undefined"!=typeof document,z=!1,B=!1,H=function(){if(W){var e=document.createElement("div");return e.innerHTML="<!--[if lt IE 10]><i></i><![endif]-->",1===e.getElementsByTagName("i").length}}(),q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.speedy,r=void 0===n?!z&&!B:n,o=t.maxLength,i=void 0===o?W&&H?4e3:65e3:o;C(this,e),this.isSpeedy=r,this.sheet=void 0,this.tags=[],this.maxLength=i,this.ctr=0}return b(e,[{key:"inject",value:function(){var e=this;if(this.injected)throw new Error("already injected stylesheet!");W?(this.tags[0]=u(),this.sheet=s(this.tags[0])):this.sheet={cssRules:[],insertRule:function(t){var n={cssText:t};return e.sheet.cssRules.push(n),{serverRule:n,appendRule:function(e){return n.cssText+=e}}}},this.injected=!0}},{key:"speedy",value:function(e){if(0!==this.ctr)throw new Error("cannot change speedy mode after inserting any rule to sheet. Either call speedy("+e+") earlier in your app, or call flush() before speedy("+e+")");this.isSpeedy=!!e}},{key:"_insert",value:function(e){try{this.sheet.insertRule(e,this.sheet.cssRules.length)}catch(t){z&&console.warn("whoops, illegal rule inserted",e)}}},{key:"insert",value:function(e){var t=void 0;if(W)if(this.isSpeedy&&this.sheet.insertRule)this._insert(e);else{var n=document.createTextNode(e);a(this.tags).appendChild(n),t={textNode:n,appendRule:function(e){return n.appendData(e)}},this.isSpeedy||(this.sheet=s(a(this.tags)))}else t=this.sheet.insertRule(e);return this.ctr++,W&&this.ctr%this.maxLength==0&&(this.tags.push(u()),this.sheet=s(a(this.tags))),t}},{key:"flush",value:function(){W?(this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.sheet=null,this.ctr=0):this.sheet.cssRules=[],this.injected=!1}},{key:"rules",value:function(){if(!W)return this.sheet.cssRules;var e=[];return this.tags.forEach(function(t){return e.splice.apply(e,[e.length,0].concat(T(Array.from(s(t).cssRules))))}),e}}]),e}(),V=function(){function e(){C(this,e),this.styleSheet=new q({speedy:!1,maxLength:40})}return b(e,[{key:"inject",value:function(){return this.styleSheet.inject()}},{key:"insert",value:function(e){return this.styleSheet.insert(e)}},{key:"reset",value:function(){this.styleSheet.sheet&&this.styleSheet.flush()}},{key:"rules",value:function(){return this.styleSheet.rules()}},{key:"getCSS",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.min,n=void 0===t||t;return this.styleSheet.sheet?this.styleSheet.rules().map(function(e){return e.cssText}).join(n?"":"\n"):""}},{key:"injected",get:function(){return this.styleSheet.injected}}]),e}(),$=new V,K={children:!0,dangerouslySetInnerHTML:!0,key:!0,ref:!0,autoFocus:!0,defaultValue:!0,valueLink:!0,defaultChecked:!0,checkedLink:!0,innerHTML:!0,suppressContentEditableWarning:!0,onFocusIn:!0,onFocusOut:!0,className:!0,onCopy:!0,onCut:!0,onPaste:!0,onCompositionEnd:!0,onCompositionStart:!0,onCompositionUpdate:!0,onKeyDown:!0,onKeyPress:!0,onKeyUp:!0,onFocus:!0,onBlur:!0,onChange:!0,onInput:!0,onSubmit:!0,onClick:!0,onContextMenu:!0,onDoubleClick:!0,onDrag:!0,onDragEnd:!0,onDragEnter:!0,onDragExit:!0,onDragLeave:!0,onDragOver:!0,onDragStart:!0,onDrop:!0,onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOut:!0,onMouseOver:!0,onMouseUp:!0,onSelect:!0,onTouchCancel:!0,onTouchEnd:!0,onTouchMove:!0,onTouchStart:!0,onScroll:!0,onWheel:!0,onAbort:!0,onCanPlay:!0,onCanPlayThrough:!0,onDurationChange:!0,onEmptied:!0,onEncrypted:!0,onEnded:!0,onError:!0,onLoadedData:!0,onLoadedMetadata:!0,onLoadStart:!0,onPause:!0,onPlay:!0,onPlaying:!0,onProgress:!0,onRateChange:!0,onSeeked:!0,onSeeking:!0,onStalled:!0,onSuspend:!0,onTimeUpdate:!0,onVolumeChange:!0,onWaiting:!0,onLoad:!0,onAnimationStart:!0,onAnimationEnd:!0,onAnimationIteration:!0,onTransitionEnd:!0,onCopyCapture:!0,onCutCapture:!0,onPasteCapture:!0,onCompositionEndCapture:!0,onCompositionStartCapture:!0,onCompositionUpdateCapture:!0,onKeyDownCapture:!0,onKeyPressCapture:!0,onKeyUpCapture:!0,onFocusCapture:!0,onBlurCapture:!0,onChangeCapture:!0,onInputCapture:!0,onSubmitCapture:!0,onClickCapture:!0,onContextMenuCapture:!0,onDoubleClickCapture:!0,onDragCapture:!0,onDragEndCapture:!0,onDragEnterCapture:!0,onDragExitCapture:!0,onDragLeaveCapture:!0,onDragOverCapture:!0,onDragStartCapture:!0,onDropCapture:!0,onMouseDownCapture:!0,onMouseEnterCapture:!0,onMouseLeaveCapture:!0,onMouseMoveCapture:!0,onMouseOutCapture:!0,onMouseOverCapture:!0,onMouseUpCapture:!0,onSelectCapture:!0,onTouchCancelCapture:!0,onTouchEndCapture:!0,onTouchMoveCapture:!0,onTouchStartCapture:!0,onScrollCapture:!0,onWheelCapture:!0,onAbortCapture:!0,onCanPlayCapture:!0,onCanPlayThroughCapture:!0,onDurationChangeCapture:!0,onEmptiedCapture:!0,onEncryptedCapture:!0,onEndedCapture:!0,onErrorCapture:!0,onLoadedDataCapture:!0,onLoadedMetadataCapture:!0,onLoadStartCapture:!0,onPauseCapture:!0,onPlayCapture:!0,onPlayingCapture:!0,onProgressCapture:!0,onRateChangeCapture:!0,onSeekedCapture:!0,onSeekingCapture:!0,onStalledCapture:!0,onSuspendCapture:!0,onTimeUpdateCapture:!0,onVolumeChangeCapture:!0,onWaitingCapture:!0,onLoadCapture:!0,onAnimationStartCapture:!0,onAnimationEndCapture:!0,onAnimationIterationCapture:!0,onTransitionEndCapture:!0},X={accept:!0,acceptCharset:!0,accessKey:!0,action:!0,allowFullScreen:!0,allowTransparency:!0,alt:!0,as:!0,async:!0,autoComplete:!0,autoPlay:!0,capture:!0,cellPadding:!0,cellSpacing:!0,charSet:!0,challenge:!0,checked:!0,cite:!0,classID:!0,className:!0,cols:!0,colSpan:!0,content:!0,contentEditable:!0,contextMenu:!0,controls:!0,coords:!0,crossOrigin:!0,data:!0,dateTime:!0,default:!0,defer:!0,dir:!0,disabled:!0,download:!0,draggable:!0,encType:!0,form:!0,formAction:!0,formEncType:!0,formMethod:!0,formNoValidate:!0,formTarget:!0,frameBorder:!0,headers:!0,height:!0,hidden:!0,high:!0,href:!0,hrefLang:!0,htmlFor:!0,httpEquiv:!0,icon:!0,id:!0,inputMode:!0,integrity:!0,is:!0,keyParams:!0,keyType:!0,kind:!0,label:!0,lang:!0,list:!0,loop:!0,low:!0,manifest:!0,marginHeight:!0,marginWidth:!0,max:!0,maxLength:!0,media:!0,mediaGroup:!0,method:!0,min:!0,minLength:!0,multiple:!0,muted:!0,name:!0,nonce:!0,noValidate:!0,open:!0,optimum:!0,pattern:!0,placeholder:!0,playsInline:!0,poster:!0,preload:!0,profile:!0,radioGroup:!0,readOnly:!0,referrerPolicy:!0,rel:!0,required:!0,reversed:!0,role:!0,rows:!0,rowSpan:!0,sandbox:!0,scope:!0,scoped:!0,scrolling:!0,seamless:!0,selected:!0,shape:!0,size:!0,sizes:!0,span:!0,spellCheck:!0,src:!0,srcDoc:!0,srcLang:!0,srcSet:!0,start:!0,step:!0,style:!0,summary:!0,tabIndex:!0,target:!0,title:!0,type:!0,useMap:!0,value:!0,width:!0,wmode:!0,wrap:!0,about:!0,datatype:!0,inlist:!0,prefix:!0,property:!0,resource:!0,typeof:!0,vocab:!0,autoCapitalize:!0,autoCorrect:!0,autoSave:!0,color:!0,itemProp:!0,itemScope:!0,itemType:!0,itemID:!0,itemRef:!0,results:!0,security:!0,unselectable:0},G={accentHeight:!0,accumulate:!0,additive:!0,alignmentBaseline:!0,allowReorder:!0,alphabetic:!0,amplitude:!0,arabicForm:!0,ascent:!0,attributeName:!0,attributeType:!0,autoReverse:!0,azimuth:!0,baseFrequency:!0,baseProfile:!0,baselineShift:!0,bbox:!0,begin:!0,bias:!0,by:!0,calcMode:!0,capHeight:!0,clip:!0,clipPath:!0,clipRule:!0,clipPathUnits:!0,colorInterpolation:!0,colorInterpolationFilters:!0,colorProfile:!0,colorRendering:!0,contentScriptType:!0,contentStyleType:!0,cursor:!0,cx:!0,cy:!0,d:!0,decelerate:!0,descent:!0,diffuseConstant:!0,direction:!0,display:!0,divisor:!0,dominantBaseline:!0,dur:!0,dx:!0,dy:!0,edgeMode:!0,elevation:!0,enableBackground:!0,end:!0,exponent:!0,externalResourcesRequired:!0,fill:!0,fillOpacity:!0,fillRule:!0,filter:!0,filterRes:!0,filterUnits:!0,floodColor:!0,floodOpacity:!0,focusable:!0,fontFamily:!0,fontSize:!0,fontSizeAdjust:!0,fontStretch:!0,fontStyle:!0,fontVariant:!0,fontWeight:!0,format:!0,from:!0,fx:!0,fy:!0,g1:!0,g2:!0,glyphName:!0,glyphOrientationHorizontal:!0,glyphOrientationVertical:!0,glyphRef:!0,gradientTransform:!0,gradientUnits:!0,hanging:!0,horizAdvX:!0,horizOriginX:!0,ideographic:!0,imageRendering:!0,in:!0,in2:!0,intercept:!0,k:!0,k1:!0,k2:!0,k3:!0,k4:!0,kernelMatrix:!0,kernelUnitLength:!0,kerning:!0,keyPoints:!0,keySplines:!0,keyTimes:!0,lengthAdjust:!0,letterSpacing:!0,lightingColor:!0,limitingConeAngle:!0,local:!0,markerEnd:!0,markerMid:!0,markerStart:!0,markerHeight:!0,markerUnits:!0,markerWidth:!0,mask:!0,maskContentUnits:!0,maskUnits:!0,mathematical:!0,mode:!0,numOctaves:!0,offset:!0,opacity:!0,operator:!0,order:!0,orient:!0,orientation:!0,origin:!0,overflow:!0,overlinePosition:!0,overlineThickness:!0,paintOrder:!0,panose1:!0,pathLength:!0,patternContentUnits:!0,patternTransform:!0,patternUnits:!0,pointerEvents:!0,points:!0,pointsAtX:!0,pointsAtY:!0,pointsAtZ:!0,preserveAlpha:!0,preserveAspectRatio:!0,primitiveUnits:!0,r:!0,radius:!0,refX:!0,refY:!0,renderingIntent:!0,repeatCount:!0,repeatDur:!0,requiredExtensions:!0,requiredFeatures:!0,restart:!0,result:!0,rotate:!0,rx:!0,ry:!0,scale:!0,seed:!0,shapeRendering:!0,slope:!0,spacing:!0,specularConstant:!0,specularExponent:!0,speed:!0,spreadMethod:!0,startOffset:!0,stdDeviation:!0,stemh:!0,stemv:!0,stitchTiles:!0,stopColor:!0,stopOpacity:!0,strikethroughPosition:!0,strikethroughThickness:!0,string:!0,stroke:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,surfaceScale:!0,systemLanguage:!0,tableValues:!0,targetX:!0,targetY:!0,textAnchor:!0,textDecoration:!0,textRendering:!0,textLength:!0,to:!0,transform:!0,u1:!0,u2:!0,underlinePosition:!0,underlineThickness:!0,unicode:!0,unicodeBidi:!0,unicodeRange:!0,unitsPerEm:!0,vAlphabetic:!0,vHanging:!0,vIdeographic:!0,vMathematical:!0,values:!0,vectorEffect:!0,version:!0,vertAdvY:!0,vertOriginX:!0,vertOriginY:!0,viewBox:!0,viewTarget:!0,visibility:!0,widths:!0,wordSpacing:!0,writingMode:!0,x:!0,xHeight:!0,x1:!0,x2:!0,xChannelSelector:!0,xlinkActuate:!0,xlinkArcrole:!0,xlinkHref:!0,xlinkRole:!0,xlinkShow:!0,xlinkTitle:!0,xlinkType:!0,xmlBase:!0,xmlns:!0,xmlnsXlink:!0,xmlLang:!0,xmlSpace:!0,y:!0,y1:!0,y2:!0,yChannelSelector:!0,z:!0,zoomAndPan:!0},Y=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),Z={}.hasOwnProperty,J=function(e){return Z.call(X,e)||Z.call(G,e)||Y(e.toLowerCase())||Z.call(K,e)},Q=p,ee=Object.prototype.toString,te=function(e){var t=[],n=e;return{publish:function(e){n=e,t.forEach(function(e){return e(n)})},subscribe:function(e){return t.push(e),e(n),function(){t=t.filter(function(t){return t!==e})}}}},ne="__styled-components__",re=function(e){function t(){C(this,t);var e=w(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.getTheme=e.getTheme.bind(e),e}return A(t,e),b(t,[{key:"componentWillMount",value:function(){var e=this;if(this.context[ne]){var t=this.context[ne];this.unsubscribeToOuter=t(function(t){e.outerTheme=t})}this.broadcast=te(this.getTheme())}},{key:"getChildContext",value:function(){return x({},this.context,k({},ne,this.broadcast.subscribe))}},{key:"componentWillReceiveProps",value:function(e){this.props.theme!==e.theme&&this.broadcast.publish(this.getTheme(e.theme))}},{key:"componentWillUnmount",value:function(){this.context[ne]&&this.unsubscribeToOuter()}},{key:"getTheme",value:function(e){var t=e||this.props.theme;if(Q(t)){var n=t(this.outerTheme);if(!j(n))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return n}if(!j(t))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return x({},this.outerTheme,t)}},{key:"render",value:function(){return this.props.children?h.Children.only(this.props.children):null}}]),t}(t.Component);re.childContextTypes=k({},ne,t.PropTypes.func.isRequired),re.contextTypes=k({},ne,t.PropTypes.func);var oe=function(e){function t(){return C(this,t),w(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return A(t,e),t}(t.Component);oe.contextTypes=k({},ne,t.PropTypes.func);var ie=i(function(e,t){function n(e,t){for(var n=1540483477,a=t^e.length,s=e.length,u=0;s>=4;){var l=r(e,u);l=i(l,n),l^=l>>>24,l=i(l,n),a=i(a,n),a^=l,u+=4,s-=4}switch(s){case 3:a^=o(e,u),a^=e.charCodeAt(u+2)<<16,a=i(a,n);break;case 2:a^=o(e,u),a=i(a,n);break;case 1:a^=e.charCodeAt(u),a=i(a,n)}return a^=a>>>13,a=i(a,n),(a^=a>>>15)>>>0}function r(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function o(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function i(e,t){return e|=0,t|=0,(65535&e)*t+(((e>>>16)*t&65535)<<16)|0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n}),ae=function(e){return e&&e.__esModule?e.default:e}(ie),se=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ue=function(e){return e.replace(/\s|\\n/g,"")},le=function(e){var t,n;return n=t=function(t){function n(){var e,t,r,o;C(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=r=w(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(a))),r.state={},o=t,w(r,o)}return A(n,t),b(n,[{key:"componentWillMount",value:function(){var e=this;if(!this.context[ne])throw new Error("[withTheme] Please use ThemeProvider to be able to use withTheme");var t=this.context[ne];this.unsubscribe=t(function(t){e.setState({theme:t})})}},{key:"componentWillUnmount",value:function(){"function"==typeof this.unsubscribe&&this.unsubscribe()}},{key:"render",value:function(){var t=this.state.theme;return h.createElement(e,x({theme:t},this.props))}}]),n}(h.Component),t.contextTypes=k({},ne,h.PropTypes.func),n},ce=function(e,t){return function(){function n(e,t,r){C(this,n),this.rules=e,this.selector=t,this.prefix=r}return b(n,[{key:"generateAndInject",value:function(){$.injected||$.inject();var n=e(this.rules),r=t(n,this.selector,this.prefix);$.insert(r)}}]),n}()}(R,F),pe=function(e,t,n){var r={};return function(){function o(e,t){C(this,o),this.rules=e,this.componentId=t,this.insertedRule=void 0,$.injected||$.inject()}return b(o,[{key:"insertRule",value:function(e){this.insertedRule?this.insertedRule.appendRule(e):this.insertedRule=$.insert("."+this.componentId+" {}"+e)}},{key:"generateAndInjectStyles",value:function(o){var i=t(this.rules,o),a=ae(this.componentId+i.join(""));if(void 0===r[a]){var s=e(a);r[a]=s;var u=n(i,"."+s);this.insertRule(u)}return r[a]}}],[{key:"generateName",value:function(t){return e(ae(t))}}]),o}()}(L,R,F),he=function(e){return function t(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=function t(i){for(var a=arguments.length,s=Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];return n(r,o,e.apply(void 0,[i].concat(s)),t)};return i.withConfig=function(e){return t(n,r,x({},o,e))},i.attrs=function(e){return t(n,r,x({},o,{attrs:x({},o.attrs||{},e)}))},i}}(U),de=function(e,n){var r={},o=function(t){var n="string"!=typeof t?"sc":t.replace(/[[\].#*$><+~=|^:(),"'`]/g,"-").replace(/--+/g,"-"),o=(r[n]||0)+1;return r[n]=o,n+"-"+e.generateName(n+o)},i=function(e){function n(){var e,t,r,o;C(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=r=w(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(a))),r.attrs={},r.state={theme:null,generatedClassName:""},o=t,w(r,o)}return A(n,e),b(n,[{key:"buildExecutionContext",value:function(e,t){var n=this.constructor.attrs,r=x({},t,{theme:e});return void 0===n?r:(this.attrs=Object.keys(n).reduce(function(e,t){var o=n[t];return e[t]="function"==typeof o?o(r):o,e},{}),x({},r,this.attrs))}},{key:"generateAndInjectStyles",value:function(e,t){var n=this.constructor,r=n.componentStyle,o=n.warnTooManyClasses,i=this.buildExecutionContext(e,t),a=r.generateAndInjectStyles(i);return void 0!==o&&o(a),a}},{key:"componentWillMount",value:function(){var e=this;if(this.context[ne]){var t=this.context[ne];this.unsubscribe=t(function(t){var n=e.constructor.defaultProps,r=n&&e.props.theme===n.theme,o=e.props.theme&&!r?e.props.theme:t,i=e.generateAndInjectStyles(o,e.props);e.setState({theme:o,generatedClassName:i})})}else{var n=this.props.theme||{},r=this.generateAndInjectStyles(n,this.props);this.setState({theme:n,generatedClassName:r})}}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.setState(function(n){var r=t.constructor.defaultProps,o=r&&e.theme===r.theme,i=e.theme&&!o?e.theme:n.theme;return{theme:i,generatedClassName:t.generateAndInjectStyles(i,e)}})}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"render",value:function(){var e=this,n=this.props,r=n.children,o=n.innerRef,i=this.state.generatedClassName,a=this.constructor,s=a.styledComponentId,u=a.target,p=l(u),h=[this.props.className,s,this.attrs.className,i].filter(Boolean).join(" "),d=x({},this.attrs,{className:h});c(u)?d.innerRef=o:d.ref=o;var f=Object.keys(this.props).reduce(function(t,n){return"innerRef"===n||"className"===n||p&&!J(n)||(t[n]=e.props[n]),t},d);return t.createElement(u,f,r)}}]),n}(oe);return function t(r,a,s){var u=a.displayName,c=void 0===u?l(r)?"styled."+r:"Styled("+r.displayName+")":u,p=a.componentId,h=void 0===p?o(a.displayName):p,d=a.ParentComponent,f=void 0===d?i:d,g=a.rules,m=a.attrs,y=void 0,v=new e(void 0===g?s:g.concat(s),h),k=function(e){function o(){return C(this,o),w(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return A(o,e),b(o,null,[{key:"extendWith",value:function(e){var r=(a.displayName,a.componentId,S(a,["displayName","componentId"])),i=x({},r,{rules:s,ParentComponent:o});return n(t,e,i)}},{key:"extend",get:function(){return o.extendWith(r)}}]),o}(f);return k.displayName=c,k.styledComponentId=h,k.attrs=m,k.componentStyle=v,k.warnTooManyClasses=y,k.target=r,k}}(pe,he),fe=function(e,t,n){return function(r){for(var o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var s=n.apply(void 0,[r].concat(i)),u=ae(ue(JSON.stringify(s))),l=e(u);return new t(s,l,"@keyframes").generateAndInject(),l}}(L,ce,U),ge=function(e,t){return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];new e(t.apply(void 0,[n].concat(o))).generateAndInject()}}(ce,U),me=function(e,t){var n=function(n){return t(e,n)};return se.forEach(function(e){n[e]=n(e)}),n}(de,he);e.default=me,e.css=U,e.keyframes=fe,e.injectGlobal=ge,e.ThemeProvider=re,e.withTheme=le,e.styleSheet=$,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(e.styled=e.styled||{},e.React)}(this,function(e,t){"use strict";function n(e){return e.replace(d,"-$1").toLowerCase()}function r(e){return g(e).replace(m,"-ms-")}function o(e){return P(e)===!0&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return t={exports:{}},e(t,t.exports),t.exports}function a(e){return e[e.length-1]}function s(e){for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function u(){var e=document.createElement("style");return e.type="text/css",e.appendChild(document.createTextNode("")),(document.head||document.getElementsByTagName("head")[0]).appendChild(e),e}function l(e){return"string"==typeof e}function c(e){return"function"==typeof e&&"string"==typeof e.styledComponentId}function p(e){var t=ee.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}var h="default"in t?t.default:t,d=/([A-Z])/g,f=n,g=f,m=/^ms-/,y=r,v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),k=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},S=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},w=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},T=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},O=function(e){return null!=e&&"object"===(void 0===e?"undefined":v(e))&&!Array.isArray(e)},P=O,j=function(e){var t,n;return o(e)!==!1&&("function"==typeof(t=e.constructor)&&(n=t.prototype,o(n)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1))},E=function e(t,n){var r=Object.keys(t).map(function(n){return j(t[n])?e(t[n],n):y(n)+": "+t[n]+";"}).join(" ");return n?n+" {\n "+r+"\n}":r},R=function e(t,n){return t.reduce(function(t,r){return void 0===r||null===r||r===!1||""===r?t:Array.isArray(r)?[].concat(T(t),T(e(r,n))):r.hasOwnProperty("styledComponentId")?[].concat(T(t),["."+r.styledComponentId]):"function"==typeof r?n?t.concat.apply(t,T(e([r(n)],n))):t.concat(r):t.concat(j(r)?E(r):r.toString())},[])},M="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},D=i(function(e,t){!function(n){"object"===(void 0===t?"undefined":v(t))&&void 0!==e?e.exports=n(M):window.stylis=n(window)}(function(e){function t(e,p,h,d,f){e+="";var g,m,y,C,b="",k="",x=e.charCodeAt(0);91===x?(y=e.substring(1,e.length-1).split("="),g=(k=y[1]).charCodeAt(0),34!==g&&39!==g||(k=k.substring(1,k.length-1)),b="["+y[0]+'="'+k+'"]'):k=35===x||46===x||62===x?(b=e).substring(1):b=e,x=0,void 0==h||h===!0?(h=!0,C=k):(C="",h=!1);var A,S=null!=f,w=r.length;S===!0&&(A=(void 0===f?"undefined":v(f)).charCodeAt(0),111===A?n(f):102===A?r[w++]=f:S=!1),0!==w&&(f=1===w?r[0]:function(e,t,n,o,i,a){for(var s=t,u=0,l=r.length;u<l;u++)s=r[u](e,s,n,o,i,a)||s;if(s!==t)return s},S=!0);var T,O,P,j,E,R,M,D,F,_,I,L,N,U,W,z,B,H,q="",V="",$="",K=0,X=0,G=0,Y=0,Z=0,J=0,Q=0,ee=0,te=0,ne=0,re=0,oe=0,ie=0,ae=0;S===!0&&(R=f(0,p,ce,le,b,0),null!=R&&(p=R),z="");for(var se=0,ue=0,le=0,ce=1,pe=p.length,he="";se<pe;){if(K=p.charCodeAt(se),0===Q&&0===J&&0===oe&&(123===K||125===K||59===K||se===pe-1&&0!==q.length)){if(q+=p.charAt(se),S===!0&&125!==K&&null!=(R=123===K?f(1,q.substring(0,q.length-1).trim(),ce,le,b,he.length):f(2,q,ce,le,b,he.length))&&(q=123===K?R+" {":R),F=q.charCodeAt(0),32===F&&(F=(q=q.trim()).charCodeAt(0)),_=q.charCodeAt(1),I=q.charCodeAt(2),64===F){if(1===ne&&0!==$.length&&(ne=0,$=b+" {"+$+"}",S===!0&&null!=(R=f(4,$,ce,le,b,he.length))&&($=R),he+=$,$=""),59!==K)if(107===_)N=q.substring(1,11)+C+q.substring(11),q="@"+c+N,x=1;else if(109===_&&101===I||103===_)if(0!==ue){for(se++,le++,void 0===E&&(E=""),R="",O="",P=M.split(i),Y=1;se<pe&&(g=p.charCodeAt(se),123===g?Y++:125===g&&Y--,0!==Y);)O+=p.charAt(se++),le=13===g||10===g?(ce++,0):le+1;w=P.length;for(var de=0;de<w;de++)e=P[de],R+=t((de===w-1?e.substring(0,e.length-1):e).trim(),O,h,d,f);E+=q+R+"}",q="",1,x=4}else x=2,W=q,q="";else x=6;4!==x&&59!==K&&105!==_&&(107!==_&&109!==_&&103!==_&&(x=5),G=-1,X++)}else{if(123===K)if(ue++,1===ne&&0!==$.length&&(ne=0,$=b+" {"+$+"}",S===!0&&null!=(R=f(4,$,ce,le,b,he.length))&&($=R),he+=$,$=""),2===ue){se++,le++,O="";var fe=q.substring(0,q.length-1).split(i),ge=M.substring(0,M.length-1).split(i);for(Y=1;se<pe&&(g=p.charCodeAt(se),123===g?Y++:125===g&&Y--,0!==Y);)O+=p.charAt(se++),le=13===g||10===g?(ce++,0):le+1;w=ge.length;for(var me=0;me<w;me++){R=ge[me],D=R.indexOf(b),ge[me]="";for(var ye=0,ve=fe.length;ye<ve;ye++)e=D>0?":global(%)"+R.trim():R.replace(b,"&").trim(),L=fe[ye].trim(),e=L.indexOf(" &")>0?L.replace("&","").trim()+" "+e:null!==a.exec(L)?L:e+" "+L,ge[me]+=e.replace(/ +&/,"").trim()+(ye===ve-1?"":",")}void 0===U&&(U=""),U+="\n"+ge.join(",").replace(s," $1")+" {"+O+"}",Z=1,q="",ue--}else if(0===X||2===x){P=q.split(i),j="",M="",w=P.length;for(var me=0;me<w;me++)g=(e=P[me]).charCodeAt(0),32===g&&(g=(e=e.trim()).charCodeAt(0)),38===g?e=b+e.substring(1).replace(o,b):(e.indexOf("::place")!==-1&&(te=1),(D=e.indexOf(" &"))>0?e=e.replace(o,b).trim():58===g?(H=e.charCodeAt(1),d===!0&&104===H&&116===e.charCodeAt(4)?(H=e.charCodeAt(5),e=40===H?b+e.replace(/:host\((.*)\)/g,"$1").replace(o,b):45===H?e.replace(/:host-context\((.*)\)/g,"$1 "+b).replace(o,b):b+e.substring(5)):103!==H||d!==!0&&37!==(H=e.charCodeAt(8))?e=b+e:(ee=1,e=e.replace(a,"$1").replace(o,b).trim())):0===ee&&(e=b+" "+e)),S===!0&&null!=(R=f(1.5,me===w-1?e.substring(0,e.length-1).trim():e,ce,le,b,he.length))&&(e=me===w-1?R+" {":R),M+=(0!==me?",\f":"")+(1!==ee?e:":global(%)"+e),j+=0!==me?","+e:e,ee=0;q=j}else M=q;else if((125===K&&1===q.length)==!1){if(59!==K&&(q=(125===K?q.substring(0,q.length-1):q.trim())+";"),97===F&&110===_&&105===I){if(q=q.substring(0,q.length-1),T=q.indexOf(":")+1,j=q.substring(0,T),h===!0&&45!==q.charCodeAt(9)){var Ce=q.substring(T).trim().split(",");w=Ce.length;for(var me=0;me<w;me++){for(var be=Ce[me],ke=be.split(" "),ye=0,ve=ke.length;ye<ve;ye++){var xe=ke[ye].trim(),Ae=xe.charCodeAt(0),Se=xe.charCodeAt(2),we=xe.length,Te=xe.charCodeAt(we-1);!(Ae>64&&Ae<90||Ae>96&&Ae<122||45===Ae||95===Ae&&95!==xe.charCodeAt(1))||41===Te||0===we||105===Ae&&(102===Se&&101===Te&&8===we||105===Se&&108===Te&&7===we||104===Se&&116===Te&&7===we)||117===Ae&&115===Se&&116===Te&&5===we||108===Ae&&110===Se&&114===Te&&6===we||97===Ae&&116===Se&&101===Te&&(9===we||17===we)||110===Ae&&114===Se&&108===Te&&6===we||98===Ae&&99===Se&&115===Te&&9===we||102===Ae&&114===Se&&115===Te&&8===we||98===Ae&&116===Se&&104===Te&&4===we||110===Ae&&110===Se&&101===Te&&4===we||114===Ae&&110===Se&&103===Te&&7===we||112===Ae&&117===Se&&100===Te&&6===we||114===Ae&&118===Se&&100===Te&&8===we||115===Ae&&101===Se&&(116===Te&&10===we||100===Te&&8===we)||101===Ae&&115===Se&&(101===Te&&4===we||(11===we||7===we||8===we)&&45===xe.charCodeAt(4))||!isNaN(parseFloat(xe))||xe.indexOf("(")!==-1||(ke[ye]=C+xe)}j+=(0===me?"":",")+ke.join(" ").trim()}}else j+=(110!==q.charCodeAt(10)?"":C)+q.substring(T).trim().trim();q=c+j+";"+j+(125===K?";}":";")}else if(97===F&&112===_&&112===I)q=c+q+u+q+q;else if(100===F&&105===_&&115===I)(D=q.indexOf("flex"))!==-1&&(R=101===q.charCodeAt(D-2)?"inline-":"",q=q.indexOf(" !important")!==-1?" !important":"",q="display: "+c+R+"box"+q+";display: "+c+R+"flex"+q+";display: "+l+"flexbox"+q+";display: "+R+"flex"+q+";");else if(116===F&&114===_&&97===I)q=c+q+(102===q.charCodeAt(5)?l+q:"")+q;else if(104===F&&121===_&&112===I||117===F&&115===_&&101===I)q=c+q+u+q+l+q+q;else if(102===F&&108===_&&101===I)q=c+q+l+q+q;else if(111===F&&114===_&&100===I)q=c+q+l+"flex-"+q+q;else if(97===F&&108===_&&105===I&&45===q.charCodeAt(5))switch(q.charCodeAt(6)){case 105:R=q.replace("-items",""),q=c+q+c+"box-"+R+l+"flex-"+R+q;break;case 115:q=l+"flex-item-"+q.replace("-self","")+q;break;default:q=l+"flex-line-pack"+q.replace("align-content","")+q}else 106===F&&117===_&&115===I?(T=q.indexOf(":"),R=q.substring(T).replace("flex-",""),q=c+"box-pack"+R+c+q+l+"flex-pack"+R+q):99===F&&117===_&&114===I&&null!==/zoo|gra/.exec(q)?q=q.replace(/: +/g,": "+c)+q.replace(/: +/g,": "+u)+q:119===F&&105===_&&100===I&&(D=q.indexOf("-content"))!==-1&&(R=q.substring(D-3),q="width: "+c+R+"width: "+u+R+"width: "+R);59!==K&&(q=q.substring(0,q.length-1),125===K&&(q+="}"))}125===K&&(0!==ue&&ue--,0===ue&&1===Z&&(p=p.substring(0,se+1)+U+p.substring(se+1),pe+=U.length,U="",Z=0,G++),125!==F&&32===q.charCodeAt(q.length-2)&&(q=q.substring(0,q.length-1).trim()+"}")),0!==X?(125===K?G++:123===K&&0!==G&&G--,1!==re||123!==K&&0!==G||0===$.length||(re=0,q=b+" {"+$+"}"+q,$=""),0===G?(1===x&&(q="}@"+N+"}",N=""),x=0,G--,X--):1===x?N+=q:2===x&&0===ue&&(125!==K&&(0===re&&($=""),$+=q,q=""),re=1)):0===ue&&125!==K&&(ne=1,$=void 0===$?q:$+q,q="")}V+=q,125!==K||0!==x&&2!==x&&4!==x||(g=V.charCodeAt(V.length-2),4===x&&(x=0),void 0!==E&&0!==E.length&&(V=123===g?E:V+E,E="",g=V.charCodeAt(V.length-2)),123!==g&&(S===!0&&null!=(R=f(3,V,ce,le,b,he.length))&&(V=R),1===te&&(B=/::place/g,te=0,R="input-place",V=V.replace(B,"::"+c+R)+V.replace(B,"::"+u+"place")+V.replace(B,":"+l+R)+V),void 0!==W?(W+=V,125===W.charCodeAt(W.length-2)&&(he+=W,W=void 0)):he+=V),V=""),q=""}else if(13===K||10===K)1===ae?(oe=ae=0,q=q.substring(0,q.indexOf("//")).trim()):S===!0&&0===oe&&0!==(w=(z=z.trim()).length)&&47!==z.charCodeAt(0)&&(0!==q.length&&null!=(R=f(7,z,ce,le,b,he.length))&&(q=q.replace(new RegExp(z+"$"),R).trim()),z=""),le=0,ce++;else{if(9!==K)switch(m=p.charAt(se),S===!0&&0===oe&&(z+=m),q+=m,K){case 44:0===Q&&0===oe&&0===J&&(q+="\f");break;case 34:0===oe&&(Q=34===Q?0:39===Q?39:34);break;case 39:0===oe&&(Q=39===Q?0:34===Q?34:39);break;case 40:0===Q&&0===oe&&(J=1);break;case 41:0===Q&&0===oe&&(J=0);break;case 47:0===Q&&0===J&&(g=p.charCodeAt(se-1),0===ie&&47===g?oe=ae=1:42===g&&(oe=ie=0,q=q.substring(0,q.indexOf("/*")).trim()));break;case 42:0===Q&&0===J&&0===ae&&0===ie&&47===p.charCodeAt(se-1)&&(oe=ie=1)}le++}se++}return void 0!==$&&0!==$.length&&($=b+" {"+$+"}",S===!0&&null!=(R=f(4,$,ce,le,b,he.length))&&($=R),he+=$),S===!0&&null!=(R=f(6,he,ce,le,b,he.length))&&(he=R),he}function n(e){var n=r.length;if(null!=e)if(e.constructor===Array)for(var o=0,i=e.length;o<i;o++)r[n++]=e[o];else r[n]=e;return t}var r=[],o=/&/g,i=/,\f/g,a=/:global\(%?((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,s=/(?:&| ):global\(%?((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,u="-moz-",l="-ms-",c="-webkit-";return t.use=n,t.p=r,t.r={a:o,s:i,g:a,n:s},t})}),F=function(e,t,n){var r=e.join("").replace(/^\s*\/\/.*$/gm,""),o=t&&n?n+" "+t+" { "+r+" }":r;return D(n||!t?"":t,o,!1,!1)},_="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),I=_.length,L=function(e){var t="",n=void 0;for(n=e;n>I;n=Math.floor(n/_.length))t=_[n%I]+t;return _[n%I]+t},N=function(e,t){return t.reduce(function(t,n,r){return t.concat(n,e[r+1])},[e[0]])},U=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return R(N(e,n))},W="undefined"!=typeof document,z=!1,B=!1,H=function(){if(W){var e=document.createElement("div");return e.innerHTML="<!--[if lt IE 10]><i></i><![endif]-->",1===e.getElementsByTagName("i").length}}(),q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.speedy,r=void 0===n?!z&&!B:n,o=t.maxLength,i=void 0===o?W&&H?4e3:65e3:o;C(this,e),this.isSpeedy=r,this.sheet=void 0,this.tags=[],this.maxLength=i,this.ctr=0}return b(e,[{key:"inject",value:function(){var e=this;if(this.injected)throw new Error("already injected stylesheet!");W?(this.tags[0]=u(),this.sheet=s(this.tags[0])):this.sheet={cssRules:[],insertRule:function(t){var n={cssText:t};return e.sheet.cssRules.push(n),{serverRule:n,appendRule:function(e){return n.cssText+=e}}}},this.injected=!0}},{key:"speedy",value:function(e){if(0!==this.ctr)throw new Error("cannot change speedy mode after inserting any rule to sheet. Either call speedy("+e+") earlier in your app, or call flush() before speedy("+e+")");this.isSpeedy=!!e}},{key:"_insert",value:function(e){try{this.sheet.insertRule(e,this.sheet.cssRules.length)}catch(t){z&&console.warn("whoops, illegal rule inserted",e)}}},{key:"insert",value:function(e){var t=void 0;if(W)if(this.isSpeedy&&this.sheet.insertRule)this._insert(e);else{var n=document.createTextNode(e);a(this.tags).appendChild(n),t={textNode:n,appendRule:function(e){return n.appendData(e)}},this.isSpeedy||(this.sheet=s(a(this.tags)))}else t=this.sheet.insertRule(e);return this.ctr++,W&&this.ctr%this.maxLength==0&&(this.tags.push(u()),this.sheet=s(a(this.tags))),t}},{key:"flush",value:function(){W?(this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.sheet=null,this.ctr=0):this.sheet.cssRules=[],this.injected=!1}},{key:"rules",value:function(){if(!W)return this.sheet.cssRules;var e=[];return this.tags.forEach(function(t){return e.splice.apply(e,[e.length,0].concat(T(Array.from(s(t).cssRules))))}),e}}]),e}(),V=function(){function e(){C(this,e),this.styleSheet=new q({speedy:!1,maxLength:40})}return b(e,[{key:"inject",value:function(){return this.styleSheet.inject()}},{key:"insert",value:function(e){return this.styleSheet.insert(e)}},{key:"reset",value:function(){this.styleSheet.sheet&&this.styleSheet.flush()}},{key:"rules",value:function(){return this.styleSheet.rules()}},{key:"getCSS",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.min,n=void 0===t||t;return this.styleSheet.sheet?this.styleSheet.rules().map(function(e){return e.cssText}).join(n?"":"\n"):""}},{key:"injected",get:function(){return this.styleSheet.injected}}]),e}(),$=new V,K={children:!0,dangerouslySetInnerHTML:!0,key:!0,ref:!0,autoFocus:!0,defaultValue:!0,valueLink:!0,defaultChecked:!0,checkedLink:!0,innerHTML:!0,suppressContentEditableWarning:!0,onFocusIn:!0,onFocusOut:!0,className:!0,onCopy:!0,onCut:!0,onPaste:!0,onCompositionEnd:!0,onCompositionStart:!0,onCompositionUpdate:!0,onKeyDown:!0,onKeyPress:!0,onKeyUp:!0,onFocus:!0,onBlur:!0,onChange:!0,onInput:!0,onSubmit:!0,onClick:!0,onContextMenu:!0,onDoubleClick:!0,onDrag:!0,onDragEnd:!0,onDragEnter:!0,onDragExit:!0,onDragLeave:!0,onDragOver:!0,onDragStart:!0,onDrop:!0,onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOut:!0,onMouseOver:!0,onMouseUp:!0,onSelect:!0,onTouchCancel:!0,onTouchEnd:!0,onTouchMove:!0,onTouchStart:!0,onScroll:!0,onWheel:!0,onAbort:!0,onCanPlay:!0,onCanPlayThrough:!0,onDurationChange:!0,onEmptied:!0,onEncrypted:!0,onEnded:!0,onError:!0,onLoadedData:!0,onLoadedMetadata:!0,onLoadStart:!0,onPause:!0,onPlay:!0,onPlaying:!0,onProgress:!0,onRateChange:!0,onSeeked:!0,onSeeking:!0,onStalled:!0,onSuspend:!0,onTimeUpdate:!0,onVolumeChange:!0,onWaiting:!0,onLoad:!0,onAnimationStart:!0,onAnimationEnd:!0,onAnimationIteration:!0,onTransitionEnd:!0,onCopyCapture:!0,onCutCapture:!0,onPasteCapture:!0,onCompositionEndCapture:!0,onCompositionStartCapture:!0,onCompositionUpdateCapture:!0,onKeyDownCapture:!0,onKeyPressCapture:!0,onKeyUpCapture:!0,onFocusCapture:!0,onBlurCapture:!0,onChangeCapture:!0,onInputCapture:!0,onSubmitCapture:!0,onClickCapture:!0,onContextMenuCapture:!0,onDoubleClickCapture:!0,onDragCapture:!0,onDragEndCapture:!0,onDragEnterCapture:!0,onDragExitCapture:!0,onDragLeaveCapture:!0,onDragOverCapture:!0,onDragStartCapture:!0,onDropCapture:!0,onMouseDownCapture:!0,onMouseEnterCapture:!0,onMouseLeaveCapture:!0,onMouseMoveCapture:!0,onMouseOutCapture:!0,onMouseOverCapture:!0,onMouseUpCapture:!0,onSelectCapture:!0,onTouchCancelCapture:!0,onTouchEndCapture:!0,onTouchMoveCapture:!0,onTouchStartCapture:!0,onScrollCapture:!0,onWheelCapture:!0,onAbortCapture:!0,onCanPlayCapture:!0,onCanPlayThroughCapture:!0,onDurationChangeCapture:!0,onEmptiedCapture:!0,onEncryptedCapture:!0,onEndedCapture:!0,onErrorCapture:!0,onLoadedDataCapture:!0,onLoadedMetadataCapture:!0,onLoadStartCapture:!0,onPauseCapture:!0,onPlayCapture:!0,onPlayingCapture:!0,onProgressCapture:!0,onRateChangeCapture:!0,onSeekedCapture:!0,onSeekingCapture:!0,onStalledCapture:!0,onSuspendCapture:!0,onTimeUpdateCapture:!0,onVolumeChangeCapture:!0,onWaitingCapture:!0,onLoadCapture:!0,onAnimationStartCapture:!0,onAnimationEndCapture:!0,onAnimationIterationCapture:!0,onTransitionEndCapture:!0},X={accept:!0,acceptCharset:!0,accessKey:!0,action:!0,allowFullScreen:!0,allowTransparency:!0,alt:!0,as:!0,async:!0,autoComplete:!0,autoPlay:!0,capture:!0,cellPadding:!0,cellSpacing:!0,charSet:!0,challenge:!0,checked:!0,cite:!0,classID:!0,className:!0,cols:!0,colSpan:!0,content:!0,contentEditable:!0,contextMenu:!0,controls:!0,coords:!0,crossOrigin:!0,data:!0,dateTime:!0,default:!0,defer:!0,dir:!0,disabled:!0,download:!0,draggable:!0,encType:!0,form:!0,formAction:!0,formEncType:!0,formMethod:!0,formNoValidate:!0,formTarget:!0,frameBorder:!0,headers:!0,height:!0,hidden:!0,high:!0,href:!0,hrefLang:!0,htmlFor:!0,httpEquiv:!0,icon:!0,id:!0,inputMode:!0,integrity:!0,is:!0,keyParams:!0,keyType:!0,kind:!0,label:!0,lang:!0,list:!0,loop:!0,low:!0,manifest:!0,marginHeight:!0,marginWidth:!0,max:!0,maxLength:!0,media:!0,mediaGroup:!0,method:!0,min:!0,minLength:!0,multiple:!0,muted:!0,name:!0,nonce:!0,noValidate:!0,open:!0,optimum:!0,pattern:!0,placeholder:!0,playsInline:!0,poster:!0,preload:!0,profile:!0,radioGroup:!0,readOnly:!0,referrerPolicy:!0,rel:!0,required:!0,reversed:!0,role:!0,rows:!0,rowSpan:!0,sandbox:!0,scope:!0,scoped:!0,scrolling:!0,seamless:!0,selected:!0,shape:!0,size:!0,sizes:!0,span:!0,spellCheck:!0,src:!0,srcDoc:!0,srcLang:!0,srcSet:!0,start:!0,step:!0,style:!0,summary:!0,tabIndex:!0,target:!0,title:!0,type:!0,useMap:!0,value:!0,width:!0,wmode:!0,wrap:!0,about:!0,datatype:!0,inlist:!0,prefix:!0,property:!0,resource:!0,typeof:!0,vocab:!0,autoCapitalize:!0,autoCorrect:!0,autoSave:!0,color:!0,itemProp:!0,itemScope:!0,itemType:!0,itemID:!0,itemRef:!0,results:!0,security:!0,unselectable:0},G={accentHeight:!0,accumulate:!0,additive:!0,alignmentBaseline:!0,allowReorder:!0,alphabetic:!0,amplitude:!0,arabicForm:!0,ascent:!0,attributeName:!0,attributeType:!0,autoReverse:!0,azimuth:!0,baseFrequency:!0,baseProfile:!0,baselineShift:!0,bbox:!0,begin:!0,bias:!0,by:!0,calcMode:!0,capHeight:!0,clip:!0,clipPath:!0,clipRule:!0,clipPathUnits:!0,colorInterpolation:!0,colorInterpolationFilters:!0,colorProfile:!0,colorRendering:!0,contentScriptType:!0,contentStyleType:!0,cursor:!0,cx:!0,cy:!0,d:!0,decelerate:!0,descent:!0,diffuseConstant:!0,direction:!0,display:!0,divisor:!0,dominantBaseline:!0,dur:!0,dx:!0,dy:!0,edgeMode:!0,elevation:!0,enableBackground:!0,end:!0,exponent:!0,externalResourcesRequired:!0,fill:!0,fillOpacity:!0,fillRule:!0,filter:!0,filterRes:!0,filterUnits:!0,floodColor:!0,floodOpacity:!0,focusable:!0,fontFamily:!0,fontSize:!0,fontSizeAdjust:!0,fontStretch:!0,fontStyle:!0,fontVariant:!0,fontWeight:!0,format:!0,from:!0,fx:!0,fy:!0,g1:!0,g2:!0,glyphName:!0,glyphOrientationHorizontal:!0,glyphOrientationVertical:!0,glyphRef:!0,gradientTransform:!0,gradientUnits:!0,hanging:!0,horizAdvX:!0,horizOriginX:!0,ideographic:!0,imageRendering:!0,in:!0,in2:!0,intercept:!0,k:!0,k1:!0,k2:!0,k3:!0,k4:!0,kernelMatrix:!0,kernelUnitLength:!0,kerning:!0,keyPoints:!0,keySplines:!0,keyTimes:!0,lengthAdjust:!0,letterSpacing:!0,lightingColor:!0,limitingConeAngle:!0,local:!0,markerEnd:!0,markerMid:!0,markerStart:!0,markerHeight:!0,markerUnits:!0,markerWidth:!0,mask:!0,maskContentUnits:!0,maskUnits:!0,mathematical:!0,mode:!0,numOctaves:!0,offset:!0,opacity:!0,operator:!0,order:!0,orient:!0,orientation:!0,origin:!0,overflow:!0,overlinePosition:!0,overlineThickness:!0,paintOrder:!0,panose1:!0,pathLength:!0,patternContentUnits:!0,patternTransform:!0,patternUnits:!0,pointerEvents:!0,points:!0,pointsAtX:!0,pointsAtY:!0,pointsAtZ:!0,preserveAlpha:!0,preserveAspectRatio:!0,primitiveUnits:!0,r:!0,radius:!0,refX:!0,refY:!0,renderingIntent:!0,repeatCount:!0,repeatDur:!0,requiredExtensions:!0,requiredFeatures:!0,restart:!0,result:!0,rotate:!0,rx:!0,ry:!0,scale:!0,seed:!0,shapeRendering:!0,slope:!0,spacing:!0,specularConstant:!0,specularExponent:!0,speed:!0,spreadMethod:!0,startOffset:!0,stdDeviation:!0,stemh:!0,stemv:!0,stitchTiles:!0,stopColor:!0,stopOpacity:!0,strikethroughPosition:!0,strikethroughThickness:!0,string:!0,stroke:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,surfaceScale:!0,systemLanguage:!0,tableValues:!0,targetX:!0,targetY:!0,textAnchor:!0,textDecoration:!0,textRendering:!0,textLength:!0,to:!0,transform:!0,u1:!0,u2:!0,underlinePosition:!0,underlineThickness:!0,unicode:!0,unicodeBidi:!0,unicodeRange:!0,unitsPerEm:!0,vAlphabetic:!0,vHanging:!0,vIdeographic:!0,vMathematical:!0,values:!0,vectorEffect:!0,version:!0,vertAdvY:!0,vertOriginX:!0,vertOriginY:!0,viewBox:!0,viewTarget:!0,visibility:!0,widths:!0,wordSpacing:!0,writingMode:!0,x:!0,xHeight:!0,x1:!0,x2:!0,xChannelSelector:!0,xlinkActuate:!0,xlinkArcrole:!0,xlinkHref:!0,xlinkRole:!0,xlinkShow:!0,xlinkTitle:!0,xlinkType:!0,xmlBase:!0,xmlns:!0,xmlnsXlink:!0,xmlLang:!0,xmlSpace:!0,y:!0,y1:!0,y2:!0,yChannelSelector:!0,z:!0,zoomAndPan:!0},Y=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),Z={}.hasOwnProperty,J=function(e){return Z.call(X,e)||Z.call(G,e)||Y(e.toLowerCase())||Z.call(K,e)},Q=p,ee=Object.prototype.toString,te=function(e){var t=[],n=e;return{publish:function(e){n=e,t.forEach(function(e){return e(n)})},subscribe:function(e){return t.push(e),e(n),function(){t=t.filter(function(t){return t!==e})}}}},ne="__styled-components__",re=function(e){function t(){C(this,t);var e=w(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.getTheme=e.getTheme.bind(e),e}return A(t,e),b(t,[{key:"componentWillMount",value:function(){var e=this;if(this.context[ne]){var t=this.context[ne];this.unsubscribeToOuter=t(function(t){e.outerTheme=t})}this.broadcast=te(this.getTheme())}},{key:"getChildContext",value:function(){return x({},this.context,k({},ne,this.broadcast.subscribe))}},{key:"componentWillReceiveProps",value:function(e){this.props.theme!==e.theme&&this.broadcast.publish(this.getTheme(e.theme))}},{key:"componentWillUnmount",value:function(){this.context[ne]&&this.unsubscribeToOuter()}},{key:"getTheme",value:function(e){var t=e||this.props.theme;if(Q(t)){var n=t(this.outerTheme);if(!j(n))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return n}if(!j(t))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return x({},this.outerTheme,t)}},{key:"render",value:function(){return this.props.children?h.Children.only(this.props.children):null}}]),t}(t.Component);re.childContextTypes=k({},ne,t.PropTypes.func.isRequired),re.contextTypes=k({},ne,t.PropTypes.func);var oe=function(e){function t(){return C(this,t),w(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return A(t,e),t}(t.Component);oe.contextTypes=k({},ne,t.PropTypes.func);var ie=i(function(e,t){function n(e,t){for(var n=1540483477,a=t^e.length,s=e.length,u=0;s>=4;){var l=r(e,u);l=i(l,n),l^=l>>>24,l=i(l,n),a=i(a,n),a^=l,u+=4,s-=4}switch(s){case 3:a^=o(e,u),a^=e.charCodeAt(u+2)<<16,a=i(a,n);break;case 2:a^=o(e,u),a=i(a,n);break;case 1:a^=e.charCodeAt(u),a=i(a,n)}return a^=a>>>13,a=i(a,n),(a^=a>>>15)>>>0}function r(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function o(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function i(e,t){return e|=0,t|=0,(65535&e)*t+(((e>>>16)*t&65535)<<16)|0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n}),ae=function(e){return e&&e.__esModule?e.default:e}(ie),se=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ue=function(e){return e.replace(/\s|\\n/g,"")},le=function(e){var t,n;return n=t=function(t){function n(){var e,t,r,o;C(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=r=w(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(a))),r.state={},o=t,w(r,o)}return A(n,t),b(n,[{key:"componentWillMount",value:function(){var e=this;if(!this.context[ne])throw new Error("[withTheme] Please use ThemeProvider to be able to use withTheme");var t=this.context[ne];this.unsubscribe=t(function(t){e.setState({theme:t})})}},{key:"componentWillUnmount",value:function(){"function"==typeof this.unsubscribe&&this.unsubscribe()}},{key:"render",value:function(){var t=this.state.theme;return h.createElement(e,x({theme:t},this.props))}}]),n}(h.Component),t.contextTypes=k({},ne,h.PropTypes.func),n},ce=function(e,t){return function(){function e(t,n,r){C(this,e),this.rules=t,this.selector=n,this.prefix=r}return b(e,[{key:"generateAndInject",value:function(){$.injected||$.inject();var e=t(this.rules,this.selector,this.prefix);$.insert(e)}}]),e}()}(0,F),pe=function(e,t,n){var r={};return function(){function o(e,t){C(this,o),this.rules=e,this.componentId=t,this.insertedRule=void 0,$.injected||$.inject()}return b(o,[{key:"insertRule",value:function(e){this.insertedRule?this.insertedRule.appendRule(e):this.insertedRule=$.insert("."+this.componentId+" {}"+e)}},{key:"generateAndInjectStyles",value:function(o){var i=t(this.rules,o),a=ae(this.componentId+i.join(""));if(void 0===r[a]){var s=e(a);r[a]=s;var u=n(i,"."+s);this.insertRule(u)}return r[a]}}],[{key:"generateName",value:function(t){return e(ae(t))}}]),o}()}(L,R,F),he=function(e){return function t(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=function t(i){for(var a=arguments.length,s=Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];return n(r,o,e.apply(void 0,[i].concat(s)),t)};return i.withConfig=function(e){return t(n,r,x({},o,e))},i.attrs=function(e){return t(n,r,x({},o,{attrs:x({},o.attrs||{},e)}))},i}}(U),de=function(e,n){var r={},o=function(t){var n="string"!=typeof t?"sc":t.replace(/[[\].#*$><+~=|^:(),"'`]/g,"-").replace(/--+/g,"-"),o=(r[n]||0)+1;return r[n]=o,n+"-"+e.generateName(n+o)},i=function(e){function n(){var e,t,r,o;C(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=r=w(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(a))),r.attrs={},r.state={theme:null,generatedClassName:""},o=t,w(r,o)}return A(n,e),b(n,[{key:"buildExecutionContext",value:function(e,t){var n=this.constructor.attrs,r=x({},t,{theme:e});return void 0===n?r:(this.attrs=Object.keys(n).reduce(function(e,t){var o=n[t];return e[t]="function"==typeof o?o(r):o,e},{}),x({},r,this.attrs))}},{key:"generateAndInjectStyles",value:function(e,t){var n=this.constructor,r=n.componentStyle,o=n.warnTooManyClasses,i=this.buildExecutionContext(e,t),a=r.generateAndInjectStyles(i);return void 0!==o&&o(a),a}},{key:"componentWillMount",value:function(){var e=this;if(this.context[ne]){var t=this.context[ne];this.unsubscribe=t(function(t){var n=e.constructor.defaultProps,r=n&&e.props.theme===n.theme,o=e.props.theme&&!r?e.props.theme:t,i=e.generateAndInjectStyles(o,e.props);e.setState({theme:o,generatedClassName:i})})}else{var n=this.props.theme||{},r=this.generateAndInjectStyles(n,this.props);this.setState({theme:n,generatedClassName:r})}}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.setState(function(n){var r=t.constructor.defaultProps,o=r&&e.theme===r.theme,i=e.theme&&!o?e.theme:n.theme;return{theme:i,generatedClassName:t.generateAndInjectStyles(i,e)}})}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"render",value:function(){var e=this,n=this.props,r=n.children,o=n.innerRef,i=this.state.generatedClassName,a=this.constructor,s=a.styledComponentId,u=a.target,p=l(u),h=[this.props.className,s,this.attrs.className,i].filter(Boolean).join(" "),d=x({},this.attrs,{className:h});c(u)?d.innerRef=o:d.ref=o;var f=Object.keys(this.props).reduce(function(t,n){return"innerRef"===n||"className"===n||p&&!J(n)||(t[n]=e.props[n]),t},d);return t.createElement(u,f,r)}}]),n}(oe);return function t(r,a,s){var u=a.displayName,c=void 0===u?l(r)?"styled."+r:"Styled("+r.displayName+")":u,p=a.componentId,h=void 0===p?o(a.displayName):p,d=a.ParentComponent,f=void 0===d?i:d,g=a.rules,m=a.attrs,y=void 0,v=new e(void 0===g?s:g.concat(s),h),k=function(e){function o(){return C(this,o),w(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return A(o,e),b(o,null,[{key:"extendWith",value:function(e){var r=(a.displayName,a.componentId,S(a,["displayName","componentId"])),i=x({},r,{rules:s,ParentComponent:o});return n(t,e,i)}},{key:"extend",get:function(){return o.extendWith(r)}}]),o}(f);return k.displayName=c,k.styledComponentId=h,k.attrs=m,k.componentStyle=v,k.warnTooManyClasses=y,k.target=r,k}}(pe,he),fe=function(e,t,n){return function(r){for(var o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var s=n.apply(void 0,[r].concat(i)),u=ae(ue(JSON.stringify(s))),l=e(u);return new t(s,l,"@keyframes").generateAndInject(),l}}(L,ce,U),ge=function(e,t){return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];new e(t.apply(void 0,[n].concat(o))).generateAndInject()}}(ce,U),me=function(e,t){var n=function(n){return t(e,n)};return se.forEach(function(e){n[e]=n(e)}),n}(de,he);e.default=me,e.css=U,e.keyframes=fe,e.injectGlobal=ge,e.ThemeProvider=re,e.withTheme=le,e.styleSheet=$,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -37,4 +37,3 @@ 'use strict';

if (!_StyleSheet2.default.injected) _StyleSheet2.default.inject();
var flatRules = flatten(this.rules);
var css = stringifyRules(flatRules, this.selector, this.prefix);
var css = stringifyRules(this.rules, this.selector, this.prefix);

@@ -41,0 +40,0 @@ _StyleSheet2.default.insert(css);

@@ -13,3 +13,3 @@ 'use strict';

// NOTE: This is to not prefix keyframes with the animation name
(index > 0 || !prefix) && selector ? selector : '') + partial.toString();
(index > 0 || !prefix) && selector ? selector : '') + (partial && Array.isArray(partial) ? partial.join('') : partial.toString());
}, '');

@@ -16,0 +16,0 @@ };

{
"name": "styled-components",
"version": "2.0.0-13",
"version": "2.0.0-14",
"description": "Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -19,4 +19,3 @@ // @flow

if (!styleSheet.injected) styleSheet.inject()
const flatRules = flatten(this.rules)
const css = stringifyRules(flatRules, this.selector, this.prefix)
const css = stringifyRules(this.rules, this.selector, this.prefix)

@@ -23,0 +22,0 @@ styleSheet.insert(css)

@@ -14,3 +14,7 @@ // @flow

((index > 0 || !prefix) && selector ? selector : '') +
partial.toString()
(
(partial && Array.isArray(partial)) ?
partial.join('') :
partial.toString()
)
), '')

@@ -17,0 +21,0 @@ )

Sorry, the diff of this file is not supported yet

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

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