{"version":3,"sources":["../src/index.js"],"names":["const","ELEMENTS","split","REACT_ELEMENT_TYPE","Symbol","for","COMPONENT_WRAPPER_KEY","AUTOBIND_BLACKLIST","constructor","render","shouldComponentUpdate","componentWillReceiveProps","componentWillUpdate","componentDidUpdate","componentWillMount","componentDidMount","componentWillUnmount","componentDidUnmount","CAMEL_PROPS","BYPASS_HOOK","DEV","process","env","NODE_ENV","e","EmptyComponent","let","VNode","h","prototype","$$typeof","preactCompatUpgraded","preactCompatNormalized","Object","defineProperty","get","this","nodeName","set","v","configurable","attributes","oldEventHook","options","event","persist","nativeEvent","oldVnodeHook","vnode","parent","callback","prev","_preactCompatRendered","base","parentNode","firstElementChild","i","childNodes","length","removeChild","out","preactRender","_component","tag","attrs","extend","children","String","undefined","normalizeVNode","a","defaultProps","handleComponentVNode","defaultValue","value","shouldSanitize","test","hasOwnProperty","replace","toLowerCase","handleElementVNode","ContextProvider","renderSubtreeIntoContainer","parentComponent","container","renderContainer","context","component","call","Portal","props","getChildContext","currentComponent","ARR","Children","map","fn","ctx","toArray","bind","forEach","count","only","Error","concat","createFactory","type","createElement","DOM","statelessComponentHook","Ctor","WrappedComponent","Wrapped","createClass","displayName","name","propTypes","upgradeToVNodes","arr","offset","obj","Array","isArray","isValidElement","args","c","classNameDescriptor","enumerable","className","class","applyClassName","ref","_refProxies","resolved","refs","ondoubleclick","ondblclick","onchange","normalized","oninput","multihook","applyEventNormalization","element","arguments","key","shallowDiffers","b","F","cl","__bound","bindAll","Component","newComponentHook","mixins","proto","applyMixins","keyed","mixin","push","collateMixins","statics","getDefaultProps","callMethod","m","apply","hooks","skipDuplicates","ret","r","propsHook","beforeRender","afterRender","ctor","PropTypes","checkPropTypes","opts","PreactComponent","state","getInitialState","PureComponent","isReactComponent","replaceState","setState","getDOMNode","isMounted","isPureReactComponent","hydrate","createContext","elementProps","cloneArgs","preactCloneElement","createRef","nodeType","existing","unstable_renderSubtreeIntoContainer","__spread"],"mappings":"wXAYAA,IAEMC,EAA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C,uBAAyBgC,EAAUhC,sBAAsBC,KAClF,SAAI4I,GAAYA,EAAS3I,aAAe8B,IACvCvB,EAAAA,OAAajC,EAAAA,EAAEH,GAAiB2D,EAAW6G,GACpC,eAycR1C,gBACA4B,EACAe,oCAAqChH,0BA/CtC,SAAiChC,GAChCA,KAgDAiJ,SAAUlI","file":"dist/preact-compat.min.js.map","sourcesContent":["import PropTypes from 'prop-types';\nimport {\n\trender as preactRender,\n\tcloneElement as preactCloneElement,\n\tcreateRef,\n\th,\n\tComponent as PreactComponent,\n\toptions\n} from 'preact';\n\nimport { createContext } from 'preact-context';\n\nconst version = '15.1.0'; // trick libraries to think we are react\n\nconst ELEMENTS = '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'.split(\n\t' '\n);\n\nconst REACT_ELEMENT_TYPE = (typeof Symbol !== 'undefined' && Symbol.for && Symbol.for('react.element')) || 0xeac7;\n\nconst COMPONENT_WRAPPER_KEY =\n\ttypeof Symbol !== 'undefined' && Symbol.for ? Symbol.for('__preactCompatWrapper') : '__preactCompatWrapper';\n\n// don't autobind these methods since they already have guaranteed context.\nconst AUTOBIND_BLACKLIST = {\n\tconstructor: 1,\n\trender: 1,\n\tshouldComponentUpdate: 1,\n\tcomponentWillReceiveProps: 1,\n\tcomponentWillUpdate: 1,\n\tcomponentDidUpdate: 1,\n\tcomponentWillMount: 1,\n\tcomponentDidMount: 1,\n\tcomponentWillUnmount: 1,\n\tcomponentDidUnmount: 1\n};\n\nconst CAMEL_PROPS = /^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vector|vert|word|writing|x)[A-Z]/;\n\nconst BYPASS_HOOK = {};\n\n/*global process*/\nlet DEV = false;\ntry {\n\tDEV = process.env.NODE_ENV !== 'production';\n}\ncatch (e) { }\n\n// a component that renders nothing. Used to replace components for unmountComponentAtNode.\nfunction EmptyComponent() {\n\treturn null;\n}\n\n// make react think we're react.\nlet VNode = h('a', null).constructor;\nVNode.prototype.$$typeof = REACT_ELEMENT_TYPE;\nVNode.prototype.preactCompatUpgraded = false;\nVNode.prototype.preactCompatNormalized = false;\n\nObject.defineProperty(VNode.prototype, 'type', {\n\tget() {\n\t\treturn this.nodeName;\n\t},\n\tset(v) {\n\t\tthis.nodeName = v;\n\t},\n\tconfigurable: true\n});\n\nObject.defineProperty(VNode.prototype, 'props', {\n\tget() {\n\t\treturn this.attributes;\n\t},\n\tset(v) {\n\t\tthis.attributes = v;\n\t},\n\tconfigurable: true\n});\n\nlet oldEventHook = options.event;\noptions.event = e => {\n\tif (oldEventHook) e = oldEventHook(e);\n\te.persist = Object;\n\te.nativeEvent = e;\n\treturn e;\n};\n\nlet oldVnodeHook = options.vnode;\noptions.vnode = vnode => {\n\tif (!vnode.preactCompatUpgraded) {\n\t\tvnode.preactCompatUpgraded = true;\n\n\t\tlet tag = vnode.nodeName,\n\t\t\tattrs = (vnode.attributes = vnode.attributes == null ? {} : extend({}, vnode.attributes));\n\n\t\tif (typeof tag === 'function') {\n\t\t\tif (tag[COMPONENT_WRAPPER_KEY] === true || (tag.prototype && 'isReactComponent' in tag.prototype)) {\n\t\t\t\tif (vnode.children && String(vnode.children) === '') vnode.children = undefined;\n\t\t\t\tif (vnode.children) attrs.children = vnode.children;\n\n\t\t\t\tif (!vnode.preactCompatNormalized) {\n\t\t\t\t\tnormalizeVNode(vnode);\n\t\t\t\t}\n\t\t\t\thandleComponentVNode(vnode);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (vnode.children && String(vnode.children) === '') vnode.children = undefined;\n\t\t\tif (vnode.children) attrs.children = vnode.children;\n\n\t\t\tif (attrs.defaultValue) {\n\t\t\t\tif (!attrs.value && attrs.value !== 0) {\n\t\t\t\t\tattrs.value = attrs.defaultValue;\n\t\t\t\t}\n\t\t\t\tdelete attrs.defaultValue;\n\t\t\t}\n\n\t\t\thandleElementVNode(vnode, attrs);\n\t\t}\n\t}\n\n\tif (oldVnodeHook) oldVnodeHook(vnode);\n};\n\nfunction handleComponentVNode(vnode) {\n\tlet tag = vnode.nodeName,\n\t\ta = vnode.attributes;\n\n\tvnode.attributes = {};\n\tif (tag.defaultProps) extend(vnode.attributes, tag.defaultProps);\n\tif (a) extend(vnode.attributes, a);\n}\n\nfunction handleElementVNode(vnode, a) {\n\tlet shouldSanitize, attrs, i;\n\tif (a) {\n\t\tfor (i in a) if ((shouldSanitize = CAMEL_PROPS.test(i))) break;\n\t\tif (shouldSanitize) {\n\t\t\tattrs = vnode.attributes = {};\n\t\t\tfor (i in a) {\n\t\t\t\tif (a.hasOwnProperty(i)) {\n\t\t\t\t\tattrs[CAMEL_PROPS.test(i) ? i.replace(/([A-Z0-9])/, '-$1').toLowerCase() : i] = a[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n// proxy render() since React returns a Component reference.\nfunction render(vnode, parent, callback) {\n\tlet prev = parent && parent._preactCompatRendered && parent._preactCompatRendered.base;\n\n\t// ignore impossible previous renders\n\tif (prev && prev.parentNode !== parent) prev = null;\n\n\t// default to first Element child\n\tif (!prev && parent) prev = parent.firstElementChild;\n\n\t// remove unaffected siblings\n\tfor (let i = parent.childNodes.length; i--;) {\n\t\tif (parent.childNodes[i] !== prev) {\n\t\t\tparent.removeChild(parent.childNodes[i]);\n\t\t}\n\t}\n\n\tlet out = preactRender(vnode, parent, prev);\n\tif (parent) parent._preactCompatRendered = out && (out._component || { base: out });\n\tif (typeof callback === 'function') callback();\n\treturn (out && out._component) || out;\n}\n\nclass ContextProvider {\n\tgetChildContext() {\n\t\treturn this.props.context;\n\t}\n\trender(props) {\n\t\treturn props.children[0];\n\t}\n}\n\nfunction renderSubtreeIntoContainer(parentComponent, vnode, container, callback) {\n\tlet wrap = h(ContextProvider, { context: parentComponent.context }, vnode);\n\tlet renderContainer = render(wrap, container);\n\tlet component = renderContainer._component || renderContainer.base;\n\tif (callback) callback.call(component, renderContainer);\n\treturn component;\n}\n\nfunction Portal(props) {\n\trenderSubtreeIntoContainer(this, props.vnode, props.container);\n}\n\nfunction createPortal(vnode, container) {\n\treturn h(Portal, { vnode, container });\n}\n\nfunction unmountComponentAtNode(container) {\n\tlet existing = container._preactCompatRendered && container._preactCompatRendered.base;\n\tif (existing && existing.parentNode === container) {\n\t\tpreactRender(h(EmptyComponent), container, existing);\n\t\treturn true;\n\t}\n\treturn false;\n}\n\nconst ARR = [];\n\n// This API is completely unnecessary for Preact, so it's basically passthrough.\nlet Children = {\n\tmap(children, fn, ctx) {\n\t\tif (children == null) return null;\n\t\tchildren = Children.toArray(children);\n\t\tif (ctx && ctx !== children) fn = fn.bind(ctx);\n\t\treturn children.map(fn);\n\t},\n\tforEach(children, fn, ctx) {\n\t\tif (children == null) return null;\n\t\tchildren = Children.toArray(children);\n\t\tif (ctx && ctx !== children) fn = fn.bind(ctx);\n\t\tchildren.forEach(fn);\n\t},\n\tcount(children) {\n\t\treturn (children && children.length) || 0;\n\t},\n\tonly(children) {\n\t\tchildren = Children.toArray(children);\n\t\tif (children.length !== 1) throw new Error('Children.only() expects only one child.');\n\t\treturn children[0];\n\t},\n\ttoArray(children) {\n\t\tif (children == null) return [];\n\t\treturn ARR.concat(children);\n\t}\n};\n\n/** Track current render() component for ref assignment */\nlet currentComponent;\n\nfunction createFactory(type) {\n\treturn createElement.bind(null, type);\n}\n\nlet DOM = {};\nfor (let i = ELEMENTS.length; i--;) {\n\tDOM[ELEMENTS[i]] = createFactory(ELEMENTS[i]);\n}\n\nfunction upgradeToVNodes(arr, offset) {\n\tfor (let i = offset || 0; i < arr.length; i++) {\n\t\tlet obj = arr[i];\n\t\tif (Array.isArray(obj)) {\n\t\t\tupgradeToVNodes(obj);\n\t\t}\n\t\telse if (\n\t\t\tobj &&\n\t\t\ttypeof obj === 'object' &&\n\t\t\t!isValidElement(obj) &&\n\t\t\t((obj.props && obj.type) || (obj.attributes && obj.nodeName) || obj.children)\n\t\t) {\n\t\t\tarr[i] = createElement(obj.type || obj.nodeName, obj.props || obj.attributes, obj.children);\n\t\t}\n\t}\n}\n\nfunction isStatelessComponent(c) {\n\treturn typeof c === 'function' && !(c.prototype && c.prototype.render);\n}\n\n// wraps stateless functional components in a PropTypes validator\nfunction wrapStatelessComponent(WrappedComponent) {\n\treturn createClass({\n\t\tdisplayName: WrappedComponent.displayName || WrappedComponent.name,\n\t\trender() {\n\t\t\treturn WrappedComponent(this.props, this.context);\n\t\t}\n\t});\n}\n\nfunction statelessComponentHook(Ctor) {\n\tlet Wrapped = Ctor[COMPONENT_WRAPPER_KEY];\n\tif (Wrapped) return Wrapped === true ? Ctor : Wrapped;\n\n\tWrapped = wrapStatelessComponent(Ctor);\n\n\tObject.defineProperty(Wrapped, COMPONENT_WRAPPER_KEY, { configurable: true, value: true });\n\tWrapped.displayName = Ctor.displayName;\n\tWrapped.propTypes = Ctor.propTypes;\n\tWrapped.defaultProps = Ctor.defaultProps;\n\n\tObject.defineProperty(Ctor, COMPONENT_WRAPPER_KEY, { configurable: true, value: Wrapped });\n\n\treturn Wrapped;\n}\n\nfunction createElement(...args) {\n\tupgradeToVNodes(args, 2);\n\treturn normalizeVNode(h(...args));\n}\n\nfunction normalizeVNode(vnode) {\n\tvnode.preactCompatNormalized = true;\n\n\tapplyClassName(vnode);\n\n\tif (isStatelessComponent(vnode.nodeName)) {\n\t\tvnode.nodeName = statelessComponentHook(vnode.nodeName);\n\t}\n\n\tlet ref = vnode.attributes.ref,\n\t\ttype = ref && typeof ref;\n\tif (currentComponent && (type === 'string' || type === 'number')) {\n\t\tvnode.attributes.ref = createStringRefProxy(ref, currentComponent);\n\t}\n\n\tapplyEventNormalization(vnode);\n\n\treturn vnode;\n}\n\nfunction cloneElement(element, props, ...children) {\n\tif (!isValidElement(element)) return element;\n\tlet elementProps = element.attributes || element.props;\n\tlet node = h(\n\t\telement.nodeName || element.type,\n\t\textend({}, elementProps),\n\t\telement.children || (elementProps && elementProps.children)\n\t);\n\t// Only provide the 3rd argument if needed.\n\t// Arguments 3+ overwrite element.children in preactCloneElement\n\tlet cloneArgs = [node, props];\n\tif (children && children.length) {\n\t\tcloneArgs.push(children);\n\t}\n\telse if (props && props.children) {\n\t\tcloneArgs.push(props.children);\n\t}\n\treturn normalizeVNode(preactCloneElement(...cloneArgs));\n}\n\nfunction isValidElement(element) {\n\treturn element && (element instanceof VNode || element.$$typeof === REACT_ELEMENT_TYPE);\n}\n\nfunction createStringRefProxy(name, component) {\n\treturn (\n\t\tcomponent._refProxies[name] ||\n\t\t(component._refProxies[name] = resolved => {\n\t\t\tif (component && component.refs) {\n\t\t\t\tcomponent.refs[name] = resolved;\n\t\t\t\tif (resolved === null) {\n\t\t\t\t\tdelete component._refProxies[name];\n\t\t\t\t\tcomponent = null;\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t);\n}\n\nfunction applyEventNormalization({ nodeName, attributes }) {\n\tif (!attributes || typeof nodeName !== 'string') return;\n\tlet props = {};\n\tfor (let i in attributes) {\n\t\tprops[i.toLowerCase()] = i;\n\t}\n\tif (props.ondoubleclick) {\n\t\tattributes.ondblclick = attributes[props.ondoubleclick];\n\t\tdelete attributes[props.ondoubleclick];\n\t}\n\t// for *textual inputs* (incl textarea), normalize `onChange` -> `onInput`:\n\tif (\n\t\tprops.onchange &&\n\t\t(nodeName === 'textarea' || (nodeName.toLowerCase() === 'input' && !/^fil|che|rad/i.test(attributes.type)))\n\t) {\n\t\tlet normalized = props.oninput || 'oninput';\n\t\tif (!attributes[normalized]) {\n\t\t\tattributes[normalized] = multihook([attributes[normalized], attributes[props.onchange]]);\n\t\t\tdelete attributes[props.onchange];\n\t\t}\n\t}\n}\n\nfunction applyClassName(vnode) {\n\tlet a = vnode.attributes || (vnode.attributes = {});\n\tclassNameDescriptor.enumerable = 'className' in a;\n\tif (a.className) a.class = a.className;\n\tObject.defineProperty(a, 'className', classNameDescriptor);\n}\n\nlet classNameDescriptor = {\n\tconfigurable: true,\n\tget() {\n\t\treturn this.class;\n\t},\n\tset(v) {\n\t\tthis.class = v;\n\t}\n};\n\nfunction extend(base, props) {\n\tfor (let i = 1, obj; i < arguments.length; i++) {\n\t\tif ((obj = arguments[i])) {\n\t\t\tfor (let key in obj) {\n\t\t\t\tif (obj.hasOwnProperty(key)) {\n\t\t\t\t\tbase[key] = obj[key];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn base;\n}\n\nfunction shallowDiffers(a, b) {\n\tfor (let i in a) if (!(i in b)) return true;\n\tfor (let i in b) if (a[i] !== b[i]) return true;\n\treturn false;\n}\n\nfunction findDOMNode(component) {\n\treturn (component && (component.base || (component.nodeType === 1 && component))) || null;\n}\n\nfunction F() { }\n\nfunction createClass(obj) {\n\tfunction cl(props, context) {\n\t\tbindAll(this);\n\t\tComponent.call(this, props, context, BYPASS_HOOK);\n\t\tnewComponentHook.call(this, props, context);\n\t}\n\n\tobj = extend({ constructor: cl }, obj);\n\n\t// We need to apply mixins here so that getDefaultProps is correctly mixed\n\tif (obj.mixins) {\n\t\tapplyMixins(obj, collateMixins(obj.mixins));\n\t}\n\tif (obj.statics) {\n\t\textend(cl, obj.statics);\n\t}\n\tif (obj.propTypes) {\n\t\tcl.propTypes = obj.propTypes;\n\t}\n\tif (obj.defaultProps) {\n\t\tcl.defaultProps = obj.defaultProps;\n\t}\n\tif (obj.getDefaultProps) {\n\t\tcl.defaultProps = obj.getDefaultProps.call(cl);\n\t}\n\n\tF.prototype = Component.prototype;\n\tcl.prototype = extend(new F(), obj);\n\n\tcl.displayName = obj.displayName || 'Component';\n\n\treturn cl;\n}\n\n// Flatten an Array of mixins to a map of method name to mixin implementations\nfunction collateMixins(mixins) {\n\tlet keyed = {};\n\tfor (let i = 0; i < mixins.length; i++) {\n\t\tlet mixin = mixins[i];\n\t\tfor (let key in mixin) {\n\t\t\tif (mixin.hasOwnProperty(key) && typeof mixin[key] === 'function') {\n\t\t\t\t(keyed[key] || (keyed[key] = [])).push(mixin[key]);\n\t\t\t}\n\t\t}\n\t}\n\treturn keyed;\n}\n\n// apply a mapping of Arrays of mixin methods to a component prototype\nfunction applyMixins(proto, mixins) {\n\tfor (let key in mixins)\n\t\tif (mixins.hasOwnProperty(key)) {\n\t\t\tproto[key] = multihook(\n\t\t\t\tmixins[key].concat(proto[key] || ARR),\n\t\t\t\tkey === 'getDefaultProps' || key === 'getInitialState' || key === 'getChildContext'\n\t\t\t);\n\t\t}\n}\n\nfunction bindAll(ctx) {\n\tfor (let i in ctx) {\n\t\tlet v = ctx[i];\n\t\tif (typeof v === 'function' && !v.__bound && !AUTOBIND_BLACKLIST.hasOwnProperty(i)) {\n\t\t\t(ctx[i] = v.bind(ctx)).__bound = true;\n\t\t}\n\t}\n}\n\nfunction callMethod(ctx, m, args) {\n\tif (typeof m === 'string') {\n\t\tm = ctx.constructor.prototype[m];\n\t}\n\tif (typeof m === 'function') {\n\t\treturn m.apply(ctx, args);\n\t}\n}\n\nfunction multihook(hooks, skipDuplicates) {\n\treturn function () {\n\t\tlet ret;\n\t\tfor (let i = 0; i < hooks.length; i++) {\n\t\t\tlet r = callMethod(this, hooks[i], arguments);\n\n\t\t\tif (skipDuplicates && r != null) {\n\t\t\t\tif (!ret) ret = {};\n\t\t\t\tfor (let key in r)\n\t\t\t\t\tif (r.hasOwnProperty(key)) {\n\t\t\t\t\t\tret[key] = r[key];\n\t\t\t\t\t}\n\t\t\t}\n\t\t\telse if (typeof r !== 'undefined') ret = r;\n\t\t}\n\t\treturn ret;\n\t};\n}\n\nfunction newComponentHook(props, context) {\n\tpropsHook.call(this, props, context);\n\tthis.componentWillReceiveProps = multihook([\n\t\tpropsHook,\n\t\tthis.componentWillReceiveProps || 'componentWillReceiveProps'\n\t]);\n\tthis.render = multihook([propsHook, beforeRender, this.render || 'render', afterRender]);\n}\n\nfunction propsHook(props, context) {\n\tif (!props) return;\n\n\t// React annoyingly special-cases single children, and some react components are ridiculously strict about this.\n\tlet c = props.children;\n\tif (\n\t\tc &&\n\t\tArray.isArray(c) &&\n\t\tc.length === 1 &&\n\t\t(typeof c[0] === 'string' || typeof c[0] === 'function' || c[0] instanceof VNode)\n\t) {\n\t\tprops.children = c[0];\n\n\t\t// but its totally still going to be an Array.\n\t\tif (props.children && typeof props.children === 'object') {\n\t\t\tprops.children.length = 1;\n\t\t\tprops.children[0] = props.children;\n\t\t}\n\t}\n\n\t// add proptype checking\n\tif (DEV) {\n\t\tlet ctor = typeof this === 'function' ? this : this.constructor,\n\t\t\tpropTypes = this.propTypes || ctor.propTypes;\n\t\tconst displayName = this.displayName || ctor.name;\n\n\t\tif (propTypes) {\n\t\t\tPropTypes.checkPropTypes(propTypes, props, 'prop', displayName);\n\t\t}\n\t}\n}\n\nfunction beforeRender(props) {\n\tcurrentComponent = this;\n}\n\nfunction afterRender() {\n\tif (currentComponent === this) {\n\t\tcurrentComponent = null;\n\t}\n}\n\nfunction Component(props, context, opts) {\n\tPreactComponent.call(this, props, context);\n\tthis.state = this.getInitialState ? this.getInitialState() : {};\n\tthis.refs = {};\n\tthis._refProxies = {};\n\tif (opts !== BYPASS_HOOK) {\n\t\tnewComponentHook.call(this, props, context);\n\t}\n}\nextend((Component.prototype = new PreactComponent()), {\n\tconstructor: Component,\n\n\tisReactComponent: {},\n\n\treplaceState(state, callback) {\n\t\tthis.setState(state, callback);\n\t\tfor (let i in this.state) {\n\t\t\tif (!(i in state)) {\n\t\t\t\tdelete this.state[i];\n\t\t\t}\n\t\t}\n\t},\n\n\tgetDOMNode() {\n\t\treturn this.base;\n\t},\n\n\tisMounted() {\n\t\treturn !!this.base;\n\t}\n});\n\nfunction PureComponent(props, context) {\n\tComponent.call(this, props, context);\n}\nF.prototype = Component.prototype;\nPureComponent.prototype = new F();\nPureComponent.prototype.isPureReactComponent = true;\nPureComponent.prototype.shouldComponentUpdate = function (props, state) {\n\treturn shallowDiffers(this.props, props) || shallowDiffers(this.state, state);\n};\n\nfunction unstable_batchedUpdates(callback) {\n\tcallback();\n}\n\nexport {\n\tversion,\n\tDOM,\n\tPropTypes,\n\tChildren,\n\trender,\n\trender as hydrate,\n\tcreateClass,\n\tcreateContext,\n\tcreatePortal,\n\tcreateFactory,\n\tcreateElement,\n\tcloneElement,\n\tcreateRef,\n\tisValidElement,\n\tfindDOMNode,\n\tunmountComponentAtNode,\n\tComponent,\n\tPureComponent,\n\trenderSubtreeIntoContainer as unstable_renderSubtreeIntoContainer,\n\tunstable_batchedUpdates,\n\textend as __spread\n};\n\nexport default {\n\tversion,\n\tDOM,\n\tPropTypes,\n\tChildren,\n\trender,\n\thydrate: render,\n\tcreateClass,\n\tcreateContext,\n\tcreatePortal,\n\tcreateFactory,\n\tcreateElement,\n\tcloneElement,\n\tcreateRef,\n\tisValidElement,\n\tfindDOMNode,\n\tunmountComponentAtNode,\n\tComponent,\n\tPureComponent,\n\tunstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer,\n\tunstable_batchedUpdates,\n\t__spread: extend\n};\n"]}