{"version":3,"sources":["jsdelivr-header.js","/npm/react-fns@1.4.0/node_modules/tslib/tslib.es6.js","/npm/react-fns@1.4.0/src/utils/isEmptyChildren.tsx","/npm/react-fns@1.4.0/src/utils/throttle.ts","/npm/react-fns@1.4.0/src/utils/featureDetection.ts","/npm/react-fns@1.4.0/src/Scroll/Scroll.tsx","/npm/react-fns@1.4.0/src/hoistStatics.tsx","/npm/react-fns@1.4.0/src/Scroll/withScroll.tsx","/npm/react-fns@1.4.0/src/DeviceMotion/DeviceMotion.tsx","/npm/react-fns@1.4.0/src/DeviceMotion/withDeviceMotion.tsx","/npm/react-fns@1.4.0/src/DeviceOrientation/DeviceOrientation.tsx","/npm/react-fns@1.4.0/src/DeviceOrientation/withDeviceOrientation.tsx","/npm/react-fns@1.4.0/src/Network/Network.tsx","/npm/react-fns@1.4.0/src/Network/withNetwork.tsx","/npm/react-fns@1.4.0/src/GeoPosition/GeoPosition.tsx","/npm/react-fns@1.4.0/src/GeoPosition/withGeoPosition.tsx","/npm/react-fns@1.4.0/src/Media/Media.tsx","/npm/react-fns@1.4.0/src/WindowSize/WindowSize.tsx","/npm/react-fns@1.4.0/src/WindowSize/withWindowSize.tsx","/npm/react-fns@1.4.0/src/Locales/Locales.tsx","/npm/react-fns@1.4.0/src/Locales/withLocales.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,+FCUI,cAAgB,OAAO,gBACtB,CAAE,UAAW,cAAgB,OAAS,SAAU,EAAG,GAAK,EAAE,UAAY,CAAE,GACzE,SAAU,EAAG,GAAK,IAAK,IAAI,KAAK,EAAO,EAAE,eAAe,KAAI,EAAE,GAAK,EAAE,GAAG;;;;;;;;;;;;;;gFAE5E,SAAgB,UAAU,EAAG,GAEzB,SAAS,IAAO,KAAK,YAAc,CAAE,CADrC,cAAc,EAAG,GAEjB,EAAE,UAAkB,OAAN,EAAa,OAAO,OAAO,IAAM,EAAG,UAAY,EAAE,UAAW,IAAI,E,CAGnF,IAAW,SAA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,EAAA,UAAW,EAAA,EAAA,SAC3B,OAAO,EACH,oBAAoB,EAAkB,KAAK,OAC3C,EACG,EAAe,KAAK,OACrB,EACsB,mBAAb,EACL,EAAS,KAAK,OACb,gBAAgB,GAA4C,KAAhC,eAAe,KAAK,GACnD,I,EAEZ,C,CAvCA,CAA6B,iB,qBCV3B,GAQA,OAAO,sBANqB,SAAA,GAC1B,OACE,oBAAC,QAAO,CAAC,OAAQ,SAAC,GAAoB,OAAA,oBAAC,EAAS,SAAA,GAAK,EAAW,GAAK,G,GAMvE,E","file":"/npm/react-fns@1.4.0/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-fns@1.4.0/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = Object.setPrototypeOf ||\r\n    ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n    function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n\r\nexport function __extends(d, b) {\r\n    extendStatics(d, b);\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = Object.assign || function __assign(t) {\r\n    for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n        s = arguments[i];\r\n        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n    }\r\n    return t;\r\n}\r\n\r\nexport function __rest(s, e) {\r\n    var t = {};\r\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n        t[p] = s[p];\r\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\r\n            t[p[i]] = s[p[i]];\r\n    return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n    return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n    return new (P || (P = Promise))(function (resolve, reject) {\r\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n    });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n    return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n    function verb(n) { return function (v) { return step([n, v]); }; }\r\n    function step(op) {\r\n        if (f) throw new TypeError(\"Generator is already executing.\");\r\n        while (_) try {\r\n            if (f = 1, y && (t = y[op[0] & 2 ? \"return\" : op[0] ? \"throw\" : \"next\"]) && !(t = t.call(y, op[1])).done) return t;\r\n            if (y = 0, t) op = [0, t.value];\r\n            switch (op[0]) {\r\n                case 0: case 1: t = op; break;\r\n                case 4: _.label++; return { value: op[1], done: false };\r\n                case 5: _.label++; y = op[1]; op = [0]; continue;\r\n                case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n                default:\r\n                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n                    if (t[2]) _.ops.pop();\r\n                    _.trys.pop(); continue;\r\n            }\r\n            op = body.call(thisArg, _);\r\n        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n    }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n    if (m) return m.call(o);\r\n    return {\r\n        next: function () {\r\n            if (o && i >= o.length) o = void 0;\r\n            return { value: o && o[i++], done: !o };\r\n        }\r\n    };\r\n}\r\n\r\nexport function __read(o, n) {\r\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n    if (!m) return o;\r\n    var i = m.call(o), r, ar = [], e;\r\n    try {\r\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n    }\r\n    catch (error) { e = { error: error }; }\r\n    finally {\r\n        try {\r\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n        }\r\n        finally { if (e) throw e.error; }\r\n    }\r\n    return ar;\r\n}\r\n\r\nexport function __spread() {\r\n    for (var ar = [], i = 0; i < arguments.length; i++)\r\n        ar = ar.concat(__read(arguments[i]));\r\n    return ar;\r\n}\r\n\r\nexport function __await(v) {\r\n    return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n    if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n    var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n    return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n    function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n    function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n    function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);  }\r\n    function fulfill(value) { resume(\"next\", value); }\r\n    function reject(value) { resume(\"throw\", value); }\r\n    function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n    var i, p;\r\n    return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n    function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; }; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n    if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n    var m = o[Symbol.asyncIterator];\r\n    return m ? m.call(o) : typeof __values === \"function\" ? __values(o) : o[Symbol.iterator]();\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n    if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n    return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n    if (mod && mod.__esModule) return mod;\r\n    var result = {};\r\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n    result.default = mod;\r\n    return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n    return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\n\nexport const isEmptyChildren = (children: any) =>\n  React.Children.count(children) === 0;\n","/**\n * Throttling enforces a maximum number of times a function\n * can be called over time.\n *\n * @param func a function\n * @param wait time\n */\n\nexport function throttle(this: any, func: Function, wait: Number) {\n  let timeout: number | null = null;\n  let callbackArgs: IArguments | null = null;\n  const context = this;\n\n  const later = () => {\n    func.apply(context, callbackArgs);\n    timeout = null;\n  };\n\n  return function() {\n    if (!timeout) {\n      callbackArgs = arguments;\n      timeout = setTimeout(later, wait);\n    }\n  };\n}\n","export let supportsPassiveListener = false;\n\nconst noop = () => {};\n\ntry {\n  const opts = Object.defineProperty({}, 'passive', {\n    get: function() {\n      supportsPassiveListener = true;\n    },\n  });\n  (window as EventTarget).addEventListener('testPassive', noop, opts);\n  (window as EventTarget).removeEventListener('testPassive', noop, opts);\n} catch (e) {}\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\nimport { SharedRenderProps } from '../types';\nimport { isEmptyChildren } from '../utils';\nimport { throttle } from '../utils/throttle';\nimport { supportsPassiveListener } from '../utils/featureDetection';\n\nexport interface ScrollProps {\n  x: number;\n  y: number;\n}\n\nexport interface ScrollConfig {\n  throttle?: number;\n}\n\nexport class Scroll extends React.Component<\n  ScrollConfig & SharedRenderProps<ScrollProps>,\n  ScrollProps\n> {\n  static defaultProps: Partial<ScrollConfig> = {\n    throttle: 100,\n  };\n\n  state: ScrollProps = { x: 0, y: 0 };\n\n  handleWindowScroll = throttle(() => {\n    this.setState({ x: window.scrollX, y: window.scrollY });\n  }, this.props.throttle!);\n\n  componentDidMount() {\n    this.handleWindowScroll();\n    (window as EventTarget).addEventListener(\n      'scroll',\n      this.handleWindowScroll,\n      supportsPassiveListener ? { passive: true } : false\n    );\n  }\n\n  componentWillUnmount() {\n    window.removeEventListener('scroll', this.handleWindowScroll);\n  }\n\n  render() {\n    const { render, component, children } = this.props;\n    return component\n      ? React.createElement(component as any, this.state)\n      : render\n        ? (render as any)(this.state)\n        : children // children come last, always called\n          ? typeof children === 'function'\n            ? children(this.state)\n            : !isEmptyChildren(children) ? React.Children.only(children) : null\n          : null;\n  }\n}\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nexport * from './utils/isEmptyChildren';\n\nimport { ComponentClass } from 'react';\n\nconst REACT_STATICS: any = {\n  childContextTypes: true,\n  contextTypes: true,\n  defaultProps: true,\n  displayName: true,\n  getDefaultProps: true,\n  mixins: true,\n  propTypes: true,\n  type: true,\n};\n\nconst KNOWN_STATICS: any = {\n  name: true,\n  length: true,\n  prototype: true,\n  caller: true,\n  callee: true,\n  arguments: true,\n  arity: true,\n};\n\nconst getOwnPropertySymbols = Object.getOwnPropertySymbols;\nconst propIsEnumerable = Object.prototype.propertyIsEnumerable;\nconst getPrototypeOf = Object.getPrototypeOf;\nconst objectPrototype = getPrototypeOf && getPrototypeOf(Object);\nconst getOwnPropertyNames = Object.getOwnPropertyNames;\n\nexport function hoistNonReactStatics<P>(\n  targetComponent: ComponentClass<P>,\n  sourceComponent: ComponentClass<any>,\n  blacklist?: { [name: string]: boolean }\n): ComponentClass<P> {\n  if (typeof sourceComponent !== 'string') {\n    // don't hoist over string (html) components\n\n    if (objectPrototype) {\n      let inheritedComponent = getPrototypeOf(sourceComponent);\n      if (inheritedComponent && inheritedComponent !== objectPrototype) {\n        hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n      }\n    }\n\n    let keys = getOwnPropertyNames(sourceComponent);\n\n    if (getOwnPropertySymbols) {\n      keys = keys.concat(getOwnPropertySymbols(sourceComponent) as any);\n    }\n\n    for (let i = 0; i < keys.length; ++i) {\n      let key: string = keys[i];\n      if (\n        !REACT_STATICS[key] &&\n        !KNOWN_STATICS[key] &&\n        (!blacklist || !blacklist[key])\n      ) {\n        // Only hoist enumerables and non-enumerable functions\n        if (\n          propIsEnumerable.call(sourceComponent, key) ||\n          typeof (sourceComponent as any)[key] === 'function'\n        ) {\n          try {\n            // Avoid failures from read-only properties\n            (targetComponent as any)[key] = (sourceComponent as any)[key];\n            // tslint:disable-next-line:no-empty\n          } catch (e) {}\n        }\n      }\n    }\n\n    return targetComponent;\n  }\n\n  return targetComponent;\n}\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\nimport { Scroll, ScrollProps } from './Scroll';\nimport { hoistNonReactStatics } from '../hoistStatics';\n\nexport function withScroll<Props>(\n  Component: React.ComponentType<Props & ScrollProps>\n) {\n  const S: React.SFC<Props> = props => {\n    return (\n      <Scroll render={(p: ScrollProps) => <Component {...props} {...p} />} />\n    );\n  };\n\n  return hoistNonReactStatics<Props>(\n    S as any,\n    Component as React.ComponentClass<Props & ScrollProps>\n  ) as React.ComponentType<Props>;\n}\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\nimport { SharedRenderProps } from '../types';\nimport { isEmptyChildren } from '../utils';\n\nexport interface DeviceMotionProps {\n  acceleration: DeviceAcceleration | null;\n  accelerationIncludingGravity: DeviceAcceleration | null;\n  rotationRate: DeviceRotationRate | null;\n  interval: number | null;\n}\n\nexport class DeviceMotion extends React.Component<\n  SharedRenderProps<DeviceMotionProps>,\n  DeviceMotionProps\n> {\n  state: DeviceMotionProps = {\n    acceleration: {\n      x: null,\n      y: null,\n      z: null,\n    },\n    accelerationIncludingGravity: {\n      x: null,\n      y: null,\n      z: null,\n    },\n    rotationRate: {\n      alpha: null,\n      beta: null,\n      gamma: null,\n    },\n    interval: 0,\n  };\n\n  handleDeviceMotion = (e: DeviceMotionEvent) => {\n    this.setState({\n      acceleration: e.acceleration,\n      accelerationIncludingGravity: e.accelerationIncludingGravity,\n      rotationRate: e.rotationRate,\n      interval: e.interval,\n    });\n  };\n\n  componentDidMount() {\n    window.addEventListener('devicemotion', this.handleDeviceMotion, true);\n  }\n\n  componentWillUnmount() {\n    window.removeEventListener('devicemotion', this.handleDeviceMotion);\n  }\n\n  render() {\n    const { render, component, children } = this.props;\n    return component\n      ? React.createElement(component as any, this.state)\n      : render\n        ? (render as any)(this.state)\n        : children // children come last, always called\n          ? typeof children === 'function'\n            ? children(this.state)\n            : !isEmptyChildren(children) ? React.Children.only(children) : null\n          : null;\n  }\n}\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\nimport { DeviceMotion, DeviceMotionProps } from './DeviceMotion';\nimport { hoistNonReactStatics } from '../hoistStatics';\n\nexport function withDeviceMotion<Props>(\n  Component: React.ComponentType<Props & DeviceMotionProps>\n) {\n  const S: React.SFC<Props> = props => {\n    return (\n      <DeviceMotion\n        render={(p: DeviceMotionProps) => <Component {...props} {...p} />}\n      />\n    );\n  };\n\n  return hoistNonReactStatics<Props>(\n    S as any,\n    Component as React.ComponentClass<Props & DeviceMotionProps>\n  ) as React.ComponentType<Props>;\n}\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\nimport { SharedRenderProps } from '../types';\nimport { isEmptyChildren } from '../utils';\n\nexport interface DeviceOrientationProps {\n  alpha: number | null;\n  beta: number | null;\n  gamma: number | null;\n  absolute: boolean;\n}\n\nexport class DeviceOrientation extends React.Component<\n  SharedRenderProps<DeviceOrientationProps>,\n  DeviceOrientationProps\n> {\n  state: DeviceOrientationProps = {\n    alpha: null,\n    beta: null,\n    gamma: null,\n    absolute: false,\n  };\n\n  handleDeviceOrientation = (e: DeviceOrientationEvent) => {\n    this.setState({\n      beta: e.beta,\n      alpha: e.alpha,\n      gamma: e.gamma,\n      absolute: e.absolute,\n    });\n  };\n\n  componentDidMount() {\n    window.addEventListener(\n      'deviceorientation',\n      this.handleDeviceOrientation,\n      true\n    );\n  }\n\n  componentWillUnmount() {\n    window.removeEventListener(\n      'deviceorientation',\n      this.handleDeviceOrientation\n    );\n  }\n\n  render() {\n    const { render, component, children } = this.props;\n    return component\n      ? React.createElement(component as any, this.state)\n      : render\n        ? (render as any)(this.state)\n        : children // children come last, always called\n          ? typeof children === 'function'\n            ? children(this.state)\n            : !isEmptyChildren(children) ? React.Children.only(children) : null\n          : null;\n  }\n}\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\nimport { DeviceOrientation, DeviceOrientationProps } from './DeviceOrientation';\nimport { hoistNonReactStatics } from '../hoistStatics';\n\nexport function withDeviceOrientation<Props>(\n  Component: React.ComponentType<Props & DeviceOrientationProps>\n) {\n  const S: React.SFC<Props> = props => {\n    return (\n      <DeviceOrientation\n        render={(p: DeviceOrientationProps) => <Component {...props} {...p} />}\n      />\n    );\n  };\n\n  return hoistNonReactStatics<Props>(\n    S as any,\n    Component as React.ComponentClass<Props & DeviceOrientationProps>\n  ) as React.ComponentType<Props>;\n}\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\nimport { SharedRenderProps } from '../types';\nimport { isEmptyChildren } from '../utils';\n\nexport interface NetworkProps {\n  online: boolean;\n  offlineAt?: Date;\n}\n\nexport class Network extends React.Component<\n  SharedRenderProps<NetworkProps>,\n  NetworkProps\n> {\n  state: NetworkProps = { online: navigator.onLine };\n\n  handleOnline = () => {\n    this.setState({ online: true, offlineAt: undefined });\n  };\n\n  handleOffline = () => {\n    this.setState({ online: false, offlineAt: new Date() });\n  };\n\n  componentDidMount() {\n    if (typeof window !== 'undefined' && navigator) {\n      this.setState({ online: navigator.onLine });\n    }\n\n    window.addEventListener('online', this.handleOnline);\n    window.addEventListener('offline', this.handleOffline);\n  }\n\n  componentWillUnmount() {\n    window.removeEventListener('online', this.handleOnline);\n    window.removeEventListener('offline', this.handleOffline);\n  }\n\n  render() {\n    const { render, component, children } = this.props;\n    return component\n      ? React.createElement(component as any, this.state)\n      : render\n        ? (render as any)(this.state)\n        : children // children come last, always called\n          ? typeof children === 'function'\n            ? children(this.state)\n            : !isEmptyChildren(children) ? React.Children.only(children) : null\n          : null;\n  }\n}\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\nimport { Network, NetworkProps } from './Network';\nimport { hoistNonReactStatics } from '../hoistStatics';\n\nexport function withNetwork<Props>(\n  Component: React.ComponentType<Props & NetworkProps>\n) {\n  const S: React.SFC<Props> = props => {\n    return (\n      <Network render={(p: NetworkProps) => <Component {...props} {...p} />} />\n    );\n  };\n\n  return hoistNonReactStatics<Props>(\n    S as any,\n    Component as React.ComponentClass<Props & NetworkProps>\n  ) as React.ComponentType<Props>;\n}\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\nimport { SharedRenderProps } from '../types';\nimport { isEmptyChildren } from '../utils';\n\nexport interface GeoPositionProps {\n  isLoading: boolean;\n  coords?: {\n    longitude: number;\n    latitude: number;\n  };\n  error?: PositionError;\n}\n\nexport class GeoPosition extends React.Component<\n  SharedRenderProps<GeoPositionProps>,\n  GeoPositionProps\n> {\n  geoId: any;\n\n  state = {\n    isLoading: true,\n  };\n\n  componentDidMount() {\n    this.requestGeo();\n  }\n\n  requestGeo = () => {\n    this.setState({ isLoading: true });\n    this.geoId = navigator.geolocation.watchPosition(\n      (position: Position) =>\n        this.setState({\n          isLoading: false,\n          coords: {\n            latitude: position.coords.latitude,\n            longitude: position.coords.longitude,\n          },\n          error: undefined,\n        }),\n      (error: PositionError) => this.setState({ error, isLoading: false })\n    );\n  };\n\n  componentWillUnmount() {\n    navigator.geolocation.clearWatch(this.geoId);\n  }\n\n  render() {\n    const { render, component, children } = this.props;\n    return component\n      ? React.createElement(component as any, this.state)\n      : render\n        ? (render as any)(this.state)\n        : children // children come last, always called\n          ? typeof children === 'function'\n            ? children(this.state)\n            : !isEmptyChildren(children) ? React.Children.only(children) : null\n          : null;\n  }\n}\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\nimport { GeoPosition, GeoPositionProps } from './GeoPosition';\nimport { hoistNonReactStatics } from '../hoistStatics';\n\nexport function withGeoPosition<Props>(\n  Component: React.ComponentType<Props & GeoPositionProps>\n) {\n  const S: React.SFC<Props> = props => {\n    return (\n      <GeoPosition\n        render={(p: GeoPositionProps) => <Component {...props} {...p} />}\n      />\n    );\n  };\n\n  return hoistNonReactStatics<Props>(\n    S as any,\n    Component as React.ComponentClass<Props & GeoPositionProps>\n  ) as React.ComponentType<Props>;\n}\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\nimport { SharedRenderProps } from '../types';\nconst M = require('react-media');\n\nexport const Media: React.SFC<SharedRenderProps<MediaProps>> = M;\n\nexport interface MediaProps {\n  matches: boolean;\n}\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\nimport { SharedRenderProps } from '../types';\nimport { isEmptyChildren } from '../utils';\nimport { throttle } from '../utils/throttle';\n\nexport interface WindowSizeProps {\n  width: number;\n  height: number;\n}\n\nexport interface WindowSizeConfig {\n  throttle?: number;\n}\n\nexport class WindowSize extends React.Component<\n  WindowSizeConfig & SharedRenderProps<WindowSizeProps>,\n  WindowSizeProps\n> {\n  static defaultProps: Partial<WindowSizeConfig> = {\n    throttle: 100,\n  };\n\n  state: WindowSizeProps = { width: 0, height: 0 };\n\n  handleWindowSize = throttle(() => {\n    this.setState({ width: window.innerWidth, height: window.innerHeight });\n  }, this.props.throttle!);\n\n  componentDidMount() {\n    this.handleWindowSize();\n    window.addEventListener('resize', this.handleWindowSize);\n  }\n\n  componentWillUnmount() {\n    window.removeEventListener('resize', this.handleWindowSize);\n  }\n\n  render() {\n    const { render, component, children } = this.props;\n    return component\n      ? React.createElement(component as any, this.state)\n      : render\n        ? (render as any)(this.state)\n        : children // children come last, always called\n          ? typeof children === 'function'\n            ? children(this.state)\n            : !isEmptyChildren(children) ? React.Children.only(children) : null\n          : null;\n  }\n}\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\nimport { WindowSize, WindowSizeProps } from './WindowSize';\nimport { hoistNonReactStatics } from '../hoistStatics';\n\nexport function withWindowSize<Props>(\n  Component: React.ComponentType<Props & WindowSizeProps>\n) {\n  const S: React.SFC<Props> = props => {\n    return (\n      <WindowSize\n        render={(p: WindowSizeProps) => <Component {...props} {...p} />}\n      />\n    );\n  };\n\n  return hoistNonReactStatics<Props>(\n    S as any,\n    Component as React.ComponentClass<Props & WindowSizeProps>\n  ) as React.ComponentType<Props>;\n}\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\nimport { SharedRenderProps } from '../types';\nimport { isEmptyChildren } from '../utils';\n\nexport interface LocalesProps {\n  locale: string;\n}\n\n// TypeScript's definitions don't include this, though it has decent support in\n// modern browsers.\n// See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales\ndeclare namespace Intl {\n  function getCanonicalLocales(localse: string[]): string[];\n}\n\nexport class Locales extends React.Component<\n  SharedRenderProps<LocalesProps>,\n  LocalesProps\n> {\n  state: LocalesProps = { locale: this.preferredLocales() };\n\n  preferredLocales(): string {\n    if (navigator.languages && navigator.languages.length > 0) {\n      return Intl.getCanonicalLocales(navigator.languages)[0];\n    }\n    return Intl.getCanonicalLocales([navigator.language])[0];\n  }\n\n  handleLanguageChange = () => {\n    this.setState({\n      locale: this.preferredLocales(),\n    });\n  };\n\n  componentDidMount() {\n    window.addEventListener('languagechange', this.handleLanguageChange);\n  }\n\n  componentWillUnmount() {\n    window.removeEventListener('languagechange', this.handleLanguageChange);\n  }\n\n  render() {\n    const { render, component, children } = this.props;\n    return component\n      ? React.createElement(component as any, this.state)\n      : render\n        ? (render as any)(this.state)\n        : children // children come last, always called\n          ? typeof children === 'function'\n            ? children(this.state)\n            : !isEmptyChildren(children) ? React.Children.only(children) : null\n          : null;\n  }\n}\n","/**\n * Copyright (c) 2017-present Jared Palmer\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\nimport { Locales, LocalesProps } from './Locales';\nimport { hoistNonReactStatics } from '../hoistStatics';\n\nexport function withLocales<Props>(\n  Component: React.ComponentType<Props & LocalesProps>\n) {\n  const S: React.SFC<Props> = props => {\n    return (\n      <Locales render={(p: LocalesProps) => <Component {...props} {...p} />} />\n    );\n  };\n\n  return hoistNonReactStatics<Props>(\n    S as any,\n    Component as React.ComponentClass<Props & LocalesProps>\n  ) as React.ComponentType<Props>;\n}\n"]}