1 line
4.5 KiB
JavaScript
1 line
4.5 KiB
JavaScript
|
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.createFragment=t(require("react")):(e.React?(e.React.addons=e.React.addons||{}):(function(){throw new Error("react-addons-create-fragment could not find the React object. If you are using script tags, make sure that React is being loaded before react-addons-create-fragment.")})()).createFragment=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4)}([function(e,t,n){"use strict";function r(e){return function(){return e}}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(e){return e},e.exports=o},function(e,t,n){"use strict";function r(e,t,n,r,i,u,a,c){if(o(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,i,u,a,c],f=0;l=new Error(t.replace(/%s/g,function(){return s[f++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";var r=n(0),o=r;e.exports=o},function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){var t=e&&(j&&e[j]||e[P]);if("function"==typeof t)return t}function o(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function i(e,t){return e&&"object"==typeof e&&null!=e.key?o(e.key):t.toString(36)}function u(e,t,n,o){var a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),null===e||"string"===a||"number"===a||"object"===a&&e.$$typeof===h)return n(o,e,""===t?g+i(e,0):t),1;var c,l,s=0,f=""===t?g:t+x;if(Array.isArray(e))for(var p=0;p<e.length;p++)c=e[p],l=f+i(c,p),s+=u(c,l,n,o);else{var d=r(e);if(d)for(var y,v=d.call(e),b=0;!(y=v.next()).done;)c=y.value,l=f+i(c,b++),s+=u(c,l,n,o);else if("object"===a){var j="",P=""+e;m(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===P?"object with keys {"+Object.keys(e).join(", ")+"}":P,j)}}return s}function a(e,t,n){return null==e?0:u(e,"",t,n)}function c(e){return(""+e).replace(R,"$&/")}function l(e,t){return y.cloneElement(e,{key:t},void 0!==e.props?e.props.children:void 0)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function f(e,t,n){var r=e.result,o=e.keyPrefix,i=e.func,u=e.context,a=i.call(u,t,e.count++);Array.isArray(a)?p(a,r,n,v.thatReturnsArgument):null!=a&&(y.isValidElement(a)&&(a=l(a,o+(!a.key||t&&t.key===a.key?"":c(a.key)+"/")+n)),r.push(a))}function p(e,t,n,r,o){var i="";null!=n&&(i=c(n)+"/");var u=s.getPooled(t,i,r,o);a(e,f,u),s.release(u)}function d(e){if("object"!=typeof e||!e||Array.isArray(e))return b(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(y.isValidElement(e))return b(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;m(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)p(e[n],t,n,v.thatReturnsArgument);return t}var y=n(3),h="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,v=n(0),m=n(1),b=n(2),g=".",x=":",j="function"==typeof Symbol&&Symbol.iterator,P="@@iterator",R=/\/+/g,k=w,w=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},A=function(e){var t=this;m(e instanceof t,"Trying to rel
|