{"version":3,"sources":["jsdelivr-header.js","/npm/@teamcoco/react-apollo@2.0.1/shallowEqual.js","/npm/@teamcoco/react-apollo@2.0.1/queryRecycler.js","/npm/@teamcoco/react-apollo@2.0.1/QueryRecyclerProvider.js","/npm/@teamcoco/react-apollo@2.0.1/parser.js","/npm/@teamcoco/react-apollo@2.0.1/ApolloProvider.js","/npm/@teamcoco/react-apollo@2.0.1/graphql.js","/npm/@teamcoco/react-apollo@2.0.1/withApollo.js","/npm/@teamcoco/react-apollo@2.0.1/getDataFromTree.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,2VCNe,SAAS,EAAa,EAAM,GACvC,IAAK,IAAS,EACV,OAAO,EACX,GAAI,IAAS,EACT,OAAO,EACX,IAAI,EAAQ,OAAO,KAAK,GACpB,EAAQ,OAAO,KAAK,GACxB,GAAI,EAAM,SAAW,EAAM,OACvB,OAAO,EAEX,IADA,IAAI,EAAS,OAAO,UAAU,eACrB,EAAI,EAAG,EAAI,EAAM,OAAQ,IAC9B,IAAK,EAAO,KAAK,EAAM,EAAM,KAAO,EAAK,EAAM,MAAQ,EAAK,EAAM,IAC9D,OAAO,EAGf,OAAO,C,CCfX,ICCQ,ECAG,EFDP,EAAsC,OAAO,QAAU,SAAS,GAChE,IAAK,IAAI,EAAG,EAAI,EAAG,EAAI,UAAU,OAAQ,EAAI,EAAG,IAE5C,IAAK,IAAI,KADT,EAAI,UAAU,GACO,OAAO,UAAU,eAAe,KAAK,EAAG,KACzD,EAAE,GAAK,EAAE,IAEjB,OAAO,C,EAEP,EAAkC,SAAU,EAAG,GAC/C,IAAI,EAAI,GACR,IAAK,IAAI,KAAK,EAAO,OAAO,UAAU,eAAe,KAAK,EAAG,IAAM,EAAE,QAAQ,GAAK,IAC9E,EAAE,GAAK,EAAE,IACb,GAAS,MAAL,GAAqD,mBAAjC,OAAO,sBACtB,KAAI,EAAI,EAAb,IAAgB,EAAI,OAAO,sBAAsB,GAAI,EAAI,EAAE,OAAQ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C,GAAI,EAAO,OAAS,EAAG,CACnB,IAAI,EAA0B,IAAlB,EAAO,OACb,EAAO,GACP,IAAI,MAAM,EAAO,OAAS,4DAEhC,MADA,EAAM,YAAc,EACd,C","file":"/npm/@teamcoco/react-apollo@2.0.1/react-apollo.browser.umd.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@teamcoco/react-apollo@2.0.1/react-apollo.browser.umd.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","export default function shallowEqual(objA, objB) {\n    if (!objA || !objB)\n        return false;\n    if (objA === objB)\n        return true;\n    var keysA = Object.keys(objA);\n    var keysB = Object.keys(objB);\n    if (keysA.length !== keysB.length)\n        return false;\n    var hasOwn = Object.prototype.hasOwnProperty;\n    for (var i = 0; i < keysA.length; i++) {\n        if (!hasOwn.call(objB, keysA[i]) || objA[keysA[i]] !== objB[keysA[i]]) {\n            return false;\n        }\n    }\n    return true;\n}\n//# sourceMappingURL=shallowEqual.js.map","var __assign = (this && this.__assign) || Object.assign || function(t) {\n    for (var s, i = 1, n = arguments.length; i < n; i++) {\n        s = arguments[i];\n        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n            t[p] = s[p];\n    }\n    return t;\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n    var t = {};\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n        t[p] = s[p];\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\n            t[p[i]] = s[p[i]];\n    return t;\n};\nimport shallowEqual from './shallowEqual';\nvar ObservableQueryRecycler = (function () {\n    function ObservableQueryRecycler() {\n        this.observableQueries = [];\n    }\n    ObservableQueryRecycler.prototype.recycle = function (observableQuery) {\n        observableQuery.setOptions({\n            fetchPolicy: 'standby',\n            pollInterval: 0,\n            fetchResults: false,\n        });\n        this.observableQueries.push({\n            observableQuery: observableQuery,\n            subscription: observableQuery.subscribe({}),\n        });\n    };\n    ObservableQueryRecycler.prototype.reuse = function (options) {\n        if (this.observableQueries.length <= 0) {\n            return null;\n        }\n        var _a = this.observableQueries.pop(), observableQuery = _a.observableQuery, subscription = _a.subscription;\n        subscription.unsubscribe();\n        var ssr = options.ssr, skip = options.skip, client = options.client, modifiableOpts = __rest(options, [\"ssr\", \"skip\", \"client\"]);\n        if (!shallowEqual(modifiableOpts.variables || {}, observableQuery.variables))\n            return null;\n        observableQuery.setOptions(__assign({}, modifiableOpts, { pollInterval: options.pollInterval, fetchPolicy: options.fetchPolicy }));\n        return observableQuery;\n    };\n    return ObservableQueryRecycler;\n}());\nexport { ObservableQueryRecycler };\n//# sourceMappingURL=queryRecycler.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = Object.setPrototypeOf ||\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nimport { Component, Children } from 'react';\nimport * as PropTypes from 'prop-types';\nimport { ObservableQueryRecycler } from './queryRecycler';\nvar QueryRecyclerProvider = (function (_super) {\n    __extends(QueryRecyclerProvider, _super);\n    function QueryRecyclerProvider(props) {\n        var _this = _super.call(this, props) || this;\n        _this.recyclers = new WeakMap();\n        _this.getQueryRecycler = _this.getQueryRecycler.bind(_this);\n        return _this;\n    }\n    QueryRecyclerProvider.prototype.componentWillReceiveProps = function (_, nextContext) {\n        if (this.context.client !== nextContext.client) {\n            this.recyclers = new WeakMap();\n        }\n    };\n    QueryRecyclerProvider.prototype.getQueryRecycler = function (component) {\n        if (!this.recyclers.has(component)) {\n            this.recyclers.set(component, new ObservableQueryRecycler());\n        }\n        return this.recyclers.get(component);\n    };\n    QueryRecyclerProvider.prototype.getChildContext = function () {\n        return {\n            getQueryRecycler: this.getQueryRecycler,\n        };\n    };\n    QueryRecyclerProvider.prototype.render = function () {\n        return Children.only(this.props.children);\n    };\n    QueryRecyclerProvider.propTypes = {\n        children: PropTypes.element.isRequired,\n    };\n    QueryRecyclerProvider.contextTypes = {\n        client: PropTypes.object,\n    };\n    QueryRecyclerProvider.childContextTypes = {\n        getQueryRecycler: PropTypes.func.isRequired,\n    };\n    return QueryRecyclerProvider;\n}(Component));\nexport default QueryRecyclerProvider;\n//# sourceMappingURL=QueryRecyclerProvider.js.map","var invariant = require('invariant');\nexport var DocumentType;\n(function (DocumentType) {\n    DocumentType[DocumentType[\"Query\"] = 0] = \"Query\";\n    DocumentType[DocumentType[\"Mutation\"] = 1] = \"Mutation\";\n    DocumentType[DocumentType[\"Subscription\"] = 2] = \"Subscription\";\n})(DocumentType || (DocumentType = {}));\nexport function parser(document) {\n    var variables, type, name;\n    invariant(!!document && !!document.kind, \"Argument of \" + document + \" passed to parser was not a valid GraphQL DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document\");\n    var fragments = document.definitions.filter(function (x) { return x.kind === 'FragmentDefinition'; });\n    var queries = document.definitions.filter(function (x) {\n        return x.kind === 'OperationDefinition' && x.operation === 'query';\n    });\n    var mutations = document.definitions.filter(function (x) {\n        return x.kind === 'OperationDefinition' && x.operation === 'mutation';\n    });\n    var subscriptions = document.definitions.filter(function (x) {\n        return x.kind === 'OperationDefinition' && x.operation === 'subscription';\n    });\n    invariant(!fragments.length ||\n        (queries.length || mutations.length || subscriptions.length), \"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well\");\n    invariant(queries.length + mutations.length + subscriptions.length <= 1, \"react-apollo only supports a query, subscription, or a mutation per HOC. \" + document + \" had \" + queries.length + \" queries, \" + subscriptions.length + \" subscriptions and \" + mutations.length + \" mutations. You can use 'compose' to join multiple operation types to a component\");\n    type = queries.length ? DocumentType.Query : DocumentType.Mutation;\n    if (!queries.length && !mutations.length)\n        type = DocumentType.Subscription;\n    var definitions = queries.length\n        ? queries\n        : mutations.length ? mutations : subscriptions;\n    invariant(definitions.length === 1, \"react-apollo only supports one defintion per HOC. \" + document + \" had \" + definitions.length + \" definitions. You can use 'compose' to join multiple operation types to a component\");\n    var definition = definitions[0];\n    variables = definition.variableDefinitions || [];\n    var hasName = definition.name && definition.name.kind === 'Name';\n    name = hasName ? definition.name.value : 'data';\n    return { name: name, type: type, variables: variables };\n}\n//# sourceMappingURL=parser.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = Object.setPrototypeOf ||\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nimport * as React from 'react';\nimport * as PropTypes from 'prop-types';\nimport { Component } from 'react';\nimport QueryRecyclerProvider from './QueryRecyclerProvider';\nvar invariant = require('invariant');\nvar ApolloProvider = (function (_super) {\n    __extends(ApolloProvider, _super);\n    function ApolloProvider(props, context) {\n        var _this = _super.call(this, props, context) || this;\n        invariant(props.client, 'ApolloClient was not passed a client instance. Make ' +\n            'sure you pass in your client via the \"client\" prop.');\n        return _this;\n    }\n    ApolloProvider.prototype.getChildContext = function () {\n        return {\n            client: this.props.client,\n        };\n    };\n    ApolloProvider.prototype.render = function () {\n        return (React.createElement(QueryRecyclerProvider, null, React.Children.only(this.props.children)));\n    };\n    ApolloProvider.propTypes = {\n        client: PropTypes.object.isRequired,\n        children: PropTypes.element.isRequired,\n    };\n    ApolloProvider.childContextTypes = {\n        client: PropTypes.object.isRequired,\n    };\n    return ApolloProvider;\n}(Component));\nexport default ApolloProvider;\n//# sourceMappingURL=ApolloProvider.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = Object.setPrototypeOf ||\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign = (this && this.__assign) || Object.assign || function(t) {\n    for (var s, i = 1, n = arguments.length; i < n; i++) {\n        s = arguments[i];\n        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n            t[p] = s[p];\n    }\n    return t;\n};\nimport { Component, createElement } from 'react';\nimport * as PropTypes from 'prop-types';\nimport shallowEqual from './shallowEqual';\nvar invariant = require('invariant');\nvar assign = require('object-assign');\nvar pick = require('lodash.pick');\nvar hoistNonReactStatics = require('hoist-non-react-statics');\nimport { parser, DocumentType } from './parser';\nvar defaultMapPropsToOptions = function () { return ({}); };\nvar defaultMapResultToProps = function (props) { return props; };\nvar defaultMapPropsToSkip = function () { return false; };\nfunction observableQueryFields(observable) {\n    var fields = pick(observable, 'variables', 'refetch', 'fetchMore', 'updateQuery', 'startPolling', 'stopPolling', 'subscribeToMore');\n    Object.keys(fields).forEach(function (key) {\n        if (typeof fields[key] === 'function') {\n            fields[key] = fields[key].bind(observable);\n        }\n    });\n    return fields;\n}\nfunction getDisplayName(WrappedComponent) {\n    return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n}\nvar nextVersion = 0;\nexport default function graphql(document, operationOptions) {\n    if (operationOptions === void 0) { operationOptions = {}; }\n    var _a = operationOptions.options, options = _a === void 0 ? defaultMapPropsToOptions : _a, _b = operationOptions.skip, skip = _b === void 0 ? defaultMapPropsToSkip : _b, _c = operationOptions.alias, alias = _c === void 0 ? 'Apollo' : _c;\n    var mapPropsToOptions = options;\n    if (typeof mapPropsToOptions !== 'function')\n        mapPropsToOptions = function () { return options; };\n    var mapPropsToSkip = skip;\n    if (typeof mapPropsToSkip !== 'function')\n        mapPropsToSkip = function () { return skip; };\n    var mapResultToProps = operationOptions.props;\n    var operation = parser(document);\n    var version = nextVersion++;\n    function wrapWithApolloComponent(WrappedComponent) {\n        var graphQLDisplayName = alias + \"(\" + getDisplayName(WrappedComponent) + \")\";\n        var GraphQL = (function (_super) {\n            __extends(GraphQL, _super);\n            function GraphQL(props, context) {\n                var _this = _super.call(this, props, context) || this;\n                _this.previousData = {};\n                _this.version = version;\n                _this.type = operation.type;\n                _this.dataForChildViaMutation = _this.dataForChildViaMutation.bind(_this);\n                _this.setWrappedInstance = _this.setWrappedInstance.bind(_this);\n                return _this;\n            }\n            GraphQL.prototype.componentWillMount = function () {\n                if (!this.shouldSkip(this.props)) {\n                    this.setInitialProps();\n                }\n            };\n            GraphQL.prototype.componentDidMount = function () {\n                this.hasMounted = true;\n                if (this.type === DocumentType.Mutation)\n                    return;\n                if (!this.shouldSkip(this.props)) {\n                    this.subscribeToQuery();\n                    if (this.refetcherQueue) {\n                        var _a = this.refetcherQueue, args = _a.args, resolve = _a.resolve, reject = _a.reject;\n                        this.queryObservable\n                            .refetch(args)\n                            .then(resolve)\n                            .catch(reject);\n                    }\n                }\n            };\n            GraphQL.prototype.componentWillReceiveProps = function (nextProps, nextContext) {\n                if (this.shouldSkip(nextProps)) {\n                    if (!this.shouldSkip(this.props)) {\n                        this.unsubscribeFromQuery();\n                    }\n                    return;\n                }\n                var client = mapPropsToOptions(nextProps).client;\n                if (shallowEqual(this.props, nextProps) &&\n                    (this.client === client || this.client === nextContext.client)) {\n                    return;\n                }\n                this.shouldRerender = true;\n                if (this.client !== client && this.client !== nextContext.client) {\n                    if (client) {\n                        this.client = client;\n                    }\n                    else {\n                        this.client = nextContext.client;\n                    }\n                    this.unsubscribeFromQuery();\n                    this.queryObservable = null;\n                    this.previousData = {};\n                    this.updateQuery(nextProps);\n                    if (!this.shouldSkip(nextProps)) {\n                        this.subscribeToQuery();\n                    }\n                    return;\n                }\n                if (this.type === DocumentType.Mutation) {\n                    return;\n                }\n                if (this.type === DocumentType.Subscription &&\n                    operationOptions.shouldResubscribe &&\n                    operationOptions.shouldResubscribe(this.props, nextProps)) {\n                    this.unsubscribeFromQuery();\n                    delete this.queryObservable;\n                    this.updateQuery(nextProps);\n                    this.subscribeToQuery();\n                    return;\n                }\n                this.updateQuery(nextProps);\n                this.subscribeToQuery();\n            };\n            GraphQL.prototype.componentWillUnmount = function () {\n                if (this.type === DocumentType.Query) {\n                    if (this.queryObservable) {\n                        var recycler = this.getQueryRecycler();\n                        if (recycler) {\n                            recycler.recycle(this.queryObservable);\n                            delete this.queryObservable;\n                        }\n                    }\n                    this.unsubscribeFromQuery();\n                }\n                if (this.type === DocumentType.Subscription)\n                    this.unsubscribeFromQuery();\n                this.hasMounted = false;\n            };\n            GraphQL.prototype.getQueryRecycler = function () {\n                return (this.context.getQueryRecycler &&\n                    this.context.getQueryRecycler(GraphQL));\n            };\n            GraphQL.prototype.getClient = function (props) {\n                if (this.client)\n                    return this.client;\n                var client = mapPropsToOptions(props).client;\n                if (client) {\n                    this.client = client;\n                }\n                else {\n                    this.client = this.context.client;\n                }\n                invariant(!!this.client, \"Could not find \\\"client\\\" in the context of \" +\n                    (\"\\\"\" + graphQLDisplayName + \"\\\". \") +\n                    \"Wrap the root component in an <ApolloProvider>\");\n                return this.client;\n            };\n            GraphQL.prototype.calculateOptions = function (props, newOpts) {\n                if (props === void 0) { props = this.props; }\n                var opts = mapPropsToOptions(props);\n                if (newOpts && newOpts.variables) {\n                    newOpts.variables = assign({}, opts.variables, newOpts.variables);\n                }\n                if (newOpts)\n                    opts = assign({}, opts, newOpts);\n                if (opts.variables || !operation.variables.length)\n                    return opts;\n                var variables = {};\n                for (var _i = 0, _a = operation.variables; _i < _a.length; _i++) {\n                    var _b = _a[_i], variable = _b.variable, type = _b.type;\n                    if (!variable.name || !variable.name.value)\n                        continue;\n                    if (typeof props[variable.name.value] !== 'undefined') {\n                        variables[variable.name.value] = props[variable.name.value];\n                        continue;\n                    }\n                    if (type.kind !== 'NonNullType') {\n                        variables[variable.name.value] = null;\n                        continue;\n                    }\n                    invariant(typeof props[variable.name.value] !== 'undefined', \"The operation '\" + operation.name + \"' wrapping '\" + getDisplayName(WrappedComponent) + \"' \" +\n                        (\"is expecting a variable: '\" + variable.name\n                            .value + \"' but it was not found in the props \") +\n                        (\"passed to '\" + graphQLDisplayName + \"'\"));\n                }\n                opts = __assign({}, opts, { variables: variables });\n                return opts;\n            };\n            GraphQL.prototype.calculateResultProps = function (result) {\n                var name = this.type === DocumentType.Mutation ? 'mutate' : 'data';\n                if (operationOptions.name)\n                    name = operationOptions.name;\n                var newResult = (_a = {},\n                    _a[name] = result,\n                    _a.ownProps = this.props,\n                    _a);\n                if (mapResultToProps)\n                    return mapResultToProps(newResult);\n                return _b = {}, _b[name] = defaultMapResultToProps(result), _b;\n                var _a, _b;\n            };\n            GraphQL.prototype.setInitialProps = function () {\n                if (this.type === DocumentType.Mutation) {\n                    return;\n                }\n                var opts = this.calculateOptions(this.props);\n                this.createQuery(opts);\n            };\n            GraphQL.prototype.createQuery = function (opts, props) {\n                if (props === void 0) { props = this.props; }\n                if (this.type === DocumentType.Subscription) {\n                    this.queryObservable = this.getClient(props).subscribe(assign({ query: document }, opts));\n                }\n                else {\n                    var recycler = this.getQueryRecycler();\n                    var queryObservable = null;\n                    if (recycler)\n                        queryObservable = recycler.reuse(opts);\n                    if (queryObservable === null) {\n                        this.queryObservable = this.getClient(props).watchQuery(assign({\n                            query: document,\n                            metadata: {\n                                reactComponent: {\n                                    displayName: graphQLDisplayName,\n                                },\n                            },\n                        }, opts));\n                    }\n                    else {\n                        this.queryObservable = queryObservable;\n                    }\n                }\n            };\n            GraphQL.prototype.updateQuery = function (props) {\n                var opts = this.calculateOptions(props);\n                if (!this.queryObservable) {\n                    this.createQuery(opts, props);\n                }\n                if (this.queryObservable._setOptionsNoResult) {\n                    this.queryObservable._setOptionsNoResult(opts);\n                }\n                else {\n                    if (this.queryObservable.setOptions) {\n                        this.queryObservable\n                            .setOptions(opts)\n                            .catch(function () { return null; });\n                    }\n                }\n            };\n            GraphQL.prototype.fetchData = function () {\n                if (this.shouldSkip())\n                    return false;\n                if (operation.type === DocumentType.Mutation ||\n                    operation.type === DocumentType.Subscription)\n                    return false;\n                var opts = this.calculateOptions();\n                if (opts.ssr === false)\n                    return false;\n                if (opts.fetchPolicy === 'network-only' ||\n                    opts.fetchPolicy === 'cache-and-network') {\n                    opts.fetchPolicy = 'cache-first';\n                }\n                var observable = this.getClient(this.props).watchQuery(assign({ query: document }, opts));\n                var result = observable.currentResult();\n                if (result.loading) {\n                    return observable.result();\n                }\n                else {\n                    return false;\n                }\n            };\n            GraphQL.prototype.subscribeToQuery = function () {\n                var _this = this;\n                if (this.querySubscription) {\n                    return;\n                }\n                var next = function (results) {\n                    if (_this.type === DocumentType.Subscription) {\n                        _this.lastSubscriptionData = results;\n                    }\n                    var clashingKeys = Object.keys(observableQueryFields(results.data));\n                    invariant(clashingKeys.length === 0, \"the result of the '\" + graphQLDisplayName + \"' operation contains keys that \" +\n                        \"conflict with the return object.\" +\n                        clashingKeys.map(function (k) { return \"'\" + k + \"'\"; }).join(', ') +\n                        \" not allowed.\");\n                    _this.forceRenderChildren();\n                };\n                var handleError = function (error) {\n                    if (error.hasOwnProperty('graphQLErrors'))\n                        return next({ error: error });\n                    throw error;\n                };\n                this.querySubscription = this.queryObservable.subscribe({\n                    next: next,\n                    error: handleError,\n                });\n            };\n            GraphQL.prototype.unsubscribeFromQuery = function () {\n                if (this.querySubscription) {\n                    this.querySubscription.unsubscribe();\n                    delete this.querySubscription;\n                }\n            };\n            GraphQL.prototype.shouldSkip = function (props) {\n                if (props === void 0) { props = this.props; }\n                return (mapPropsToSkip(props) || mapPropsToOptions(props).skip);\n            };\n            GraphQL.prototype.forceRenderChildren = function () {\n                this.shouldRerender = true;\n                if (this.hasMounted)\n                    this.forceUpdate();\n            };\n            GraphQL.prototype.getWrappedInstance = function () {\n                invariant(operationOptions.withRef, \"To access the wrapped instance, you need to specify \" +\n                    \"{ withRef: true } in the options\");\n                return this.wrappedInstance;\n            };\n            GraphQL.prototype.setWrappedInstance = function (ref) {\n                this.wrappedInstance = ref;\n            };\n            GraphQL.prototype.dataForChildViaMutation = function (mutationOpts) {\n                var opts = this.calculateOptions(this.props, mutationOpts);\n                if (typeof opts.variables === 'undefined')\n                    delete opts.variables;\n                opts.mutation = document;\n                return this.getClient(this.props).mutate(opts);\n            };\n            GraphQL.prototype.dataForChild = function () {\n                var _this = this;\n                if (this.type === DocumentType.Mutation) {\n                    return this.dataForChildViaMutation;\n                }\n                var opts = this.calculateOptions(this.props);\n                var data = {};\n                assign(data, observableQueryFields(this.queryObservable));\n                if (this.type === DocumentType.Subscription) {\n                    assign(data, {\n                        loading: !this.lastSubscriptionData,\n                        variables: opts.variables,\n                    }, this.lastSubscriptionData && this.lastSubscriptionData.data);\n                }\n                else {\n                    var currentResult = this.queryObservable.currentResult();\n                    var loading = currentResult.loading, error_1 = currentResult.error, networkStatus = currentResult.networkStatus;\n                    assign(data, { loading: loading, networkStatus: networkStatus });\n                    var logErrorTimeoutId_1 = setTimeout(function () {\n                        if (error_1) {\n                            console.error(\"Unhandled (in react-apollo:\" + graphQLDisplayName + \")\", error_1.stack || error_1);\n                        }\n                    }, 10);\n                    Object.defineProperty(data, 'error', {\n                        configurable: true,\n                        enumerable: true,\n                        get: function () {\n                            clearTimeout(logErrorTimeoutId_1);\n                            return error_1;\n                        },\n                    });\n                    if (loading) {\n                        assign(data, this.previousData, currentResult.data);\n                    }\n                    else if (error_1) {\n                        assign(data, (this.queryObservable.getLastResult() || {}).data);\n                    }\n                    else {\n                        assign(data, currentResult.data);\n                        this.previousData = currentResult.data;\n                    }\n                    if (!this.querySubscription) {\n                        data.refetch = function (args) {\n                            return new Promise(function (r, f) {\n                                _this.refetcherQueue = { resolve: r, reject: f, args: args };\n                            });\n                        };\n                    }\n                }\n                return data;\n            };\n            GraphQL.prototype.render = function () {\n                if (this.shouldSkip()) {\n                    if (operationOptions.withRef) {\n                        return createElement(WrappedComponent, assign({}, this.props, { ref: this.setWrappedInstance }));\n                    }\n                    return createElement(WrappedComponent, this.props);\n                }\n                var _a = this, shouldRerender = _a.shouldRerender, renderedElement = _a.renderedElement, props = _a.props;\n                this.shouldRerender = false;\n                if (!shouldRerender &&\n                    renderedElement &&\n                    renderedElement.type === WrappedComponent) {\n                    return renderedElement;\n                }\n                var data = this.dataForChild();\n                var clientProps = this.calculateResultProps(data);\n                var mergedPropsAndData = assign({}, props, clientProps);\n                if (operationOptions.withRef)\n                    mergedPropsAndData.ref = this.setWrappedInstance;\n                this.renderedElement = createElement(WrappedComponent, mergedPropsAndData);\n                return this.renderedElement;\n            };\n            GraphQL.displayName = graphQLDisplayName;\n            GraphQL.WrappedComponent = WrappedComponent;\n            GraphQL.contextTypes = {\n                client: PropTypes.object,\n                getQueryRecycler: PropTypes.func,\n            };\n            return GraphQL;\n        }(Component));\n        return hoistNonReactStatics(GraphQL, WrappedComponent, {});\n    }\n    return wrapWithApolloComponent;\n}\n//# sourceMappingURL=graphql.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = Object.setPrototypeOf ||\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nimport { Component, createElement } from 'react';\nimport * as PropTypes from 'prop-types';\nvar invariant = require('invariant');\nvar assign = require('object-assign');\nvar hoistNonReactStatics = require('hoist-non-react-statics');\nfunction getDisplayName(WrappedComponent) {\n    return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n}\nexport function withApollo(WrappedComponent, operationOptions) {\n    if (operationOptions === void 0) { operationOptions = {}; }\n    var withDisplayName = \"withApollo(\" + getDisplayName(WrappedComponent) + \")\";\n    var WithApollo = (function (_super) {\n        __extends(WithApollo, _super);\n        function WithApollo(props, context) {\n            var _this = _super.call(this, props, context) || this;\n            _this.client = context.client;\n            _this.setWrappedInstance = _this.setWrappedInstance.bind(_this);\n            invariant(!!_this.client, \"Could not find \\\"client\\\" in the context of \" +\n                (\"\\\"\" + withDisplayName + \"\\\". \") +\n                \"Wrap the root component in an <ApolloProvider>\");\n            return _this;\n        }\n        WithApollo.prototype.getWrappedInstance = function () {\n            invariant(operationOptions.withRef, \"To access the wrapped instance, you need to specify \" +\n                \"{ withRef: true } in the options\");\n            return this.wrappedInstance;\n        };\n        WithApollo.prototype.setWrappedInstance = function (ref) {\n            this.wrappedInstance = ref;\n        };\n        WithApollo.prototype.render = function () {\n            var props = assign({}, this.props);\n            props.client = this.client;\n            if (operationOptions.withRef)\n                props.ref = this.setWrappedInstance;\n            return createElement(WrappedComponent, props);\n        };\n        WithApollo.displayName = withDisplayName;\n        WithApollo.WrappedComponent = WrappedComponent;\n        WithApollo.contextTypes = { client: PropTypes.object.isRequired };\n        return WithApollo;\n    }(Component));\n    return hoistNonReactStatics(WithApollo, WrappedComponent, {});\n}\n//# sourceMappingURL=withApollo.js.map","import { Children } from 'react';\nvar assign = require('object-assign');\nexport function walkTree(element, context, visitor) {\n    if (Array.isArray(element)) {\n        element.forEach(function (item) { return walkTree(item, context, visitor); });\n        return;\n    }\n    if (!element)\n        return;\n    var Component = element.type;\n    if (typeof Component === 'function') {\n        var props = assign({}, Component.defaultProps, element.props);\n        var childContext = context;\n        var child = void 0;\n        if (Component.prototype && Component.prototype.isReactComponent) {\n            var _component = Component;\n            var instance_1 = new _component(props, context);\n            instance_1.props = instance_1.props || props;\n            instance_1.context = instance_1.context || context;\n            instance_1.state = instance_1.state || null;\n            instance_1.setState = function (newState) {\n                if (typeof newState === 'function') {\n                    newState = newState(instance_1.state, instance_1.props, instance_1.context);\n                }\n                instance_1.state = assign({}, instance_1.state, newState);\n            };\n            if (instance_1.componentWillMount) {\n                instance_1.componentWillMount();\n            }\n            if (instance_1.getChildContext) {\n                childContext = assign({}, context, instance_1.getChildContext());\n            }\n            if (visitor(element, instance_1, context) === false) {\n                return;\n            }\n            child = instance_1.render();\n        }\n        else {\n            if (visitor(element, null, context) === false) {\n                return;\n            }\n            var _component = Component;\n            child = _component(props, context);\n        }\n        if (child) {\n            if (Array.isArray(child)) {\n                child.forEach(function (item) { return walkTree(item, context, visitor); });\n            }\n            else {\n                walkTree(child, childContext, visitor);\n            }\n        }\n    }\n    else {\n        if (visitor(element, null, context) === false) {\n            return;\n        }\n        if (element.props && element.props.children) {\n            Children.forEach(element.props.children, function (child) {\n                if (child) {\n                    walkTree(child, context, visitor);\n                }\n            });\n        }\n    }\n}\nfunction getQueriesFromTree(_a, fetchRoot) {\n    var rootElement = _a.rootElement, _b = _a.rootContext, rootContext = _b === void 0 ? {} : _b;\n    if (fetchRoot === void 0) { fetchRoot = true; }\n    var queries = [];\n    walkTree(rootElement, rootContext, function (element, instance, context) {\n        var skipRoot = !fetchRoot && element === rootElement;\n        if (instance && typeof instance.fetchData === 'function' && !skipRoot) {\n            var query = instance.fetchData();\n            if (query) {\n                queries.push({ query: query, element: element, context: context });\n                return false;\n            }\n        }\n    });\n    return queries;\n}\nexport function getDataFromTree(rootElement, rootContext, fetchRoot) {\n    if (rootContext === void 0) { rootContext = {}; }\n    if (fetchRoot === void 0) { fetchRoot = true; }\n    var queries = getQueriesFromTree({ rootElement: rootElement, rootContext: rootContext }, fetchRoot);\n    if (!queries.length)\n        return Promise.resolve();\n    var errors = [];\n    var mappedQueries = queries.map(function (_a) {\n        var query = _a.query, element = _a.element, context = _a.context;\n        return query\n            .then(function (_) { return getDataFromTree(element, context, false); })\n            .catch(function (e) { return errors.push(e); });\n    });\n    return Promise.all(mappedQueries).then(function (_) {\n        if (errors.length > 0) {\n            var error = errors.length === 1\n                ? errors[0]\n                : new Error(errors.length + \" errors were thrown when executing your GraphQL queries.\");\n            error.queryErrors = errors;\n            throw error;\n        }\n    });\n}\n//# sourceMappingURL=getDataFromTree.js.map"]}