Comparing version 2.1.0 to 2.2.0
@@ -255,3 +255,3 @@ 'use strict'; | ||
function remove(o) { | ||
function remove() { | ||
// todo | ||
@@ -287,6 +287,7 @@ // remove rule | ||
// id should exist | ||
var cssType = type === '_' ? '' : type[0] === ' ' ? type : ':' + type; | ||
var isFullSelector = type && type[0] === '$'; | ||
var cssType = type === '_' ? '' : type[0] === '$' ? type.slice(1) : ':' + type; | ||
var suffix = '[data-css-' + id + ']' + cssType; | ||
if (canSimulate && type !== '_' && cssType[0] === ':') { | ||
if (canSimulate && type !== '_' && !isFullSelector && cssType[0] === ':') { | ||
suffix += ', [data-css-' + id + '][data-simulate-' + simple(type) + ']'; | ||
@@ -299,3 +300,2 @@ } | ||
function cssrule(id, type, style) { | ||
return selector(id, type) + '{ ' + (0, _CSSPropertyOperations.createMarkupForStyles)(prefixes(style)) + ' } '; | ||
@@ -538,3 +538,3 @@ } | ||
function select(selector, style) { | ||
return add(' ' + selector, style); | ||
return add('$' + selector, style); // signalling ahead that this is a plain selector | ||
} | ||
@@ -541,0 +541,0 @@ |
{ | ||
"name": "glamor", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "inline css for component systems", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1,1 +0,1 @@ | ||
!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Glamor=n()}}(function(){return function n(e,t,r){function o(u,a){if(!t[u]){if(!e[u]){var c="function"==typeof require&&require;if(!a&&c)return c(u,!0);if(i)return i(u,!0);var l=new Error("Cannot find module '"+u+"'");throw l.code="MODULE_NOT_FOUND",l}var s=t[u]={exports:{}};e[u][0].call(s.exports,function(n){var t=e[u][1][n];return o(t?t:n)},s,s.exports,n,e,t,r)}return t[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(n,e,t){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},{}],2:[function(n,e,t){"use strict";function r(n){return n.replace(o,function(n,e){return e.toUpperCase()})}var o=/-(.)/g;e.exports=r},{}],3:[function(n,e,t){"use strict";function r(n){return o(n.replace(i,"ms-"))}var o=n("./camelize"),i=/^-ms-/;e.exports=r},{"./camelize":2}],4:[function(n,e,t){"use strict";function r(n){return function(){return n}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(n){return n},e.exports=o},{}],5:[function(n,e,t){"use strict";function r(n){return n.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;e.exports=r},{}],6:[function(n,e,t){"use strict";function r(n){return o(n).replace(i,"-ms-")}var o=n("./hyphenate"),i=/^ms-/;e.exports=r},{"./hyphenate":5}],7:[function(n,e,t){"use strict";function r(n,e,t,r,o,i,u,a){if(!n){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[t,r,o,i,u,a],s=0;c=new Error(e.replace(/%s/g,function(){return l[s++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}e.exports=r},{}],8:[function(n,e,t){"use strict";function r(n){var e={};return function(t){return e.hasOwnProperty(t)||(e[t]=n.call(this,t)),e[t]}}e.exports=r},{}],9:[function(n,e,t){"use strict";var r,o=n("./ExecutionEnvironment");o.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),e.exports=r||{}},{"./ExecutionEnvironment":1}],10:[function(n,e,t){"use strict";var r,o=n("./performance");r=o.now?function(){return o.now()}:function(){return Date.now()},e.exports=r},{"./performance":9}],11:[function(n,e,t){"use strict";var r=n("./emptyFunction"),o=r;e.exports=o},{"./emptyFunction":4}],12:[function(n,e,t){"use strict";function r(n,e){return n+e.charAt(0).toUpperCase()+e.substring(1)}var o={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},i=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(n){i.forEach(function(e){o[r(e,n)]=o[n]})});var u={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},a={isUnitlessNumber:o,shorthandPropertyExpansions:u};e.exports=a},{}],13:[function(n,e,t){"use strict";var r=n("./CSSProperty"),o=n("fbjs/lib/ExecutionEnvironment"),i=(n("./ReactInstrumentation"),n("fbjs/lib/camelizeStyleName"),n("./dangerousStyleValue")),u=n("fbjs/lib/hyphenateStyleName"),a=n("fbjs/lib/memoizeStringOnly"),c=(n("fbjs/lib/warning"),a(function(n){return u(n)})),l=!1,s="cssFloat";if(o.canUseDOM){var f=document.createElement("div").style;try{f.font=""}catch(n){l=!0}void 0===document.documentElement.style.cssFloat&&(s="styleFloat")}var d={createMarkupForStyles:function(n,e){var t="";for(var r in n)if(n.hasOwnProperty(r)){var o=n[r];null!=o&&(t+=c(r)+":",t+=i(r,o,e)+";")}return t||null},setValueForStyles:function(n,e,t){var o=n.style;for(var u in e)if(e.hasOwnProperty(u)){var a=i(u,e[u],t);if("float"!==u&&"cssFloat"!==u||(u=s),a)o[u]=a;else{var c=l&&r.shorthandPropertyExpansions[u];if(c)for(var f in c)o[f]="";else o[u]=""}}}};e.exports=d},{"./CSSProperty":12,"./ReactInstrumentation":18,"./dangerousStyleValue":20,"fbjs/lib/ExecutionEnvironment":1,"fbjs/lib/camelizeStyleName":3,"fbjs/lib/hyphenateStyleName":6,"fbjs/lib/memoizeStringOnly":8,"fbjs/lib/warning":11}],14:[function(n,e,t){"use strict";function r(n,e){l[n]||(l[n]={element:null,parentID:null,ownerID:null,text:null,childIDs:[],displayName:"Unknown",isMounted:!1,updateCount:0}),e(l[n])}function o(n){var e=l[n];if(e){var t=e.childIDs;delete l[n],t.forEach(o)}}function i(n,e,t){return"\n in "+n+(e?" (at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+")":t?" (created by "+t+")":"")}function u(n){var e,t=d.getDisplayName(n),r=d.getElement(n),o=d.getOwnerID(n);return o&&(e=d.getDisplayName(o)),i(t,r&&r._source,e)}var a=n("./reactProdInvariant"),c=n("./ReactCurrentOwner"),l=(n("fbjs/lib/invariant"),n("fbjs/lib/warning"),{}),s={},f={},d={onSetDisplayName:function(n,e){r(n,function(n){return n.displayName=e})},onSetChildren:function(n,e){r(n,function(t){t.childIDs=e,e.forEach(function(e){var t=l[e];t?void 0:a("68"),null==t.displayName?a("69"):void 0,null==t.childIDs&&null==t.text?a("70"):void 0,t.isMounted?void 0:a("71"),null==t.parentID&&(t.parentID=n),t.parentID!==n?a("72",e,t.parentID,n):void 0})})},onSetOwner:function(n,e){r(n,function(n){return n.ownerID=e})},onSetParent:function(n,e){r(n,function(n){return n.parentID=e})},onSetText:function(n,e){r(n,function(n){return n.text=e})},onBeforeMountComponent:function(n,e){r(n,function(n){return n.element=e})},onBeforeUpdateComponent:function(n,e){r(n,function(n){return n.element=e})},onMountComponent:function(n){r(n,function(n){return n.isMounted=!0})},onMountRootComponent:function(n){f[n]=!0},onUpdateComponent:function(n){r(n,function(n){return n.updateCount++})},onUnmountComponent:function(n){r(n,function(n){return n.isMounted=!1}),s[n]=!0,delete f[n]},purgeUnmountedComponents:function(){if(!d._preventPurging){for(var n in s)o(n);s={}}},isMounted:function(n){var e=l[n];return!!e&&e.isMounted},getCurrentStackAddendum:function(n){var e="";if(n){var t=n.type,r="function"==typeof t?t.displayName||t.name:t,o=n._owner;e+=i(r||"Unknown",n._source,o&&o.getName())}var u=c.current,a=u&&u._debugID;return e+=d.getStackAddendumByID(a)},getStackAddendumByID:function(n){for(var e="";n;)e+=u(n),n=d.getParentID(n);return e},getChildIDs:function(n){var e=l[n];return e?e.childIDs:[]},getDisplayName:function(n){var e=l[n];return e?e.displayName:"Unknown"},getElement:function(n){var e=l[n];return e?e.element:null},getOwnerID:function(n){var e=l[n];return e?e.ownerID:null},getParentID:function(n){var e=l[n];return e?e.parentID:null},getSource:function(n){var e=l[n],t=e?e.element:null,r=null!=t?t._source:null;return r},getText:function(n){var e=l[n];return e?e.text:null},getUpdateCount:function(n){var e=l[n];return e?e.updateCount:0},getRootIDs:function(){return Object.keys(f)},getRegisteredIDs:function(){return Object.keys(l)}};e.exports=d},{"./ReactCurrentOwner":15,"./reactProdInvariant":21,"fbjs/lib/invariant":7,"fbjs/lib/warning":11}],15:[function(n,e,t){"use strict";var r={current:null};e.exports=r},{}],16:[function(n,e,t){"use strict";function r(n,e,t,r,o,i){v.forEach(function(u){try{u[n]&&u[n](e,t,r,o,i)}catch(e){g[n]=!0}})}function o(){h.purgeUnmountedComponents(),p.clearHistory()}function i(n){return n.reduce(function(n,e){var t=h.getOwnerID(e),r=h.getParentID(e);return n[e]={displayName:h.getDisplayName(e),text:h.getText(e),updateCount:h.getUpdateCount(e),childIDs:h.getChildIDs(e),ownerID:t||h.getOwnerID(r),parentID:r},n},{})}function u(){var n=O,e=C||[],t=p.getHistory();if(0===x)return O=null,C=null,void o();if(e.length||t.length){var r=h.getRegisteredIDs();w.push({duration:y()-n,measurements:e||[],operations:t||[],treeSnapshot:i(r)})}o(),O=y(),C=[]}function a(n){}function c(n,e){0!==x&&(D=y(),E=0,k=n,P=e)}function l(n,e){0!==x&&(b&&C.push({timerType:e,instanceID:n,duration:y()-D-E}),D=null,E=null,k=null,P=null)}function s(){var n={startTime:D,nestedFlushStartTime:y(),debugID:k,timerType:P};S.push(n),D=null,E=null,k=null,P=null}function f(){var n=S.pop(),e=n.startTime,t=n.nestedFlushStartTime,r=n.debugID,o=n.timerType,i=y()-t;D=e,E+=i,k=r,P=o}var d=n("./ReactInvalidSetStateWarningDevTool"),p=n("./ReactHostOperationHistoryDevtool"),h=n("./ReactComponentTreeDevtool"),m=n("fbjs/lib/ExecutionEnvironment"),y=n("fbjs/lib/performanceNow"),v=(n("fbjs/lib/warning"),[]),g={},b=!1,w=[],S=[],x=0,C=null,O=null,k=null,D=null,E=null,P=null,I={addDevtool:function(n){v.push(n)},removeDevtool:function(n){for(var e=0;e<v.length;e++)v[e]===n&&(v.splice(e,1),e--)},isProfiling:function(){return b},beginProfiling:function(){b||(b=!0,w.length=0,u(),I.addDevtool(p))},endProfiling:function(){b&&(b=!1,u(),I.removeDevtool(p))},getFlushHistory:function(){return w},onBeginFlush:function(){x++,u(),s(),r("onBeginFlush")},onEndFlush:function(){u(),x--,f(),r("onEndFlush")},onBeginLifeCycleTimer:function(n,e){a(n),r("onBeginLifeCycleTimer",n,e),c(n,e)},onEndLifeCycleTimer:function(n,e){a(n),l(n,e),r("onEndLifeCycleTimer",n,e)},onBeginReconcilerTimer:function(n,e){a(n),r("onBeginReconcilerTimer",n,e)},onEndReconcilerTimer:function(n,e){a(n),r("onEndReconcilerTimer",n,e)},onError:function(n){null!=k&&l(k,P),r("onError",n)},onBeginProcessingChildContext:function(){r("onBeginProcessingChildContext")},onEndProcessingChildContext:function(){r("onEndProcessingChildContext")},onHostOperation:function(n,e,t){a(n),r("onHostOperation",n,e,t)},onSetState:function(){r("onSetState")},onSetDisplayName:function(n,e){a(n),r("onSetDisplayName",n,e)},onSetChildren:function(n,e){a(n),e.forEach(a),r("onSetChildren",n,e)},onSetOwner:function(n,e){a(n),r("onSetOwner",n,e)},onSetParent:function(n,e){a(n),r("onSetParent",n,e)},onSetText:function(n,e){a(n),r("onSetText",n,e)},onMountRootComponent:function(n){a(n),r("onMountRootComponent",n)},onBeforeMountComponent:function(n,e){a(n),r("onBeforeMountComponent",n,e)},onMountComponent:function(n){a(n),r("onMountComponent",n)},onBeforeUpdateComponent:function(n,e){a(n),r("onBeforeUpdateComponent",n,e)},onUpdateComponent:function(n){a(n),r("onUpdateComponent",n)},onUnmountComponent:function(n){a(n),r("onUnmountComponent",n)},onTestEvent:function(){r("onTestEvent")}};I.addDevtool(d),I.addDevtool(h);var R=m.canUseDOM&&window.location.href||"";/[?&]react_perf\b/.test(R)&&I.beginProfiling(),e.exports=I},{"./ReactComponentTreeDevtool":14,"./ReactHostOperationHistoryDevtool":17,"./ReactInvalidSetStateWarningDevTool":19,"fbjs/lib/ExecutionEnvironment":1,"fbjs/lib/performanceNow":10,"fbjs/lib/warning":11}],17:[function(n,e,t){"use strict";var r=[],o={onHostOperation:function(n,e,t){r.push({instanceID:n,type:e,payload:t})},clearHistory:function(){o._preventClearing||(r=[])},getHistory:function(){return r}};e.exports=o},{}],18:[function(n,e,t){"use strict";var r=null;e.exports={debugTool:r}},{"./ReactDebugTool":16}],19:[function(n,e,t){"use strict";var r,o,i=(n("fbjs/lib/warning"),{onBeginProcessingChildContext:function(){r=!0},onEndProcessingChildContext:function(){r=!1},onSetState:function(){o()}});e.exports=i},{"fbjs/lib/warning":11}],20:[function(n,e,t){"use strict";function r(n,e,t){var r=null==e||"boolean"==typeof e||""===e;if(r)return"";var o=isNaN(e);if(o||0===e||i.hasOwnProperty(n)&&i[n])return""+e;if("string"==typeof e){e=e.trim()}return e+"px"}var o=n("./CSSProperty"),i=(n("fbjs/lib/warning"),o.isUnitlessNumber);e.exports=r},{"./CSSProperty":12,"fbjs/lib/warning":11}],21:[function(n,e,t){"use strict";function r(n){for(var e=arguments.length-1,t="Minified React error #"+n+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+n,r=0;r<e;r++)t+="&args[]="+encodeURIComponent(arguments[r+1]);t+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(t);throw o.name="Invariant Violation",o.framesToPop=1,o}e.exports=r},{}],22:[function(n,e,t){"use strict";function r(n){return n.hasOwnProperty("animation")&&o(n,{WebkitAnimation:n.animation}),n.hasOwnProperty("transform")&&o(n,{WebkitTransform:n.transform}),n.hasOwnProperty("userSelect")&&o(n,{WebkitUserSelect:n.userSelect,MozUserSelect:n.userSelect,msUserSelect:n.userSelect}),n.hasOwnProperty("transition")&&o(n,{WebkitTransition:n.transition,MozTransition:n.transition,msTransition:n.transition}),n.hasOwnProperty("boxShadow")&&o(n,{WebkitBoxShadow:n.boxShadow,MozBoxShadow:n.boxShadow,msBoxSelect:n.boxShadow}),n.hasOwnProperty("fontSmoothing")&&o(n,{WebkitFontSmoothing:n.fontSmoothing,MozOsxFontSmoothing:"antialiased"===n.fontSmoothing?"grayscale":void 0}),n.hasOwnProperty("flexDirection")&&o(n,{WebkitFlexDirection:n.flexDirection}),n.hasOwnProperty("flexWrap")&&o(n,{WebkitFlexWrap:n.flexWrap}),n.hasOwnProperty("alignItems")&&o(n,{WebkitAlignItems:n.alignItems}),n.hasOwnProperty("flexGrow")&&o(n,{WebkitFlexGrow:n.flexGrow}),n.hasOwnProperty("flexShrink")&&o(n,{WebkitFlexShrink:n.flexShrink}),n.hasOwnProperty("order")&&o(n,{WebkitOrder:n.order}),n.hasOwnProperty("justifyContent")&&o(n,{WebkitJustifyContent:n.justifyContent}),n.hasOwnProperty("flex")&&o(n,{WebkitFlex:n.flex}),"flex"===n.display&&(n.display=n.display+";display:-webkit-flex;display:-ms-flexbox"),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=Object.assign},{}],23:[function(n,e,t){"use strict";function r(n,e){for(var t=1540483477,r=24,a=e^n.length,c=n.length,l=0;c>=4;){var s=o(n,l);s=u(s,t),s^=s>>>r,s=u(s,t),a=u(a,t),a^=s,l+=4,c-=4}switch(c){case 3:a^=i(n,l),a^=n.charCodeAt(l+2)<<16,a=u(a,t);break;case 2:a^=i(n,l),a=u(a,t);break;case 1:a^=n.charCodeAt(l),a=u(a,t)}return a^=a>>>13,a=u(a,t),a^=a>>>15,a>>>0}function o(n,e){return n.charCodeAt(e++)+(n.charCodeAt(e++)<<8)+(n.charCodeAt(e++)<<16)+(n.charCodeAt(e)<<24)}function i(n,e){return n.charCodeAt(e++)+(n.charCodeAt(e++)<<8)}function u(n,e){n=0|n,e=0|e;var t=65535&n,r=n>>>16,o=t*e+((r*e&65535)<<16)|0;return o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},{}],24:[function(n,e,t){"use strict";function r(n){return n&&n.__esModule?n:{default:n}}function o(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function i(n){if(Array.isArray(n)){for(var e=0,t=Array(n.length);e<n.length;e++)t[e]=n[e];return t}return Array.from(n)}function u(n){return n.toLowerCase().replace(/[^a-z0-9]/g,"")}function a(){var n=arguments.length<=0||void 0===arguments[0]||arguments[0];G=!!n}function c(){if(!G)return V||(console.warn("can't simulate without once calling simulations(true)"),V=!0),H||q||J||(console.warn("don't use simulation outside dev"),J=!0),{};for(var n=arguments.length,e=Array(n),t=0;t<n;t++)e[t]=arguments[t];return e.reduce(function(n,e){return n["data-simulate-"+u(e)]="",n},{})}function l(n){Z=!!n}function s(){z?(X=document.getElementById("_css_"),X||(X=document.createElement("style"),X.id=X.id||"_css_",X.appendChild(document.createTextNode("")),(document.head||document.getElementsByTagName("head")[0]).appendChild(X)),Y=[].concat(i(document.styleSheets)).filter(function(n){return n.ownerNode===X})[0]):Y={cssRules:[],deleteRule:function(n){Y.cssRules=[].concat(i(Y.cssRules.slice(0,n)),i(Y.cssRules.slice(n+1)))},insertRule:function(n,e){Y.cssRules=[].concat(i(Y.cssRules.slice(0,e)),[{cssText:n}],i(Y.cssRules.slice(e)))}}}function f(){var n=arguments.length<=0||void 0===arguments[0]||arguments[0];return n!==K&&0!==Object.keys(Q).length?void console.error("cannot change speedy setting after appending styles in a different mode"):void(K=!!n)}function d(n){var e=arguments.length<=1||void 0===arguments[1]?Y.cssRules.length:arguments[1];try{Y.insertRule(n,e)}catch(e){H&&console.warn("whoops, illegal rule inserted",n)}}function p(n,e){X&&X.styleSheet?X.styleSheet.cssText+=n:z?K&&Y.insertRule?d(n,e):(X.appendChild(document.createTextNode(n)),K||(Y=[].concat(i(document.styleSheets)).filter(function(n){return n.ownerNode===X})[0])):Y.insertRule(n,Y.cssRules.length)}function h(){Q={},z?(X&&X.parentNode.removeChild(X),X=null,s()):Y.cssRules=[]}function m(n){throw new Error("this is not tested or anything yet! beware!")}function y(n,e){return(0,U.default)(n+Object.keys(e).reduce(function(n,t){return n+t+e[t]},"")).toString(36)}function v(n){return(0,B.default)(n)}function g(n,e){var t="_"===e?"":" "===e[0]?e:":"+e,r="[data-css-"+n+"]"+t;return G&&"_"!==e&&":"===t[0]&&(r+=", [data-css-"+n+"][data-simulate-"+u(e)+"]"),r}function b(n,e,t){return g(n,e)+"{ "+(0,L.createMarkupForStyles)(v(t))+" } "}function w(n){if(1!==Object.keys(n).length)throw new Error("not a rule");var e=/data\-css\-([a-zA-Z0-9]+)/,t=e.exec(Object.keys(n)[0]);if(!t)throw new Error("not a rule");return t[1]}function S(n){try{var e=w(n);return e&&Q[e]}catch(n){return!1}}function x(){var n=arguments.length<=0||void 0===arguments[0]?"_":arguments[0],e=arguments[1],t=arguments[2],r=t||y(n,e),u="",a=-1;return Q[r]&&!t||(t&&(a=$[t],a>=0&&(K||!z?Y.deleteRule(a):(X.removeChild(X.childNodes[a+1]),Y=[].concat(i(document.styleSheets)).filter(function(n){return n.ownerNode===X})[0]))),t?(p(b(r,n,e),a),$[t]=a||Y.cssRules.length-1):p(b(r,n,e)),Q[r]={type:n,style:e,id:r}),Z&&(u=e.label||("_"!==n?":"+n:"")),o({},"data-css-"+r,u)}function C(n){return x(void 0,n)}function O(n,e){return x(" "+n,e)}function k(n,e,t){if("string"!=typeof n)throw new Error("whoops, did you forget a key?");return t||"object"!==("undefined"==typeof e?"undefined":_(e))||(t=e,e=void 0),x(e,t,n)}function D(){for(var n=[],e=void 0,t={},r=arguments.length,i=Array(r),u=0;u<r;u++)i[u]=arguments[u];i.forEach(function(r,o){if(0===o&&"string"==typeof r)return void(e=r);if(S(r)){var i=w(r);if(Q[i].bag){var u=function(){var e=Q[w(r)],o=e.bag,i=e.label;return Object.keys(o).forEach(function(n){t[n]=W({},t[n]||{},o[n])}),Z&&n.push("["+i+"]"),{v:void 0}}();if("object"===("undefined"==typeof u?"undefined":_(u)))return u.v}if(Q[i].expr)throw new Error("cannot merge a media rule");var a=Q[i],c=a.type,l=a.style;return t[c]=W({},t[c]||{},l),void(Z&&n.push((l.label||"`"+i)+(""+("_"!==c?":"+c:""))))}t._=W({},t._||{},r),Z&&n.push("{…}")});var a=(0,U.default)(e+JSON.stringify(t)).toString(36),c=Z?""+(e?e+"= ":"")+(n.length?n.join(" + "):""):"";return Q[a]||(Q[a]={bag:t,id:a,label:c},Object.keys(t).forEach(function(n){p(b(a,n,t[n]))})),o({},"data-css-"+a,c)}function E(n){for(var e=arguments.length,t=Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];if(t.length>1)return E(n,D.apply(void 0,t));var i=t[0];if(!S(i)){var u=i,a=y(n,u),c=Z?"*mq "+(u.label||""):"";return Q[a]||(p("@media "+n+" { "+b(a,"_",u)+" }"),Q[a]={expr:n,style:u,id:a}),o({},"data-css-"+a,c)}var l=w(i);if(!Q[l].bag){if(Q[l].expr)throw new Error("cannot apply @media onto another media rule");var s=(0,U.default)(n+l).toString(36),f=Z?"*mq "+(Q[l].style.label||"`"+l):"";return Q[s]||(p("@media "+n+" { "+b(s,Q[l].type,Q[l].style)+" }"),Q[s]={expr:n,rule:i,id:s}),o({},"data-css-"+s,f)}var d=function(){var e=Q[l].bag,t=(0,U.default)(n+l).toString(36),r=Z?"*mq ["+Q[l].label+"]":"";if(!Q[t]){var u=Object.keys(e).map(function(n){return b(t,n,e[n])});p("@media "+n+" { "+u.join("\n")+" }"),Q[t]={expr:n,rule:i,id:t}}return{v:o({},"data-css-"+t,r)}}();return"object"===("undefined"==typeof d?"undefined":_(d))?d.v:void 0}function P(){Object.keys(Q).forEach(function(n){var e=Q[n].expr;e&&Z&&window.matchMedia&&!function(){var t=document.querySelectorAll("[data-css-"+n+"]"),r=window.matchMedia(e).matches?"✓":"✕",o=/^(✓|✕|\*)mq/;[].concat(i(t)).forEach(function(e){return e.setAttribute("data-css-"+n,e.getAttribute("data-css-"+n).replace(o,r+"mq"))})}()})}function I(){var n=arguments.length<=0||void 0===arguments[0]||arguments[0],e=arguments.length<=1||void 0===arguments[1]?2e3:arguments[1];if(n){if(nn)return void console.warn("already tracking labels, call trackMediaQueryLabels(false) to stop");nn=setInterval(function(){return P()},e)}else clearInterval(nn),nn=null}function R(n){var e=(0,U.default)(JSON.stringify(n)).toString(36);return Q[e]||(Q[e]={id:e,family:n.fontFamily,font:n},p("@font-face { "+(0,L.createMarkupForStyles)(n)+"}")),n.fontFamily}function T(n,e){"string"!=typeof n&&(e=n,n="animate");var t=(0,U.default)(n+JSON.stringify(e)).toString(36);return Q[t]||!function(){Q[t]={id:t,name:n,kfs:e};var r=Object.keys(e).map(function(n){return n+" { "+(0,L.createMarkupForStyles)(v(e[n]))+"}"}).join("\n");["-webkit-","-moz-","-o-",""].forEach(function(e){return p("@"+e+"keyframes "+(n+"_"+t)+" { "+r+"}")})}(),n+"_"+t}function j(n){var e=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],t=n();if(void 0===t)throw new Error("did you forget to return from renderToString?");var r=[].concat(i(Y.cssRules)),o=r.map(function(n){return n.cssText}).join("\n");if(e){var u=function(){for(var n={html:t,cache:{},css:""},e=/data\-css\-([a-zA-Z0-9]+)=/gm,r=void 0,o=[];null!==(r=e.exec(t));)o.push(r[1]);return o.forEach(function(e){n.cache[e]=Q[e],n.css+=Y.cssRules.map(function(n){return n.cssText}).filter(function(n){return new RegExp("\\[data-css-"+e+"\\]").test(n)}).join("\n")+"\n"}),{v:n}}();if("object"===("undefined"==typeof u?"undefined":_(u)))return u.v}return{html:t,cache:Q,css:o}}function N(n){return j(n,!0)}function M(n){Q=W({},Q,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.multi=t.placeholder=t.backdrop=t.selection=t.firstLine=t.firstLetter=t.before=t.after=t.nthOfType=t.nthLastOfType=t.nthLastChild=t.nthChild=t.not=t.lang=t.dir=t.visited=t.valid=t.target=t.scope=t.root=t.right=t.required=t.readWrite=t.readOnly=t.outOfRange=t.optional=t.onlyOfType=t.onlyChild=t.link=t.left=t.lastOfType=t.lastChild=t.invalid=t.inRange=t.indeterminate=t.hover=t.focus=t.fullscreen=t.firstOfType=t.firstChild=t.first=t._default=t.enabled=t.empty=t.disabled=t.checked=t.any=t.active=void 0;var W=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};t.simulations=a,t.simulate=c,t.cssLabels=l,t.speedy=f,t.flush=h,t.remove=m,t.add=x,t.style=C,t.select=O,t.keyed=k,t.merge=D,t.media=E,t.trackMediaQueryLabels=I,t.fontFace=R,t.keyframes=T,t.renderStatic=j,t.renderStaticOptimized=N,t.rehydrate=M;var F=n("./hash"),U=r(F),A=n("./autoprefix"),B=r(A),L=n("react/lib/CSSPropertyOperations"),z="undefined"!=typeof document,H=function(n){return"development"===n||!n}("production"),q=!1,G=H,V=!1,J=!1,Z=H,Q={},X=void 0,Y=void 0,$={};s();var K=!H&&!q,nn=(t.active=function(n){return x("active",n)},t.any=function(n){return x("any",n)},t.checked=function(n){return x("checked",n)},t.disabled=function(n){return x("disabled",n)},t.empty=function(n){return x("empty",n)},t.enabled=function(n){return x("enabled",n)},t._default=function(n){return x("default",n)},t.first=function(n){return x("first",n)},t.firstChild=function(n){return x("first-child",n)},t.firstOfType=function(n){return x("first-of-type",n)},t.fullscreen=function(n){return x("fullscreen",n)},t.focus=function(n){return x("focus",n)},t.hover=function(n){return x("hover",n)},t.indeterminate=function(n){return x("indeterminate",n)},t.inRange=function(n){return x("in-range",n)},t.invalid=function(n){return x("invalid",n)},t.lastChild=function(n){return x("last-child",n)},t.lastOfType=function(n){return x("last-of-type",n)},t.left=function(n){return x("left",n)},t.link=function(n){return x("link",n)},t.onlyChild=function(n){return x("only-child",n)},t.onlyOfType=function(n){return x("only-of-type",n)},t.optional=function(n){return x("optional",n)},t.outOfRange=function(n){return x("out-of-range",n)},t.readOnly=function(n){return x("read-only",n)},t.readWrite=function(n){return x("read-write",n)},t.required=function(n){return x("required",n)},t.right=function(n){return x("right",n)},t.root=function(n){return x("root",n)},t.scope=function(n){return x("scope",n)},t.target=function(n){return x("target",n)},t.valid=function(n){return x("valid",n)},t.visited=function(n){return x("visited",n)},t.dir=function(n,e){return x("dir("+n+")",e)},t.lang=function(n,e){return x("lang("+n+")",e)},t.not=function n(e,t){return n("not("+e+")",t)},t.nthChild=function(n,e){return x("nth-child("+n+")",e)},t.nthLastChild=function(n,e){return x("nth-last-child("+n+")",e)},t.nthLastOfType=function(n,e){return x("nth-last-of-type("+n+")",e)},t.nthOfType=function(n,e){return x("nth-of-type("+n+")",e)},t.after=function(n){return x(":after",n)},t.before=function(n){return x(":before",n)},t.firstLetter=function(n){return x(":first-letter",n)},t.firstLine=function(n){return x(":first-line",n)},t.selection=function(n){return x(":selection",n)},t.backdrop=function(n){return x(":backdrop",n)},t.placeholder=function(n){return x(":placeholder",n)},t.multi=x,void 0);H&&z&&I(!0)},{"./autoprefix":22,"./hash":23,"react/lib/CSSPropertyOperations":13}]},{},[24])(24)}); | ||
!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Glamor=n()}}(function(){return function n(e,t,r){function o(u,a){if(!t[u]){if(!e[u]){var c="function"==typeof require&&require;if(!a&&c)return c(u,!0);if(i)return i(u,!0);var l=new Error("Cannot find module '"+u+"'");throw l.code="MODULE_NOT_FOUND",l}var s=t[u]={exports:{}};e[u][0].call(s.exports,function(n){var t=e[u][1][n];return o(t?t:n)},s,s.exports,n,e,t,r)}return t[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(n,e,t){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},{}],2:[function(n,e,t){"use strict";function r(n){return n.replace(o,function(n,e){return e.toUpperCase()})}var o=/-(.)/g;e.exports=r},{}],3:[function(n,e,t){"use strict";function r(n){return o(n.replace(i,"ms-"))}var o=n("./camelize"),i=/^-ms-/;e.exports=r},{"./camelize":2}],4:[function(n,e,t){"use strict";function r(n){return function(){return n}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(n){return n},e.exports=o},{}],5:[function(n,e,t){"use strict";function r(n){return n.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;e.exports=r},{}],6:[function(n,e,t){"use strict";function r(n){return o(n).replace(i,"-ms-")}var o=n("./hyphenate"),i=/^ms-/;e.exports=r},{"./hyphenate":5}],7:[function(n,e,t){"use strict";function r(n,e,t,r,o,i,u,a){if(!n){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[t,r,o,i,u,a],s=0;c=new Error(e.replace(/%s/g,function(){return l[s++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}e.exports=r},{}],8:[function(n,e,t){"use strict";function r(n){var e={};return function(t){return e.hasOwnProperty(t)||(e[t]=n.call(this,t)),e[t]}}e.exports=r},{}],9:[function(n,e,t){"use strict";var r,o=n("./ExecutionEnvironment");o.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),e.exports=r||{}},{"./ExecutionEnvironment":1}],10:[function(n,e,t){"use strict";var r,o=n("./performance");r=o.now?function(){return o.now()}:function(){return Date.now()},e.exports=r},{"./performance":9}],11:[function(n,e,t){"use strict";var r=n("./emptyFunction"),o=r;e.exports=o},{"./emptyFunction":4}],12:[function(n,e,t){"use strict";function r(n,e){return n+e.charAt(0).toUpperCase()+e.substring(1)}var o={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},i=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(n){i.forEach(function(e){o[r(e,n)]=o[n]})});var u={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},a={isUnitlessNumber:o,shorthandPropertyExpansions:u};e.exports=a},{}],13:[function(n,e,t){"use strict";var r=n("./CSSProperty"),o=n("fbjs/lib/ExecutionEnvironment"),i=(n("./ReactInstrumentation"),n("fbjs/lib/camelizeStyleName"),n("./dangerousStyleValue")),u=n("fbjs/lib/hyphenateStyleName"),a=n("fbjs/lib/memoizeStringOnly"),c=(n("fbjs/lib/warning"),a(function(n){return u(n)})),l=!1,s="cssFloat";if(o.canUseDOM){var f=document.createElement("div").style;try{f.font=""}catch(n){l=!0}void 0===document.documentElement.style.cssFloat&&(s="styleFloat")}var d={createMarkupForStyles:function(n,e){var t="";for(var r in n)if(n.hasOwnProperty(r)){var o=n[r];null!=o&&(t+=c(r)+":",t+=i(r,o,e)+";")}return t||null},setValueForStyles:function(n,e,t){var o=n.style;for(var u in e)if(e.hasOwnProperty(u)){var a=i(u,e[u],t);if("float"!==u&&"cssFloat"!==u||(u=s),a)o[u]=a;else{var c=l&&r.shorthandPropertyExpansions[u];if(c)for(var f in c)o[f]="";else o[u]=""}}}};e.exports=d},{"./CSSProperty":12,"./ReactInstrumentation":18,"./dangerousStyleValue":20,"fbjs/lib/ExecutionEnvironment":1,"fbjs/lib/camelizeStyleName":3,"fbjs/lib/hyphenateStyleName":6,"fbjs/lib/memoizeStringOnly":8,"fbjs/lib/warning":11}],14:[function(n,e,t){"use strict";function r(n,e){l[n]||(l[n]={element:null,parentID:null,ownerID:null,text:null,childIDs:[],displayName:"Unknown",isMounted:!1,updateCount:0}),e(l[n])}function o(n){var e=l[n];if(e){var t=e.childIDs;delete l[n],t.forEach(o)}}function i(n,e,t){return"\n in "+n+(e?" (at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+")":t?" (created by "+t+")":"")}function u(n){var e,t=d.getDisplayName(n),r=d.getElement(n),o=d.getOwnerID(n);return o&&(e=d.getDisplayName(o)),i(t,r&&r._source,e)}var a=n("./reactProdInvariant"),c=n("./ReactCurrentOwner"),l=(n("fbjs/lib/invariant"),n("fbjs/lib/warning"),{}),s={},f={},d={onSetDisplayName:function(n,e){r(n,function(n){return n.displayName=e})},onSetChildren:function(n,e){r(n,function(t){t.childIDs=e,e.forEach(function(e){var t=l[e];t?void 0:a("68"),null==t.displayName?a("69"):void 0,null==t.childIDs&&null==t.text?a("70"):void 0,t.isMounted?void 0:a("71"),null==t.parentID&&(t.parentID=n),t.parentID!==n?a("72",e,t.parentID,n):void 0})})},onSetOwner:function(n,e){r(n,function(n){return n.ownerID=e})},onSetParent:function(n,e){r(n,function(n){return n.parentID=e})},onSetText:function(n,e){r(n,function(n){return n.text=e})},onBeforeMountComponent:function(n,e){r(n,function(n){return n.element=e})},onBeforeUpdateComponent:function(n,e){r(n,function(n){return n.element=e})},onMountComponent:function(n){r(n,function(n){return n.isMounted=!0})},onMountRootComponent:function(n){f[n]=!0},onUpdateComponent:function(n){r(n,function(n){return n.updateCount++})},onUnmountComponent:function(n){r(n,function(n){return n.isMounted=!1}),s[n]=!0,delete f[n]},purgeUnmountedComponents:function(){if(!d._preventPurging){for(var n in s)o(n);s={}}},isMounted:function(n){var e=l[n];return!!e&&e.isMounted},getCurrentStackAddendum:function(n){var e="";if(n){var t=n.type,r="function"==typeof t?t.displayName||t.name:t,o=n._owner;e+=i(r||"Unknown",n._source,o&&o.getName())}var u=c.current,a=u&&u._debugID;return e+=d.getStackAddendumByID(a)},getStackAddendumByID:function(n){for(var e="";n;)e+=u(n),n=d.getParentID(n);return e},getChildIDs:function(n){var e=l[n];return e?e.childIDs:[]},getDisplayName:function(n){var e=l[n];return e?e.displayName:"Unknown"},getElement:function(n){var e=l[n];return e?e.element:null},getOwnerID:function(n){var e=l[n];return e?e.ownerID:null},getParentID:function(n){var e=l[n];return e?e.parentID:null},getSource:function(n){var e=l[n],t=e?e.element:null,r=null!=t?t._source:null;return r},getText:function(n){var e=l[n];return e?e.text:null},getUpdateCount:function(n){var e=l[n];return e?e.updateCount:0},getRootIDs:function(){return Object.keys(f)},getRegisteredIDs:function(){return Object.keys(l)}};e.exports=d},{"./ReactCurrentOwner":15,"./reactProdInvariant":21,"fbjs/lib/invariant":7,"fbjs/lib/warning":11}],15:[function(n,e,t){"use strict";var r={current:null};e.exports=r},{}],16:[function(n,e,t){"use strict";function r(n,e,t,r,o,i){v.forEach(function(u){try{u[n]&&u[n](e,t,r,o,i)}catch(e){g[n]=!0}})}function o(){h.purgeUnmountedComponents(),p.clearHistory()}function i(n){return n.reduce(function(n,e){var t=h.getOwnerID(e),r=h.getParentID(e);return n[e]={displayName:h.getDisplayName(e),text:h.getText(e),updateCount:h.getUpdateCount(e),childIDs:h.getChildIDs(e),ownerID:t||h.getOwnerID(r),parentID:r},n},{})}function u(){var n=O,e=C||[],t=p.getHistory();if(0===x)return O=null,C=null,void o();if(e.length||t.length){var r=h.getRegisteredIDs();w.push({duration:y()-n,measurements:e||[],operations:t||[],treeSnapshot:i(r)})}o(),O=y(),C=[]}function a(n){}function c(n,e){0!==x&&(D=y(),E=0,k=n,P=e)}function l(n,e){0!==x&&(b&&C.push({timerType:e,instanceID:n,duration:y()-D-E}),D=null,E=null,k=null,P=null)}function s(){var n={startTime:D,nestedFlushStartTime:y(),debugID:k,timerType:P};S.push(n),D=null,E=null,k=null,P=null}function f(){var n=S.pop(),e=n.startTime,t=n.nestedFlushStartTime,r=n.debugID,o=n.timerType,i=y()-t;D=e,E+=i,k=r,P=o}var d=n("./ReactInvalidSetStateWarningDevTool"),p=n("./ReactHostOperationHistoryDevtool"),h=n("./ReactComponentTreeDevtool"),m=n("fbjs/lib/ExecutionEnvironment"),y=n("fbjs/lib/performanceNow"),v=(n("fbjs/lib/warning"),[]),g={},b=!1,w=[],S=[],x=0,C=null,O=null,k=null,D=null,E=null,P=null,I={addDevtool:function(n){v.push(n)},removeDevtool:function(n){for(var e=0;e<v.length;e++)v[e]===n&&(v.splice(e,1),e--)},isProfiling:function(){return b},beginProfiling:function(){b||(b=!0,w.length=0,u(),I.addDevtool(p))},endProfiling:function(){b&&(b=!1,u(),I.removeDevtool(p))},getFlushHistory:function(){return w},onBeginFlush:function(){x++,u(),s(),r("onBeginFlush")},onEndFlush:function(){u(),x--,f(),r("onEndFlush")},onBeginLifeCycleTimer:function(n,e){a(n),r("onBeginLifeCycleTimer",n,e),c(n,e)},onEndLifeCycleTimer:function(n,e){a(n),l(n,e),r("onEndLifeCycleTimer",n,e)},onBeginReconcilerTimer:function(n,e){a(n),r("onBeginReconcilerTimer",n,e)},onEndReconcilerTimer:function(n,e){a(n),r("onEndReconcilerTimer",n,e)},onError:function(n){null!=k&&l(k,P),r("onError",n)},onBeginProcessingChildContext:function(){r("onBeginProcessingChildContext")},onEndProcessingChildContext:function(){r("onEndProcessingChildContext")},onHostOperation:function(n,e,t){a(n),r("onHostOperation",n,e,t)},onSetState:function(){r("onSetState")},onSetDisplayName:function(n,e){a(n),r("onSetDisplayName",n,e)},onSetChildren:function(n,e){a(n),e.forEach(a),r("onSetChildren",n,e)},onSetOwner:function(n,e){a(n),r("onSetOwner",n,e)},onSetParent:function(n,e){a(n),r("onSetParent",n,e)},onSetText:function(n,e){a(n),r("onSetText",n,e)},onMountRootComponent:function(n){a(n),r("onMountRootComponent",n)},onBeforeMountComponent:function(n,e){a(n),r("onBeforeMountComponent",n,e)},onMountComponent:function(n){a(n),r("onMountComponent",n)},onBeforeUpdateComponent:function(n,e){a(n),r("onBeforeUpdateComponent",n,e)},onUpdateComponent:function(n){a(n),r("onUpdateComponent",n)},onUnmountComponent:function(n){a(n),r("onUnmountComponent",n)},onTestEvent:function(){r("onTestEvent")}};I.addDevtool(d),I.addDevtool(h);var R=m.canUseDOM&&window.location.href||"";/[?&]react_perf\b/.test(R)&&I.beginProfiling(),e.exports=I},{"./ReactComponentTreeDevtool":14,"./ReactHostOperationHistoryDevtool":17,"./ReactInvalidSetStateWarningDevTool":19,"fbjs/lib/ExecutionEnvironment":1,"fbjs/lib/performanceNow":10,"fbjs/lib/warning":11}],17:[function(n,e,t){"use strict";var r=[],o={onHostOperation:function(n,e,t){r.push({instanceID:n,type:e,payload:t})},clearHistory:function(){o._preventClearing||(r=[])},getHistory:function(){return r}};e.exports=o},{}],18:[function(n,e,t){"use strict";var r=null;e.exports={debugTool:r}},{"./ReactDebugTool":16}],19:[function(n,e,t){"use strict";var r,o,i=(n("fbjs/lib/warning"),{onBeginProcessingChildContext:function(){r=!0},onEndProcessingChildContext:function(){r=!1},onSetState:function(){o()}});e.exports=i},{"fbjs/lib/warning":11}],20:[function(n,e,t){"use strict";function r(n,e,t){var r=null==e||"boolean"==typeof e||""===e;if(r)return"";var o=isNaN(e);if(o||0===e||i.hasOwnProperty(n)&&i[n])return""+e;if("string"==typeof e){e=e.trim()}return e+"px"}var o=n("./CSSProperty"),i=(n("fbjs/lib/warning"),o.isUnitlessNumber);e.exports=r},{"./CSSProperty":12,"fbjs/lib/warning":11}],21:[function(n,e,t){"use strict";function r(n){for(var e=arguments.length-1,t="Minified React error #"+n+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+n,r=0;r<e;r++)t+="&args[]="+encodeURIComponent(arguments[r+1]);t+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(t);throw o.name="Invariant Violation",o.framesToPop=1,o}e.exports=r},{}],22:[function(n,e,t){"use strict";function r(n){return n.hasOwnProperty("animation")&&o(n,{WebkitAnimation:n.animation}),n.hasOwnProperty("transform")&&o(n,{WebkitTransform:n.transform}),n.hasOwnProperty("userSelect")&&o(n,{WebkitUserSelect:n.userSelect,MozUserSelect:n.userSelect,msUserSelect:n.userSelect}),n.hasOwnProperty("transition")&&o(n,{WebkitTransition:n.transition,MozTransition:n.transition,msTransition:n.transition}),n.hasOwnProperty("boxShadow")&&o(n,{WebkitBoxShadow:n.boxShadow,MozBoxShadow:n.boxShadow,msBoxSelect:n.boxShadow}),n.hasOwnProperty("fontSmoothing")&&o(n,{WebkitFontSmoothing:n.fontSmoothing,MozOsxFontSmoothing:"antialiased"===n.fontSmoothing?"grayscale":void 0}),n.hasOwnProperty("flexDirection")&&o(n,{WebkitFlexDirection:n.flexDirection}),n.hasOwnProperty("flexWrap")&&o(n,{WebkitFlexWrap:n.flexWrap}),n.hasOwnProperty("alignItems")&&o(n,{WebkitAlignItems:n.alignItems}),n.hasOwnProperty("flexGrow")&&o(n,{WebkitFlexGrow:n.flexGrow}),n.hasOwnProperty("flexShrink")&&o(n,{WebkitFlexShrink:n.flexShrink}),n.hasOwnProperty("order")&&o(n,{WebkitOrder:n.order}),n.hasOwnProperty("justifyContent")&&o(n,{WebkitJustifyContent:n.justifyContent}),n.hasOwnProperty("flex")&&o(n,{WebkitFlex:n.flex}),"flex"===n.display&&(n.display=n.display+";display:-webkit-flex;display:-ms-flexbox"),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=Object.assign},{}],23:[function(n,e,t){"use strict";function r(n,e){for(var t=1540483477,r=24,a=e^n.length,c=n.length,l=0;c>=4;){var s=o(n,l);s=u(s,t),s^=s>>>r,s=u(s,t),a=u(a,t),a^=s,l+=4,c-=4}switch(c){case 3:a^=i(n,l),a^=n.charCodeAt(l+2)<<16,a=u(a,t);break;case 2:a^=i(n,l),a=u(a,t);break;case 1:a^=n.charCodeAt(l),a=u(a,t)}return a^=a>>>13,a=u(a,t),a^=a>>>15,a>>>0}function o(n,e){return n.charCodeAt(e++)+(n.charCodeAt(e++)<<8)+(n.charCodeAt(e++)<<16)+(n.charCodeAt(e)<<24)}function i(n,e){return n.charCodeAt(e++)+(n.charCodeAt(e++)<<8)}function u(n,e){n=0|n,e=0|e;var t=65535&n,r=n>>>16,o=t*e+((r*e&65535)<<16)|0;return o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},{}],24:[function(n,e,t){"use strict";function r(n){return n&&n.__esModule?n:{default:n}}function o(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function i(n){if(Array.isArray(n)){for(var e=0,t=Array(n.length);e<n.length;e++)t[e]=n[e];return t}return Array.from(n)}function u(n){return n.toLowerCase().replace(/[^a-z0-9]/g,"")}function a(){var n=arguments.length<=0||void 0===arguments[0]||arguments[0];G=!!n}function c(){if(!G)return V||(console.warn("can't simulate without once calling simulations(true)"),V=!0),H||q||J||(console.warn("don't use simulation outside dev"),J=!0),{};for(var n=arguments.length,e=Array(n),t=0;t<n;t++)e[t]=arguments[t];return e.reduce(function(n,e){return n["data-simulate-"+u(e)]="",n},{})}function l(n){$=!!n}function s(){z?(Q=document.getElementById("_css_"),Q||(Q=document.createElement("style"),Q.id=Q.id||"_css_",Q.appendChild(document.createTextNode("")),(document.head||document.getElementsByTagName("head")[0]).appendChild(Q)),X=[].concat(i(document.styleSheets)).filter(function(n){return n.ownerNode===Q})[0]):X={cssRules:[],deleteRule:function(n){X.cssRules=[].concat(i(X.cssRules.slice(0,n)),i(X.cssRules.slice(n+1)))},insertRule:function(n,e){X.cssRules=[].concat(i(X.cssRules.slice(0,e)),[{cssText:n}],i(X.cssRules.slice(e)))}}}function f(){var n=arguments.length<=0||void 0===arguments[0]||arguments[0];return n!==K&&0!==Object.keys(Z).length?void console.error("cannot change speedy setting after appending styles in a different mode"):void(K=!!n)}function d(n){var e=arguments.length<=1||void 0===arguments[1]?X.cssRules.length:arguments[1];try{X.insertRule(n,e)}catch(e){H&&console.warn("whoops, illegal rule inserted",n)}}function p(n,e){Q&&Q.styleSheet?Q.styleSheet.cssText+=n:z?K&&X.insertRule?d(n,e):(Q.appendChild(document.createTextNode(n)),K||(X=[].concat(i(document.styleSheets)).filter(function(n){return n.ownerNode===Q})[0])):X.insertRule(n,X.cssRules.length)}function h(){Z={},z?(Q&&Q.parentNode.removeChild(Q),Q=null,s()):X.cssRules=[]}function m(){throw new Error("this is not tested or anything yet! beware!")}function y(n,e){return(0,U.default)(n+Object.keys(e).reduce(function(n,t){return n+t+e[t]},"")).toString(36)}function v(n){return(0,B.default)(n)}function g(n,e){var t=e&&"$"===e[0],r="_"===e?"":"$"===e[0]?e.slice(1):":"+e,o="[data-css-"+n+"]"+r;return G&&"_"!==e&&!t&&":"===r[0]&&(o+=", [data-css-"+n+"][data-simulate-"+u(e)+"]"),o}function b(n,e,t){return g(n,e)+"{ "+(0,L.createMarkupForStyles)(v(t))+" } "}function w(n){if(1!==Object.keys(n).length)throw new Error("not a rule");var e=/data\-css\-([a-zA-Z0-9]+)/,t=e.exec(Object.keys(n)[0]);if(!t)throw new Error("not a rule");return t[1]}function S(n){try{var e=w(n);return e&&Z[e]}catch(n){return!1}}function x(){var n=arguments.length<=0||void 0===arguments[0]?"_":arguments[0],e=arguments[1],t=arguments[2],r=t||y(n,e),u="",a=-1;return Z[r]&&!t||(t&&(a=Y[t],a>=0&&(K||!z?X.deleteRule(a):(Q.removeChild(Q.childNodes[a+1]),X=[].concat(i(document.styleSheets)).filter(function(n){return n.ownerNode===Q})[0]))),t?(p(b(r,n,e),a),Y[t]=a||X.cssRules.length-1):p(b(r,n,e)),Z[r]={type:n,style:e,id:r}),$&&(u=e.label||("_"!==n?":"+n:"")),o({},"data-css-"+r,u)}function C(n){return x(void 0,n)}function O(n,e){return x("$"+n,e)}function k(n,e,t){if("string"!=typeof n)throw new Error("whoops, did you forget a key?");return t||"object"!==("undefined"==typeof e?"undefined":_(e))||(t=e,e=void 0),x(e,t,n)}function D(){for(var n=[],e=void 0,t={},r=arguments.length,i=Array(r),u=0;u<r;u++)i[u]=arguments[u];i.forEach(function(r,o){if(0===o&&"string"==typeof r)return void(e=r);if(S(r)){var i=w(r);if(Z[i].bag){var u=function(){var e=Z[w(r)],o=e.bag,i=e.label;return Object.keys(o).forEach(function(n){t[n]=W({},t[n]||{},o[n])}),$&&n.push("["+i+"]"),{v:void 0}}();if("object"===("undefined"==typeof u?"undefined":_(u)))return u.v}if(Z[i].expr)throw new Error("cannot merge a media rule");var a=Z[i],c=a.type,l=a.style;return t[c]=W({},t[c]||{},l),void($&&n.push((l.label||"`"+i)+(""+("_"!==c?":"+c:""))))}t._=W({},t._||{},r),$&&n.push("{…}")});var a=(0,U.default)(e+JSON.stringify(t)).toString(36),c=$?""+(e?e+"= ":"")+(n.length?n.join(" + "):""):"";return Z[a]||(Z[a]={bag:t,id:a,label:c},Object.keys(t).forEach(function(n){p(b(a,n,t[n]))})),o({},"data-css-"+a,c)}function E(n){for(var e=arguments.length,t=Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];if(t.length>1)return E(n,D.apply(void 0,t));var i=t[0];if(!S(i)){var u=i,a=y(n,u),c=$?"*mq "+(u.label||""):"";return Z[a]||(p("@media "+n+" { "+b(a,"_",u)+" }"),Z[a]={expr:n,style:u,id:a}),o({},"data-css-"+a,c)}var l=w(i);if(!Z[l].bag){if(Z[l].expr)throw new Error("cannot apply @media onto another media rule");var s=(0,U.default)(n+l).toString(36),f=$?"*mq "+(Z[l].style.label||"`"+l):"";return Z[s]||(p("@media "+n+" { "+b(s,Z[l].type,Z[l].style)+" }"),Z[s]={expr:n,rule:i,id:s}),o({},"data-css-"+s,f)}var d=function(){var e=Z[l].bag,t=(0,U.default)(n+l).toString(36),r=$?"*mq ["+Z[l].label+"]":"";if(!Z[t]){var u=Object.keys(e).map(function(n){return b(t,n,e[n])});p("@media "+n+" { "+u.join("\n")+" }"),Z[t]={expr:n,rule:i,id:t}}return{v:o({},"data-css-"+t,r)}}();return"object"===("undefined"==typeof d?"undefined":_(d))?d.v:void 0}function P(){Object.keys(Z).forEach(function(n){var e=Z[n].expr;e&&$&&window.matchMedia&&!function(){var t=document.querySelectorAll("[data-css-"+n+"]"),r=window.matchMedia(e).matches?"✓":"✕",o=/^(✓|✕|\*)mq/;[].concat(i(t)).forEach(function(e){return e.setAttribute("data-css-"+n,e.getAttribute("data-css-"+n).replace(o,r+"mq"))})}()})}function I(){var n=arguments.length<=0||void 0===arguments[0]||arguments[0],e=arguments.length<=1||void 0===arguments[1]?2e3:arguments[1];if(n){if(nn)return void console.warn("already tracking labels, call trackMediaQueryLabels(false) to stop");nn=setInterval(function(){return P()},e)}else clearInterval(nn),nn=null}function R(n){var e=(0,U.default)(JSON.stringify(n)).toString(36);return Z[e]||(Z[e]={id:e,family:n.fontFamily,font:n},p("@font-face { "+(0,L.createMarkupForStyles)(n)+"}")),n.fontFamily}function T(n,e){"string"!=typeof n&&(e=n,n="animate");var t=(0,U.default)(n+JSON.stringify(e)).toString(36);return Z[t]||!function(){Z[t]={id:t,name:n,kfs:e};var r=Object.keys(e).map(function(n){return n+" { "+(0,L.createMarkupForStyles)(v(e[n]))+"}"}).join("\n");["-webkit-","-moz-","-o-",""].forEach(function(e){return p("@"+e+"keyframes "+(n+"_"+t)+" { "+r+"}")})}(),n+"_"+t}function j(n){var e=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],t=n();if(void 0===t)throw new Error("did you forget to return from renderToString?");var r=[].concat(i(X.cssRules)),o=r.map(function(n){return n.cssText}).join("\n");if(e){var u=function(){for(var n={html:t,cache:{},css:""},e=/data\-css\-([a-zA-Z0-9]+)=/gm,r=void 0,o=[];null!==(r=e.exec(t));)o.push(r[1]);return o.forEach(function(e){n.cache[e]=Z[e],n.css+=X.cssRules.map(function(n){return n.cssText}).filter(function(n){return new RegExp("\\[data-css-"+e+"\\]").test(n)}).join("\n")+"\n"}),{v:n}}();if("object"===("undefined"==typeof u?"undefined":_(u)))return u.v}return{html:t,cache:Z,css:o}}function N(n){return j(n,!0)}function M(n){Z=W({},Z,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.multi=t.placeholder=t.backdrop=t.selection=t.firstLine=t.firstLetter=t.before=t.after=t.nthOfType=t.nthLastOfType=t.nthLastChild=t.nthChild=t.not=t.lang=t.dir=t.visited=t.valid=t.target=t.scope=t.root=t.right=t.required=t.readWrite=t.readOnly=t.outOfRange=t.optional=t.onlyOfType=t.onlyChild=t.link=t.left=t.lastOfType=t.lastChild=t.invalid=t.inRange=t.indeterminate=t.hover=t.focus=t.fullscreen=t.firstOfType=t.firstChild=t.first=t._default=t.enabled=t.empty=t.disabled=t.checked=t.any=t.active=void 0;var W=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};t.simulations=a,t.simulate=c,t.cssLabels=l,t.speedy=f,t.flush=h,t.remove=m,t.add=x,t.style=C,t.select=O,t.keyed=k,t.merge=D,t.media=E,t.trackMediaQueryLabels=I,t.fontFace=R,t.keyframes=T,t.renderStatic=j,t.renderStaticOptimized=N,t.rehydrate=M;var F=n("./hash"),U=r(F),A=n("./autoprefix"),B=r(A),L=n("react/lib/CSSPropertyOperations"),z="undefined"!=typeof document,H=function(n){return"development"===n||!n}("production"),q=!1,G=H,V=!1,J=!1,$=H,Z={},Q=void 0,X=void 0,Y={};s();var K=!H&&!q,nn=(t.active=function(n){return x("active",n)},t.any=function(n){return x("any",n)},t.checked=function(n){return x("checked",n)},t.disabled=function(n){return x("disabled",n)},t.empty=function(n){return x("empty",n)},t.enabled=function(n){return x("enabled",n)},t._default=function(n){return x("default",n)},t.first=function(n){return x("first",n)},t.firstChild=function(n){return x("first-child",n)},t.firstOfType=function(n){return x("first-of-type",n)},t.fullscreen=function(n){return x("fullscreen",n)},t.focus=function(n){return x("focus",n)},t.hover=function(n){return x("hover",n)},t.indeterminate=function(n){return x("indeterminate",n)},t.inRange=function(n){return x("in-range",n)},t.invalid=function(n){return x("invalid",n)},t.lastChild=function(n){return x("last-child",n)},t.lastOfType=function(n){return x("last-of-type",n)},t.left=function(n){return x("left",n)},t.link=function(n){return x("link",n)},t.onlyChild=function(n){return x("only-child",n)},t.onlyOfType=function(n){return x("only-of-type",n)},t.optional=function(n){return x("optional",n)},t.outOfRange=function(n){return x("out-of-range",n)},t.readOnly=function(n){return x("read-only",n)},t.readWrite=function(n){return x("read-write",n)},t.required=function(n){return x("required",n)},t.right=function(n){return x("right",n)},t.root=function(n){return x("root",n)},t.scope=function(n){return x("scope",n)},t.target=function(n){return x("target",n)},t.valid=function(n){return x("valid",n)},t.visited=function(n){return x("visited",n)},t.dir=function(n,e){return x("dir("+n+")",e)},t.lang=function(n,e){return x("lang("+n+")",e)},t.not=function n(e,t){return n("not("+e+")",t)},t.nthChild=function(n,e){return x("nth-child("+n+")",e)},t.nthLastChild=function(n,e){return x("nth-last-child("+n+")",e)},t.nthLastOfType=function(n,e){return x("nth-last-of-type("+n+")",e)},t.nthOfType=function(n,e){return x("nth-of-type("+n+")",e)},t.after=function(n){return x(":after",n)},t.before=function(n){return x(":before",n)},t.firstLetter=function(n){return x(":first-letter",n)},t.firstLine=function(n){return x(":first-line",n)},t.selection=function(n){return x(":selection",n)},t.backdrop=function(n){return x(":backdrop",n)},t.placeholder=function(n){return x(":placeholder",n)},t.multi=x,void 0);H&&z&&I(!0)},{"./autoprefix":22,"./hash":23,"react/lib/CSSPropertyOperations":13}]},{},[24])(24)}); |
Sorry, the diff of this file is too big to display
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
143123
3176